Just an update now that I finished my look around through libvirt xenppc
support.
working
*monitor load
*remove network interface
*remove hard disk
*access serial console
*define existing xen domains from/to xml file (virsh works
virt-manager has no interface for that)
*run/shutdown domains
partially working
*add network device (work but cause a libvirt bug afterwards)
*add hard disk (work but cause a libvirt bug afterwards)
not working
*sometimes xend hangs and only /etc/init.d/xend restart helps,
there are tracebacks in xend.log
*change number of cpu's
*create virtual network (libvirt bug)
BTW - here iss a small howto for getting existing domains that run with
"xm" to get managed by libvirt:
1. start domain(s) with xm create
2. use virsh dumxml DOMAINNAME
3. store the output in a xml file
4. virsh define XMLFILENAME
Now domains appear in virsh and virt-manager (=libvirt) even if they are
off and can be started via that management tools.
Currently I have no plan to debug the few failing scenarios, so atm just
for documentation reasons the xend & libvirt tracebacks that I found:
XEND
Sometimes:
[2007-08-04 00:04:28 8383] ERROR (XendConfig:925) dumping sxp from
device controllers
Traceback (most recent call last):
File "//usr/lib/python/xen/xend/XendConfig.py", line 911, in to_sxp
configs = controller.configurations()
File "//usr/lib/python/xen/xend/server/DevController.py", line 229, in
configurations
return map(self.configuration, self.deviceIDs())
File "//usr/lib/python/xen/xend/server/DevController.py", line 236, in
configuration
configDict = self.getDeviceConfiguration(devid)
File "//usr/lib/python/xen/xend/server/ConsoleController.py", line 23,
in getDeviceConfiguration
result = DevController.getDeviceConfiguration(self, devid)
File "//usr/lib/python/xen/xend/server/DevController.py", line 270, in
getDeviceConfiguration
raise VmError("Device %s not connected" % devid)
VmError: Device 0 not connected
Rare:
[2007-08-04 00:03:12 8383] ERROR (SrvBase:88) Request shutdown failed.
Traceback (most recent call last):
File "//usr/lib/python/xen/web/SrvBase.py", line 85, in perform
return op_method(op, req)
File "//usr/lib/python/xen/xend/server/SrvDomain.py", line 65, in
op_shutdown
return self.dom.shutdown(req.args['reason'][0])
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 447, in shutdown
raise XendError('Domain cannot be shutdown')
XendError: Domain cannot be shutdown
VIRT-MANAGE&LIBVIRT
Adding network card:
pbclient4:~ # virt-manager
libvir: Xen Daemon error : POST operation failed: (xend.err "Error
creating domain: VM name 'SLES10_G2' already exists as domain 3")
Failed to create inactive domain SLES10_G2
Traceback (most recent call last):
File "/usr/local/share/virt-manager/virtManager/addhardware.py", line
305, in finish
self.add_network()
File "/usr/local/share/virt-manager/virtManager/addhardware.py", line
340, in add_network
self.vm.add_device(xml)
File "/usr/local/share/virt-manager/virtManager/domain.py", line 547,
in add_device
self.get_connection().define_domain(newxml)
File "/usr/local/share/virt-manager/virtManager/connection.py", line
267, in define_domain
self.vmm.defineXML(xml)
File "/usr/local/lib/python2.5/site-packages/libvirt.py", line 519, in
defineXML
if ret is None:raise libvirtError('virDomainDefineXML() failed',
conn=self)
libvirt.libvirtError: virDomainDefineXML() failed POST operation failed:
(xend.err "Error creating domain: VM name 'SLES10_G2' already exists
as domain 3")
Adding Disk:
libvir: Xen Daemon error : POST operation failed: (xend.err "Error
creating domain: VM name 'SLES10_G2' already exists as domain 3")
Failed to create inactive domain SLES10_G2
Traceback (most recent call last):
File "/usr/local/share/virt-manager/virtManager/addhardware.py", line
307, in finish
self.add_storage()
File "/usr/local/share/virt-manager/virtManager/addhardware.py", line
389, in add_storage
self.vm.add_device(xml)
File "/usr/local/share/virt-manager/virtManager/domain.py", line 547,
in add_device
self.get_connection().define_domain(newxml)
File "/usr/local/share/virt-manager/virtManager/connection.py", line
267, in define_domain
self.vmm.defineXML(xml)
File "/usr/local/lib/python2.5/site-packages/libvirt.py", line 519, in
defineXML
if ret is None:raise libvirtError('virDomainDefineXML() failed',
conn=self)
libvirt.libvirtError: virDomainDefineXML() failed POST operation failed:
(xend.err "Error creating domain: VM name 'SLES10_G2' already exists
as domain 3")
Adding virtual network:
libvir: error : library call virNetworkDefineXML failed, possibly not
supported
Traceback (most recent call last):
File "/usr/local/share/virt-manager/virtManager/createnet.py", line
297, in finish
self.conn.create_network(xml)
File "/usr/local/share/virt-manager/virtManager/connection.py", line
256, in create_network
net = self.vmm.networkDefineXML(xml)
File "/usr/local/lib/python2.5/site-packages/libvirt.py", line 570, in
networkDefineXML
if ret is None:raise libvirtError('virNetworkDefineXML() failed',
conn=self)
libvirt.libvirtError: virNetworkDefineXML() failed library call
virNetworkDefineXML failed, possibly not supported
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
+49 7031/16-3385
Ehrhardt@xxxxxxxxxxxxxxxxxx
Ehrhardt@xxxxxxxxxx
IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|