Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD DOMU Xen 4.2 xl lvm disk



On 07/12/2012 11:32, Roger Pau Monné wrote:
On 07/12/12 12:19, Mike wrote:
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!
When you are in this state (DomU running, no install screen), could you
switch to the Dom0 and post the output of xenstore-ls -fp?

Thanks

Sure, I've attached it, since its a bit long :)


# xenstore-ls  -fp

/tool = ""   (n0)
/tool/xenstored = ""   (n0)
/vm = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000 = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000/on_xend_stop = "ignore"   (n0)
/vm/00000000-0000-0000-0000-000000000000/pool_name = "Pool-0"   (n0)
/vm/00000000-0000-0000-0000-000000000000/shadow_memory = "0"   (n0)
/vm/00000000-0000-0000-0000-000000000000/uuid = 
"00000000-0000-0000-0000-000000000000"   (r0)
/vm/00000000-0000-0000-0000-000000000000/on_reboot = "restart"   (n0)
/vm/00000000-0000-0000-0000-000000000000/image = "(linux (kernel '') 
(superpages 0) (nomigrate 0) (tsc_mode 0))"   (n0)
/vm/00000000-0000-0000-0000-000000000000/image/ostype = "linux"   (n0)
/vm/00000000-0000-0000-0000-000000000000/image/kernel = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000/image/cmdline = ""   (r0)
/vm/00000000-0000-0000-0000-000000000000/image/ramdisk = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000/on_poweroff = "destroy"   (n0)
/vm/00000000-0000-0000-0000-000000000000/bootloader_args = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000/on_xend_start = "ignore"   (n0)
/vm/00000000-0000-0000-0000-000000000000/on_crash = "restart"   (n0)
/vm/00000000-0000-0000-0000-000000000000/xend = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000/xend/restart_count = "0"   (n0)
/vm/00000000-0000-0000-0000-000000000000/vcpus = "1"   (n0)
/vm/00000000-0000-0000-0000-000000000000/vcpu_avail = "1"   (n0)
/vm/00000000-0000-0000-0000-000000000000/bootloader = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000/name = "Domain-0"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1 = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/on_xend_stop = "ignore"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/pool_name = "Pool-0"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/shadow_memory = "0"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/uuid = 
"00000000-0000-0000-0000-000000000000"   (r0)
/vm/00000000-0000-0000-0000-000000000000-1/on_reboot = "restart"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/image = "(linux (kernel '') 
(superpages 0) (nomigrate 0) (tsc_mode 0))"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/image/ostype = "linux"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/image/kernel = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/image/cmdline = ""   (r0)
/vm/00000000-0000-0000-0000-000000000000-1/image/ramdisk = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/on_poweroff = "destroy"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/bootloader_args = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/on_xend_start = "ignore"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/on_crash = "restart"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/xend = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/xend/restart_count = "0"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/vcpus = "1"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/vcpu_avail = "1"   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/bootloader = ""   (n0)
/vm/00000000-0000-0000-0000-000000000000-1/name = "Domain-0"   (n0)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723 = ""   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/uuid = 
"0aab00be-6a40-e211-9a9d-485b39d20723"   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/name = "netBSD6"   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/image = ""   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/image/ostype = "linux"   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/image/kernel = 
"/home/miguelc/xen-data/kernels/netbsd-INSTALL_XEN3_DOMU.gz"   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/image/cmdline = ""   (n0,r1)
/vm/0aab00be-6a40-e211-9a9d-485b39d20723/start_time = "1354883797.38"   (n0,r1)
/libxl = ""   (n0)
/libxl/1 = ""   (n0)
/libxl/1/dm-version = "qemu_xen"   (n0)
/local = ""   (n0)
/local/domain = ""   (n0)
/local/domain/1 = ""   (n0,r1)
/local/domain/1/vm = "/vm/0aab00be-6a40-e211-9a9d-485b39d20723"   (n0,r1)
/local/domain/1/name = "netBSD6"   (n0,r1)
/local/domain/1/cpu = ""   (n0,r1)
/local/domain/1/cpu/0 = ""   (n0,r1)
/local/domain/1/cpu/0/availability = "online"   (n0,r1)
/local/domain/1/cpu/1 = ""   (n0,r1)
/local/domain/1/cpu/1/availability = "online"   (n0,r1)
/local/domain/1/memory = ""   (n0,r1)
/local/domain/1/memory/static-max = "1048576"   (n0,r1)
/local/domain/1/memory/target = "1048577"   (n0,r1)
/local/domain/1/memory/videoram = "-1"   (n0,r1)
/local/domain/1/device = ""   (n0,r1)
/local/domain/1/device/suspend = ""   (n0,r1)
/local/domain/1/device/suspend/event-channel = ""   (n1)
/local/domain/1/device/vbd = ""   (n0,r1)
/local/domain/1/device/vbd/51712 = ""   (n1,r0)
/local/domain/1/device/vbd/51712/backend = 
"/local/domain/0/backend/vbd/1/51712"   (n1,r0)
/local/domain/1/device/vbd/51712/backend-id = "0"   (n1,r0)
/local/domain/1/device/vbd/51712/state = "3"   (n1,r0)
/local/domain/1/device/vbd/51712/virtual-device = "51712"   (n1,r0)
/local/domain/1/device/vbd/51712/device-type = "disk"   (n1,r0)
/local/domain/1/device/vbd/51712/ring-ref = "510"   (n1,r0)
/local/domain/1/device/vbd/51712/event-channel = "9"   (n1,r0)
/local/domain/1/device/vbd/51712/protocol = "x86_64-abi"   (n1,r0)
/local/domain/1/device/vbd/5632 = ""   (n1,r0)
/local/domain/1/device/vbd/5632/backend = "/local/domain/0/backend/vbd/1/5632"  
 (n1,r0)
