aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/README.md
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-05-17 14:31:50 +0200
committerPeter Mikus <pmikus@cisco.com>2018-05-30 11:02:25 +0000
commit0eeaf6eeeac256a8dfba297c57247b261912d2ca (patch)
treeef63ae3b1731e75de90dca371322e209be7fcb23 /resources/tools/testbed-setup/README.md
parent3a14297dca576dd7e2c9f09d84bf0f5cf58c1938 (diff)
CSIT-1068 Update testbed-setup for new server onboarding
Change-Id: I5e1588b432ebd5655a5451f8f19903f28d1fee2a Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/README.md')
-rw-r--r--resources/tools/testbed-setup/README.md42
1 files changed, 11 insertions, 31 deletions
diff --git a/resources/tools/testbed-setup/README.md b/resources/tools/testbed-setup/README.md
index e97fa22dfb..7c4678320f 100644
--- a/resources/tools/testbed-setup/README.md
+++ b/resources/tools/testbed-setup/README.md
@@ -24,54 +24,34 @@ 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 when there is no http server
+### Prepare the PXE bootstrap server when there is no http server AMD64
- `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.2/ubuntu-16.04.2-server-amd64.iso'`
- `sudo mkdir /mnt/cdrom`
- - `sudo mount -o loop ubuntu-16.04.2-server-amd64.iso /mnt/cdrom/`
+ - Ubuntu Xenial
+ - `wget 'http://releases.ubuntu.com/16.04.2/ubuntu-16.04.2-server-amd64.iso'`
+ - `sudo mount -o loop ubuntu-16.04.2-server-amd64.iso /mnt/cdrom/`
+ - Ubuntu Bionic
+ - `wget 'http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04-server-amd64.iso'`
+ - `sudo mount -o loop ubuntu-18.04-server-amd64.iso /mnt/cdrom/`
- `sudo cp -r /mnt/cdrom/install/netboot/* /var/lib/tftpboot/`
- 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 ${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 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/
- - `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/`
+ /etc/nginx/nginx.conf under section server/root. Save the path to WWW_ROOT
+ - `sudo mkdir -p ${WWW_ROOT}/download/ubuntu`
+ - `sudo cp -r /mnt/cdrom/* ${WWW_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 and subdir in /var/www (in this case /download)
- - `sudo cp ks.cfg /var/www/download/ks.cfg`
+ - `sudo cp ks.cfg ${WWW_ROOT}/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`