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: "John R. Shannon" <john@xxxxxxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 09:12:25 -0600
Cc: Marco Milanesi <kpanic@xxxxxxxxxxxxxx>
Delivery-date: Mon, 31 Jul 2006 08:14:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Organization: DSCI
References: <20060731150511.GD19934@xxxxxxxxxxxx>
Reply-to: john@xxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.3
Quick guess - you need an initrd. CentOS uses a device filesystem.

Try adding something like:

ramdisk = "/boot/initrd-2.6.11.12-xenU.img"

to your configuration file.

On Monday 31 July 2006 09:05, Marco Milanesi wrote:
> 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-ima
>ges/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=gener
>ic,PT_MODE_WRITABLE' ERROR: Error constructing guest OS
>
> what I'm doing wrong?
>
> (sorry for long paste)
>
> thanks in advance
>
> ciao,
> Marco

-- 
John R. Shannon, CISSP
john@xxxxxxxxxxxxxxxx
jshannon@xxxxxxxxxxxx
john.r.shannon@xxxxxxxxxxx
shannonjr@xxxxxxxxxx

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