# mac5 is the fifth octet of the MAC address: ac:de:48:00:xx:01
# set install=fcX if you want to run a Fedora install, where X
# is the version of Fedora to install
-#
-# Notice to potential Python hackers: this is /not/ a module! So things like
-# imports will not work globally.
vm_host = 0
vm_cpus = 1
if 'install' in locals():
kernel = "/root/%s-install/vmlinuz" % install
- extra = "selinux=0 ks=file:/root/scripts.ks"
+ ramdisk = "/root/%s-install/initrd.img" % install
+
+ # some calculations
+ hostname = machine_name + ".mit.edu"
+ ip = socket.gethostbyname(hostname)
+
+ extra = "selinux=0 ks=http://whole-enchilada.mit.edu/old-faithful.txt ip="+ip+" netmask=255.255.0.0 gateway=18.181.0.1 dns=18.70.0.160,18.71.0.151,18.72.0.3 syslog=18.181.0.51:514 debug=1 loglevel=debug telnet"
maybe_download_isolinux(install)
- ramdisk = make_ramdisk("/root/%s-install/initrd.img" % install, machine_name, install)
+ #ramdisk = make_ramdisk("/root/%s-install/initrd.img" % install, machine_name, install)
+
elif 'type' in locals() and type == 'hvm':
kernel = "/usr/lib/xen/boot/hvmloader"
builder = "hvm"
vif = [i % mac5 for i in ['bridge=eth0, mac=ac:de:48:00:%s:01',
'bridge=eth1, mac=ac:de:48:00:%s:02']]
+if 'install' in locals():
+ del vif[1]
+
if 'builder' not in locals() or builder != "hvm":
# https://bugzilla.redhat.com/show_bug.cgi?id=466681
# pygrub uses cached and eventually outdated grub.conf, kernel and initrd