NetBSD as a Xen domU
From Sfvlug
(Difference between revisions)
| Line 27: | Line 27: | ||
</pre> | </pre> | ||
| - | + | if ... The Xen <code>xm</code> command creates a special Python object, which you can use to test the environment. | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
Revision as of 06:27, 1 August 2009
I used CentOS 5.3 x86_64 (Linux) as the dom0, but that should be irrelevant.
/etc/xen/auto/netbsd
# -*- python -*-
if xm_vars.env.get('install'):
kernel = "/var/lib/xen/images/netbsd-INSTALL_XEN3_DOMU.amd64"
on_reboot = "destroy"
on_crash = "destroy"
else:
kernel = "/var/lib/xen/images/netbsd-XEN3_DOMU.amd64"
on_reboot = "restart"
on_crash = "restart"
name = "netbsd"
uuid = "a351589d-9858-42de-8749-f6048aa08f72"
maxmem = 256
memory = 256
vcpus = 1
on_poweroff = "destroy"
root = "xbd0"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "phy:/dev/VolGroup00/netbsd,0x1,w" ]
vif = [ "mac=00:16:3E:A8:01:03,bridge=xenbr0" ]
if ... The Xen xm command creates a special Python object, which you can use to test the environment.
