I have Xen running on a SuSE-based system with a couple SuSE-based guest domains. Now I''m trying to setup a guest domain based on CentOS 4.1. The instructions on the wiki suggest following the same instructions as for Fedora (http://wiki.xensource.com/xenwiki/DistributionSupport), but the instructions do not work as yum can not find any of the packages xen, kernel-xen0, or kernel-xenU. I posted a query to the CentOS mailing list and was told that Xen has never been part of CentOS and that I should recompile the kernel from the fedora core sources - I''m not sure about this advice... Can anyone tell me the easiest way to get a CentOS-based guest domain up? I guess I''m mostly interested in getting a precompiled xen-enabled kernel - would a kernel from either RHEL or Fedora work? Thanks! Kent _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kent Watsen wrote:> > I have Xen running on a SuSE-based system with a couple SuSE-based > guest domains. Now I''m trying to setup a guest domain based on CentOS > 4.1. The instructions on the wiki suggest following the same > instructions as for Fedora > (http://wiki.xensource.com/xenwiki/DistributionSupport), but the > instructions do not work as yum can not find any of the packages xen, > kernel-xen0, or kernel-xenU. I posted a query to the CentOS mailing > list and was told that Xen has never been part of CentOS and that I > should recompile the kernel from the fedora core sources - I''m not > sure about this advice...I''ve been running Centos 4.1 on top of Xen using the provided 2.6 kernel that comes with 2.0.7. Works just fine with Centos4.1 and RHEL4U1. Which version of Xen are you trying. Steve _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steven Ellis wrote:> I''ve been running Centos 4.1 on top of Xen using the provided 2.6 > kernel that comes with 2.0.7. Works just fine with Centos4.1 and RHEL4U1. > > Which version of Xen are you trying.Oh, this sounds very encouraging - I''m using the xen that comes with SuSE 9.3, which contains the following xen-related rpms: xen-doc-html-2.0.5c-4 xen-doc-ps-2.0.5c-4 kernel-xen-nongpl-2.6.11.4-20a kernel-xen-2.6.11.4-20a xen-doc-pdf-2.0.5c-4 xen-2.0.5c-4 As you probably already know, CentOS 4.1''s kernel''s version is 2.6.9-11... For fun, I tried to boot CentOS as a guest domain using the same config file I used for my SuSE-based guest domain before I moved it into LVM (I have a 2nd drive I''m using just for staging guest domains): kernel = "/boot/vmlinuz-xen" ramdisk = "/boot/initrd-xen" memory = 256 name = "CentOS" vif = [ ''mac=aa:cc:00:00:00:63, bridge=xen-br0'' ] disk = [ ''phy:hdb1,hdb1,w'', ''phy:hdb2,hdb2,w'' ] netmask="255.255.255.0" gateway="10.0.3.1" hostname= "centos" root = "/dev/hdb1 ro" extra = "3" But launching the guest domain this way led to a kernel panic. Could you be more specific regarding how you used the "provided 2.6 kernel" - did you copy a file into the guest''s filesystem? - which file did you copy? Thanks! Kent _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
[sorry if you get this twice - my server had an issue when I sent the first response a over an hour ago and it seems as if it was never delivered...] Steven Ellis wrote:> I''ve been running Centos 4.1 on top of Xen using the provided 2.6 > kernel that comes with 2.0.7. Works just fine with Centos4.1 and RHEL4U1. > > Which version of Xen are you trying.Oh, this sounds very encouraging - I''m using the xen that comes with SuSE 9.3, which contains the following xen-related rpms: xen-doc-html-2.0.5c-4 xen-doc-ps-2.0.5c-4 kernel-xen-nongpl-2.6.11.4-20a kernel-xen-2.6.11.4-20a xen-doc-pdf-2.0.5c-4 xen-2.0.5c-4 As you probably already know, CentOS 4.1''s kernel''s version is 2.6.9-11... For fun, I tried to boot CentOS as a guest domain using the same config file I used for my SuSE-based guest domain before I moved it into LVM (I have a 2nd drive I''m using just for staging guest domains): kernel = "/boot/vmlinuz-xen" ramdisk = "/boot/initrd-xen" memory = 256 name = "CentOS" vif = [ ''mac=aa:cc:00:00:00:63, bridge=xen-br0'' ] disk = [ ''phy:hdb1,hdb1,w'', ''phy:hdb2,hdb2,w'' ] netmask="255.255.255.0" gateway="10.0.3.1" hostname= "centos" root = "/dev/hdb1 ro" extra = "3" But launching the guest domain this way led to a kernel panic. Could you be more specific regarding how you used the "provided 2.6 kernel" - did you copy a file into the guest''s filesystem? - which file did you copy? Thanks! Kent _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kent Watsen wrote:> Steven Ellis wrote: > >> I''ve been running Centos 4.1 on top of Xen using the provided 2.6 >> kernel that comes with 2.0.7. Works just fine with Centos4.1 and >> RHEL4U1. >> >> Which version of Xen are you trying. > > > > Oh, this sounds very encouraging - I''m using the xen that comes with > SuSE 9.3, which contains the following xen-related rpms: > > xen-doc-html-2.0.5c-4 > xen-doc-ps-2.0.5c-4 > kernel-xen-nongpl-2.6.11.4-20a > kernel-xen-2.6.11.4-20a > xen-doc-pdf-2.0.5c-4 > xen-2.0.5c-4 > > > As you probably already know, CentOS 4.1''s kernel''s version is > 2.6.9-11... > > For fun, I tried to boot CentOS as a guest domain using the same > config file I used for my SuSE-based guest domain before I moved it > into LVM (I have a 2nd drive I''m using just for staging guest domains): > > kernel = "/boot/vmlinuz-xen" > ramdisk = "/boot/initrd-xen" > memory = 256 > name = "CentOS" > vif = [ ''mac=aa:cc:00:00:00:63, bridge=xen-br0'' ] > disk = [ ''phy:hdb1,hdb1,w'', ''phy:hdb2,hdb2,w'' ] > netmask="255.255.255.0" > gateway="10.0.3.1" > hostname= "centos" > root = "/dev/hdb1 ro" > extra = "3" > > > But launching the guest domain this way led to a kernel panic. > > Could you be more specific regarding how you used the "provided 2.6 > kernel" - did you copy a file into the guest''s filesystem? - which > file did you copy?1. You need to copy the modules for the DomU kernel into the guest filesystem. 2. You probably need an initrd for the guest otherwise it will panic. 3. I''d personally advise using the DomU kernel that comes with the 2.0.7 tar ball as it is closer to the RH released kernel. STeve _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Steven Ellis wrote:> 1. You need to copy the modules for the DomU kernel into the guest > filesystem. > > 2. You probably need an initrd for the guest otherwise it will panic. > > 3. I''d personally advise using the DomU kernel that comes with the > 2.0.7 tar ball as it is closer to the RH released kernel.Steven, thanks for the pointer - following your suggestions has it working now! For others that might stumble on this thread, these steps should work: 1) install CentOS 4.1 from its ISO images 2) boot into it 3) download binary xen release from http://www.xensource.com/downloads/ 4) extract it into <pick-a-dir> 5) cp <pick-a-dir>/install/boot/vmlinuz-2.6.11.12-xenU /tmp 6) cp -a <pick-a-dir>/install/lib/modules/2.6.11.12-xenU /lib/modules 7) cd /lib/modules/; depmod 2.6.11.12-xenU; mkinitrd /tmp/2.6.11.12-xenU.img 2.6.11.12-xenU 8) now, copy both of the files in /tmp to your Xen''s Dom0''s /boot 9) config your xen file, mine is as follows: kernel = "/boot/vmlinuz-2.6.11.12-xenU" ramdisk = "/boot/initrd-2.6.11-12.xenU.img" memory = 256 name = "CentOS" vif = [ ''mac=aa:cc:00:00:00:63, bridge=xen-br0'' ] disk = [ ''phy:hdb1,hdb1,w'', ''phy:hdb2,hdb2,w'' ] netmask="255.255.255.0" gateway="10.0.3.1" hostname= "centos" root = "/dev/hdb1 ro" extra = "3" Note: this works in part because the Xen''s binary release is very similar the CentOS; it is very unlikely it work for any non-Linux guest OS. It will be interesting to see how much of this kind of stuff will be eliminated with AMD''s Pacifica architecture and the supporting Xen release ... Cheers! Kent _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users