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: Marco Milanesi <kpanic@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Trying to run centos4.3 on xen under debian unstable
From: tim Doyle <tim@xxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 09:30:27 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 31 Jul 2006 09:32:53 -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>
References: <20060731150511.GD19934@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Hi Marco.

>disk = [ 'file:/home/kpanic/xen-images/centos.img,sdb1,w','file:/home/kpanic/xen-images/centos-swap.img,sdb1,w' ]

It looks like both the centos.img and the centos-swap.img are being exported as sdb1.

Here is an example of config parameters for a file backed domain.

name="bob"
memory = 128
kernel = "/boot/vmlinuz-2.6.11-xenU"
disk = ['file:/home/bob/centos.img,sda1,w','file:/home/bob/centos-swap.img,sda2,w']
root = "/dev/sda1 ro"

-Tim



--
Timothy Doyle
CEO
Quantact Hosting Solutions, Inc.
tim@xxxxxxxxxxxx
http://www.quantact.com



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-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


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

<Prev in Thread] Current Thread [Next in Thread>