Hi,
need help with koan when I use hvm virt type.
On cobbler server I launch following commands:
cobbler system add --name=virttest --mac=[mac address of eth0 on cobbler
server] --profile=Centos5-x86_64 --virt-type=xenfv
cobbler sync
Then on client I launch this command:
koan --server=[IP address of eth0 on cobbler server] --virt --nogfx
--system=virttest --virt-name=vm02
I can see this:
- looking for Cobbler at
http://192.168.0.52/cobbler_api
- reading URL:
http://192.168.0.52/cblr/svc/op/ks/system/virttest
install_tree:
http://192.168.0.52/cblr/links/Centos5-x86_64
libvirtd (pid 2531) en cours d'exécution...
Fri, 28 Jan 2011 18:36:43 DEBUG No conn passed to Guest, opening URI
'None'
- fullvirt mode
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
Fri, 28 Jan 2011 18:36:43 DEBUG Generated install XML:
<domain type='xen'>
<name>vm02</name>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<uuid>dd4fa136-5f95-0872-a4d6-e6c7f3c82243</uuid>
<os>
<type>linux</type>
<boot dev='network'/>
<boot dev='hd'/>
</os>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<vcpu>1</vcpu>
<devices>
<disk type='file' device='disk'>
<driver name='tap'/>
<source file='/var/lib/xen/images/vm02-disk0'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<source bridge='xenbr0'/>
<mac address='00:13:72:52:D6:DC'/>
</interface>
<input type='mouse' bus='xen'/>
</devices>
</domain>
Fri, 28 Jan 2011 18:36:43 DEBUG Generated boot XML:
<domain type='xen'>
<name>vm02</name>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<uuid>dd4fa136-5f95-0872-a4d6-e6c7f3c82243</uuid>
<bootloader>/usr/bin/pygrub</bootloader>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<vcpu>1</vcpu>
<devices>
<disk type='file' device='disk'>
<driver name='tap'/>
<source file='/var/lib/xen/images/vm02-disk0'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<source bridge='xenbr0'/>
<mac address='00:13:72:52:D6:DC'/>
</interface>
<input type='mouse' bus='xen'/>
</devices>
</domain>
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
libvir: Xen Daemon error : POST operation failed: xend_post: error from
xen daemon: (xend.err 'Error creating domain: coercing to Unicode: need
string or buffer, NoneType found')
libvirt.libvirtError
POST operation failed: xend_post: error from xen daemon: (xend.err
'Error creating domain: coercing to Unicode: need string or buffer,
NoneType found')
File "/usr/lib/python2.4/site-packages/koan/app.py", line 225, in main
k.run()
File "/usr/lib/python2.4/site-packages/koan/app.py", line 356, in run
self.virt()
File "/usr/lib/python2.4/site-packages/koan/app.py", line 675, in virt
return self.net_install(after_download)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 594, in
net_install
after_download(self, profile_data)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 673, in
after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 1157, in
virt_net_install
qemu_driver_type = self.qemu_disk_type
File "/usr/lib/python2.4/site-packages/koan/xencreate.py", line 190,
in start_install
guest.start_install()
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line
1193, in start_install
start_xml, final_xml, is_initial)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line
1252, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 974, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
/var/log/xend.log shows:
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:207) XendDomainInfo.create(['vm', ['name',
'vm02'],
['memory', '512'], ['maxmem', '512'], ['vcpus',
'1'], ['uuid',
'dd4fa136-5f95-0872-a4d6-e6c7f3c82243'], ['on_poweroff',
'destroy'],
['on_reboot', 'destroy'], ['on_crash', 'destroy'],
['image', ['linux']],
['device', ['tap', ['dev', 'xvda'], ['uname',
'tap:aio:/var/lib/xen/images/vm02-disk0'], ['mode', 'w']]],
['device',
['vif', ['mac', '00:13:72:52:d6:dc'], ['bridge',
'xenbr0'], ['script',
'vif-bridge']]]])
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:329) parseConfig: config is ['vm', ['name',
'vm02'],
['memory', '512'], ['maxmem', '512'], ['vcpus',
'1'], ['uuid',
'dd4fa136-5f95-0872-a4d6-e6c7f3c82243'], ['on_poweroff',
'destroy'],
['on_reboot', 'destroy'], ['on_crash', 'destroy'],
['image', ['linux']],
['device', ['tap', ['dev', 'xvda'], ['uname',
'tap:aio:/var/lib/xen/images/vm02-disk0'], ['mode', 'w']]],
['device',
['vif', ['mac', '00:13:72:52:d6:dc'], ['bridge',
'xenbr0'], ['script',
'vif-bridge']]]]
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:446) parseConfig: result is {'features': None, 'image':
['linux'], 'cpus': None, 'vcpu_avail': None, 'backend':
[], 'uuid':
'dd4fa136-5f95-0872-a4d6-e6c7f3c82243', 'on_reboot': 'destroy',
'cpu_weight': None, 'memory': 512, 'cpu_cap': None,
'localtime': None,
'timer_mode': None, 'start_time': None, 'on_poweroff':
'destroy',
'on_crash': 'destroy', 'device': [('tap', ['tap',
['dev', 'xvda'],
['uname', 'tap:aio:/var/lib/xen/images/vm02-disk0'], ['mode',
'w']]),
('vif', ['vif', ['mac', '00:13:72:52:d6:dc'],
['bridge', 'xenbr0'],
['script', 'vif-bridge']])], 'bootloader': None, 'maxmem':
512,
'shadow_memory': None, 'name': 'vm02', 'bootloader_args':
None, 'vcpus':
1, 'cpu': None}
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:1784) XendDomainInfo.construct: None
[2011-01-28 18:36:43 xend 2866] DEBUG (balloon:145) Balloon: 524404 KiB
free; need 4096; done.
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:1953) XendDomainInfo.initDomain: 15 256
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:1994) _initDomain:shadow_memory=0x0, maxmem=0x200,
memory=0x200.
[2011-01-28 18:36:43 xend 2866] DEBUG (balloon:145) Balloon: 524396 KiB
free; need 524288; done.
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] ERROR
(XendDomainInfo:219) Domain construction failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 212, in create
vm.initDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 2019, in initDomain
channel_details = self.image.createImage()
File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line
122, in createImage
return self.createDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line
130, in createDomain
if not os.path.isfile(self.kernel):
File "/usr/lib64/python2.4/posixpath.py", line 208, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:2189) XendDomainInfo.destroy: domid=15
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:2114) UUID Created: False
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:2115) Devices to release: [], domid = 15
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:2119) Releasing PVFB front-end devices (uuid not created)...
[2011-01-28 18:36:43 xend.XendDomainInfo 2866] DEBUG
(XendDomainInfo:2127) Releasing PVFB backend devices ...
[2011-01-28 18:36:43 xend 2866] ERROR (SrvBase:88) Request create failed.
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/web/SrvBase.py", line
85, in perform
return op_method(op, req)
File
"/usr/lib64/python2.4/site-packages/xen/xend/server/SrvDomainDir.py",
line 82, in op_create
raise XendError("Error creating domain: " + str(ex))
XendError: Error creating domain: coercing to Unicode: need string or
buffer, NoneType found
/var/log/xend-debug.log shows:
Traceback (most recent call last):
File
"/usr/lib64/python2.4/site-packages/xen/xend/server/SrvDomainDir.py",
line 77, in op_create
dominfo = self.xd.domain_create(config)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py",
line 243, in domain_create
dominfo = XendDomainInfo.create(config)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 212, in create
vm.initDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 2019, in initDomain
channel_details = self.image.createImage()
File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line
122, in createImage
return self.createDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line
130, in createDomain
if not os.path.isfile(self.kernel):
File "/usr/lib64/python2.4/posixpath.py", line 208, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
When I try to install guest vm directly from xen xm command there's no
problems ....
I try to solve this for two days, can't find anything that help me !
Client versions:
from rpm:
kernel-xen-2.6.18-194.32.1.el5
xen-libs-3.0.3-105.el5_5.5
xen-libs-3.0.3-105.el5_5.5
xen-3.0.3-105.el5_5.5
libvirt-python-0.6.3-33.el5_5.3
libvirt-0.6.3-33.el5_5.3
python-2.4.3-27.el5_5.3
libvirt-python-0.6.3-33.el5_5.3
koan-2.0.9-1.el5
from sources:
virtinst-0.500.5 (try with rpm version: same issue)
Cobbler server version:
cobbler-2.0.9-1.el5
cobbler-web-2.0.9-1.el5
What is wrong ? Anyone can help me to solve this ?
Thanks in advance.
Djill