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

Re: [Xen-users] Re: Setup WinXP with HVM and qemu image



On Friday 1 June 2007 13:24, you wrote:
> What are the settings for PAE, APIC and ACPI in your guest config?
>
> Try turning for example APIC off (this will essentially make your system
> single-CPU, but if you are on an older version of Xen, you won't be able
> to run SMP HVM guests anyways).
>
PAE, APIC and ACPI were commented out in the guest config. I have uncommented 
them and set them in all possible combinations of 0's and 1's. I don't see a 
change. The CD doesn't spin up anymore either.

(Note: I did switch to sdl because with vnc I had to click away a small dialog 
about a broken connection each time I shut down the guest. After 30 or so 
attempts at starting and stopping the guest this became annoying).

The guest's screen always ends up black. xm dmesg shows this (for the last 
guest):
(XEN) (file=hvm.c, line=197) Allocated port 3 for hvm.
(XEN) vmx_do_launch(): GUEST_CR3<=001a5da0, HOST_CR3<=55da7000
(XEN) printk: 22 messages suppressed.
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) DOM0: (file=mm.c, line=594) Non-privileged (46) attempt to map I/O space 
ffffffff
(XEN) (GUEST: 46) HVM Loader
(XEN) (GUEST: 46) Detected Xen v3.0.3-rc5-8.1.4.el
(XEN) (GUEST: 46) Writing SMBIOS tables ...
(XEN) (GUEST: 46) Loading ROMBIOS ...
(XEN) (GUEST: 46) Loading Standard VGABIOS ...
(XEN) (GUEST: 46) Loading VMXAssist ...
(XEN) (GUEST: 46) VMX go ...
(XEN) (GUEST: 46) VMXAssist (Apr  9 2007)
(XEN) (GUEST: 46) Memory size 512 MB
(XEN) (GUEST: 46) E820 map:
(XEN) (GUEST: 46) 0000000000000000 - 000000000009F000 (RAM)
(XEN) (GUEST: 46) 000000000009F000 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 46) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 46) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 46) 0000000000100000 - 000000001FFF0000 (RAM)
(XEN) (GUEST: 46) 000000001FFF0000 - 000000001FFFA000 (ACPI Data)
(XEN) (GUEST: 46) 000000001FFFA000 - 000000001FFFD000 (ACPI NVS)
(XEN) (GUEST: 46) 000000001FFFD000 - 000000001FFFE000 (Type 19)
(XEN) (GUEST: 46) 000000001FFFE000 - 000000001FFFF000 (Type 18)
(XEN) (GUEST: 46) 000000001FFFF000 - 0000000020000000 (Type 17)
(XEN) (GUEST: 46) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 46)
(XEN) (GUEST: 46) Start BIOS ...
(XEN) (GUEST: 46) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 46)  rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $
(XEN) (GUEST: 46) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 46) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 46) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert 
Exp $
(XEN) (GUEST: 46) HVMAssist BIOS, 1 cpu, $Revision: 1.138 $ $Date: 2005/05/07 
15:55:26 $
(XEN) (GUEST: 46)
(XEN) (GUEST: 46) ata0-0: PCHS=11987/16/63 translation=lba LCHS=752/255/63
(XEN) (GUEST: 46) ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (5900 MBytes)
(XEN) (GUEST: 46) ata0  slave: Unknown device
(XEN) (GUEST: 46) ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom
(XEN) (GUEST: 46) ata1  slave: Unknown device
(XEN) (GUEST: 46)
(XEN) (GUEST: 46) Booting from CD-Rom...


(Note: in this case, I did reenable the harddisk image, but even without it, 
the output was similar).

