鲍政
2010-Jul-22 07:54 UTC
[Xen-users] HVM domain can not boot up with Qcow incremental image
Dear,Beg for your help. I am really puzzled with this problem.HVM domain can not
boot up with Qcow incremental image(using command: qcow-create size
incremental_file original_Qcow_img_file), but it can boot up with the original
Qcow disk image file. When using Qcow incremental image, the guest qemu window
would disappear before loading grub, and `xm list` can not find this guest
domain.The VM screen shows some information:……HVMAssist BIOS, 1 cpu,
$Revision:1.138 $ $Date:2005/05/07 15:55:26 $ ata0 master: QEMU HARDDISK ATA-7
Hard-Disk(40000 MBytes) ata0 slave: Unknown device
Press F10 to select boot device. Booting from
Hard Disk... Boot from Hard Disk
failed: not a bootable disk FATAL: No bootable device.
then disappears. The OS is CentOS 5.4,with xen 3.3.1. This is the config
file:import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 1024
name = "winXP"
vcpus=1
vif = [ 'type=ioemu, bridge=xenbr0' ]#inc_winxp is a Qcow incremental
image to a origin Qcow image file(windows xp installed), which can be booted up
with out error.
disk = [
'tap:qcow:/home/baozheng/inc_winxp,ioemu:hda,w','file:/home/baozheng/winxp_professional_sp3.iso,hdc:cdrom,r'
]device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot='c'
sdl=1
vnc=0
stdvga=0
serial='pty'
usb=1
usbdevice='mouse'
usbdevice='tablet' The following is xend log:[2010-07-22 23:31:38 4609]
DEBUG (XendDomainInfo:89) XendDomainInfo.create([\047vm\047, [\047name\047,
\047winXP\047], [\047memory\047, 1024], [\047vcpus\047, 2],
[\047on_xend_start\047, \047ignore\047], [\047on_xend_stop\047, \047ignore\047],
[\047image\047, [\047hvm\047, [\047kernel\047,
\047/usr/lib/xen/boot/hvmloader\047], [\047device_model\047,
\047/usr/lib64/xen/bin/qemu-dm\047], [\047pae\047, 1], [\047vcpus\047, 2],
[\047boot\047, \047c\047], [\047fda\047, \047\047], [\047fdb\047, \047\047],
[\047timer_mode\047, 0], [\047localtime\047, 0], [\047serial\047, \047pty\047],
[\047stdvga\047, 0], [\047isa\047, 0], [\047nographic\047, 0], [\047soundhw\047,
\047\047], [\047vnc\047, 1], [\047vncunused\047, 1], [\047vnclisten\047,
\0470.0.0.0\047], [\047sdl\047, 0], [\047display\047, \047localhost:13.0\047],
[\047xauthority\047, \047/root/.Xauthority\047], [\047rtc_timeoffset\047,
\0470\047], [\047monitor\047, 0], [\047acpi\047, 1], [\047apic\047, 1],
[\047usb\047, 1], [\047usbdevice\047, \047tablet\047], [\047keymap\047,
\047\047], [\047pci\047, []], [\047hpet\047, 0], [\047guest_os_type\047,
\047default\047], [\047hap\047, 1], [\047cpuid\047, []], [\047cpuid_check\047,
[]], [\047vncpasswd\047, \047XXXXXXXX\047]]], [\047device\047, [\047tap\047,
[\047uname\047, \047tap:qcow:/home/baozheng/inc_winxp\047], [\047dev\047,
\047ioemu:hda\047], [\047mode\047, \047w\047]]], [\047device\047, [\047vbd\047,
[\047uname\047, \047file:/home/baozheng/winxp_professional_sp3.iso\047],
[\047dev\047, \047hdc:cdrom\047], [\047mode\047, \047r\047]]], [\047device\047,
[\047vif\047, [\047bridge\047, \047xenbr0\047], [\047type\047,
\047ioemu\047]]]])
[2010-07-22 23:31:38 4609] DEBUG (XendDomainInfo:2036)
XendDomainInfo.constructDomain
[2010-07-22 23:31:38 4609] DEBUG (balloon:132) Balloon: 1072492 KiB free; need
2048; done.
[2010-07-22 23:31:38 4609] DEBUG (XendDomain:449) Adding Domain: 16
[2010-07-22 23:31:38 4609] DEBUG (XendDomainInfo:2142)
XendDomainInfo.initDomain: 16 256
[2010-07-22 23:31:38 4609] DEBUG (image:300) Stored a VNC password for vfb
access
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: boot, val: c
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: fda, val: None
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: fdb, val: None
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: soundhw, val: None
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: localtime, val: 0
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: serial, val: pty
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: std-vga, val: 0
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: isa, val: 0
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: acpi, val: 1
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: usb, val: 1
[2010-07-22 23:31:38 4609] DEBUG (image:743) args: usbdevice, val: tablet
[2010-07-22 23:31:38 4609] DEBUG (XendDomainInfo:2223)
_initDomain:shadow_memory=0x0, memory_static_max=0x40000000,
memory_static_min=0x0.
[2010-07-22 23:31:38 4609] DEBUG (balloon:132) Balloon: 1071196 KiB free; need
1071104; done.
[2010-07-22 23:31:38 4609] INFO (image:166) buildDomain os=hvm dom=16 vcpus=2
[2010-07-22 23:31:38 4609] DEBUG (image:795) domid = 16
[2010-07-22 23:31:38 4609] DEBUG (image:796) image =
/usr/lib/xen/boot/hvmloader
[2010-07-22 23:31:38 4609] DEBUG (image:797) store_evtchn = 3
[2010-07-22 23:31:38 4609] DEBUG (image:798) memsize = 1024
[2010-07-22 23:31:38 4609] DEBUG (image:799) vcpus = 2
[2010-07-22 23:31:38 4609] DEBUG (image:800) acpi = 1
[2010-07-22 23:31:38 4609] DEBUG (image:801) apic = 1
[2010-07-22 23:31:38 4609] INFO (XendDomainInfo:1900) createDevice: vfb :
{\047vncunused\047: 1, \047other_config\047: {\047vncunused\047: 1,
\047vncpasswd\047: \047XXXXXXXX\047, \047vnclisten\047: \0470.0.0.0\047,
\047type\047: \047vnc\047}, \047uuid\047:
\047630a1ece-7bc1-91d8-3ba8-c41420c80b36\047, \047vnclisten\047:
\0470.0.0.0\047, \047vncpasswd\047: \047XXXXXXXX\047, \047type\047: \047vnc\047}
[2010-07-22 23:31:38 4609] DEBUG (DevController:122) DevController: writing
{\047state\047: \0471\047, \047backend-id\047: \0470\047, \047backend\047:
\047/local/domain/0/backend/vfb/16/0\047} to /local/domain/16/device/vfb/0.
[2010-07-22 23:31:38 4609] DEBUG (DevController:124) DevController: writing
{\047vncunused\047: \0471\047, \047domain\047: \047winXP\047, \047frontend\047:
\047/local/domain/16/device/vfb/0\047, \047uuid\047:
\047630a1ece-7bc1-91d8-3ba8-c41420c80b36\047, \047vnclisten\047:
\0470.0.0.0\047, \047vncpasswd\047: \047XXXXXXXX\047, \047state\047: \0471\047,
\047online\047: \0471\047, \047frontend-id\047: \04716\047, \047type\047:
\047vnc\047} to /local/domain/0/backend/vfb/16/0.
[2010-07-22 23:31:38 4609] INFO (XendDomainInfo:1900) createDevice: tap :
{\047bootable\047: 1, \047uname\047: \047tap:qcow:/home/baozheng/inc_winxp\047,
\047mode\047: \047w\047, \047dev\047: \047ioemu:hda\047, \047uuid\047:
\0476d9f6c1f-4291-0c6e-7dfa-9405560ede97\047}
[2010-07-22 23:31:38 4609] DEBUG (DevController:122) DevController: writing
{\047backend-id\047: \0470\047, \047virtual-device\047: \047768\047,
\047device-type\047: \047disk\047, \047state\047: \0471\047, \047backend\047:
\047/local/domain/0/backend/tap/16/768\047} to /local/domain/16/device/vbd/768.
[2010-07-22 23:31:38 4609] DEBUG (DevController:124) DevController: writing
{\047domain\047: \047winXP\047, \047frontend\047:
\047/local/domain/16/device/vbd/768\047, \047uuid\047:
\0476d9f6c1f-4291-0c6e-7dfa-9405560ede97\047, \047dev\047: \047hda\047,
\047state\047: \0471\047, \047params\047: \047qcow:/home/baozheng/inc_winxp\047,
\047mode\047: \047w\047, \047online\047: \0471\047, \047frontend-id\047:
\04716\047, \047type\047: \047tap\047} to /local/domain/0/backend/tap/16/768.
[2010-07-22 23:31:38 4609] INFO (XendDomainInfo:1900) createDevice: vbd :
{\047uuid\047: \0475564d981-e0ac-c29b-9999-d60c01054788\047, \047bootable\047:
0, \047driver\047: \047paravirtualised\047, \047dev\047: \047hdc:cdrom\047,
\047uname\047: \047file:/home/baozheng/winxp_professional_sp3.iso\047,
\047mode\047: \047r\047}
[2010-07-22 23:31:38 4609] DEBUG (DevController:122) DevController: writing
{\047backend-id\047: \0470\047, \047virtual-device\047: \0475632\047,
\047device-type\047: \047cdrom\047, \047state\047: \0471\047, \047backend\047:
\047/local/domain/0/backend/vbd/16/5632\047} to
/local/domain/16/device/vbd/5632.
[2010-07-22 23:31:38 4609] DEBUG (DevController:124) DevController: writing
{\047domain\047: \047winXP\047, \047frontend\047:
\047/local/domain/16/device/vbd/5632\047, \047uuid\047:
\0475564d981-e0ac-c29b-9999-d60c01054788\047, \047dev\047: \047hdc\047,
\047state\047: \0471\047, \047params\047:
\047/home/baozheng/winxp_professional_sp3.iso\047, \047mode\047: \047r\047,
\047online\047: \0471\047, \047frontend-id\047: \04716\047, \047type\047:
\047file\047} to /local/domain/0/backend/vbd/16/5632.
[2010-07-22 23:31:38 4609] INFO (XendDomainInfo:1900) createDevice: vif :
{\047bridge\047: \047xenbr0\047, \047mac\047: \04700:16:3e:18:8f:b2\047,
\047type\047: \047ioemu\047, \047uuid\047:
\0477b552fdd-4eb0-4cfb-76ef-a2b187f9e15a\047}
[2010-07-22 23:31:38 4609] DEBUG (DevController:122) DevController: writing
{\047state\047: \0471\047, \047backend-id\047: \0470\047, \047backend\047:
\047/local/domain/0/backend/vif/16/0\047} to /local/domain/16/device/vif/0.
[2010-07-22 23:31:38 4609] DEBUG (DevController:124) DevController: writing
{\047bridge\047: \047xenbr0\047, \047domain\047: \047winXP\047, \047handle\047:
\0470\047, \047uuid\047: \0477b552fdd-4eb0-4cfb-76ef-a2b187f9e15a\047,
\047script\047: \047/etc/xen/scripts/vif-bridge\047, \047mac\047:
\04700:16:3e:18:8f:b2\047, \047frontend-id\047: \04716\047, \047state\047:
\0471\047, \047online\047: \0471\047, \047frontend\047:
\047/local/domain/16/device/vif/0\047, \047type\047: \047ioemu\047} to
/local/domain/0/backend/vif/16/0.
[2010-07-22 23:31:38 4609] INFO (image:375) spawning device models:
/usr/lib64/xen/bin/qemu-dm [\047/usr/lib64/xen/bin/qemu-dm\047, \047-d\047,
\04716\047, \047-domain-name\047, \047winXP\047, \047-vnc\047,
\0470.0.0.0:0,password\047, \047-vncunused\047, \047-vcpus\047, \0472\047,
\047-boot\047, \047c\047, \047-serial\047, \047pty\047, \047-acpi\047,
\047-usb\047, \047-usbdevice\047, \047tablet\047, \047-net\047,
\047nic,vlan=1,macaddr=00:16:3e:18:8f:b2,model=rtl8139\047, \047-net\047,
\047tap,vlan=1,ifname=tap16.0,bridge=xenbr0\047, \047-M\047, \047xenfv\047]
[2010-07-22 23:31:38 4609] INFO (image:422) device model pid: 17037
[2010-07-22 23:31:38 4609] DEBUG (XendDomainInfo:2731) Storing VM details:
{\047on_xend_stop\047: \047ignore\047, \047shadow_memory\047: \04710\047,
\047uuid\047: \047096b961c-ca8d-4b8a-cf83-06ddaeba5bfc\047, \047on_reboot\047:
\047restart\047, \047start_time\047: \0471279812698.25\047, \047on_poweroff\047:
\047destroy\047, \047bootloader_args\047: \047\047, \047on_xend_start\047:
\047ignore\047, \047on_crash\047: \047restart\047, \047xend/restart_count\047:
\0470\047, \047vcpus\047: \0472\047, \047vcpu_avail\047: \0473\047,
\047bootloader\047: \047\047, \047image\047: \047(hvm (kernel ) (hpet 0) (stdvga
0) (vnclisten 0.0.0.0) (loader /usr/lib/xen/boot/hvmloader) (serial pty)
(vncunused 1) (boot c) (rtc_timeoffset 0) (vncpasswd XXXXXX) (pci ()) (pae 1)
(hap 1) (acpi 1) (localtime 0) (timer_mode 0) (vnc 1) (nographic 0)
(guest_os_type default) (apic 1) (sdl 0) (monitor 0) (usbdevice tablet)
(device_model /usr/lib64/xen/bin/qemu-dm) (usb 1) (xauthority /root/.Xauthority)
(isa 0) (display localhost:13.0) (notes (SUSPEND_CANCEL 1)))\047, \047name\047:
\047winXP\047}
[2010-07-22 23:31:38 4609] INFO (image:511) waiting for sentinel_fifo
[2010-07-22 23:31:38 4609] DEBUG (XendDomainInfo:1359) Storing domain details:
{\047console/port\047: \0474\047, \047name\047: \047winXP\047,
\047console/limit\047: \0471048576\047, \047store/port\047: \0473\047,
\047vm\047: \047/vm/096b961c-ca8d-4b8a-cf83-06ddaeba5bfc\047, \047domid\047:
\04716\047, \047image/suspend-cancel\047: \0471\047, \047cpu/0/availability\047:
\047online\047, \047memory/target\047: \0471048576\047,
\047control/platform-feature-multiprocessor-suspend\047: \0471\047,
\047store/ring-ref\047: \047262141\047, \047cpu/1/availability\047:
\047online\047, \047console/type\047: \047ioemu\047}
[2010-07-22 23:31:38 4609] DEBUG (DevController:122) DevController: writing
{\047state\047: \0471\047, \047backend-id\047: \0470\047, \047backend\047:
\047/local/domain/0/backend/console/16/0\047} to
/local/domain/16/device/console/0.
[2010-07-22 23:31:38 4609] DEBUG (DevController:124) DevController: writing
{\047domain\047: \047winXP\047, \047frontend\047:
\047/local/domain/16/device/console/0\047, \047uuid\047:
\04768ceb2d1-ac2c-4a64-10b2-ac09ff70aa3c\047, \047frontend-id\047: \04716\047,
\047state\047: \0471\047, \047location\047: \0474\047, \047online\047:
\0471\047, \047protocol\047: \047vt100\047} to
/local/domain/0/backend/console/16/0.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices vif.
[2010-07-22 23:31:38 4609] DEBUG (XendDomainInfo:1443)
XendDomainInfo.handleShutdownWatch
[2010-07-22 23:31:38 4609] DEBUG (DevController:171) Waiting for 0.
[2010-07-22 23:31:38 4609] DEBUG (DevController:656) hotplugStatusCallback
/local/domain/0/backend/vif/16/0/hotplug-status.
[2010-07-22 23:31:38 4609] DEBUG (DevController:656) hotplugStatusCallback
/local/domain/0/backend/vif/16/0/hotplug-status.
[2010-07-22 23:31:38 4609] DEBUG (DevController:670) hotplugStatusCallback 1.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices vscsi.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices vbd.
[2010-07-22 23:31:38 4609] DEBUG (DevController:171) Waiting for 5632.
[2010-07-22 23:31:38 4609] DEBUG (DevController:656) hotplugStatusCallback
/local/domain/0/backend/vbd/16/5632/hotplug-status.
[2010-07-22 23:31:38 4609] DEBUG (DevController:670) hotplugStatusCallback 1.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices irq.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices vkbd.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices vfb.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices
console.
[2010-07-22 23:31:38 4609] DEBUG (DevController:171) Waiting for 0.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices pci.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices
ioports.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices tap.
[2010-07-22 23:31:38 4609] DEBUG (DevController:171) Waiting for 768.
[2010-07-22 23:31:38 4609] DEBUG (DevController:656) hotplugStatusCallback
/local/domain/0/backend/tap/16/768/hotplug-status.
[2010-07-22 23:31:38 4609] DEBUG (DevController:670) hotplugStatusCallback 1.
[2010-07-22 23:31:38 4609] DEBUG (DevController:166) Waiting for devices vtpm.
[2010-07-22 23:31:38 4609] INFO (XendDomain:1174) Domain winXP (16) unpaused.
[2010-07-22 23:31:39 4609] INFO (XendDomainInfo:1634) Domain has shutdown:
name=winXP id=16 reason=poweroff.
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:2402) XendDomainInfo.destroy:
domid=16
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1939) Destroying device model
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1946) Releasing devices
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1959) Removing vif/0
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:910)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2010-07-22 23:31:39 4609] WARNING (image:472) domain winXP: device model
failure: no longer running; see /var/log/xen/qemu-dm-winXP.log
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1959) Removing vbd/768
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:910)
XendDomainInfo.destroyDevice: deviceClass = None, device = vbd/768
[2010-07-22 23:31:39 4609] ERROR (XendDomainInfo:1966) Device release failed:
winXP; None; vbd/768
Traceback (most recent call last):
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1960, in
_releaseDevices
self.destroyDevice(true_devclass, dev, False);
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 924, in
destroyDevice
rc = self.getDeviceController(deviceClass).destroyDevice(devid, force)
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1981, in
getDeviceController
raise XendError("Unknown device type: %s" % name)
XendError: Unknown device type: None
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1959) Removing vbd/5632
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:910)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1959) Removing vfb/0
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:910)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:1959) Removing console/0
[2010-07-22 23:31:39 4609] DEBUG (XendDomainInfo:910)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
Wish someone can help me.
------------------
Best Regards,
Zheng Bao
-------------------------------------------------
Zheng Bao, M.S
Cluster and Grid Computing Lab
Services Computing Technology and System Lab
Department of Computer Science
Huazhong University of Science and Technology, Wuhan, 430074, China
Mobile:13995653025
Email: baozheng275@foxmail.com
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Jul-22 08:45 UTC
Re: [Xen-users] HVM domain can not boot up with Qcow incremental image
2010/7/22 鲍政 <baozheng275@foxmail.com>:> Dear, > > Beg for your help. I am really puzzled with this problem. > > HVM domain can not boot up with Qcow incremental image(using command: > qcow-create size incremental_file original_Qcow_img_file), but it can boot > up with the original Qcow disk image file.> The OS is CentOS 5.4,with xen 3.3.1.Short summary, qcow is known to be broken in some versions of Xen. You could probably try: - update to xen 4.0.0 - use vhd instead of qcow: http://lxr.xensource.com/lxr/source/tools/blktap2/README you could use packaged xen 4 from Gitco, but if you want to use blktap2+vhd you''d need a newer kernel, which AFAIK is not available as binary package for Centos (yet). Try http://lists.xensource.com/archives/html/xen-users/2010-07/msg00452.html if you want to use the version that I use (you need to build the RPM yourself from the provided SRPM, and it''s only tested on x86_64). -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users