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] FC4 domU on FC5

To: Mito <mito@xxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] FC4 domU on FC5
From: "Andrew W." <andrewinet@xxxxxxxxx>
Date: Fri, 19 May 2006 00:04:10 -0400
Delivery-date: Thu, 18 May 2006 21:04:51 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=f1Y3ipTf7LbQi0cZ3abzNHpRaAm6Tw2ylY4JrcUCEWimG4smyUt9TnMv3VOH++4SnTlkYcW4NnW/CdWcZSE5d9wkZM7nvRtebPfoQr+nzXHGtHODsbMOKVYV9CtKGzoTjwqEOr8r75ewdv3OsY5I8hcNjq9pkMg4yM0UXdMoCMc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <003701c67ac8$e44542b0$03c8a8c0@PAPA>
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: <f5e6c2320605181150r6a9b66ebs3cfaa20468bc6cce@xxxxxxxxxxxxxx> <003701c67ac8$e44542b0$03c8a8c0@PAPA>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I realize that.  I was able to make it work by following the FC4 HOWTO.  My tragic flaw was using mismatched dom0 and domU kernels - they both need to be the same version.  Many thanks to Etienne Duguay for pointing this out to me off-list.
 
My only other problem currently is that no ethernet interface is being detected by my domU.  I can't find any documentation on this either.  Ideas?
 
-A

 
On 5/18/06, Mito <mito@xxxxxxxxxxxxx> wrote:

The problem with doing it that way is that the FC5 HowTo (and the included script) is only for FC5, it doesn't apply to, and doesn't work, with FC4.   This is because the FC4 boot-image isn't compatible with Xen, where the FC5 boot-image is.  I tried and tried and tried for 3 weeks to get it to work the "right" way, and then finally did it the way my cousin suggested I do it in the first place (the way that is outlined in my walkthrough).   If you want to do it via a walkthrough, you'll have to do half of it to the FC5 walkthrough (the dom0 half) and half with the FC4 walkthrough (the domU part).  BUT, that means, that you can't use that script to make your domU image for you… as that script was written to work with FC5.

 


From: Andrew W. [mailto: andrewinet@xxxxxxxxx]
Sent: Thursday, May 18, 2006 2:50 PM
To: Mito; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] FC4 domU on FC5

 

Thanks for the reply.  However, I'm trying to adhere as closely as possible to the original Fedora HOWTO.  One thing worth mentioning that I did leave out of my original post:  I'm using the built-in Xen package that comes with FC5, which can be activated using 'yum install kernel-xen0'.  Hope this helps.



 

On 5/18/06, Mito < mito@xxxxxxxxxxxxx> wrote:

Well look at it this day, this is either a crappy day for you, or your lucky day, depending on how good my documentation was.   I'm still very new with Xen, but I have been messing around with several different setups, and the most recent one is exactly what you just said you needed, a FC4 domU on a FC5 dom0.   And with luck, that's the one that I used to document the entire process so I could easily refer back to it later.

 

http://mitopia.net/index.php/Xen_3.0.2_Setup

 

It's not much of a site, literally my own notes that I made for myself, but hopefully you'll be able to make sense out of it too.

 

Also I noted in here how I got NAT to work through Xen.  I was going to post this in reply to a few NAT related questions once I'm sure I have all the bugs worked out of that, I'm still messing with the firewall rules.   The entire Xen setup is working perfectly though.

 

If anyone else who knows what they're doing with Xen could look through it and maybe give a few pointers or corrections that would be cool too.

 

Mito

 


From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Andrew W.
Sent: Thursday, May 18, 2006 1:46 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] FC4 domU on FC5

 

Hi all.  This has been mentioned once before on this list, with no resolution that I could find.  I'm trying to make a domU with FC4 running under a FC5 dom0.  Following the instructions located at http://www.fedoraproject.org/wiki/FedoraXenQuickstart , xen produces these errors:

 

[root@localhost xen]# xm create -c cpanel
Using config file "cpanel".
Error: Error creating domain: (22, 'Invalid argument')
[root@localhost xen]#
 

And from /var/log/xend.log:

 