/local/domain/1/device/vbd/5632/backend-id = "0"   (n1,r0)
/local/domain/1/device/vbd/5632/state = "4"   (n1,r0)
/local/domain/1/device/vbd/5632/virtual-device = "5632"   (n1,r0)
/local/domain/1/device/vbd/5632/device-type = "cdrom"   (n1,r0)
/local/domain/1/device/vbd/5632/ring-ref = "511"   (n1,r0)
/local/domain/1/device/vbd/5632/event-channel = "8"   (n1,r0)
/local/domain/1/device/vbd/5632/protocol = "x86_64-abi"   (n1,r0)
/local/domain/1/device/vif = ""   (n0,r1)
/local/domain/1/device/vif/0 = ""   (n1,r0)
/local/domain/1/device/vif/0/backend = "/local/domain/0/backend/vif/1/0"   
(n1,r0)
/local/domain/1/device/vif/0/backend-id = "0"   (n1,r0)
/local/domain/1/device/vif/0/state = "4"   (n1,r0)
/local/domain/1/device/vif/0/handle = "0"   (n1,r0)
/local/domain/1/device/vif/0/mac = "00:18:5e:5f:db:ee"   (n1,r0)
/local/domain/1/device/vif/0/vifname = "xennet0"   (n1,r0)
/local/domain/1/device/vif/0/tx-ring-ref = "509"   (n1,r0)
/local/domain/1/device/vif/0/rx-ring-ref = "508"   (n1,r0)
/local/domain/1/device/vif/0/request-rx-copy = "1"   (n1,r0)
/local/domain/1/device/vif/0/feature-rx-notify = "1"   (n1,r0)
/local/domain/1/device/vif/0/event-channel = "10"   (n1,r0)
/local/domain/1/control = ""   (n0,r1)
/local/domain/1/control/platform-feature-multiprocessor-suspend = "1"   (n0,r1)
/local/domain/1/control/platform-feature-xs_reset_watches = "1"   (n0,r1)
/local/domain/1/data = ""   (n1)
/local/domain/1/domid = "1"   (n0,r1)
/local/domain/1/store = ""   (n0,r1)
/local/domain/1/store/port = "1"   (n0,r1)
/local/domain/1/store/ring-ref = "1066612"   (n0,r1)
/local/domain/1/console = ""   (n1,r0)
/local/domain/1/console/backend = "/local/domain/0/backend/console/1/0"   
(n1,r0)
/local/domain/1/console/backend-id = "0"   (n1,r0)
/local/domain/1/console/limit = "1048576"   (n1,r0)
/local/domain/1/console/type = "xenconsoled"   (n1,r0)
/local/domain/1/console/output = "pty"   (n1,r0)
/local/domain/1/console/port = "2"   (n1,r0)
/local/domain/1/console/ring-ref = "1066611"   (n1,r0)
/local/domain/1/console/tty = "/dev/ttyp2"   (n1,r0)
/local/domain/0 = ""   (n0)
/local/domain/0/libxl = ""   (n0)
/local/domain/0/libxl/disable_udev = "1"   (n0)
/local/domain/0/backend = ""   (n0)
/local/domain/0/backend/vbd = ""   (n0)
/local/domain/0/backend/vbd/1 = ""   (n0)
/local/domain/0/backend/vbd/1/51712 = ""   (n0,r1)
/local/domain/0/backend/vbd/1/51712/frontend = 
"/local/domain/1/device/vbd/51712"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/params = "/dev/mapper/vgXen-lvNBSD"   
(n0,r1)
/local/domain/0/backend/vbd/1/51712/script = "/usr/pkg/etc/xen/scripts/block"   
(n0,r1)
/local/domain/0/backend/vbd/1/51712/physical-device = "43266"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/online = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/removable = "0"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/bootable = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/state = "2"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/dev = "xvda"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/type = "phy"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/mode = "w"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/device-type = "disk"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/hotplug-status = "connected"   (n0,r1)
/local/domain/0/backend/vbd/1/5632 = ""   (n0,r1)
/local/domain/0/backend/vbd/1/5632/frontend = "/local/domain/1/device/vbd/5632" 
  (n0,r1)
