]> scripts.mit.edu Git - xen.git/blobdiff - scripts-server
Add selinux=0 to install command line
[xen.git] / scripts-server
index a631ca556e8daefbc692b6375754130a927a1ac9..138994feda284a84e1344a1e29f8a53ed153c69a 100644 (file)
@@ -1,23 +1,46 @@
 # Xen domain configuration file for scripts.mit.edu virtualized web servers
 #
 # usage, e.g.:
-#   xm create scripts.cfg machine_name=bees-knees mac5=10
+#   xm create scripts-server machine_name=bees-knees
+#   xm create scripts-server machine_name=cats-whiskers
 # name is the name of the server (as used in the LV volumes)
 # mac5 is the fifth octet of the MAC address: ac:de:48:00:xx:01
-# set install=1 if you want to run a Fedora install
+# set install=fcX if you want to run a Fedora install, where X
+# is the version of Fedora to install
+
+vm_host = 0
+vm_mem  = 1
+vm_mac5 = 2
+machines = { 'bees-knees'   : ['not-forward',  4096, 10],
+             'cats-whiskers': ['not-forward',  4096, 20],
+             'not-backward' : ['not-forward',  4096, 30],
+             'busy-beaver'  : ['conan-obrien', 3072, 40],
+             'pancake-bunny': ['conan-obrien', 3072, 50],
+           }
+vm = machines[machine_name]
+
+mac5 = vm[vm_mac5]
 
 if 'install' in locals():
-  # Get these files from a Fedora mirror, in
-  # fedora/linux/releases/9/Fedora/x86_64/os/images/xen/
-  kernel = "/root/fc9-install/vmlinuz"
-  ramdisk = "/root/fc9-install/initrd.img"
+  # Get these files from a Fedora mirror, from a path like
+  # pub/fedora/linux/releases/test/11-Preview/Fedora/x86_64/os/isolinux/
+  kernel = "/root/%s-install/vmlinuz" % install
+  ramdisk = "/root/%s-install/initrd.img" % install
+  extra = "selinux=0"
+elif 'type' in locals() and type == 'hvm':
+  kernel = "/usr/lib/xen/boot/hvmloader"
+  builder = "hvm"
+  vnc = 1
+  vncpassword = "foobar"
 else:
   # Fedora installs GRUB.
   bootloader = "/usr/bin/pygrub"
 
-memory = 1024
+vcpus = 2
+if 'memory' not in locals(): memory = vm[vm_mem]
+maxmem = 16384
 name = machine_name
-vg = "not-forward"
+vg = vm[vm_host]
 disk = [i % (vg, name) for i in ['phy:/dev/%s/%s-root,hda,w',
                                  'phy:/dev/%s/%s-swap,hdb,w']]
 vif = [i % mac5 for i in ['bridge=eth0, mac=ac:de:48:00:%s:01',