xend.log has this on the latest guest creation:
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:190) 
XendDomainInfo.create(['vm', ['name', 'WindowsXP'], ['memory', 512], 
['shadow_memory', 8], ['vcpus', 1], ['image', ['hvm', 
['kernel', '/usr/lib/xen/boot/hvmloader'], 
['device_model', '/usr/lib/xen/bin/qemu-dm'], ['vcpus', 1], ['boot', 'd'], 
['serial', 'pty'], ['stdvga', 1], ['soundhw', 'sb16'], ['vncdisplay', 10], 
['vncunused', 1], ['vncconsole', 1], ['sdl', 1], ['display', ':0'], 
['xauthority', '/root/.xauthtxU52s'], ['usb', 1], ['usbdevice', 'tablet'], 
['vncpasswd', '']]], ['device', ['vbd', 
['uname', 'file:/var/images/winxp.img'], ['dev', 'hda'], ['mode', 'w']]], 
['device', ['vbd', ['uname', 'phy:/dev/cdrom'], ['dev', 'hdc:cdrom'], 
['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], 
['mac', '00:18:32:6c:00:ba'], ['type', 'ioemu']]], ['device', ['vkbd']], 
['device', ['vfb', ['type', 'sdl'], ['xauthority', '/root/.xauthtxU52s'], 
['display', ':0']]]])
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:296) 
parseConfig: config is ['vm', ['name', 'WindowsXP'], ['memory', 512], 
['shadow_memory', 8], ['vcpus', 1], ['image', ['hvm', 
['kernel', '/usr/lib/xen/boot/hvmloader'], 
['device_model', '/usr/lib/xen/bin/qemu-dm'], ['vcpus', 1], ['boot', 'd'], 
['serial', 'pty'], ['stdvga', 1], ['soundhw', 'sb16'], ['vncdisplay', 10], 
['vncunused', 1], ['vncconsole', 1], ['sdl', 1], ['display', ':0'], 
['xauthority', '/root/.xauthtxU52s'], ['usb', 1], ['usbdevice', 'tablet'], 
['vncpasswd', '']]], ['device', ['vbd', 
['uname', 'file:/var/images/winxp.img'], ['dev', 'hda'], ['mode', 'w']]], 
['device', ['vbd', ['uname', 'phy:/dev/cdrom'], ['dev', 'hdc:cdrom'], 
['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], 
['mac', '00:18:32:6c:00:ba'], ['type', 'ioemu']]], ['device', ['vkbd']], 
['device', ['vfb', ['type', 'sdl'], ['xauthority', '/root/.xauthtxU52s'], 
['display', ':0']]]]
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:397) 
parseConfig: result is {'shadow_memory': 8, 'start_time': None, 'uuid': 
None, 'on_crash': None, 'on_reboot': None, 'localtime': None, 'image': 
['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], 
['device_model', '/usr/lib/xen/bin/qemu-dm'], ['vcpus', 1], ['boot', 'd'], 
['serial', 'pty'], ['stdvga', 1], ['soundhw', 'sb16'], ['vncdisplay', 10], 
['vncunused', 1], ['vncconsole', 1], ['sdl', 1], ['display', ':0'], 
['xauthority', '/root/.xauthtxU52s'], ['usb', 1], ['usbdevice', 'tablet'], 
['vncpasswd', '']], 'on_poweroff': None, 'bootloader_args': None, 'cpus': 
None, 'name': 'WindowsXP', 'backend': [], 'vcpus': 1, 'cpu_weight': 
None, 'features': None, 'vcpu_avail': None, 'memory': 512, 'device': [('vbd', 
['vbd', ['uname', 'file:/var/images/winxp.img'], ['dev', 'hda'], 
['mode', 'w']]), ('vbd', ['vbd', ['uname', 'phy:/dev/cdrom'], 
['dev', 'hdc:cdrom'], ['mode', 'r']]), ('vif', ['vif', ['bridge', 'xenbr0'], 
['mac', '00:18:32:6c:00:ba'], ['type', 'ioemu']]), ('vkbd', ['vkbd']), 
('vfb', ['vfb', ['type', 'sdl'], ['xauthority', '/root/.xauthtxU52s'], 
['display', ':0']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:1264) 
XendDomainInfo.construct: None
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:1296) 
XendDomainInfo.initDomain: 46 1.0
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: boot, val: d
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: fda, val: None
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: fdb, val: None
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: soundhw, val: sb16
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: localtime, val: None
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: serial, val: pty
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: std-vga, val: 1
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: isa, val: None
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: vcpus, val: 1
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: acpi, val: None
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: usb, val: 1
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: usbdevice, val: 
tablet
[2007-06-01 14:37:59 xend 25412] DEBUG (image:329) args: k, val: None
[2007-06-01 14:37:59 xend 25412] DEBUG (balloon:127) Balloon: 546568 KiB free; 
need 546000; done.
[2007-06-01 14:37:59 xend 25412] INFO (image:136) buildDomain os=hvm dom=46 
vcpus=1
[2007-06-01 14:37:59 xend 25412] DEBUG (image:282) dom            = 46
[2007-06-01 14:37:59 xend 25412] DEBUG (image:283) image          
= /usr/lib/xen/boot/hvmloader
[2007-06-01 14:37:59 xend 25412] DEBUG (image:284) store_evtchn   = 1
[2007-06-01 14:37:59 xend 25412] DEBUG (image:285) memsize        = 512
[2007-06-01 14:37:59 xend 25412] DEBUG (image:286) vcpus          = 1
[2007-06-01 14:37:59 xend 25412] DEBUG (image:287) pae            = 0
[2007-06-01 14:37:59 xend 25412] DEBUG (image:288) acpi           = 0
[2007-06-01 14:37:59 xend 25412] DEBUG (image:289) apic           = 0
[2007-06-01 14:37:59 xend 25412] DEBUG (image:435) hvm shutdown watch 
registered
[2007-06-01 14:37:59 xend 25412] DEBUG (blkif:24) exception looking up device 
number for hda: [Errno 2] No such file or directory: '/dev/hda'
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:110) DevController: 
writing 
{'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': 
'1', 'backend': '/local/domain/0/backend/vbd/46/768'} 
to /local/domain/46/device/vbd/768.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:112) DevController: 
writing 
{'domain': 'WindowsXP', 'frontend': '/local/domain/46/device/vbd/768', 'dev': 
'hda', 'state': '1', 'params': '/var/images/winxp.img', 'mode': 'w', 'online': 
'1', 'frontend-id': '46', 'type': 'file'} 
to /local/domain/0/backend/vbd/46/768.
[2007-06-01 14:37:59 xend 25412] DEBUG (blkif:24) exception looking up device 
number for hdc: [Errno 2] No such file or directory: '/dev/hdc'
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:110) DevController: 
writing 
{'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state': 
'1', 'backend': '/local/domain/0/backend/vbd/46/5632'} 
to /local/domain/46/device/vbd/5632.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:112) DevController: 
writing 
{'domain': 'WindowsXP', 'frontend': '/local/domain/46/device/vbd/5632', 'dev': 
'hdc', 'state': '1', 'params': '/dev/cdrom', 'mode': 'r', 'online': '1', 
'frontend-id': '46', 'type': 'phy'} 
to /local/domain/0/backend/vbd/46/5632.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:110) DevController: 
writing 
{'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vif/46/0'} 
to /local/domain/46/device/vif/0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:112) DevController: 
writing 
{'bridge': 'xenbr0', 'domain': 'WindowsXP', 'handle': '0', 'script': 
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/46/device/vif/0', 'mac': '00:18:32:6c:00:ba', 'online': '1', 
'frontend-id': '46', 'type': 'ioemu'} 
to /local/domain/0/backend/vif/46/0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:110) DevController: 
writing 
{'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vkbd/46/0'} 
to /local/domain/46/device/vkbd/0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:112) DevController: 
writing 
{'frontend-id': '46', 'domain': 'WindowsXP', 'frontend': 
'/local/domain/46/device/vkbd/0', 'state': '1', 'online': '1'} 
to /local/domain/0/backend/vkbd/46/0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:110) DevController: 
writing 
{'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vfb/46/0'} 
to /local/domain/46/device/vfb/0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:112) DevController: 
writing 
{'domain': 'WindowsXP', 'frontend': '/local/domain/46/device/vfb/0', 
'xauthority': '/root/.xauthtxU52s', 'state': '1', 'online': '1', 'frontend-id': 
'46', 'type': 'sdl', 'display': ':0'} 
to /local/domain/0/backend/vfb/46/0.
[2007-06-01 14:37:59 xend 25412] INFO (image:418) spawning device 
models: /usr/lib/xen/bin/qemu-dm 
['/usr/lib/xen/bin/qemu-dm', '-d', '46', '-m', '512', '-boot', 'd', '-soundhw', 
'sb16', '-serial', 'pty', '-std-vga', '-vcpus', '1', '-usb', '-usbdevice', 
'tablet', '-domain-name', 'WindowsXP', '-net', 
'nic,vlan=1,macaddr=00:18:32:6c:00:ba,model=rtl8139', '-net', 
'tap,vlan=1,bridge=xenbr0', '-vncviewer']
[2007-06-01 14:37:59 xend 25412] INFO (image:420) device model pid: 25909
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:715) 
Storing VM details: 
{'shadow_memory': '8', 'uuid': '8144837d-046b-2450-c981-599627763434', 
'on_reboot': 'restart', 'start_time': '1180701479.64', 'on_poweroff': 
'destroy', 'name': 'WindowsXP', 'xend/restart_count': '0', 'vcpus': '1', 
'vcpu_avail': '1', 'memory': '512', 'on_crash': 'restart', 'image': '(hvm 
(kernel /usr/lib/xen/boot/hvmloader) (device_model /usr/lib/xen/bin/qemu-dm) 
(vcpus 1) (boot d) (serial pty) (stdvga 1) (soundhw sb16) (vncdisplay 10) 
(vncunused 1) (vncconsole 1) (sdl 1) (display :0) 
(xauthority /root/.xauthtxU52s) (usb 1) (usbdevice tablet) 
(vncpasswd ))', 'maxmem': '512'}
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:750) 
Storing domain details: 
{'console/port': '2', 'name': 'WindowsXP', 'console/limit': '1048576', 'vm': 
'/vm/8144837d-046b-2450-c981-599627763434', 'domid': '46', 
'cpu/0/availability': 'online', 'memory/target': '524288', 'store/ring-ref': 
'130499', 'store/port': '1'}
[2007-06-01 14:37:59 xend 25412] DEBUG (image:458) hvm_shutdown fired, 
shutdown reason=None
[2007-06-01 14:37:59 xend.XendDomainInfo 25412] DEBUG (XendDomainInfo:940) 
XendDomainInfo.handleShutdownWatch
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
vif.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:149) Waiting for 0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:471) 
hotplugStatusCallback /local/domain/0/backend/vif/46/0/hotplug-status.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:485) 
hotplugStatusCallback 1.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
usb.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
vbd.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:149) Waiting for 768.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:471) 
hotplugStatusCallback /local/domain/0/backend/vbd/46/768/hotplug-status.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:471) 
hotplugStatusCallback /local/domain/0/backend/vbd/46/768/hotplug-status.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:485) 
hotplugStatusCallback 1.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:149) Waiting for 5632.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:471) 
hotplugStatusCallback /local/domain/0/backend/vbd/46/5632/hotplug-status.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:485) 
hotplugStatusCallback 1.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
irq.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
vkbd.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:149) Waiting for 0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:471) 
hotplugStatusCallback /local/domain/0/backend/vkbd/46/0/hotplug-status.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:485) 
hotplugStatusCallback 1.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
vfb.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:149) Waiting for 0.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:471) 
hotplugStatusCallback /local/domain/0/backend/vfb/46/0/hotplug-status.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:485) 
hotplugStatusCallback 1.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
pci.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
ioports.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
tap.
[2007-06-01 14:37:59 xend 25412] DEBUG (DevController:143) Waiting for devices 
vtpm.
[2007-06-01 14:37:59 xend 25412] INFO (XendDomain:370) Domain WindowsXP (46) 
unpaused.




I noticed in there, there are two errors for the blockdevices:
DEBUG (blkif:24) exception looking up device number for hda: [Errno 2] No such 
file or directory: '/dev/hda'
and
DEBUG (blkif:24) exception looking up device number for hdc: [Errno 2] No such 
file or directory: '/dev/hdc'

They don't seem to be critical.

For the rest, qemu-dm contintues to use 100% cpu on one core, but nothing 
happens. What is going on there ?

Geert

-- 
Kobalt W.I.T.
Web & Information Technology
Brusselsesteenweg 152
1850 Grimbergen

Tel  : +32 479 339 655
Email: info@xxxxxxxxxxxx

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.