Hi, experts, I followed the steps in http://www.opensolaris.org/os/community/xen/docs/windows.guest.html to create my DomU for windows. # xm create winxp.hvm Using config file "./winxp.hvm". Error: # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 468 2 r----- 332.8 While the "Error:" message output is empty, seems that it failed to create my DomU. And the dmesg output is here: Oct 23 10:02:27 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,5632 (xdb0) online Oct 23 10:02:27 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,768 (xdb1) online Oct 23 10:02:28 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xnb@3,0 (xnbe0) online Oct 23 10:02:34 iwork-yongsun vnic: [ID 901103 kern.warning] WARNING: vnic_dev_create failed with 48 Oct 23 10:02:34 iwork-yongsun syseventconfd[865]: [ID 898775 daemon.error] process 1246 exited with status 1 Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,5632 (xdb0) offline Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,768 (xdb1) offline Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xnb@3,0 (xnbe0) offline Oct 23 10:02:45 iwork-yongsun syseventconfd[865]: [ID 898775 daemon.error] process 1261 exited with status 1 Do you know what''s my problem here? Regards, This message posted from opensolaris.org
interesting, if I use "xm new winxp.hvm" to create the domain then use "xm start" it, it would be up and running. # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 468 2 r----- 1068.9 winxp 4 512 1 --p--- 0.0 But I cannot use vncview to connect the console :( # /opt/csw/bin/vncviewer :0 /opt/csw/bin/vncviewer: ConnectToTcpAddr: connect: Connection refused Unable to connect to VNC server Regards, Yong Sun wrote:> Hi, experts, > > I followed the steps in http://www.opensolaris.org/os/community/xen/docs/windows.guest.html to create my DomU for windows. > > # xm create winxp.hvm > Using config file "./winxp.hvm". > Error: > > # xm list > Name ID Mem VCPUs State Time(s) > Domain-0 0 468 2 r----- 332.8 > > While the "Error:" message output is empty, seems that it failed to create my DomU. > > And the dmesg output is here: > > Oct 23 10:02:27 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,5632 (xdb0) online > Oct 23 10:02:27 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,768 (xdb1) online > Oct 23 10:02:28 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xnb@3,0 (xnbe0) online > Oct 23 10:02:34 iwork-yongsun vnic: [ID 901103 kern.warning] WARNING: vnic_dev_create failed with 48 > Oct 23 10:02:34 iwork-yongsun syseventconfd[865]: [ID 898775 daemon.error] process 1246 exited with status 1 > Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,5632 (xdb0) offline > Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,768 (xdb1) offline > Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xnb@3,0 (xnbe0) offline > Oct 23 10:02:45 iwork-yongsun syseventconfd[865]: [ID 898775 daemon.error] process 1261 exited with status 1 > > Do you know what''s my problem here? > > Regards, > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >
Yong Sun wrote:> interesting, if I use "xm new winxp.hvm" to create the domain then use > "xm start" it, it would be up and running. > > # xm list > Name ID Mem VCPUs State > Time(s) > Domain-0 0 468 2 r----- 1068.9 > winxp 4 512 1 --p--- 0.0Strange, it''s paused... # xm unpause winxp> But I cannot use vncview to connect the console :( > > # /opt/csw/bin/vncviewer :0 > /opt/csw/bin/vncviewer: ConnectToTcpAddr: connect: Connection refused > Unable to connect to VNC serverTo see what vnc display it''s using # virsh vncdisplay winxp or xm list -l winxp MRJ> Regards, > > Yong Sun wrote: >> Hi, experts, >> >> I followed the steps in http://www.opensolaris.org/os/community/xen/docs/windows.guest.html to create my DomU for windows. >> >> # xm create winxp.hvm >> Using config file "./winxp.hvm". >> Error: >> >> # xm list >> Name ID Mem VCPUs State Time(s) >> Domain-0 0 468 2 r----- 332.8 >> >> While the "Error:" message output is empty, seems that it failed to create my DomU. >> >> And the dmesg output is here: >> >> Oct 23 10:02:27 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,5632 (xdb0) online >> Oct 23 10:02:27 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,768 (xdb1) online >> Oct 23 10:02:28 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xnb@3,0 (xnbe0) online >> Oct 23 10:02:34 iwork-yongsun vnic: [ID 901103 kern.warning] WARNING: vnic_dev_create failed with 48 >> Oct 23 10:02:34 iwork-yongsun syseventconfd[865]: [ID 898775 daemon.error] process 1246 exited with status 1 >> Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,5632 (xdb0) offline >> Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xdb@3,768 (xdb1) offline >> Oct 23 10:02:45 iwork-yongsun genunix: [ID 408114 kern.info] /xpvd/xnb@3,0 (xnbe0) offline >> Oct 23 10:02:45 iwork-yongsun syseventconfd[865]: [ID 898775 daemon.error] process 1261 exited with status 1 >> >> Do you know what''s my problem here? >> >> Regards, >> >> >> This message posted from opensolaris.org >> _______________________________________________ >> xen-discuss mailing list >> xen-discuss@opensolaris.org >> > > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org-- Mark Johnson <mark.johnson@sun.com> Sun Microsystems, Inc. (781) 442-0869
Hi, MGR, After I unpause the winxp domain, the xm list shows as following, #xm list Name ID Mem VCPUs State Time(s) Domain-0 0 468 2 r----- 1068.9 winxp 4 512 1 ------ 0.0 And the output of "virsh vncdisplay winxp" is just a blank line. Seems that my winxp domain does not boot. Regards, This message posted from opensolaris.org
And I got the following error when I create or start my winxp domain,
[2007-10-23 19:52:05 xend 614] DEBUG (DevController:575) hotplugStatusCallback
2.
[2007-10-23 19:52:05 xend 614] DEBUG (DevController:549) destroyCallback
/local/domain/6/device/vif/0.
[2007-10-23 19:52:15 xend 614] ERROR (xmlrpclib2:218)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
197, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in
_dispatch
return func(*params)
File "<string>", line 1, in <lambda>
File
"/usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py",
line 52, in dispatch
return getattr(info, fn)(*args)
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 518, in waitForDevices
self.getDeviceController(devclass).waitForDevices()
File
"/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py",
line 150, in waitForDevices
return map(self.waitForDevice, self.deviceIDs())
File
"/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py",
line 165, in waitForDevice
self.destroyDevice(devid, False)
File
"/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py",
line 237, in destroyDevice
raise EnvironmentError
EnvironmentError
[2007-10-23 19:52:15 xend.XendDomainInfo 614] DEBUG (XendDomainInfo:1519)
XendDomainInfo.destroy: domid=6
[2007-10-23 19:52:15 xend.XendDomainInfo 614] DEBUG (XendDomainInfo:1527)
XendDomainInfo.destroyDomain(6)
[2007-10-23 19:52:16 xend 614] DEBUG (image:547) hvm shutdown watch unregistered
[2007-10-23 19:52:16 xend 614] DEBUG (image:586) hvm reboot feature watch
unregistered
[2007-10-23 19:52:16 xend 614] DEBUG (DevController:549) destroyCallback
/local/domain/6/device/vif/0.
[2007-10-23 19:52:16 xend 614] DEBUG (DevController:557) destroyCallback
/local/domain/6/device/vif/0 is destroyed
This message posted from opensolaris.org
Yong Sun wrote:> Hi, MGR, > > After I unpause the winxp domain, the xm list shows as following, > > #xm list > Name ID Mem VCPUs State Time(s) > Domain-0 0 468 2 r----- 1068.9 > winxp 4 512 1 ------ 0.0 > > And the output of "virsh vncdisplay winxp" is just a blank line. > > Seems that my winxp domain does not boot.Can you send the output of dladm show-link? Also, what does your py file look like? Do you see any errors in the log files in /var/log/xen/* Look at the most recent qemu-dm.* and the end of xend.log, xpvd-event.log, and xend-debug.log MRJ -- Mark Johnson <mark.johnson@sun.com> Sun Microsystems, Inc. (781) 442-0869
Here is my winxp.hvm configuration file,
# cat winxp.hvm
disk = [ ''file:/datapool/vms/winxp/winxp-disk.raw,hdc,w'',
''phy:/dev/dsk/c1t0d0s2,hda:cdrom,r'']
memory = 512
name = "winxp"
kernel = "/usr/lib/xen/boot/hvmloader"
builder=''hvm''
vif = [ ''type=ioemu'' ]
on_poweroff = ''destroy''
on_reboot = ''restart''
on_crash = ''preserve''
boot=''d''
vnc=1
vnclisten="0.0.0.0"
vncpasswd=''''
serial=''null''
usb=1
usbdevice="tablet"
import os, re
arch = os.uname()[4]
if re.search(''64'', arch):
arch_libdir = ''lib64''
else:
arch_libdir = ''lib''
device_model = ''/usr/'' + arch_libdir +
''/xen/bin/qemu-dm''
And various logs:
# cat qemu-dm.1131.log
domid: 1
qemu: the number of cpus is 1
net_tap_get_nic: timeout waiting for hotplug at
/local/domain/0/backend/vif/1/0/hotplug-status
net_tap_init: nic = NULL, setphysaddr = 0
Could not initialize device ''tap''
# tail -20 xpvd-event.log
+ [ -x /usr/lib/xen/scripts/vbd-event ]
+ exec /usr/lib/xen/scripts/vbd-event path=backend/vbd/1/768
action=remove domain=1 vdev=768 device=xdb1 devclass=vbd febe=backend
+ eval path=backend/vif/1/0 action=remove domain=1 vdev=0 device=xnbe0
devclass=vif febe=backend
febe=backend devclass=vif device=xnbe0 vdev=0 domain=1 action=remove
path=backend/vif/1/0
+ eval path=backend/vbd/1/768 action=remscript=/usr/lib/xen/scripts/vif-vnic
+ [ -x /usr/lib/xen/scripts/vif-vnic ]
XENBUS_PATH=backend/vif/1/0 vif=xnbe0
+ export vif XENBUS_PATH
+ exec /usr/lib/xen/scripts/vif-vnic remove
8/frontend
+ xenstore-rm -t /local/domain/1/device/vbd/768
+ xenstore-rm -t backend/vbd/1/768
+ exit
nstore-read backend/vif/1/0/nic
xenstore-read: couldn''t read path backend/vif/1/0/nic
vnic+ [ -z ]
+ echo Cannot read NIC from backend/vif/1/0/nic.
Cannot read NIC from backend/vif/1/0/nic.
+ exit 1
# tail -25 xend.log
[2007-10-23 20:16:32 xend 820] DEBUG (DevController:549) destroyCallback
/local/domain/1/device/vif/0.
[2007-10-23 20:16:42 xend 820] ERROR (xmlrpclib2:218)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
197, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in
_dispatch
return func(*params)
File "<string>", line 1, in <lambda>
File
"/usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py",
line
52, in dispatch
return getattr(info, fn)(*args)
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 518, in waitForDevices
self.getDeviceController(devclass).waitForDevices()
File
"/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py",
line 150, in waitForDevices
return map(self.waitForDevice, self.deviceIDs())
File
"/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py",
line 165, in waitForDevice
self.destroyDevice(devid, False)
File
"/usr/lib/python2.4/site-packages/xen/xend/server/DevController.py",
line 237, in destroyDevice
raise EnvironmentError
EnvironmentError
[2007-10-23 20:16:43 xend.XendDomainInfo 820] DEBUG
(XendDomainInfo:1519) XendDomainInfo.destroy: domid=1
[2007-10-23 20:16:43 xend.XendDomainInfo 820] DEBUG
(XendDomainInfo:1527) XendDomainInfo.destroyDomain(1)
[2007-10-23 20:16:43 xend 820] DEBUG (image:547) hvm shutdown watch
unregistered
[2007-10-23 20:16:43 xend 820] DEBUG (image:586) hvm reboot feature
watch unregistered
[2007-10-23 20:16:43 xend 820] DEBUG (DevController:549) destroyCallback
/local/domain/1/device/vif/0.
[2007-10-23 20:16:43 xend 820] DEBUG (DevController:557) destroyCallback
/local/domain/1/device/vif/0 is destroyed
Regards,
Mark Johnson wrote:>
>
> Yong Sun wrote:
>> Hi, MGR,
>>
>> After I unpause the winxp domain, the xm list shows as following,
>>
>> #xm list
>> Name ID Mem VCPUs State Time(s)
>> Domain-0 0 468 2 r----- 1068.9
>> winxp 4 512 1 ------ 0.0
>>
>> And the output of "virsh vncdisplay winxp" is just a blank
line.
>>
>> Seems that my winxp domain does not boot.
>
> Can you send the output of dladm show-link?
>
> Also, what does your py file look like?
>
> Do you see any errors in the log files in
> /var/log/xen/*
>
> Look at the most recent qemu-dm.*
>
> and the end of xend.log, xpvd-event.log, and
> xend-debug.log
>
>
>
>
> MRJ
>
>
>
If I comment out the "vif = [xxx]" line in the .hvm file, it could boot sucessfully. And seems that virt-install can not work on build 75a. When I try to use virt-install to install my windows domain, # virt-install -n winxp --hvm -r 512--vnc -f /export/winxp/root.img -s 16 -c /windows/media.iso I got following errors: libvir: Xen Daemon error : POST operation failed: (xend.err) Traceback (most recent call last): ... ... libvirt.libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err) :( This message posted from opensolaris.org
Oh, I found the root cause, I need set the config/default-nic property for xend service. Thanks every one for the kindly help :) Regards, Yong Sun 写道:> If I comment out the "vif = [xxx]" line in the .hvm file, it could boot sucessfully. And seems that virt-install can not work on build 75a. When I try to use virt-install to install my windows domain, > > # virt-install -n winxp --hvm -r 512--vnc > -f /export/winxp/root.img -s 16 -c /windows/media.iso > > I got following errors: > > libvir: Xen Daemon error : POST operation failed: (xend.err) > Traceback (most recent call last): > ... ... > libvirt.libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err) > > :( > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >_______________________________________________ xen-discuss mailing list xen-discuss@opensolaris.org