[2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:177) XendDomainInfo.create(['vm', ['name', 'cpanel'], ['memory', '196'], ['vcpus', '1'], ['image', ['linux', ['kernel', '/boot/vmlinuz- 2.6.11-1.1369_FC4xenU' ], ['root', '/dev/sda1'], ['args', 'ro selinux=0 3']]], ['device', ['vbd', ['uname', 'file:/root/cpanel.img'], ['dev', 'sda1'], ['mode', 'w']]]])
[2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:283) parseConfig: config is ['vm', ['name', 'cpanel'], ['memory', '196'], ['vcpus', '1'], ['image', ['linux', ['kernel', '/boot/vmlinuz- 2.6.11-1.1369_FC4xenU'], ['root', '/dev/sda1'], ['args', 'ro selinux=0 3']]], ['device', ['vbd', ['uname', 'file:/root/cpanel.img'], ['dev', 'sda1'], ['mode', 'w']]]]
[2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:379) parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'image': ['linux', ['kernel', '/boot/vmlinuz- 2.6.11-1.1369_FC4xenU'], ['root', '/dev/sda1'], ['args', 'ro selinux=0 3']], 'on_poweroff': None, 'cpus': None, 'name': 'cpanel', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 196, 'device': [('vbd', ['vbd', ['uname', 'file:/root/cpanel.img'], ['dev', 'sda1'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1142) XendDomainInfo.construct: None 0
[2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1174) XendDomainInfo.initDomain: 13 1.0
[2006-05-17 23:41:50 xend] DEBUG (balloon:84) Balloon: free 618; need 197; done.
[2006-05-17 23:41:50 xend] INFO (image:135) buildDomain os=linux dom=13 vcpus=1
[2006-05-17 23:41:50 xend] DEBUG (image:173) dom            = 13
[2006-05-17 23:41:50 xend] DEBUG (image:174) image          = /boot/vmlinuz- 2.6.11-1.1369_FC4xenU
[2006-05-17 23:41:50 xend] DEBUG (image:175) store_evtchn   = 1
[2006-05-17 23:41:50 xend] DEBUG (image:176) console_evtchn = 2
[2006-05-17 23:41:50 xend] DEBUG (image:177) cmdline        =  root=/dev/sda1 ro selinux=0 3
[2006-05-17 23:41:50 xend] DEBUG (image:178) ramdisk        =
[2006-05-17 23:41:50 xend] DEBUG (image:179) vcpus          = 1
[2006-05-17 23:41:50 xend] DEBUG (image:180) features       =
[2006-05-17 23:41:50 xend.XendDomainInfo] ERROR (XendDomainInfo:189) Domain construction failed
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 182, in create
    vm.initDomain()
  File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1209, in initDomain
    channel_details = self.image.createImage()
  File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 118, in createImage
    return self.createDomain()
  File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 137, in createDomain
    result = self.buildDomain()
  File "/usr/lib/python2.4/site-packages/xen/xend/image.py", line 188, in buildDomain
    features       = self.features)
error: (22, 'Invalid argument')
[2006-05-17 23:41:50 xend.XendDomainInfo] DEBUG (XendDomainInfo:1290) XendDomainInfo.destroy: domid=13
[2006-05-17 23:41:50 xend.XendDomainInfo ] DEBUG (XendDomainInfo:1298) XendDomainInfo.destroyDomain(13)
[2006-05-17 23:41:50 xend] ERROR (SrvBase:87) Request create failed.
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/web/SrvBase.py", line 85, in perform
    return op_method(op, req)
  File "/usr/lib/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: (22, 'Invalid argument')

 

This is my conf file /etc/xen/cpanel :

 

[root@localhost xen]# cat /etc/xen/cpanel
kernel ="/boot/vmlinuz-2.6.11-1.1369_FC4xenU"
memory = 196
name = "cpanel"
disk = ['file:/root/cpanel.img,sda1,w']
root = "/dev/sda1"
extra = "ro selinux=0 3"

[root@localhost xen]#

I have tried this with both the kernel mentioned above, as well as the latest 2.6.13 kernel for FC4xenU.  Any suggestions would be appreciated.

-Andrew

 

 


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