I found the following in daemon.log and it might shed some light on the problem:
2010-07-14T15:37:29.408577-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:790: blktapctrl: v1.0.0
2010-07-14T15:37:29.408816-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:792: Found driver: [raw image (aio)]
2010-07-14T15:37:29.408970-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:792: Found driver: [raw image (sync)]
2010-07-14T15:37:29.409119-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:792: Found driver: [vmware image (vmdk)]
2010-07-14T15:37:29.409267-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:792: Found driver: [ramdisk image (ram)]
2010-07-14T15:37:29.409412-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:792: Found driver: [qcow disk (qcow)]
2010-07-14T15:37:29.409580-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:792: Found driver: [qcow2 disk (qcow2)]
2010-07-14T15:37:29.409797-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl_linux.c:86: blktap0 open failed
2010-07-14T15:37:29.409948-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:859: couldn't open blktap interface
2010-07-14T15:37:29.410092-07:00 kaan-20 BLKTAPCTRL[2186]:
blktapctrl.c:922: Unable to start blktapctrl
When I went back to Xen 4.0.0 final and dom0 kernel 2.6.32.14 and
successfully booted up the Windows domU, the following showed up in
daemon.log:
2010-07-14T15:26:23.819123-07:00 kaan-20 tapdisk2[4833]: Created
/dev/xen/blktap-2/control device
2010-07-14T15:26:23.819922-07:00 kaan-20 tapdisk2[4833]: Created
/dev/xen/blktap-2/blktap0 device
2010-07-14T15:26:23.820043-07:00 kaan-20 tapdisk2[4833]: Created
/dev/xen/blktap-2/tapdev0 device
2010-07-14T15:26:23.820135-07:00 kaan-20 tapdisk2[4833]: new
interface: ring: 253, device: 253, minor: 0
2010-07-14T15:26:23.820284-07:00 kaan-20 tapdisk2[4833]: I/O queue driver: lio
2010-07-14T15:26:23.860821-07:00 kaan-20 tapdisk2[4833]:
/mnt/win2008sp2.vhd version: tap 0x00010003, b: 12800, a: 6903, f:
6087, n: 28330016
2010-07-14T15:26:23.860988-07:00 kaan-20 tapdisk2[4833]: opened image
/mnt/win2008sp2.vhd (1 users, state: 0x00000001, type: 4)
2010-07-14T15:26:23.861145-07:00 kaan-20 tapdisk2[4833]: VBD CHAIN:
2010-07-14T15:26:23.861287-07:00 kaan-20 tapdisk2[4833]: /mnt/win2008sp2.vhd: 4
And when I shutdown the Windows domU:
2010-07-14T15:29:38.087911-07:00 kaan-20 tapdisk2[4833]: (null):
state: 0x00000000, new: 0x00, pending: 0x00, failed: 0x00, completed:
0x00
2010-07-14T15:29:38.088275-07:00 kaan-20 tapdisk2[4833]: last
activity: 1279146574.094841, errors: 0x0000, retries: 0x0000,
received: 0x00003f21, returned: 0x00003f21, kicked: 0x00003f21
2010-07-14T15:29:38.115706-07:00 kaan-20 tapdisk2[4833]:
/mnt/win2008sp2.vhd: b: 12800, a: 6903, f: 6087, n: 28330016
2010-07-14T15:29:38.117069-07:00 kaan-20 tapdisk2[4833]: closed image
/mnt/win2008sp2.vhd (0 users, state: 0x00000000, type: 4)
- Dante
On Wed, Jul 14, 2010 at 3:02 PM, Dante Cinco <dantecinco@xxxxxxxxx> wrote:
> I installed a Windows 2008 SP2 domU in a VHD file when my system had
> Xen 4.0.0 final and dom0 kernel 2.6.32.14. After I upgraded to Xen
> 4.1-unstable (changeset 21787) and dom0 kernel 2.6.32.16, the Windows
> domU won't boot anymore from the same VHD file (disk =
> ['tap:tapdisk:vhd:/mnt/win2008sp2.vhd,xvda:sda1,w']).
>
> As far as I can tell, changeset 21787 includes all the latest blktap2
> fixes except for the patch submitted by Boris Derzhavets on 7/12/2010
> 11:05 AM with this subject:
> Re: [Xen-devel] CS 21556 (blktap2: Fix tapdisk disktype issues) is
> no longer working for "vhd" [and 1 more messages]
> I manually applied this patch to my build.
>
> Here are the logs:
>
>
> (XEN) tmem: all pools thawed for all domains
> (XEN) tmem: all pools frozen for all domains
> (XEN) tmem: all pools thawed for all domains
> (XEN) memory.c:132:d0 Could not allocate order=9 extent: id=5
> memflags=0 (2 of 3)
> (XEN) HVM5: HVM Loader
> (XEN) HVM5: Detected Xen v4.1-unstable
> (XEN) HVM5: CPU speed is 2533 MHz
> (XEN) HVM5: Xenbus rings @0xfeffc000, event channel 2
>
>
> (XEN) HVM5: Invoking ROMBIOS ...
> (XEN) HVM5: $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $
> (XEN) stdvga.c:147:d5 entering stdvga and caching modes
> (XEN) HVM5: VGABios $Id: vgabios.c,v 1.67 2008/01/27 09:44:12 vruppert Exp $
> (XEN) HVM5: Bochs BIOS - build: 06/23/99
> (XEN) HVM5: $Revision: 1.221 $ $Date: 2008/12/07 17:32:29 $
> (XEN) HVM5: Options: apmbios pcibios eltorito PMM
> (XEN) HVM5:
> (XEN) HVM5:
> (XEN) HVM5:
> (XEN) HVM5:
> (XEN) HVM5: Press F12 for boot menu.
> (XEN) HVM5:
> (XEN) HVM5: Booting from Hard Disk...
> (XEN) HVM5: int13_harddisk: function 02, unmapped device for ELDL=80
> (XEN) HVM5: Boot from Hard Disk failed: could not read the boot disk
> (XEN) HVM5:
> (XEN) HVM5:
> (XEN) HVM5: No bootable device.
> (XEN) HVM5: Powering off in 30 seconds.
> (XEN) hvm.c:906:d5 All CPUs offline -- powering off.
>
>
>
> [2010-07-14 14:49:30 2180] DEBUG (XendDomainInfo:103)
> XendDomainInfo.create(['vm', ['name', 'svm'], ['memory', 1024],
> ['shadow_memory', 8], ['on_poweroff', 'destroy'], ['on_reboot',
> 'restart'], ['on_crash', 'destroy'], ['on_xend_start', 'ignore'],
> ['on_xend_stop', 'ignore'], ['vcpus', 1], ['cpus', ['15']], ['oos',
> 1], ['image', ['hvm', ['kernel', '/usr/lib64/xen/boot/hvmloader'],
> ['videoram', 4], ['serial', 'pty'], ['acpi', 1], ['apic', 1], ['boot',
> 'c'], ['cpuid', []], ['cpuid_check', []], ['device_model',
> '/usr/lib64/xen/bin/qemu-dm'], ['display', 'localhost:10.0'], ['fda',
> ''], ['fdb', ''], ['guest_os_type', 'default'], ['hap', 1], ['hpet',
> 0], ['isa', 0], ['keymap', ''], ['localtime', 0], ['nographic', 0],
> ['oos', 1], ['pae', 1], ['pci', []], ['pci_msitranslate', 1],
> ['pci_power_mgmt', 0], ['rtc_timeoffset', 0], ['sdl', 0], ['soundhw',
> ''], ['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice',
> 'tablet'], ['vcpus', 1], ['vnc', 1], ['vncconsole', 1], ['vnclisten',
> '0.0.0.0'], ['vncunused', 1], ['viridian', 0], ['vpt_align', 1],
> ['xauthority', '/root/.Xauthority'], ['xen_platform_pci', 1],
> ['memory_sharing', 0], ['vncpasswd', 'XXXXXXXX'], ['tsc_mode', 0],
> ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap', ['uname',
> 'tap:tapdisk:vhd:/mnt/win2008sp2.vhd'], ['dev', 'xvda:sda1'], ['mode',
> 'w']]], ['device', ['vif', ['bridge', 'eth0'], ['model', 'e1000'],
> ['mac', '00:16:3e:00:20:02']]]])
> [2010-07-14 14:49:30 2180] DEBUG (XendDomainInfo:2498)
> XendDomainInfo.constructDomain
> [2010-07-14 14:49:30 2180] DEBUG (balloon:187) Balloon: 1067916 KiB
> free; need 16384; done.
> [2010-07-14 14:49:30 2180] DEBUG (XendDomain:476) Adding Domain: 6
> [2010-07-14 14:49:30 2180] DEBUG (XendDomainInfo:2836)
> XendDomainInfo.initDomain: 6 256
> [2010-07-14 14:49:30 2180] DEBUG (image:339) No VNC passwd configured
> for vfb access
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: boot, val: c
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: fda, val: None
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: fdb, val: None
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: soundhw, val: None
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: localtime, val: 0
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: serial, val: ['pty']
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: std-vga, val: 0
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: isa, val: 0
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: acpi, val: 1
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: usb, val: 0
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: usbdevice, val: tablet
> [2010-07-14 14:49:30 2180] DEBUG (image:891) args: gfx_passthru, val: None
> [2010-07-14 14:49:30 2180] INFO (image:822) Need to create platform
> device.[domid:6]
> [2010-07-14 14:49:30 2180] DEBUG (XendDomainInfo:2863)
> _initDomain:shadow_memory=0x8, memory_static_max=0x40000000,
> memory_static_min=0x0.
> [2010-07-14 14:49:30 2180] INFO (image:182) buildDomain os=hvm dom=6 vcpus=1
> [2010-07-14 14:49:30 2180] DEBUG (image:949) domid = 6
> [2010-07-14 14:49:30 2180] DEBUG (image:950) image =
> /usr/lib64/xen/boot/hvmloader
> [2010-07-14 14:49:30 2180] DEBUG (image:951) store_evtchn = 2
> [2010-07-14 14:49:30 2180] DEBUG (image:952) memsize = 1024
> [2010-07-14 14:49:30 2180] DEBUG (image:953) target = 1024
> [2010-07-14 14:49:30 2180] DEBUG (image:954) vcpus = 1
> [2010-07-14 14:49:30 2180] DEBUG (image:955) vcpu_avail = 1
> [2010-07-14 14:49:30 2180] DEBUG (image:956) acpi = 1
> [2010-07-14 14:49:30 2180] DEBUG (image:957) apic = 1
> [2010-07-14 14:49:30 2180] INFO (XendDomainInfo:2357) createDevice:
> vfb : {'vncunused': 1, 'vnclisten': '0.0.0.0', 'vnc': '1', 'uuid':
> 'e30de642-7df7-7def-ec48-7adbb5adb8ff', 'other_config': {'vncunused':
> 1, 'vnclisten': '0.0.0.0', 'vnc': '1'}}
> [2010-07-14 14:49:30 2180] DEBUG (DevController:95) DevController:
> writing {'state': '1', 'backend-id': '0', 'backend':
> '/local/domain/0/backend/vfb/6/0'} to /local/domain/6/device/vfb/0.
> [2010-07-14 14:49:30 2180] DEBUG (DevController:97) DevController:
> writing {'vncunused': '1', 'domain': 'svm', 'frontend':
> '/local/domain/6/device/vfb/0', 'uuid':
> 'e30de642-7df7-7def-ec48-7adbb5adb8ff', 'frontend-id': '6',
> 'vnclisten': '0.0.0.0', 'state': '1', 'online': '1', 'vnc': '1'} to
> /local/domain/0/backend/vfb/6/0.
> [2010-07-14 14:49:30 2180] INFO (XendDomainInfo:2357) createDevice:
> tap : {'bootable': 1, 'uname': 'tap:tapdisk:vhd:/mnt/win2008sp2.vhd',
> 'mode': 'w', 'dev': 'xvda:sda1', 'uuid':
> '7569c2a5-8e35-1594-fcd1-38fa6f587673'}
> [2010-07-14 14:49:30 2180] DEBUG (DevController:95) DevController:
> writing {'backend-id': '0', 'virtual-device': '51712', 'device-type':
> 'sda1', 'state': '1', 'backend':
> '/local/domain/0/backend/tap/6/51712'} to
> /local/domain/6/device/vbd/51712.
> [2010-07-14 14:49:30 2180] DEBUG (DevController:97) DevController:
> writing {'domain': 'svm', 'frontend':
> '/local/domain/6/device/vbd/51712', 'uuid':
> '7569c2a5-8e35-1594-fcd1-38fa6f587673', 'bootable': '1', 'dev':
> 'xvda', 'state': '1', 'params': 'tapdisk:vhd:/mnt/win2008sp2.vhd',
> 'mode': 'w', 'online': '1', 'frontend-id': '6', 'type': 'tap'} to
> /local/domain/0/backend/tap/6/51712.
> [2010-07-14 14:49:30 2180] INFO (XendDomainInfo:2357) createDevice:
> vif : {'bridge': 'eth0', 'model': 'e1000', 'mac': '00:16:3e:00:20:02',
> 'uuid': 'f8f65dc2-32d9-e223-1a65-041c44dace4f'}
> [2010-07-14 14:49:30 2180] DEBUG (DevController:95) DevController:
> writing {'backend-id': '0', 'mac': '00:16:3e:00:20:02', 'handle': '0',
> 'state': '1', 'backend': '/local/domain/0/backend/vif/6/0'} to
> /local/domain/6/device/vif/0.
> [2010-07-14 14:49:30 2180] DEBUG (DevController:97) DevController:
> writing {'bridge': 'eth0', 'domain': 'svm', 'handle': '0', 'uuid':
> 'f8f65dc2-32d9-e223-1a65-041c44dace4f', 'script':
> '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:00:20:02',
> 'frontend-id': '6', 'state': '1', 'online': '1', 'frontend':
> '/local/domain/6/device/vif/0', 'model': 'e1000'} to
> /local/domain/0/backend/vif/6/0.
> [2010-07-14 14:49:30 2180] INFO (image:418) spawning device models:
> /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '-d', '6',
> '-domain-name', 'svm', '-videoram', '4', '-vnc', '0.0.0.0:0',
> '-vncunused', '-vcpus', '1', '-vcpu_avail', '0x1', '-boot', 'c',
> '-serial', 'pty', '-acpi', '-usbdevice', 'tablet', '-net',
> 'nic,vlan=1,macaddr=00:16:3e:00:20:02,model=e1000', '-net',
> 'tap,vlan=1,ifname=tap6.0,bridge=eth0', '-M', 'xenfv']
> [2010-07-14 14:49:30 2180] INFO (image:467) device model pid: 4161
> [2010-07-14 14:49:31 2180] INFO (image:590) waiting for sentinel_fifo
> [2010-07-14 14:49:31 2180] DEBUG (XendDomainInfo:3418) Storing VM
> details: {'on_xend_stop': 'ignore', 'pool_name': 'Pool-0',
> 'shadow_memory': '9', 'uuid': 'dc3a7817-7e4d-0a5d-3486-e0da9571e29b',
> 'on_reboot': 'restart', 'start_time': '1279144170.98', 'on_poweroff':
> 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore',
> 'on_crash': 'destroy', 'xend/restart_count': '0', 'vcpus': '1',
> 'vcpu_avail': '1', 'bootloader': '', 'image': "(hvm (kernel '')
> (superpages 0) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0.0.0)
> (loader /usr/lib64/xen/boot/hvmloader) (xen_platform_pci 1)
> (rtc_timeoffset 0) (pci ()) (hap 1) (localtime 0) (timer_mode 1)
> (pci_msitranslate 1) (oos 1) (apic 1) (sdl 0) (usbdevice tablet)
> (display localhost:10.0) (vpt_align 1) (vncconsole 1) (serial pty)
> (vncunused 1) (boot c) (pae 1) (viridian 0) (acpi 1) (vnc 1)
> (nographic 0) (nomigrate 0) (usb 0) (tsc_mode 0) (guest_os_type
> default) (device_model /usr/lib64/xen/bin/qemu-dm) (pci_power_mgmt 0)
> (xauthority /root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL 1)))",
> 'name': 'svm'}
> [2010-07-14 14:49:31 2180] DEBUG (XendDomainInfo:1794) Storing domain
> details: {'console/port': '3', 'description': '', 'console/limit':
> '1048576', 'store/port': '2', 'vm':
> '/vm/dc3a7817-7e4d-0a5d-3486-e0da9571e29b', 'domid': '6',
> 'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
> 'memory/target': '1048576',
> 'control/platform-feature-multiprocessor-suspend': '1',
> 'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'svm'}
> [2010-07-14 14:49:31 2180] DEBUG (DevController:95) DevController:
> writing {'state': '1', 'backend-id': '0', 'backend':
> '/local/domain/0/backend/console/6/0'} to
> /local/domain/6/device/console/0.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:97) DevController:
> writing {'domain': 'svm', 'frontend':
> '/local/domain/6/device/console/0', 'uuid':
> '1f6b27a1-ebbd-23e3-d6a5-296e8edfeb68', 'frontend-id': '6', 'state':
> '1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to
> /local/domain/0/backend/console/6/0.
> [2010-07-14 14:49:31 2180] DEBUG (XendDomainInfo:1881)
> XendDomainInfo.handleShutdownWatch
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices tap2.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vif.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:144) Waiting for 0.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:628)
> hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:642) hotplugStatusCallback 1.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vkbd.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for
> devices ioports.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices tap.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:144) Waiting for 51712.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/tap/6/51712/hotplug-status.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:628)
> hotplugStatusCallback
> /local/domain/0/backend/tap/6/51712/hotplug-status.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:642) hotplugStatusCallback 1.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vif2.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for
> devices console.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:144) Waiting for 0.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices
> vscsi.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vbd.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices irq.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vfb.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices pci.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vusb.
> [2010-07-14 14:49:31 2180] DEBUG (DevController:139) Waiting for devices vtpm.
> [2010-07-14 14:49:31 2180] INFO (XendDomain:1225) Domain svm (6) unpaused.
> [2010-07-14 14:50:05 2180] INFO (XendDomainInfo:2078) Domain has
> shutdown: name=svm id=6 reason=poweroff.
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:3071)
> XendDomainInfo.destroy: domid=6
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2401) Destroying device model
> [2010-07-14 14:50:05 2180] INFO (image:615) svm device model terminated
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2408) Releasing devices
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2414) Removing vif/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2414) Removing tap/51712
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = tap, device = tap/51712
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2414) Removing console/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = console, device =
> console/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2414) Removing vfb/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2406) No device model
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2408) Releasing devices
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2414) Removing vif/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:2414) Removing tap/51712
> [2010-07-14 14:50:05 2180] DEBUG (XendDomainInfo:1276)
> XendDomainInfo.destroyDevice: deviceClass = tap, device = tap/51712
>
>
> Thanks.
>
> - Dante
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|