WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] windows 2008 x64 no cdrom.

Hello.

Made your changes and the new file is below.  Still the same issue.


import os, re
arch = os.uname()[4]

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = '1024'
device_model = '/usr/lib64/xen/bin/qemu-dm'

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
name = "windows"
vif         = [ 'ip=204.124.181.89,mac=00:16:3E:FE:C2:02,vifname=windows' ]
disk =
['file:/windows/xenwin2008.img,ioemu:hda,w','file:/windows/winxpSP2.iso,ioem
u:hdc:cdrom,r']
#---------------------------------------------------------------------------
--
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dc"
sdl=0
vnc=1
vncconsole=1
vncpasswd=''

#serial='pty'
usbdevice='tablet'

acpi=1
apic=1
pae=1
usb=1


xend.log file output since command issued xm create windows.cfg

[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:92)
XendDomainInfo.create(['vm', ['name', 'windows'], ['memory', '1024'],
['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'],
['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['videoram',
4], ['device_model', '/usr/lib64/xen/bin/qemu-dm'], ['pae', 1], ['vcpus',
1], ['boot', 'dc'], ['fda', ''], ['fdb', ''], ['timer_mode', 1],
['localtime', 0], ['serial', ''], ['stdvga', 0], ['isa', 0], ['nographic',
0], ['soundhw', ''], ['vnc', 1], ['vncunused', 1], ['vncconsole', 1],
['sdl', 0], ['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', 0],
['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 1], ['usbdevice',
'tablet'], ['keymap', ''], ['pci', []], ['hpet', 0], ['guest_os_type',
'default'], ['hap', 1], ['cpuid', []], ['cpuid_check', []], ['viridian', 0],
['pci_msitranslate', 1], ['vpt_align', 1], ['pci_power_mgmt', 0],
['xen_platform_pci', 1], ['vncpasswd', 'XXXXXXXX']]], ['s3_integrity', 1],
['device', ['vbd', ['uname', 'file:/windows/xenwin2008.img'], ['dev',
'ioemu:hda'], ['mode', 'w']]], ['device', ['vbd', ['uname',
'file:/windows/winxpSP2.iso'], ['dev', 'ioemu:hdc:cdrom'], ['mode', 'r']]],
['device', ['vif', ['ip', '204.124.181.89'], ['mac', '00:16:3E:FE:C2:02'],
['vifname', 'windows']]]])
[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:2296)
XendDomainInfo.constructDomain
[2009-08-14 15:29:34 2776] DEBUG (balloon:166) Balloon: 1071836 KiB free;
need 4096; done.
[2009-08-14 15:29:34 2776] DEBUG (XendDomain:452) Adding Domain: 8
[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:2497)
XendDomainInfo.initDomain: 8 256
[2009-08-14 15:29:34 2776] DEBUG (image:322) No VNC passwd configured for
vfb access
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: boot, val: dc
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: fda, val: None
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: fdb, val: None
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: soundhw, val: None
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: localtime, val: 0
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: serial, val: None
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: std-vga, val: 0
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: isa, val: 0
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: acpi, val: 1
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: usb, val: 1
[2009-08-14 15:29:34 2776] DEBUG (image:809) args: usbdevice, val: tablet
[2009-08-14 15:29:34 2776] INFO (image:745) Need to create platform
device.[domid:8]
[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:2521)
_initDomain:shadow_memory=0x0, memory_static_max=0x40000000,
memory_static_min=0x0.
[2009-08-14 15:29:34 2776] DEBUG (balloon:166) Balloon: 1070424 KiB free;
need 1065984; done.
[2009-08-14 15:29:34 2776] INFO (image:173) buildDomain os=hvm dom=8 vcpus=1
[2009-08-14 15:29:34 2776] DEBUG (image:862) domid          = 8
[2009-08-14 15:29:34 2776] DEBUG (image:863) image          =
/usr/lib/xen/boot/hvmloader
[2009-08-14 15:29:34 2776] DEBUG (image:864) store_evtchn   = 2
[2009-08-14 15:29:34 2776] DEBUG (image:865) memsize        = 1024
[2009-08-14 15:29:34 2776] DEBUG (image:866) target         = 1024
[2009-08-14 15:29:34 2776] DEBUG (image:867) vcpus          = 1
[2009-08-14 15:29:34 2776] DEBUG (image:868) acpi           = 1
[2009-08-14 15:29:34 2776] DEBUG (image:869) apic           = 1
[2009-08-14 15:29:34 2776] INFO (XendDomainInfo:2160) createDevice: vfb :
{'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1'}, 'vnc': '1',
'uuid': 'd5521524-f898-0ece-fea0-34f87eb278eb'}
[2009-08-14 15:29:34 2776] DEBUG (DevController:95) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/8/0'} to /local/domain/8/device/vfb/0.
[2009-08-14 15:29:34 2776] DEBUG (DevController:97) DevController: writing
{'vncunused': '1', 'domain': 'windows', 'frontend':
'/local/domain/8/device/vfb/0', 'uuid':
'd5521524-f898-0ece-fea0-34f87eb278eb', 'frontend-id': '8', 'state': '1',
'online': '1', 'vnc': '1'} to /local/domain/0/backend/vfb/8/0.
[2009-08-14 15:29:34 2776] INFO (XendDomainInfo:2160) createDevice: vbd :
{'uuid': '5c474d98-2d59-91ff-7d0d-0d864ae161dc', 'bootable': 1, 'driver':
'ioemu', 'dev': 'ioemu:hda', 'uname': 'file:/windows/xenwin2008.img',
'mode': 'w'}
[2009-08-14 15:29:34 2776] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state':
'1', 'backend': '/local/domain/0/backend/vbd/8/768'} to
/local/domain/8/device/vbd/768.
[2009-08-14 15:29:34 2776] DEBUG (DevController:97) DevController: writing
{'domain': 'windows', 'frontend': '/local/domain/8/device/vbd/768', 'uuid':
'5c474d98-2d59-91ff-7d0d-0d864ae161dc', 'bootable': '1', 'dev': 'hda',
'state': '1', 'params': '/windows/xenwin2008.img', 'mode': 'w', 'online':
'1', 'frontend-id': '8', 'type': 'file'} to
/local/domain/0/backend/vbd/8/768.
[2009-08-14 15:29:34 2776] INFO (XendDomainInfo:2160) createDevice: vbd :
{'uuid': '7dc5970c-8e68-3435-1b6d-176309c78acf', 'bootable': 0, 'driver':
'ioemu', 'dev': 'ioemu:hdc:cdrom', 'uname': 'file:/windows/winxpSP2.iso',
'mode': 'r'}
[2009-08-14 15:29:34 2776] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom',
'state': '1', 'backend': '/local/domain/0/backend/vbd/8/5632'} to
/local/domain/8/device/vbd/5632.
[2009-08-14 15:29:34 2776] DEBUG (DevController:97) DevController: writing
{'domain': 'windows', 'frontend': '/local/domain/8/device/vbd/5632', 'uuid':
'7dc5970c-8e68-3435-1b6d-176309c78acf', 'bootable': '0', 'dev': 'hdc',
'state': '1', 'params': '/windows/winxpSP2.iso', 'mode': 'r', 'online': '1',
'frontend-id': '8', 'type': 'file'} to /local/domain/0/backend/vbd/8/5632.
[2009-08-14 15:29:34 2776] INFO (XendDomainInfo:2160) createDevice: vif :
{'ip': '204.124.181.89', 'mac': '00:16:3E:FE:C2:02', 'vifname': 'windows',
'uuid': '2103a4f8-dd0c-aecc-3510-c07bb51ff5dd'}
[2009-08-14 15:29:34 2776] DEBUG (DevController:95) DevController: writing
{'backend-id': '0', 'mac': '00:16:3E:FE:C2:02', 'handle': '0', 'state': '1',
'backend': '/local/domain/0/backend/vif/8/0'} to
/local/domain/8/device/vif/0.
[2009-08-14 15:29:34 2776] DEBUG (DevController:97) DevController: writing
{'domain': 'windows', 'handle': '0', 'uuid':
'2103a4f8-dd0c-aecc-3510-c07bb51ff5dd', 'script':
'/etc/xen/scripts/vif-bridge', 'ip': '204.124.181.89', 'mac':
'00:16:3E:FE:C2:02', 'frontend-id': '8', 'state': '1', 'vifname': 'windows',
'online': '1', 'frontend': '/local/domain/8/device/vif/0'} to
/local/domain/0/backend/vif/8/0.
[2009-08-14 15:29:34 2776] INFO (image:394) spawning device models:
/usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '-d', '8',
'-domain-name', 'windows', '-videoram', '4', '-vnc', '127.0.0.1:0',
'-vncunused', '-vcpus', '1', '-boot', 'dc', '-acpi', '-usb', '-usbdevice',
'tablet', '-net', 'nic,vlan=1,macaddr=00:16:3E:FE:C2:02,model=rtl8139',
'-net', 'tap,vlan=1,ifname=tap8.0,bridge=xenbr0', '-M', 'xenfv']
[2009-08-14 15:29:34 2776] INFO (image:443) device model pid: 7965
[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:3052) Storing VM details:
{'on_xend_stop': 'ignore', 'shadow_memory': '9', 'uuid':
'ed3bbbbc-1e34-27cd-c0eb-c3b203b5e6f8', 'on_reboot': 'restart',
'start_time': '1250278174.7', 'on_poweroff': 'destroy', 'bootloader_args':
'', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':
'0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm
(kernel ) (videoram 4) (hpet 0) (stdvga 0) (loader
/usr/lib/xen/boot/hvmloader) (vncconsole 1) (vncunused 1) (xen_platform_pci
1) (boot dc) (rtc_timeoffset 0) (pci ()) (pae 1) (vpt_align 1) (hap 1)
(viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0)
(guest_os_type default) (pci_msitranslate 1) (apic 1) (sdl 0) (monitor 0)
(usbdevice tablet) (device_model /usr/lib64/xen/bin/qemu-dm) (pci_power_mgmt
0) (usb 1) (xauthority /root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL
1)))', 'name': 'windows'}
[2009-08-14 15:29:34 2776] INFO (image:531) waiting for sentinel_fifo
[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:1622) Storing domain
details: {'console/port': '3', 'name': 'windows', 'console/limit':
'1048576', 'store/port': '2', 'vm':
'/vm/ed3bbbbc-1e34-27cd-c0eb-c3b203b5e6f8', 'domid': '8',
'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
'memory/target': '1048576',
'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref':
'1044476', 'console/type': 'ioemu'}
[2009-08-14 15:29:34 2776] DEBUG (DevController:95) DevController: writing
{'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/8/0'} to /local/domain/8/device/console/0.
[2009-08-14 15:29:34 2776] DEBUG (DevController:97) DevController: writing
{'domain': 'windows', 'frontend': '/local/domain/8/device/console/0',
'uuid': 'fee8beff-7fed-6e8c-caca-a03e0069774c', 'frontend-id': '8', 'state':
'1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/8/0.
[2009-08-14 15:29:34 2776] DEBUG (XendDomainInfo:1709)
XendDomainInfo.handleShutdownWatch
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
vif.
[2009-08-14 15:29:34 2776] DEBUG (DevController:144) Waiting for 0.
[2009-08-14 15:29:34 2776] DEBUG (DevController:629) hotplugStatusCallback
/local/domain/0/backend/vif/8/0/hotplug-status.
[2009-08-14 15:29:34 2776] DEBUG (DevController:629) hotplugStatusCallback
/local/domain/0/backend/vif/8/0/hotplug-status.
[2009-08-14 15:29:34 2776] DEBUG (DevController:643) hotplugStatusCallback
1.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
vscsi.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
vbd.
[2009-08-14 15:29:34 2776] DEBUG (DevController:144) Waiting for 768.
[2009-08-14 15:29:34 2776] DEBUG (DevController:629) hotplugStatusCallback
/local/domain/0/backend/vbd/8/768/hotplug-status.
[2009-08-14 15:29:34 2776] DEBUG (DevController:629) hotplugStatusCallback
/local/domain/0/backend/vbd/8/768/hotplug-status.
[2009-08-14 15:29:34 2776] DEBUG (DevController:643) hotplugStatusCallback
1.
[2009-08-14 15:29:34 2776] DEBUG (DevController:144) Waiting for 5632.
[2009-08-14 15:29:34 2776] DEBUG (DevController:629) hotplugStatusCallback
/local/domain/0/backend/vbd/8/5632/hotplug-status.
[2009-08-14 15:29:34 2776] DEBUG (DevController:629) hotplugStatusCallback
/local/domain/0/backend/vbd/8/5632/hotplug-status.
[2009-08-14 15:29:34 2776] DEBUG (DevController:643) hotplugStatusCallback
1.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
irq.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
vkbd.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
vfb.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
console.
[2009-08-14 15:29:34 2776] DEBUG (DevController:144) Waiting for 0.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
pci.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
ioports.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
tap.
[2009-08-14 15:29:34 2776] DEBUG (DevController:139) Waiting for devices
vtpm.
[2009-08-14 15:29:35 2776] INFO (XendDomain:1180) Domain windows (8)
unpaused.

-----Original Message-----
From: Tait Clarridge [mailto:Tait.Clarridge@xxxxxxxxxxxx] 
Sent: Friday, August 14, 2009 3:14 PM
To: 'Robbie Garrett'; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] windows 2008 x64 no cdrom.

