Dushmant Mohapatra
2008-Feb-29 17:17 UTC
Fw: [Xen-users] Jailtime image problem - debian 4.0
----- Forwarded Message ---- From: Dushmant Mohapatra <d_mpatra@yahoo.com> To: Evan Lavelle <sa212+xen@cyconix.com> Sent: Friday, February 29, 2008 12:07:34 PM Subject: Re: [Xen-users] Jailtime image problem - debian 4.0 Probably you have to change that line <kernel = "/boot/vmlinuz-2.6-xen"> to refer to a dom U kernel built during the Xen build process. You remember the line <KERNELS ?= linux-2.6-xen0 linux-2.6-xenU> if you have not built a separate domU kernel then I guess you can still use the dom0 kernel. At least that worked for me. So you just have to change the first line to refer to the existing XenLinux kernel. Some thing like <kernel = "/boot/vmlinuz-2.6.8-xen0"> But I should say that I am not an expert and if some one else is reading my reply then please comment on its correctnes. Thanks, Dushmanta ----- Original Message ---- From: Evan Lavelle <sa212+xen@cyconix.com> To: Xen <xen-users@lists.xensource.com> Sent: Friday, February 29, 2008 6:27:49 AM Subject: [Xen-users] Jailtime image problem - debian 4.0 Anyone tried using the Debian 4.0 jailtime image? The boot directory in the image is empty, and the supplied config script doesn''t use pygrub. There''s a kernel line in the config file: kernel = "/boot/vmlinuz-2.6-xen" but, of course, I don''t have this file on my Dom0 (Fedora 8). Anyone know what''s going on here? Perhaps this image is only intended to be used on a Deb4 Dom0? Thanks - Evan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users Looking for last minute shopping deals? Find them fast with Yahoo! Search. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Feb-29 19:15 UTC
Re: Fw: [Xen-users] Jailtime image problem - debian 4.0
On Fri, Feb 29, 2008 at 12:17 PM, Dushmant Mohapatra <d_mpatra@yahoo.com> wrote:> > > > > > > ----- Forwarded Message ---- > From: Dushmant Mohapatra <d_mpatra@yahoo.com> > To: Evan Lavelle <sa212+xen@cyconix.com> > Sent: Friday, February 29, 2008 12:07:34 PM > Subject: Re: [Xen-users] Jailtime image problem - debian 4.0 > > > > Probably you have to change that line <kernel = "/boot/vmlinuz-2.6-xen"> > to refer to a dom U kernel built during the Xen build process. > > You remember the line > <KERNELS ?= linux-2.6-xen0 linux-2.6-xenU> > > if you have not built a separate domU kernel then I guess you can still > use the dom0 kernel. At least that worked for me.Right. You can use the dom0 kernel. Regards, Todd> > So you just have to change the first line to refer to the existing XenLinux kernel. > Some thing like <kernel = "/boot/vmlinuz-2.6.8-xen0"> > > But I should say that I am not an expert and if some one else is reading my reply then please comment on its correctnes. > > Thanks, > Dushmanta > > > > > > > > ----- Original Message ---- > From: Evan Lavelle <sa212+xen@cyconix.com> > To: Xen <xen-users@lists.xensource.com> > Sent: Friday, February 29, 2008 6:27:49 AM > Subject: [Xen-users] Jailtime image problem - debian 4.0 > > Anyone tried using the Debian 4.0 jailtime image? > > The boot directory in the image is empty, and the supplied config script > doesn''t use pygrub. There''s a kernel line in the config file: > > kernel = "/boot/vmlinuz-2.6-xen" > > but, of course, I don''t have this file on my Dom0 (Fedora 8). Anyone > know what''s going on here? Perhaps this image is only intended to be > used on a Deb4 Dom0? > > Thanks - > > Evan > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > > ________________________________Looking for last minute shopping deals? Find them fast with Yahoo! Search.> > > > ________________________________Looking for last minute shopping deals? Find them fast with Yahoo! Search.> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Evan Lavelle
2008-Feb-29 21:17 UTC
Re: Fw: [Xen-users] Jailtime image problem - debian 4.0
Todd Deshane wrote:> On Fri, Feb 29, 2008 at 12:17 PM, Dushmant Mohapatra <d_mpatra@yahoo.com> wrote:>> if you have not built a separate domU kernel then I guess you can still >> use the dom0 kernel. At least that worked for me. > > Right. You can use the dom0 kernel.That came as a surprise to me, so I tried it, but with no luck. My Dom0 f8-xen kernel requires an initrd, so I changed the jailtime: kernel = "/boot/vmlinuz-2.6-xen" to: kernel = "/boot/vmlinuz-2.6.21-2952.fc8xen" ramdisk = "/boot/initrd-2.6.21-2952.fc8xen.img" I can''t boot with or without the ramdisk line. With the ramdisk line, I get:> Scanning logical volumes > Reading all physical volumes. This may take a while... > No volume groups found > Activating logical volumes > Volume group "VolGroup00" not found > Creating root device. > Mounting root filesystem. > mount: could not find filesystem ''/dev/root''I don''t understand why it''s saying "no volume groups found", but when would it ever work to use a Dom0 initrd for a DomU boot? My Dom0 is on LVM, and fstab looks like this:> /dev/VolGroup00/LogVol01 / ext3 defaults 1 1 > ... > /dev/VolGroup00/LogVol00 swap swap defaults 0 0And the jailtime fstab looks like this:> /dev/sda1 / ext3 defaults,errors=remount-ro 0 0 > /dev/sda2 none swap sw 0 0 > proc /proc proc defaults 0 0So surely, at the very least, initrd has to be rebuilt for the jailtime image. Or have I missed something? Thanks - Evan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Evan Lavelle
2008-Feb-29 22:30 UTC
Re: Fw: [Xen-users] Jailtime image problem - debian 4.0
The Centos 5.1 image from jailtime is identical - nothing in /boot, ''vmlinuz-2.6-xen'' required on the Dom0. So, clearly jailtime thinks there''s something special about ''vmlinuz-2.6-xen'', but the website says nothing about it. After some Googling, it looks like this kernel may be installed in the dom0 /boot by one of the Xen RPMs, or by a download from XenSource. I''ll try to give this a go over the w/end. Evan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It sounds like the Jailtime image is assuming that you have the xenblk driver built into the kernel instead of as a module. On CentOS and Fedora that probably isn''t the case, so you need to add the initrd, and it needs to point to an initrd that was loaded with the xenblk driver. You can only use the dom0 initrd for domU if you have it load the pv modules as well as your normal ones (it shouldn''t by default because your dom0 won''t need them). If you don''t have one, you should be able to do ok by running something like: mkinitrd -v -f --with=ext3 --with=xenblk /boot/2.6.whatever-xenU.img 2.6.whatever On Fri, Feb 29, 2008 at 5:30 PM, Evan Lavelle <sa212+xen@cyconix.com> wrote:> The Centos 5.1 image from jailtime is identical - nothing in /boot, > ''vmlinuz-2.6-xen'' required on the Dom0. So, clearly jailtime thinks > there''s something special about ''vmlinuz-2.6-xen'', but the website says > nothing about it. > > After some Googling, it looks like this kernel may be installed in the > dom0 /boot by one of the Xen RPMs, or by a download from XenSource. I''ll > try to give this a go over the w/end. > > Evan > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Puer Misellus Triste _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It sounds like the Jailtime image is assuming that you have the xenblk driver built into the kernel instead of as a module. On CentOS and Fedora that probably isn''t the case, so you need to add the initrd, and it needs to point to an initrd that was loaded with the xenblk driver. You can only use the dom0 initrd for domU if you have it load the pv modules as well as your normal ones (it shouldn''t by default because your dom0 won''t need them). If you don''t have one, you should be able to do ok by running something like: mkinitrd -v -f --with=ext3 --with=xenblk /boot/2.6.whatever-xenU.img 2.6.whatever On Sat, Mar 1, 2008 at 3:59 AM, Puer Triste <pmtriste@sadlittleboy.com> wrote:> It sounds like the Jailtime image is assuming that you have the xenblk > driver built into the kernel instead of as a module. On CentOS and Fedora > that probably isn''t the case, so you need to add the initrd, and it needs to > point to an initrd that was loaded with the xenblk driver. You can only use > the dom0 initrd for domU if you have it load the pv modules as well as your > normal ones (it shouldn''t by default because your dom0 won''t need them). If > you don''t have one, you should be able to do ok by running something like: > mkinitrd -v -f --with=ext3 --with=xenblk /boot/2.6.whatever-xenU.img > 2.6.whatever > > > On Fri, Feb 29, 2008 at 5:30 PM, Evan Lavelle <sa212+xen@cyconix.com> > wrote: > > > The Centos 5.1 image from jailtime is identical - nothing in /boot, > > ''vmlinuz-2.6-xen'' required on the Dom0. So, clearly jailtime thinks > > there''s something special about ''vmlinuz-2.6-xen'', but the website says > > nothing about it. > > > > After some Googling, it looks like this kernel may be installed in the > > dom0 /boot by one of the Xen RPMs, or by a download from XenSource. I''ll > > try to give this a go over the w/end. > > > > Evan > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > -- > Puer Misellus Triste-- Puer Misellus Triste _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Evan Lavelle
2008-Mar-02 20:55 UTC
Re: Fw: [Xen-users] Jailtime image problem - debian 4.0
Evan Lavelle wrote:> The Centos 5.1 image from jailtime is identical - nothing in /boot, > ''vmlinuz-2.6-xen'' required on the Dom0. So, clearly jailtime thinks > there''s something special about ''vmlinuz-2.6-xen'', but the website says > nothing about it. > > After some Googling, it looks like this kernel may be installed in the > dom0 /boot by one of the Xen RPMs, or by a download from XenSource. I''ll > try to give this a go over the w/end.As always with Xen, it''s irritatingly easy when you know how, and next to impossible when you don''t. The jailtime images assume that you''ve built your system from the Xen sources, but you have to work that out for yourself. ''vmlinuz-2.6-xen'' is the standard combined Dom0/DomU kernel produced by the build process, and links to vmlinuz-2.6.18-xen in 3.1. Of course, these files don''t exist in Fedora, and the Fedora Dom0 Xen kernel can''t be used to boot a guest. I downloaded the 3.1 binaries from http://xen.org/download/dl_31tarballs.html, and created ''/boot/vmlinuz-2.6-xen'' as a symlink to ''dist/install/boot/vmlinuz-2.6.18-xen'' in the distribution files. Now, of course, the Debian 4.0 and Centos 5.1 jailtime images boot up immediately, with no config file changes, and no ramdisk line. Evan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Evan Lavelle wrote:> Evan Lavelle wrote: >> The Centos 5.1 image from jailtime is identical - nothing in /boot, >> ''vmlinuz-2.6-xen'' required on the Dom0. So, clearly jailtime thinks >> there''s something special about ''vmlinuz-2.6-xen'', but the website >> says nothing about it. >> >> After some Googling, it looks like this kernel may be installed in >> the dom0 /boot by one of the Xen RPMs, or by a download from >> XenSource. I''ll try to give this a go over the w/end. > > As always with Xen, it''s irritatingly easy when you know how, and next > to impossible when you don''t. > > The jailtime images assume that you''ve built your system from the Xen > sources, but you have to work that out for yourself. ''vmlinuz-2.6-xen'' > is the standard combined Dom0/DomU kernel produced by the build > process, and links to vmlinuz-2.6.18-xen in 3.1. Of course, these > files don''t exist in Fedora, and the Fedora Dom0 Xen kernel can''t be > used to boot a guest. > > I downloaded the 3.1 binaries from > http://xen.org/download/dl_31tarballs.html, and created > ''/boot/vmlinuz-2.6-xen'' as a symlink to > ''dist/install/boot/vmlinuz-2.6.18-xen'' in the distribution files. Now, > of course, the Debian 4.0 and Centos 5.1 jailtime images boot up > immediately, with no config file changes, and no ramdisk line. > > Evan > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Ok, so what you''re saying is that I won''t be able to use jailtime images on a vanilla CentOS 5.1 + Xen 3.1 (from CentOS repositories)? Is there any way at all to use it in this way? -- Kind Regards Rudi Ahlers CEO, SoftDux Web: http://www.SoftDux.com Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stugg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Evan Lavelle
2008-Mar-03 10:26 UTC
Re: Fw: [Xen-users] Jailtime image problem - debian 4.0
Rudi Ahlers wrote:> Ok, so what you''re saying is that I won''t be able to use jailtime images > on a vanilla CentOS 5.1 + Xen 3.1 (from CentOS repositories)?I don''t think so. My Dom0 is F8, so I think you''ll have exactly the same problem> Is there > any way at all to use it in this way?Yes, it should be easy to get it working, by downloading a binary kernel from xen.org: 1) go to http://xen.org/download/dl_31tarballs.html, download the binary for your system (32-bit, 32-bit PAE, or 64-bit) 2) Untar, find dist/install/boot/vmlinuz-2.6-xen 3) vmlinuz-2.6-xen should be a symlink to another kernel in dist/install/boot. Currently, it links to dist/install/boot/vmlinuz-2.6.18-xen. You don''t need anything in the download except this one file. 4) In your Dom0''s ''/boot'' directory, create a symlink to the kernel you identified in step (3): > ln -s path-to-correct-kernel vmlinuz-2.6-xen The jailtime image should now boot. You''ll need to edit the path in the jailtime config file to point to wherever you''ve placed the jailtime image, but that should be the only change. This''ll let you complete installation, but you should probably replace vmlinuz-2.6-xen with a stock Centos-xen kernel from the Centos repos when you''ve finished, and use pygrub in your config file. I haven''t got this far yet. I have a recollection that pygrub may not work for a Fedora Dom0, so this may not be possible in my case. Evan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users