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] Trying to run centos4.3 on xen under debian unstable

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Trying to run centos4.3 on xen under debian unstable
From: "James Miller" <jimm@xxxxxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 10:12:23 -0500
Delivery-date: Mon, 31 Jul 2006 08:13:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <20060731150511.GD19934@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: jimm@xxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx]On Behalf Of Marco
> Milanesi
> Sent: Monday, July 31, 2006 10:05 AM
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] Trying to run centos4.3 on xen under debian
> unstable
>
>
> 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/kpani
> c/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,LOA
> DER=generic,PT_MODE_WRITABLE'
> ERROR: Error constructing guest OS
>
> what I'm doing wrong?
>


I'm not sure if you have a type-O or not but you have both file images as
sdb1


'file:/home/kpanic/xen-images/centos.img,sdb1,w','file:/home/kpanic/xen-imag
es/centos-swap.img,sdb1,w' ]
                                       ^^^^^^^
^^^^^^^




--Jim


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