aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/pxe
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/testbed-setup/pxe')
-rw-r--r--resources/tools/testbed-setup/pxe/boot-screens_txt.cfg11
-rw-r--r--resources/tools/testbed-setup/pxe/dhcpd.conf90
-rw-r--r--resources/tools/testbed-setup/pxe/ks.cfg82
-rw-r--r--resources/tools/testbed-setup/pxe/syslinux.cfg6
4 files changed, 189 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/pxe/boot-screens_txt.cfg b/resources/tools/testbed-setup/pxe/boot-screens_txt.cfg
new file mode 100644
index 0000000000..4c73de3855
--- /dev/null
+++ b/resources/tools/testbed-setup/pxe/boot-screens_txt.cfg
@@ -0,0 +1,11 @@
+default install
+label install
+ menu label ^Install
+ menu default
+ kernel ubuntu-installer/amd64/linux
+ append ks=http://10.30.51.28/download/ks.cfg ksdevice=bootif initrd=ubuntu-installer/amd64/initrd.gz console=tty0 console=ttyS0,115200n8 --- quiet
+ IPAPPEND 2
+label cli
+ menu label ^Command-line install
+ kernel ubuntu-installer/amd64/linux
+ append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=788 initrd=ubuntu-installer/amd64/initrd.gz --- quiet
diff --git a/resources/tools/testbed-setup/pxe/dhcpd.conf b/resources/tools/testbed-setup/pxe/dhcpd.conf
new file mode 100644
index 0000000000..25e6815962
--- /dev/null
+++ b/resources/tools/testbed-setup/pxe/dhcpd.conf
@@ -0,0 +1,90 @@
+#
+# Sample configuration file for ISC dhcpd for Debian
+#
+# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
+# configuration file instead of this file.
+#
+#
+
+# The ddns-updates-style parameter controls whether or not the server will
+# attempt to do a DNS update when a lease is confirmed. We default to the
+# behavior of the version 2 packages ('none', since DHCP v2 didn't
+# have support for DDNS.)
+ddns-update-style none;
+
+# option definitions common to all supported networks...
+option domain-name "linuxfoundation.org";
+option domain-name-servers 199.204.44.24, 199.204.47.54;
+
+default-lease-time 600;
+max-lease-time 7200;
+
+# If this DHCP server is the official DHCP server for the local
+# network, the authoritative directive should be uncommented.
+authoritative;
+
+# Use this to send dhcp log messages to a different log file (you also
+# have to hack syslog.conf to complete the redirection).
+log-facility local7;
+
+# This is content of file (/etc/dhcp/dhcpd.conf) currently located on host
+# t4-virl1 with address 10.30.51.28. Please reflect any actual changes before
+# overwriting. This file is used for PXE boot.
+subnet 10.30.51.0 netmask 255.255.255.0 {
+ option routers 10.30.51.1;
+ host t1-tg1 {
+ hardware ethernet 00:fe:c8:e5:6c:76;
+ fixed-address 10.30.51.16;
+ filename "pxelinux.0";
+ }
+ host t1-sut1 {
+ hardware ethernet 00:fe:c8:e5:68:32;
+ fixed-address 10.30.51.17;
+ filename "pxelinux.0";
+ }
+ host t1-sut2 {
+ hardware ethernet cc:46:d6:17:e0:58;
+ fixed-address 10.30.51.18;
+ filename "pxelinux.0";
+ }
+ host t2-tg1 {
+ hardware ethernet 00:fe:c8:e5:6a:72;
+ fixed-address 10.30.51.20;
+ filename "pxelinux.0";
+ }
+ host t2-sut1 {
+ hardware ethernet 00:fe:c8:e5:68:e0;
+ fixed-address 10.30.51.21;
+ filename "pxelinux.0";
+ }
+ host t2-sut2 {
+ hardware ethernet 00:fe:c8:58:1e:f6;
+ fixed-address 10.30.51.22;
+ filename "pxelinux.0";
+ }
+ host t3-tg1 {
+ hardware ethernet 00:fe:c8:e5:68:c2;
+ fixed-address 10.30.51.24;
+ filename "pxelinux.0";
+ }
+ host t3-sut1 {
+ hardware ethernet 00:f2:8b:7c:fb:4a;
+ fixed-address 10.30.51.25;
+ filename "pxelinux.0";
+ }
+ host t3-sut2 {
+ hardware ethernet 58:ac:78:5c:90:78;
+ fixed-address 10.30.51.26;
+ filename "pxelinux.0";
+ }
+ host t4-virl2 {
+ hardware ethernet 00:42:68:6f:68:ee;
+ fixed-address 10.30.51.29;
+ filename "pxelinux.0";
+ }
+ host t4-virl3 {
+ hardware ethernet 00:42:68:6f:6f:c0;
+ fixed-address 10.30.51.30;
+ filename "pxelinux.0";
+ }
+}
diff --git a/resources/tools/testbed-setup/pxe/ks.cfg b/resources/tools/testbed-setup/pxe/ks.cfg
new file mode 100644
index 0000000000..a027b950ab
--- /dev/null
+++ b/resources/tools/testbed-setup/pxe/ks.cfg
@@ -0,0 +1,82 @@
+#
+#Generic Kickstart template for Ubuntu
+#Platform: x86 and x86-64
+#
+
+#System language
+lang en_US
+
+#Language modules to install
+langsupport en_US
+
+#System keyboard
+keyboard us
+
+#System mouse
+mouse
+
+#System timezone
+timezone America/Los_Angeles
+
+#Root password
+rootpw --disabled
+
+#Initial user (user with sudo capabilities)
+user testuser --fullname "Test User" --password Cisco1234
+
+#Reboot after installation
+reboot
+
+#Use text mode install
+text
+
+#Install OS instead of upgrade
+install
+
+#Installation media
+#cdrom
+#nfs --server=server.com --dir=/path/to/ubuntu/
+url --url http://10.30.51.28/download/ubuntu
+
+#System bootloader configuration
+bootloader --location=mbr
+
+#Clear the Master Boot Record
+zerombr yes
+
+#Partition clearing information
+clearpart --all --initlabel
+
+#Basic disk partition
+part /boot --fstype ext4 --size 256 --asprimary
+part / --fstype ext4 --size 1 --grow --asprimary
+part swap --size 1024
+
+#Advanced partition
+#part /boot --fstype=ext4 --size=500 --asprimary
+#part pv.aQcByA-UM0N-siuB-Y96L-rmd3-n6vz-NMo8Vr --grow --size=1
+#volgroup vg_mygroup --pesize=4096 pv.aQcByA-UM0N-siuB-Y96L-rmd3-n6vz-NMo8Vr
+#logvol / --fstype=ext4 --name=lv_root --vgname=vg_mygroup --grow --size=10240 --maxsize=20480
+#logvol swap --name=lv_swap --vgname=vg_mygroup --grow --size=1024 --maxsize=8192
+
+#System authorization infomation
+auth --useshadow --enablemd5
+
+#Network information
+network --bootproto=dhcp
+
+#Firewall configuration
+firewall --disabled --ssh
+
+#Do not configure the X Window System
+skipx
+
+###
+
+preseed live-installer/net-image string http://10.30.51.28/download/ubuntu/install/filesystem.squashfs
+preseed user-setup/allow-password-weak boolean true
+
+
+%packages
+openssh-server
+python2.7
diff --git a/resources/tools/testbed-setup/pxe/syslinux.cfg b/resources/tools/testbed-setup/pxe/syslinux.cfg
new file mode 100644
index 0000000000..4038c1e9d2
--- /dev/null
+++ b/resources/tools/testbed-setup/pxe/syslinux.cfg
@@ -0,0 +1,6 @@
+# D-I config version 2.0
+serial 0 115200
+include ubuntu-installer/amd64/boot-screens/menu.cfg
+default ubuntu-installer/amd64/boot-screens/vesamenu.c32
+prompt 0
+timeout 10