Rudi Ahlers
2009-Apr-06 21:43 UTC
[Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
Hi all, I have a Gentoo 2008 x64 (http://jailtime.org/download:gentoo64:v2008.0) domU virtual container, but it doesn''t have iptables support. How can I add a new kernel, with iptables support to a domU virtual machine? This virtual machine''s configuration is as follows: kernel = ''/boot/hypervm-xen-vmlinuz'' ramdisk = ''/boot/hypervm-xen-initrd.img'' memory = 256 name = ''tuxbruce.vm'' vnc = 0 vcpus = 1 vncviewer = 0 serial = ''pty'' disk = [''phy:/dev/VolGroup01/tuxbruce_rootimg,sda1,w'', ''phy:/dev/VolGroup01/tuxbruce_vmswap,sda2,w''] root = ''/dev/sda1 ro'' -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Goirand
2009-Apr-07 02:40 UTC
Re: [Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
Rudi Ahlers wrote:> Hi all, > > I have a Gentoo 2008 x64 > (http://jailtime.org/download:gentoo64:v2008.0) domU virtual > container, but it doesn''t have iptables support. How can I add a new > kernel, with iptables support to a domU virtual machine? > > This virtual machine''s configuration is as follows: > > kernel = ''/boot/hypervm-xen-vmlinuz'' > ramdisk = ''/boot/hypervm-xen-initrd.img''The issue is the above. Why hypervm insist in using it''s own kernel? Can''t it simply use the one of the distribution, or the one you have compiled yourself? This has nothing to do with the tarball you got from jailtime, anyway. Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2009-Apr-07 04:12 UTC
Re: [Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
On Tue, Apr 7, 2009 at 4:40 AM, Thomas Goirand <thomas@goirand.fr> wrote:> Rudi Ahlers wrote: >> Hi all, >> >> I have a Gentoo 2008 x64 >> (http://jailtime.org/download:gentoo64:v2008.0) domU virtual >> container, but it doesn''t have iptables support. How can I add a new >> kernel, with iptables support to a domU virtual machine? >> >> This virtual machine''s configuration is as follows: >> >> kernel = ''/boot/hypervm-xen-vmlinuz'' >> ramdisk = ''/boot/hypervm-xen-initrd.img'' > > The issue is the above. Why hypervm insist in using it''s own kernel? > Can''t it simply use the one of the distribution, or the one you have > compiled yourself? This has nothing to do with the tarball you got from > jailtime, anyway. > > Thomas > > _______________________________________________Hi Thomas, Don''t worry, I feel the same :) But, how can I force this VM to use it''s own kernel, and not the HyperVM one? -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Apr-07 05:00 UTC
Re: [Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
On Tue, Apr 7, 2009 at 11:12 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote:> Hi Thomas, > > Don''t worry, I feel the same :) > > But, how can I force this VM to use it''s own kernel, and not the HyperVM one?The easiest way would be : - Install xenified kernel in domU. On RHEL that would be "yum install kernel-xen". The point is you should have the kernel, initrd, and modules inside domU. - create /boot/grub/menu.lst on domU - change domU config file to use pygrub. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2009-Apr-08 04:23 UTC
Re: [Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
On Tue, Apr 7, 2009 at 7:00 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Tue, Apr 7, 2009 at 11:12 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote: >> Hi Thomas, >> >> Don''t worry, I feel the same :) >> >> But, how can I force this VM to use it''s own kernel, and not the HyperVM one? > > The easiest way would be : > - Install xenified kernel in domU. On RHEL that would be "yum install > kernel-xen". The point is you should have the kernel, initrd, and > modules inside domU. > - create /boot/grub/menu.lst on domU > - change domU config file to use pygrub. > > Regards, > > Fajar > > _______________________________________________Hi Fajar, I use HyperVM to manage the XEN domU virtual machines, and from what I understand, it does run a XEN kernel Linux usaxen01.softdux.com 2.6.18-8.1.15.el5xen #1 SMP Mon Oct 22 09:01:12 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux The domU runs on Gentoo, so I don''t know if it''s the same as for CentOS, in terms of installing a xen kernel? I tried emerge --search xen, but the results weren''t very good. Any suggestions? -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Apr-08 04:56 UTC
Re: [Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
On Wed, Apr 8, 2009 at 11:23 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote:> Hi Fajar, > > I use HyperVM to manage the XEN domU virtual machines, and from what I > understand, it does run a XEN kernel > > Linux usaxen01.softdux.com 2.6.18-8.1.15.el5xen #1 SMP Mon Oct 22 > 09:01:12 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux > > > The domU runs on Gentoo, so I don''t know if it''s the same as for > CentOS, in terms of installing a xen kernel?It''s the same in that once you have a working kernel inside domU, you can use it by changing xen config file to use pygrub. That is: - in domU config file, comment-out "kernel" and "ramdisk" line, change it to bootloader="/usr/bin/pygrub" - in domU, create a file /boot/grub/menu.lst or /boot/grub/grub.conf which has contents similar to this default=0 timeout=5 hiddenmenu title RHEL5-xen-domU root (hd0,0) kernel /boot/vmlinuz-xen ro root=/dev/hda1 initrd /boot/initrd-xen.img - make sure domU''s initrd has xenblk if it''s compiled as module instead of built-in. Now the actual kernel package, content of grub.conf, and initrd would be different in Gentoo.> > I tried emerge --search xen, but the results weren''t very good. Any suggestions?This might help http://lists.xensource.com/archives/html/xen-users/2009-04/msg00004.html Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2009-Apr-08 20:37 UTC
Re: [Xen-users] how to add custom kernel onto jailtime.org''s gentoo images
On Wed, Apr 8, 2009 at 6:56 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Wed, Apr 8, 2009 at 11:23 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote: >> Hi Fajar, >> >> I use HyperVM to manage the XEN domU virtual machines, and from what I >> understand, it does run a XEN kernel >> >> Linux usaxen01.softdux.com 2.6.18-8.1.15.el5xen #1 SMP Mon Oct 22 >> 09:01:12 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux >> >> >> The domU runs on Gentoo, so I don''t know if it''s the same as for >> CentOS, in terms of installing a xen kernel? > > It''s the same in that once you have a working kernel inside domU, you > can use it by changing xen config file to use pygrub. That is: > - in domU config file, comment-out "kernel" and "ramdisk" line, change it to > bootloader="/usr/bin/pygrub" > - in domU, create a file /boot/grub/menu.lst or /boot/grub/grub.conf > which has contents similar to this > > default=0 > timeout=5 > hiddenmenu > title RHEL5-xen-domU > root (hd0,0) > kernel /boot/vmlinuz-xen ro root=/dev/hda1 > initrd /boot/initrd-xen.img > > - make sure domU''s initrd has xenblk if it''s compiled as module > instead of built-in. > > Now the actual kernel package, content of grub.conf, and initrd would > be different in Gentoo. > >> >> I tried emerge --search xen, but the results weren''t very good. Any suggestions? > > This might help > http://lists.xensource.com/archives/html/xen-users/2009-04/msg00004.html > > Regards, > > Fajar >Hi Fajar, I''m sorry, but I got lost on that link. I don''t know Gentoo at all, and I''m trying to help a client out, so this is really, really new to me. I''m trying to install xen, but I keep running into a wall with it. sh-3.2# emerge xen Calculating dependencies - !!! All ebuilds that could satisfy "app-emulation/xen" have been masked. !!! One of the following masked packages is required to complete your request: - app-emulation/xen-3.2.1 (masked by: ~amd64 keyword) - app-emulation/xen-3.2.0 (masked by: ~amd64 keyword) - app-emulation/xen-3.1.3 (masked by: ~amd64 keyword) For more information, see MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. Reading through the man pages is a nightmare,probably cause it makes no sense, and the formatting is aweful. I''ve asked the client if he knows how to get past this step, and then I''ll see if I can get it to work. Thanx for your help :) -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users