aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/README.md
diff options
context:
space:
mode:
authorjuraj.linkes <juraj.linkes@pantheon.tech>2018-05-03 11:04:00 +0200
committerPeter Mikus <pmikus@cisco.com>2018-05-10 16:57:58 +0000
commita768ed9ef7b54539d173f4b0f2b8a7028f47372c (patch)
treea88a6185e6e68a51a81c13ddab26320096a336ea /resources/tools/testbed-setup/README.md
parentf1bb434e0392882a49f90ed1847f839e8bf46135 (diff)
Updated testbed setup readme
The section describing PXE server setup contained incorrect paths for nginx server, which this patch fixes. Change-Id: Iea04c12baea88d6ef378826d4b4e2eab5648b36b Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/tools/testbed-setup/README.md')
-rw-r--r--resources/tools/testbed-setup/README.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/resources/tools/testbed-setup/README.md b/resources/tools/testbed-setup/README.md
index d4e2091dfa..720ba0f989 100644
--- a/resources/tools/testbed-setup/README.md
+++ b/resources/tools/testbed-setup/README.md
@@ -24,7 +24,7 @@ The process below assumes that there is a host used for boostrapping (referred
to as "PXE boostrap server" below), and that the directory containig this README
is available on the PXE bootstrap server in ~testuser/host-setup.
-### Prepare the PXE bootstrap server (one-time)
+### Prepare the PXE bootstrap server when there is no http server
- `sudo apt-get install isc-dhcp-server tftpd-hpa nginx-light ansible`
- edit dhcpd.conf and place it to /etc/dhcp/
@@ -35,20 +35,24 @@ is available on the PXE bootstrap server in ~testuser/host-setup.
- `sudo mkdir /mnt/cdrom`
- `sudo mount -o loop ubuntu-16.04.2-server-amd64.iso /mnt/cdrom/`
- `sudo cp -r /mnt/cdrom/install/netboot/* /var/lib/tftpboot/`
- - `sudo mkdir /usr/share/nginx/html/ubuntu`
- - `sudo cp -r /mnt/cdrom/* /usr/share/nginx/html/ubuntu/`
+ - figure out where nginx will look for files on the filesystem when
+ responding to HTTP requests. The configuration is in one of the
+ files in /etc/nginx/conf.d/, /etc/nginx/sites-enabled/ or in
+ /etc/nginx/nginx.conf under section server/root. Save the path to NGINX_ROOT
+ - `sudo mkdir -p ${NGINX_ROOT}/download/ubuntu`
+ - `sudo cp -r /mnt/cdrom/* ${NGINX_ROOT}/download/ubuntu/`
- `sudo cp /mnt/cdrom/ubuntu/isolinux/ldlinux.c32 /var/lib/tftpboot`
- `sudo cp /mnt/cdrom/ubuntu/isolinux/libcom32.c32 /var/lib/tftpboot`
- `sudo cp /mnt/cdrom/ubuntu/isolinux/libutil.c32 /var/lib/tftpboot`
- `sudo cp /mnt/cdrom/ubuntu/isolinux/chain.c32 /var/lib/tftpboot`
- `sudo umount /mnt/cdrom`
- edit ks.cfg and replace IP address with that of your PXE bootstrap server
- - `sudo cp ks.cfg /usr/share/nginx/html/ks.cfg`
+ - `sudo cp ks.cfg ${NGINX_ROOT}/download/ks.cfg`
- edit boot-screens_txt.cfg and replace IP address with that of your PXE bootstrap server
- `sudo cp boot-screens_txt.cfg /var/lib/tftpboot/ubuntu-installer/amd64/boot-screens/txt.cfg`
- `sudo cp syslinux.cfg /var/lib/tftpboot/ubuntu-installer/amd64/boot-screens/syslinux.cfg`
-### PREFERED: Prepare the PXE bootstrap server (alternative way without NGINX)
+### PREFERED: Prepare the PXE bootstrap server when an http server is already configured
- `sudo apt-get install isc-dhcp-server tftpd-hpa ansible`
- edit dhcpd.conf and place it to /etc/dhcp/