Rudi Ahlers
2008-Jul-25 10:54 UTC
[Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Hi all I want to install Ubuntu (which is debian based) on top of CentOS, but since it''s not a nativa RH based distro, I don''t know which way to install it. Do I install it as fully virtualized , or paravirtualized ? What is better in this case? -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Antoine Benkemoun
2008-Jul-25 12:22 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Hello, Ubuntu can run Paravirtualized. You can even do an automatic install with xen-tools. Cheers, Antoine On Fri, Jul 25, 2008 at 12:54 PM, Rudi Ahlers <Rudi@softdux.com> wrote:> Hi all > > I want to install Ubuntu (which is debian based) on top of CentOS, but > since it''s not a nativa RH based distro, I don''t know which way to install > it. Do I install it as fully virtualized , or paravirtualized ? > > What is better in this case? > > > -- > > Kind Regards > Rudi Ahlers > > Check out my technical blog, http://blog.softdux.com for Linux or other > technical stuff > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Antoine Benkemoun Tel : 03.51.53.57.00 Port : 06.32.88.59.35 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Jul-26 01:17 UTC
[Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
---------- Forwarded message ---------- From: Rudi Ahlers <Rudi@softdux.com> Date: Fri, Jul 25, 2008 at 7:30 PM Subject: Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV? To: deshantm@gmail.com Todd Deshane wrote:> > On Fri, Jul 25, 2008 at 6:54 AM, Rudi Ahlers <Rudi@softdux.com> wrote: > >> >> Hi all >> >> I want to install Ubuntu (which is debian based) on top of CentOS, but since >> it''s not a nativa RH based distro, I don''t know which way to install it. Do >> I install it as fully virtualized , or paravirtualized ? >> >> What is better in this case? >> >> >> > > You can install it as either, but I would recommend as a PV guest, > since it will run faster. > > There are a couple of howtos floating around on this topic, here is one of them: > http://ubuntuforums.org/showthread.php?t=630886 > > Cheers, > Todd >Thanx, Toddd. I can''t get it to install though, debootstrap --arch=x86_64 --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main,universe,multiverse gutsy /mnt/anya_zanet http://za.archive.ubuntu.com/ubuntu/ E: Couldn''t work out current architecture debootstrap --arch=amd64 --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main,universe,multiverse gutsy /mnt/anya_zanet http://za.archive.ubuntu.com/ubuntu/ E: Couldn''t work out current architecture debootstrap --arch=i386 --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main,universe,multiverse gutsy /mnt/anya_zanet http://za.archive.ubuntu.com/ubuntu/ E: Couldn''t work out current architecture The system I''m currently trying to install it on is Fedora Core 8 x64. Any suggestions? -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.6/1574 - Release Date: 7/25/2008 4:27 PM -- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Jul-27 02:30 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
On Sat, Jul 26, 2008 at 2:24 AM, Rudi Ahlers <Rudi@softdux.com> wrote:> Todd Deshane wrote: >> >> On Fri, Jul 25, 2008 at 6:54 AM, Rudi Ahlers <Rudi@softdux.com> wrote: >> >>> >>> Hi all >>> >>> I want to install Ubuntu (which is debian based) on top of CentOS, but >>> since >>> it''s not a nativa RH based distro, I don''t know which way to install it. >>> Do >>> I install it as fully virtualized , or paravirtualized ? >>> >>> What is better in this case? >>> >>> >>> >> >> You can install it as either, but I would recommend as a PV guest, >> since it will run faster. >> >> There are a couple of howtos floating around on this topic, here is one of >> them: >> http://ubuntuforums.org/showthread.php?t=630886 >> >> Cheers, >> Todd >> > > Unfortunately, I can''t get either to work. I have setup a fully virtualized > guest, and then had to configure VNC to connect to it. On the VNC screen, I > see the following: > > ISOLINUX 3.36 Debian-2007-08-30 Copyright (c) 1994-2007 H. Peter Anvin > Loading ... > > And then it just sits there, doing nothing. > > > -- > > Kind Regards > Rudi Ahlers >You should post more details, your config files, anything you find in the error logs etc. Any other version or information of that nature that could help identify your problem. Hopefully then someone can figure out your problem, or at least give you some more hints. Cheers, Todd> Check out my technical blog, http://blog.softdux.com for Linux or other > technical stuff > > > No virus found in this outgoing message. > Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: > 270.5.6/1574 - Release Date: 7/25/2008 4:27 PM > >-- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Jul-27 17:24 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Antoine Benkemoun wrote:> Hello, > > Ubuntu can run Paravirtualized. You can even do an automatic install > with xen-tools. > > Cheers, > Antoine > > On Fri, Jul 25, 2008 at 12:54 PM, Rudi Ahlers <Rudi@softdux.com > <mailto:Rudi@softdux.com>> wrote: > > Hi all > > I want to install Ubuntu (which is debian based) on top of CentOS, > but since it''s not a nativa RH based distro, I don''t know which > way to install it. Do I install it as fully virtualized , or > paravirtualized ? > > What is better in this case? > > > -- >Thanx Antonie, Xen-tools only runs on Debian / Ubuntu OS''s, and not on CentOS / Fedora Core, so I can''t use it -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Jul-27 17:55 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Todd Deshane wrote:> On Sat, Jul 26, 2008 at 2:24 AM, Rudi Ahlers <Rudi@softdux.com> wrote: > >> Todd Deshane wrote: >> >>> On Fri, Jul 25, 2008 at 6:54 AM, Rudi Ahlers <Rudi@softdux.com> wrote: >>> >>> >>>> Hi all >>>> >>>> I want to install Ubuntu (which is debian based) on top of CentOS, but >>>> since >>>> it''s not a nativa RH based distro, I don''t know which way to install it. >>>> Do >>>> I install it as fully virtualized , or paravirtualized ? >>>> >>>> What is better in this case? >>>> >>>> >>>> >>>> >>> You can install it as either, but I would recommend as a PV guest, >>> since it will run faster. >>> >>> There are a couple of howtos floating around on this topic, here is one of >>> them: >>> http://ubuntuforums.org/showthread.php?t=630886 >>> >>> Cheers, >>> Todd >>> >>> >> Unfortunately, I can''t get either to work. I have setup a fully virtualized >> guest, and then had to configure VNC to connect to it. On the VNC screen, I >> see the following: >> >> ISOLINUX 3.36 Debian-2007-08-30 Copyright (c) 1994-2007 H. Peter Anvin >> Loading ... >> >> And then it just sits there, doing nothing. >> >> >> -- >> >> Kind Regards >> Rudi Ahlers >> >> > > You should post more details, your config files, anything you find in > the error logs etc. > > Any other version or information of that nature that could help > identify your problem. > > Hopefully then someone can figure out your problem, or at least give > you some more > hints. > > Cheers, > ToddHi Todd, sure, here''s my progress so far: I have tried installing Ubuntu as a fully virtualized guest, but the Ubuntu CD doesn''t even bootup. I get the Linux bootloader, and that''s it,it doesn''t continue to boot. Odd. When trying to install a Paravirtualized guest, I had to use the debootstrap method, but can''t get it to boot up. xm create anya_zanet Using config file "/etc/xen/anya_zanet". Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') This is the /etc/xen/anya_zanet config: kernel = "/boot/vmlinuz-2.6.23.1-42.fc8" ramdisk = "/boot/initrd-2.6.23.1-42.fc8.img" builder=''linux'' memory = 256 name = "anya_zanet" vcpus = 1 vif = [ ''bridge=xenbr0'' ] disk = [ ''phy:/dev/System/anya_zanet,hda1,w'' , ''phy:/dev/System/anya_zanet,hda2,w'' ] root = "/dev/hda1 ro" on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2008-Jul-27 18:27 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
You could do a fully virtualised install using virt-manager very easily. You should be able covert to a PV install later, if you want. Alternatively, you can build an ext3 filesystem for the guest manually (inside and image or partition). You can then use the debootstrap tool to build a Debian/Ubuntu filesystem inside that. Cheers, Mark On Friday 25 July 2008, Rudi Ahlers wrote:> Hi all > > I want to install Ubuntu (which is debian based) on top of CentOS, but > since it''s not a nativa RH based distro, I don''t know which way to > install it. Do I install it as fully virtualized , or paravirtualized ? > > What is better in this case?-- Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christopher Isip
2008-Jul-27 21:44 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
On Sun, Jul 27, 2008 at 2:27 PM, Mark Williamson < mark.williamson@cl.cam.ac.uk> wrote:> You could do a fully virtualised install using virt-manager very easily. > You > should be able covert to a PV install later, if you want. > > Alternatively, you can build an ext3 filesystem for the guest manually > (inside > and image or partition). You can then use the debootstrap tool to build a > Debian/Ubuntu filesystem inside that. > > Cheers, > Mark > > On Friday 25 July 2008, Rudi Ahlers wrote: > > Hi all > > > > I want to install Ubuntu (which is debian based) on top of CentOS, but > > since it''s not a nativa RH based distro, I don''t know which way to > > install it. Do I install it as fully virtualized , or paravirtualized ? > > > > What is better in this case? > > > > -- > Push Me Pull You - Distributed SCM tool ( > http://www.cl.cam.ac.uk/~maw48/pmpu/<http://www.cl.cam.ac.uk/%7Emaw48/pmpu/> > ) > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Here''s how I created a Ubuntu domU in Centos dom0: dd if=/dev/zero of=/vm/Ubuntu-Hardy-base.img bs=1024k count=4000 dd if=/dev/zero of=/vm/Ubuntu-Hardy-swap.img bs=1024k count=400 /sbin/mkfs.ext3 /vm/Ubuntu-Hardy-base.img /sbin/mkfs.ext3 /vm/Ubuntu-Hardy-swap.img /sbin/mkswap /vm/Ubuntu-Hardy-swap.img chmod 640 /vm/Ubuntu* mkdir /mnt/xenfs mount -o loop /vm/Ubuntu-Hardy-base.img /mnt/xenfs wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/x86_64/debootstrap-1.0.7-2.el5.noarch.rpm rpm -Uvh debootstrap* export PATH=$PATH"/usr/sbin":/sbin (so chroot will not fail) /usr/sbin/debootstrap --arch i386 --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main,universe,multiverse hardy /mnt/xenfs http://mirror.3fl.net.au/ubuntu/ WAIT.................. chroot /mnt/xen or just make xure all edits go to /mnt/xenfs/ from this point on: mv /lib/tls /lib/tls.disabled create /edit /etc/fstab proc /proc proc defaults 0 0 /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hda2 none swap sw 0 0 # mkdir -p /boot/grub # update-grub edit /boot/grub/menu.lst title Ubuntu 8.04, kernel 2.6.24-16-xen root (hd0,0) kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/xvda1 ro console=xvc0 initrd /boot/initrd.img-2.6.24-16-xen title Ubuntu 8.04, kernel 2.6.24-16-xen (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.6.24-16-xen root=/dev/xvda1 ro single console=xvc0 initrd /boot/initrd.img-2.6.24-16-xen # cd /etc/event.d # cp tty1 xvc0 # sed -i -e "s/tty1/xvc0/g" xvc0 Add xvc0 to /etc/securetty to allow root to login # update-rc.d -f hwclockfirst remove # update-rc.d -f hwclock remove # rm /etc/udev/rules.d/85-hwclock.rules Now download the updated linux-image and headers from http://www.il.is.s.u-tokyo.ac.jp/~hiranotaka/ and install them, otherwise no network when you boot the domU Create our guest config file : bootloader = ''/usr/bin/pygrub'' memory = 512 name = "Ubuntu-Hardy-Base" disk [''file:/vm/Ubuntu-Hardy-base.img,hda1,w'',''file:/vm/Ubuntu-Hardy-swap.img,hda2,w''] vif = [ '''' ] Boot the domU. Hope this helps Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Jul-28 06:47 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Christopher Isip wrote:> > > On Sun, Jul 27, 2008 at 2:27 PM, Mark Williamson > <mark.williamson@cl.cam.ac.uk <mailto:mark.williamson@cl.cam.ac.uk>> > wrote: > > You could do a fully virtualised install using virt-manager very > easily. You > should be able covert to a PV install later, if you want. > > Alternatively, you can build an ext3 filesystem for the guest > manually (inside > and image or partition). You can then use the debootstrap tool to > build a > Debian/Ubuntu filesystem inside that. > > Cheers, > Mark > > On Friday 25 July 2008, Rudi Ahlers wrote: > > Hi all > > > > I want to install Ubuntu (which is debian based) on top of > CentOS, but > > since it''s not a nativa RH based distro, I don''t know which way to > > install it. Do I install it as fully virtualized , or > paravirtualized ? > > > > What is better in this case? > > > > -- > Push Me Pull You - Distributed SCM tool > (http://www.cl.cam.ac.uk/~maw48/pmpu/ > <http://www.cl.cam.ac.uk/%7Emaw48/pmpu/>) > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > Here''s how I created a Ubuntu domU in Centos dom0: > dd if=/dev/zero of=/vm/Ubuntu-Hardy-base.img bs=1024k count=4000 > dd if=/dev/zero of=/vm/Ubuntu-Hardy-swap.img bs=1024k count=400 > /sbin/mkfs.ext3 /vm/Ubuntu-Hardy-base.img > /sbin/mkfs.ext3 /vm/Ubuntu-Hardy-swap.img > /sbin/mkswap /vm/Ubuntu-Hardy-swap.img > chmod 640 /vm/Ubuntu* > mkdir /mnt/xenfs > mount -o loop /vm/Ubuntu-Hardy-base.img /mnt/xenfs > wget > ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/x86_64/debootstrap-1.0.7-2.el5.noarch.rpm > rpm -Uvh debootstrap* > export PATH=$PATH"/usr/sbin":/sbin (so chroot will not fail)In my case I''m working with LVM, so I have mounted /dev/system/anyza-zanet on /mnt/anya-zanet Do I need to cd /mnt/anya-zanet before I run the following command?> /usr/sbin/debootstrap --arch i386 > --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub > --components=main,universe,multiverse hardy /mnt/xenfs > http://mirror.3fl.net.au/ubuntu/I''m trying to install gutsy, so the kernel modules you have isn''t available. Thus, I used the following command: debootstrap --arch amd64 --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main gutsy /mnt/anya-zanet/ http://za.archive.ubuntu.com/ubuntu/ Can / will this be a problem?> > WAIT.................. > > chroot /mnt/xen or just make xure all edits go to /mnt/xenfs/ from > this point on: > > mv /lib/tls /lib/tls.disabled > > create /edit /etc/fstab > > proc /proc proc defaults 0 0 > /dev/hda1 / ext3 defaults,errors=remount-ro > 0 1 > /dev/hda2 none swap sw 0 0 > > > # mkdir -p /boot/grub > # update-grubI don''t have update-grub anywhere on my system, where / how do I get it? Was it part of the Ubuntu debootstrap stuff, or should I have installed it separately?> > edit /boot/grub/menu.lst > > title Ubuntu 8.04, kernel 2.6.24-16-xen > root (hd0,0) > kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/xvda1 ro > console=xvc0 > initrd /boot/initrd.img-2.6.24-16-xen > > title Ubuntu 8.04, kernel 2.6.24-16-xen (recovery mode) > root (hd0,0) > kernel /boot/vmlinuz-2.6.24-16-xen root=/dev/xvda1 ro single > console=xvc0 > initrd /boot/initrd.img-2.6.24-16-xen > > # cd /etc/event.d > # cp tty1 xvc0 > # sed -i -e "s/tty1/xvc0/g" xvc0 > > Add xvc0 to /etc/securetty to allow root to login > > # update-rc.d -f hwclockfirst remove > # update-rc.d -f hwclock remove > # rm /etc/udev/rules.d/85-hwclock.rules > > > Now download the updated linux-image and headers from > http://www.il.is.s.u-tokyo.ac.jp/~hiranotaka/ > <http://www.il.is.s.u-tokyo.ac.jp/%7Ehiranotaka/> > and install them, otherwise no network when you boot the domU > > Create our guest config file : > bootloader = ''/usr/bin/pygrub'' > memory = 512 > name = "Ubuntu-Hardy-Base" > disk = > [''file:/vm/Ubuntu-Hardy-base.img,hda1,w'',''file:/vm/Ubuntu-Hardy-swap.img,hda2,w''] > vif = [ '''' ] > > Boot the domU. > > Hope this helps > > Chris-- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Jul-28 06:48 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Mark Williamson wrote:> You could do a fully virtualised install using virt-manager very easily. You > should be able covert to a PV install later, if you want. > > Alternatively, you can build an ext3 filesystem for the guest manually (inside > and image or partition). You can then use the debootstrap tool to build a > Debian/Ubuntu filesystem inside that. > > Cheers, > Mark > > On Friday 25 July 2008, Rudi Ahlers wrote: > >> Hi all >> >> I want to install Ubuntu (which is debian based) on top of CentOS, but >> since it''s not a nativa RH based distro, I don''t know which way to >> install it. Do I install it as fully virtualized , or paravirtualized ? >> >> What is better in this case? >> > > > >Hi Mark, I have tried that already, but have had no luck. On CentOS 5.1 trying to install Ubuntu as a Fully Virtualized guest, it doesn''t go further than the boot loader. I don''t know why, and can''t see anything in the logs why either. Installing it as a PV guest, I need to run through some debootstrap stuff, as per this site: http://ubuntuforums.org/showthread.php?t=630886 But, I get stuck where I need to run "update-grub" - which I don''t have on my system. -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jim burns
2008-Jul-29 09:55 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
On Sun July 27 2008 1:55:58 pm Rudi Ahlers wrote:> xm create anya_zanet > Using config file "/etc/xen/anya_zanet". > Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') > > > > This is the /etc/xen/anya_zanet config: > > > kernel = "/boot/vmlinuz-2.6.23.1-42.fc8" > ramdisk = "/boot/initrd-2.6.23.1-42.fc8.img"You are trying to boot off of a non-xen kernel. Fedora xen kernels would look something like vmlinuz-2.6.21.7-3.fc8xen. Also, at some time, you will probably want to switch over to pygrub, to boot off of the ubuntu kernel on your image. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Aug-04 23:25 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
Christopher Isip wrote:> > > On Sun, Jul 27, 2008 at 2:27 PM, Mark Williamson > <mark.williamson@cl.cam.ac.uk <mailto:mark.williamson@cl.cam.ac.uk>> > wrote: > > You could do a fully virtualised install using virt-manager very > easily. You > should be able covert to a PV install later, if you want. > > Alternatively, you can build an ext3 filesystem for the guest > manually (inside > and image or partition). You can then use the debootstrap tool to > build a > Debian/Ubuntu filesystem inside that. > > Cheers, > Mark > > On Friday 25 July 2008, Rudi Ahlers wrote: > > Hi all > > > > I want to install Ubuntu (which is debian based) on top of > CentOS, but > > since it''s not a nativa RH based distro, I don''t know which way to > > install it. Do I install it as fully virtualized , or > paravirtualized ? > > > > What is better in this case? > > > > -- > Push Me Pull You - Distributed SCM tool > (http://www.cl.cam.ac.uk/~maw48/pmpu/ > <http://www.cl.cam.ac.uk/%7Emaw48/pmpu/>) > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com <mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > Here''s how I created a Ubuntu domU in Centos dom0: > dd if=/dev/zero of=/vm/Ubuntu-Hardy-base.img bs=1024k count=4000 > dd if=/dev/zero of=/vm/Ubuntu-Hardy-swap.img bs=1024k count=400 > /sbin/mkfs.ext3 /vm/Ubuntu-Hardy-base.img > /sbin/mkfs.ext3 /vm/Ubuntu-Hardy-swap.img > /sbin/mkswap /vm/Ubuntu-Hardy-swap.img > chmod 640 /vm/Ubuntu* > mkdir /mnt/xenfs > mount -o loop /vm/Ubuntu-Hardy-base.img /mnt/xenfs > wget > ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/x86_64/debootstrap-1.0.7-2.el5.noarch.rpm > rpm -Uvh debootstrap* > export PATH=$PATH"/usr/sbin":/sbin (so chroot will not fail) > /usr/sbin/debootstrap --arch i386 > --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub > --components=main,universe,multiverse hardy /mnt/xenfs > http://mirror.3fl.net.au/ubuntu/ > > WAIT.................. > > chroot /mnt/xen or just make xure all edits go to /mnt/xenfs/ from > this point on: > > mv /lib/tls /lib/tls.disabled > > create /edit /etc/fstab > > proc /proc proc defaults 0 0 > /dev/hda1 / ext3 defaults,errors=remount-ro > 0 1 > /dev/hda2 none swap sw 0 0 > > > # mkdir -p /boot/grub > # update-grub > > edit /boot/grub/menu.lst > > title Ubuntu 8.04, kernel 2.6.24-16-xen > root (hd0,0) > kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/xvda1 ro > console=xvc0 > initrd /boot/initrd.img-2.6.24-16-xen > > title Ubuntu 8.04, kernel 2.6.24-16-xen (recovery mode) > root (hd0,0) > kernel /boot/vmlinuz-2.6.24-16-xen root=/dev/xvda1 ro single > console=xvc0 > initrd /boot/initrd.img-2.6.24-16-xen > > # cd /etc/event.d > # cp tty1 xvc0 > # sed -i -e "s/tty1/xvc0/g" xvc0 > > Add xvc0 to /etc/securetty to allow root to login > > # update-rc.d -f hwclockfirst remove > # update-rc.d -f hwclock remove > # rm /etc/udev/rules.d/85-hwclock.rules > > > Now download the updated linux-image and headers from > http://www.il.is.s.u-tokyo.ac.jp/~hiranotaka/ > <http://www.il.is.s.u-tokyo.ac.jp/%7Ehiranotaka/> > and install them, otherwise no network when you boot the domU > > Create our guest config file : > bootloader = ''/usr/bin/pygrub'' > memory = 512 > name = "Ubuntu-Hardy-Base" > disk = > [''file:/vm/Ubuntu-Hardy-base.img,hda1,w'',''file:/vm/Ubuntu-Hardy-swap.img,hda2,w''] > vif = [ '''' ] > > Boot the domU. > > Hope this helps > > ChrisHi Chris, Your example helps a lot, but I can''t complete it. When I try and download the "updated linux-image and headers from http://www.il.is.s.u-tokyo.ac.jp/~hiranotaka/ <http://www.il.is.s.u-tokyo.ac.jp/%7Ehiranotaka/>" - I get a 404 page error. Is there anywhere else that I can download it from? I also can''t start the domU, I get the following error: xm create anya Using config file "/etc/xen/anya". Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') This is the xen config file: cat /etc/xen/anya bootloader = ''/usr/bin/pygrub'' memory = 512 name = "anya" disk = [''phy:/dev/backup/anya,ioemu:hda1,w''] vif = [ '''' ] Can you please help? -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Aug-04 23:29 UTC
Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
jim burns wrote:> On Sun July 27 2008 1:55:58 pm Rudi Ahlers wrote: > >> xm create anya_zanet >> Using config file "/etc/xen/anya_zanet". >> Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') >> >> >> >> This is the /etc/xen/anya_zanet config: >> >> >> kernel = "/boot/vmlinuz-2.6.23.1-42.fc8" >> ramdisk = "/boot/initrd-2.6.23.1-42.fc8.img" >> > > You are trying to boot off of a non-xen kernel. Fedora xen kernels would look > something like vmlinuz-2.6.21.7-3.fc8xen. Also, at some time, you will > probably want to switch over to pygrub, to boot off of the ubuntu kernel on > your image. > > ______________________________________________ >Hi Jim, I now have the following config: cat /etc/xen/anya bootloader = ''/usr/bin/pygrub'' memory = 512 name = "anya" disk = [''phy:/dev/backup/anya,ioemu:hda1,w''] vif = [ '''' ] But I still get the same error: xm create anya Using config file "/etc/xen/anya". Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') So, I presume I don''t have the right kernels for Ubuntu, yet they are there: ll boot/ total 25696 -rw-r--r-- 1 root root 422607 Apr 10 18:51 abi-2.6.24-16-generic -rw-r--r-- 1 root root 79964 Apr 10 18:51 config-2.6.24-16-generic -rw-r--r-- 1 root root 85149 Apr 10 19:06 config-2.6.24-16-xen drwxr-xr-x 2 root root 4096 Aug 5 01:38 grub -rw-r--r-- 1 root root 6635463 Aug 5 00:24 initrd.img-2.6.24-16-generic -rw-r--r-- 1 root root 6791966 Aug 5 00:24 initrd.img-2.6.24-16-xen -rw-r--r-- 1 root root 6792141 Aug 5 00:24 initrd.img-2.6.24-16-xen.bak -rw-r--r-- 1 root root 899892 Apr 10 18:51 System.map-2.6.24-16-generic -rw-r--r-- 1 root root 883462 Apr 10 19:06 System.map-2.6.24-16-xen -rw-r--r-- 1 root root 1904248 Apr 10 18:51 vmlinuz-2.6.24-16-generic -rw-r--r-- 1 root root 1730948 Apr 10 19:06 vmlinuz-2.6.24-16-xen So, what else can I do? -- Kind Regards Rudi Ahlers Check out my technical blog, http://blog.softdux.com for Linux or other technical stuff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
jim burns
2008-Aug-09 02:48 UTC
Re: UNS: Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
On Tue August 5 2008 7:20:20 am Rudy Ehlers wrote:> > Hi Jim, > > > > I now have the following config: > > > > cat /etc/xen/anya > > bootloader = ''/usr/bin/pygrub'' > > memory = 512 > > name = "anya" > > disk = [''phy:/dev/backup/anya,ioemu:hda1,w''] > > vif = [ '''' ] > > > > > > > > But I still get the same error: > > > > xm create anya > > Using config file "/etc/xen/anya". > > Error: (2, ''Invalid kernel'', ''xc_dom_find_loader: no loader found\n'') > > > > > > > > So, I presume I don''t have the right kernels for Ubuntu, yet they are > > there: > > ll boot/ > > total 25696 > > -rw-r--r-- 1 root root 422607 Apr 10 18:51 abi-2.6.24-16-generic > > -rw-r--r-- 1 root root 79964 Apr 10 18:51 config-2.6.24-16-generic > > -rw-r--r-- 1 root root 85149 Apr 10 19:06 config-2.6.24-16-xen > > drwxr-xr-x 2 root root 4096 Aug 5 01:38 grub > > -rw-r--r-- 1 root root 6635463 Aug 5 00:24 initrd.img-2.6.24-16-generic > > -rw-r--r-- 1 root root 6791966 Aug 5 00:24 initrd.img-2.6.24-16-xen > > -rw-r--r-- 1 root root 6792141 Aug 5 00:24 initrd.img-2.6.24-16-xen.bak > > -rw-r--r-- 1 root root 899892 Apr 10 18:51 System.map-2.6.24-16-generic > > -rw-r--r-- 1 root root 883462 Apr 10 19:06 System.map-2.6.24-16-xen > > -rw-r--r-- 1 root root 1904248 Apr 10 18:51 vmlinuz-2.6.24-16-generic > > -rw-r--r-- 1 root root 1730948 Apr 10 19:06 vmlinuz-2.6.24-16-xen > > > > > > So, what else can I do?You need to look at your domu''s /boot/grub/grub.conf. The ''Default='' line is probably pointing to the generic kernel, instead of the xen kernel. Don''t know when the list will be back up, but I''ll keep forwarding this msg each time it bounces, for the list, even tho'' I''ve included you in the mailing To: headers. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users