1 # Xen domain configuration file for scripts.mit.edu virtualized web servers
4 # xm create scripts-server machine_name=bees-knees
5 # xm create scripts-server machine_name=cats-whiskers
6 # name is the name of the server (as used in the LV volumes)
7 # mac5 is the fifth octet of the MAC address: ac:de:48:00:xx:01
8 # set install=fcX if you want to run a Fedora install, where X
9 # is the version of Fedora to install
14 machines = { 'bees-knees' : ['not-forward', 4096, 10],
15 'cats-whiskers': ['not-forward', 4096, 20],
16 'not-backward' : ['not-forward', 4096, 30],
17 'busy-beaver' : ['conan-obrien', 3072, 40],
18 'pancake-bunny': ['conan-obrien', 3072, 50],
20 vm = machines[machine_name]
24 if 'install' in locals():
25 # Get these files from a Fedora mirror, from a path like
26 # pub/fedora/linux/releases/test/11-Preview/Fedora/x86_64/os/isolinux/
27 kernel = "/root/%s-install/vmlinuz" % install
28 ramdisk = "/root/%s-install/initrd.img" % install
30 elif 'type' in locals() and type == 'hvm':
31 kernel = "/usr/lib/xen/boot/hvmloader"
34 vncpassword = "foobar"
36 # Fedora installs GRUB.
37 bootloader = "/usr/bin/pygrub"
40 if 'memory' not in locals(): memory = vm[vm_mem]
44 disk = [i % (vg, name) for i in ['phy:/dev/%s/%s-root,hda,w',
45 'phy:/dev/%s/%s-swap,hdb,w']]
46 vif = [i % mac5 for i in ['bridge=eth0, mac=ac:de:48:00:%s:01',
47 'bridge=eth1, mac=ac:de:48:00:%s:02']]