#---------------------------------------------------------------------------- # Standard variables # Initial memory allocation (in megabytes) for the new domain. memory = 1024 # A name for your domain. All domains must have different names. name = "CLIENTNAME" # 128-bit UUID for the domain. The default behavior is to generate a new UUID # on each call to 'xm create'. #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9" # List of which CPUS this domain is allowed to use, default Xen picks #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 #cpus = "0-3,5,^1" # run on cpus 0,2,3,5 cpus = "1" # Number of Virtual CPUS to use, default is 1 #vcpus = 1 #---------------------------------------------------------------------------- # Define network interfaces. # By default, no network interfaces are configured. You may have one created # with sensible defaults using an empty vif clause: # # vif = [''] # # or optionally override backend, bridge, ip, mac, script, type, or vifname: # # vif = ['mac=00:16:3e:00:00:11, bridge=xenbr0'] # # or more than one interface may be configured: # # vif = ['', 'bridge=xenbr1'] #RM: we have to hardwire the MAC address (keep it the same after reboot) # because it seems that otherwise the 'virtual' interfaces (eth0:1 and up) # are unreachable for some time because the XS4ALL router on the vlan does # not update its ARP cache. (The 'primary' eth0 does not suffer from this!) # Also, according to readme, SUSE looks at the mac address for something # so it should not be static, to not confuse the system # (http://et.redhat.com/~kraxel/xen/suse-guest.html) # The interface name should be equal to the server name, in order for vnstat # to xen-shell to work with vnstat vif = ['vifname=CLIENTNAME, mac=00:16:3e:0e:0e:0e'] #---------------------------------------------------------------------------- # Define frame buffer device. # # By default, no frame buffer device is configured. # # To create one using the SDL backend and sensible defaults: # # vfb = [ 'type=sdl' ] # # This uses environment variables XAUTHORITY and DISPLAY. You # can override that: # # vfb = [ 'type=sdl,xauthority=/home/bozo/.Xauthority,display=:1' ] # # To create one using the VNC backend and sensible defaults: # #vfb = [ 'type=vnc' ] # # The backend listens on 127.0.0.1 port 5900+N by default, where N is # the domain ID. You can override both address and N: # # vfb = [ 'type=vnc,vnclisten=127.0.0.1,vncdisplay=1' ] # # Or you can bind the first unused port above 5900: # # vfb = [ 'type=vnc,vnclisten=0.0.0.0,vnunused=1' ] # # You can override the password: # # vfb = [ 'type=vnc,vncpasswd=MYPASSWD' ] # # Empty password disables authentication. Defaults to the vncpasswd # configured in xend-config.sxp. #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. # # NB: Only xvd devices are supported by the kernel in Debian Lenny and later. #disk = ['file:/data2/domU/CLIENT.img,xvda,w'] #for installation: loop-mount DVD image # Note when using pygrub as bootloader: # make sure that the partition/lvm/container that contains the kernel and initrd comes first. disk = [ 'file:/data2/xen/CLIENT.img,xvda,w', 'file:/data1/xen/CLIENT-disk2.img,xvdb,w', ] #============================================================================ # Trying to roll our own config for non-Debian installs... # kernel & ramdisk arguments are usually paths to files on the Dom0's filesystem #kernel = '/boot/vmlinuz-2.6.26-2-xen-amd64' #ramdisk = '/boot/initrd.img-2.6.26-2-xen-amd64' # bootloader = '/usr/lib/xen-3.2-1/bin/pygrub' # If you use bootloader=pygrub, that program, in order: # - looks at any 'entry' argument inside the 'bootargs' argument passed to xen and if so, # extracts those files from the first filesystem specified in the 'disk' variable above # and makes xen use those. # (NB: I'm not sure about above syntax anymore, nor of whether it only makes sense # to specify those on the commandline as extra args and not in this file.) #bootargs = '--entry=hda:/boot/x86_64/vmlinuz-xen,/boot/x86_64/initrd-xen' # - looks at 'kernel' and 'ramdisk' settings in this file, and if so # extracts them & makes xen use those. # The one that works: kernel = '/boot/vmlinuz-2.6.2X.XX-X-xen' ramdisk = '/boot/initrd-2.6.2X.XX-X-xen' # #... # - boots from the MBR on the first filesystem specified in the 'disk' variable # extra boot arguments to be passed to the kernel #extra = 'textmode=1 xencons=xvc0' ## (This was only for installer?? I'm not sure. (It did not work in the openSUSE installer ## anyway.) #root = "/dev/xvda" #consoles hvc0 and xvc0 don't exist #console = tty0