hi,
I followed http://mark.foster.cc/wiki/index.php/Centos-4_on_Xen and
populated the image with centos' packages downloaded from the net.
my config file in /etc/xen is centos, so /etc/xen/centos contains:
kernel = "/boot/vmlinuz-2.6.11-xenU"
memory = 96
name = "centos"
dhcp = "dhcp"
disk = [
'file:/home/kpanic/xen-images/centos.img,sdb1,w','file:/home/kpanic/xen-images/centos-swap.img,sdb1,w'
]
# or if you use LVM
# disk = [ 'phy:/dev/vg01/vol01,sdb1,w','phy:/dev/vg01/vol02,sdb2,w' ]
root = "/dev/sdb1 ro"
but when I try to:
# xm create -c centos
I obtain:
Using config file "/etc/xen/centos".
Error: (22, 'Invalid argument')
here is the paste of /var/log/xend.log:
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:178)
XendDomainInfo.create(['vm', ['name', 'centos'], ['memory', 96], ['vcpus', 1],
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.11-xenU'], ['ip',
':1.2.3.4::::eth0:dhcp'], ['root', '/dev/sdb1 ro']]], ['device', ['vbd',
['uname', 'file:/home/kpanic/xen-images/centos.img'], ['dev', 'sdb1'], ['mode',
'w']]], ['device', ['vbd', ['uname',
'file:/home/kpanic/xen-images/centos-swap.img'], ['dev', 'sdb1'], ['mode',
'w']]]])
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
parseConfig: config is ['vm', ['name', 'centos'], ['memory', 96], ['vcpus', 1],
['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.11-xenU'], ['ip',
':1.2.3.4::::eth0:dhcp'], ['root', '/dev/sdb1 ro']]], ['device', ['vbd',
['uname', 'file:/home/kpanic/xen-images/centos.img'], ['dev', 'sdb1'], ['mode',
'w']]], ['device', ['vbd', ['uname',
'file:/home/kpanic/xen-images/centos-swap.img'], ['dev', 'sdb1'], ['mode',
'w']]]]
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:380)
parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None,
'on_reboot': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.11-xenU'],
['ip', ':1.2.3.4::::eth0:dhcp'], ['root', '/dev/sdb1 ro']], 'on_poweroff':
None, 'cpus': None, 'name': 'centos', 'backend': [], 'vcpus': 1, 'cpu_weight':
None, 'vcpu_avail': None, 'memory': 96, 'device': [('vbd', ['vbd', ['uname',
'file:/home/kpanic/xen-images/centos.img'], ['dev', 'sdb1'], ['mode', 'w']]),
('vbd', ['vbd', ['uname', 'file:/home/kpanic/xen-images/centos-swap.img'],
['dev', 'sdb1'], ['mode', 'w']])],
'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164)
XendDomainInfo.construct: None 0
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196)
XendDomainInfo.initDomain: 23 1.0
[2006-07-31 16:55:44 xend] DEBUG (balloon:128) Balloon: free 97; need 97; done.
[2006-07-31 16:55:44 xend] INFO (image:135) buildDomain os=linux dom=23 vcpus=1
[2006-07-31 16:55:44 xend] DEBUG (image:173) dom = 23
[2006-07-31 16:55:44 xend] DEBUG (image:174) image =
/boot/vmlinuz-2.6.11-xenU
[2006-07-31 16:55:44 xend] DEBUG (image:175) store_evtchn = 1
[2006-07-31 16:55:44 xend] DEBUG (image:176) console_evtchn = 2
[2006-07-31 16:55:44 xend] DEBUG (image:177) cmdline =
ip=:1.2.3.4::::eth0:dhcp root=/dev/sdb1 ro
[2006-07-31 16:55:44 xend] DEBUG (image:178) ramdisk =
[2006-07-31 16:55:44 xend] DEBUG (image:179) vcpus = 1
[2006-07-31 16:55:44 xend] DEBUG (image:180) features =
[2006-07-31 16:55:44 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain
construction failed
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183,
in create
vm.initDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line
1225, in initDomain
channel_details = self.image.createImage()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in
createImage
return self.createDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in
createDomain
result = self.buildDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in
buildDomain
features = self.features)
error: (22, 'Invalid argument')
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327)
XendDomainInfo.destroy: domid=23
[2006-07-31 16:55:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335)
XendDomainInfo.destroyDomain(23)
[2006-07-31 16:55:44 xend] ERROR (xmlrpclib2:124) (22, 'Invalid argument')
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", line 103, in
_marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch
return func(*params)
File "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", line
63, in domain_create
info = XendDomain.instance().domain_create(config)
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 227, in
domain_create
dominfo = XendDomainInfo.create(config)
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183,
in create
vm.initDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line
1225, in initDomain
channel_details = self.image.createImage()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in
createImage
return self.createDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in
createDomain
result = self.buildDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in
buildDomain
features = self.features)
error: (22, 'Invalid argument')
and /var/log/xend-debug.log:
ERROR: Will only load images built for Xen v3.0
ERROR: Actually saw:
'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE'
ERROR: Error constructing guest OS
what I'm doing wrong?
(sorry for long paste)
thanks in advance
ciao,
Marco
--
,= ,-_-. =. ------------------------------------------------------- +
((_/)o o(\_)) jabber:kpanic@xxxxxxxxxxxxxxx/msn:kpanic@xxxxxxxxxxxxxx |
`-'(. .)`- #muppetslab@xxxxxxxxxxxxxxxx |
\_/ If it works, it's obsolete |
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|