> -----Original Message-----
> From: Robbie Garrett [mailto:rgarrett@xxxxxxxxxxxxxx]
> Sent: Friday, August 14, 2009 3:07 PM
> To: Tait Clarridge; xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-users] windows 2008 x64 no cdrom.
> 
> Hello,
> 
> I have made the changed you requested and below is my config file.
> 
> I'm using xen 3.4.1 with kernel of 2.6.18.8-xen.  The problem is still
there
> for me.
> 
> import os, re
> arch = os.uname()[4]
> if re.search('64', arch):
>     arch_libdir = 'lib64'
> else:
>     arch_libdir = 'lib'
> 

The above code has sometimes caused some problems for us... remove it and
change the device_model line to have lib64 instead of lib in the path. First
verify that /usr/lib64/xen/bin/qemu-dm exists...

> 
> kernel = "/usr/lib/xen/boot/hvmloader"
> builder='hvm'
> memory = '1024'
> device_model = '/usr/lib/xen/bin/qemu-dm'
> 
> # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
> name = "windows"
> vif         = [ 'ip=204.124.181.89,mac=00:16:3E:FE:C2:02,vifname=windows'
]
> disk =
> ['file:/windows/xenwin2008.img,ioemu:hda,w','file:/windows/winxpSP2.is
> o,ioem
> u:hdc:cdrom,r']
>
#---------------------------------------------------------------------------
> --
> # boot on floppy (a), hard disk (c) or CD-ROM (d)
> # default: hard disk, cd-rom, floppy
> boot="dc"
> sdl=0
> vnc=1
> vncconsole=1

Try removing both the above and below lines as well...

> vncpasswd=''
> 
> #serial='pty'
> usbdevice='tablet'
> 
> acpi=1
> apic=1
> pae=1
> usb=1

Try removing the viridian=1 line as well.

> viridian=1

Are there any log entries from qemu-dm or xend that say anything about
missing files?





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