diff options
author | pmikus <pmikus@cisco.com> | 2017-04-13 20:56:56 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-04-14 07:35:20 +0000 |
commit | 4da982b7a0f5872de2cc721607894216a20892f4 (patch) | |
tree | 217c41366985b96514c06f1e047fc14734462956 /resources/tools/testbed-setup/README.md | |
parent | 0778ed7eec4bfcdbad86e6962d92a10207d4ddd2 (diff) |
Update ansible script
- Add more inter steps
- Add alternative way to host files via Apache server (due to VIRL
collisions)
Change-Id: Ibb206fa630013e9cdff9cda145e993b033ec7138
Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/README.md')
-rw-r--r-- | resources/tools/testbed-setup/README.md | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/resources/tools/testbed-setup/README.md b/resources/tools/testbed-setup/README.md index e795a2e4fc..0a423cc953 100644 --- a/resources/tools/testbed-setup/README.md +++ b/resources/tools/testbed-setup/README.md @@ -27,10 +27,13 @@ is available on the PXE bootstrap server in ~testuser/host-setup. ### Prepare the PXE bootstrap server (one-time) - `sudo apt-get install isc-dhcp-server tftpd-hpa nginx-light ansible` + - edit dhcpd.conf and place it to /etc/dhcp/ + - `sudo cp dhcpd.cfg /etc/dhcp/` + - `sudo service isc-dhcp-server restart` - `cd ~testuser/host-setup` - - `wget 'http://releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.iso'` + - `wget 'http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso'` - `sudo mkdir /mnt/cdrom` - - `sudo mount -o loop ubuntu-16.04.1-server-amd64.iso /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/` @@ -45,6 +48,30 @@ is available on the PXE bootstrap server in ~testuser/host-setup. - `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` +### Prepare the PXE bootstrap server (alternative way without NGINX) + + - `sudo apt-get install isc-dhcp-server tftpd-hpa ansible` + - edit dhcpd.conf and place it to /etc/dhcp/ + - `sudo cp dhcpd.cfg /etc/dhcp/` + - `sudo service isc-dhcp-server restart` + - `cd ~testuser/host-setup` + - `wget 'http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso'` + - `sudo mkdir /mnt/cdrom` + - `sudo mount -o loop ubuntu-16.04.1-server-amd64.iso /mnt/cdrom/` + - `sudo cp -r /mnt/cdrom/install/netboot/* /var/lib/tftpboot/` + - `sudo mkdir /var/www/download/ubuntu` + - `sudo cp -r /mnt/cdrom/* /var/www/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 and subdir in /var/www (in this case /download) + - `sudo cp ks.cfg /var/www/download/ks.cfg` + - edit boot-screens_txt.cfg and replace IP address with that of your PXE bootstrap server and subdir in /var/www (in this case /download) + - `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` + ### New testbed host - manual preparation - set CIMC address |