/local/domain/0/backend/vbd/1/5632/params = 
"/home/miguelc/xen-data/iso/NetBSD-6.0-amd64.iso"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/script = "/usr/pkg/etc/xen/scripts/block"   
(n0,r1)
/local/domain/0/backend/vbd/1/5632/physical-device = "3587"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/online = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/removable = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/bootable = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/state = "4"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/dev = "hdc"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/type = "phy"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/mode = "r"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/device-type = "cdrom"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/vnd = "/dev/vnd0d"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/hotplug-status = "connected"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/sectors = "675884"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/info = "4"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/sector-size = "512"   (n0,r1)
/local/domain/0/backend/vbd/1/5632/feature-flush-cache = "1"   (n0,r1)
/local/domain/0/backend/console = ""   (n0)
/local/domain/0/backend/console/1 = ""   (n0)
/local/domain/0/backend/console/1/0 = ""   (n0,r1)
/local/domain/0/backend/console/1/0/frontend = "/local/domain/1/console"   
(n0,r1)
/local/domain/0/backend/console/1/0/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/console/1/0/online = "1"   (n0,r1)
/local/domain/0/backend/console/1/0/state = "1"   (n0,r1)
/local/domain/0/backend/console/1/0/domain = "netBSD6"   (n0,r1)
/local/domain/0/backend/console/1/0/protocol = "vt100"   (n0,r1)
/local/domain/0/backend/vif = ""   (n0)
/local/domain/0/backend/vif/1 = ""   (n0)
/local/domain/0/backend/vif/1/0 = ""   (n0,r1)
/local/domain/0/backend/vif/1/0/frontend = "/local/domain/1/device/vif/0"   
(n0,r1)
/local/domain/0/backend/vif/1/0/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/online = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/state = "4"   (n0,r1)
/local/domain/0/backend/vif/1/0/script = "/usr/pkg/etc/xen/scripts/vif-bridge"  
 (n0,r1)
/local/domain/0/backend/vif/1/0/mac = "00:18:5e:5f:db:ee"   (n0,r1)
/local/domain/0/backend/vif/1/0/bridge = "bridge0"   (n0,r1)
/local/domain/0/backend/vif/1/0/handle = "0"   (n0,r1)
/local/domain/0/backend/vif/1/0/type = "vif"   (n0,r1)
/local/domain/0/backend/vif/1/0/vifname = "xvif1i0"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-rx-copy = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-rx-flip = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/hotplug-status = "connected"   (n0,r1)


Home | Main Index | Thread Index | Old Index