On 07/12/2012 10:56, Roger Pau Monné wrote:
On 07/12/12 11:48, Mike wrote:
I'm testing Xen 4.2, I've compiled successfully, following the
guide at
http://wiki.xen.org/wiki/Compiling_Xen_From_Source_on_NetBSD
Since xend is now deprecated I was trying to use XL, but its seems
its
still not working for LVM devices?
My config file:
=========
cat nbsd6.cfg
name = "netBSD6"
#kernel = "/home/miguelc/xen-data/kernels/netbsd-XEN3_DOMU.gz"
kernel = "/home/miguelc/xen-data/kernels/netbsd-INSTALL_XEN3_DOMU.gz"
memory = 1024
disk = [ '/dev/mapper/vgXen-lvNBSD,,hda,rw',
I'm not sure if this syntax will work correctly, I think you are at
least missing the "phy:/" prefix, this line should look like:
'phy:/dev/mapper/vgXen-lvNBSD,xvda,w'
'/home/miguelc/xen-data/iso/NetBSD-6.0-amd64.iso,,hdc,cdrom'
And this:
'file:/home/miguelc/xen-data/iso/NetBSD-6.0-amd64.iso,xvdc:cdrom,r'
There are many ways in which to specific block devices, take a look
at:
http://xenbits.xen.org/docs/unstable/misc/xl-disk-configuration.txt
"These might be specified in the domain config file like this:
disk = [ '/dev/vg/guest-volume,,hda',
'/root/image.iso,,hdc,cdrom' ]"
The syntax seams correct... I did use the instructions in that same
link.
My previous configuration (for xend) had the "phy:" and "file:" syntax
and I got the same results with that!
In any case changing the config:
....
disk = [ 'phy:/dev/mapper/vgXen-lvNBSD,hda,w',
'file:/home/miguelc/xen-data/iso/NetBSD-6.0-amd64.iso,hdc,cdrom'
]
vif = [ 'mac=00:18:5e:5f:db:ee, bridge=bridge0' ]
vcpus = 2
......
I get the exact same result:
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
xenbus: can't get state for device/suspend/event-channel (2)
Also removing the lvm disk (with or without the "phy" syntax) boots the
Guest machine into the install kernel has expected!