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] want to install Ubunto domU on CentOS dom0 - do I use FV

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-users] want to install Ubunto domU on CentOS dom0 - do I use FV or PV?
From: "Christopher Isip" <cmisip@xxxxxxxxx>
Date: Sun, 27 Jul 2008 17:44:01 -0400
Cc: Rudi Ahlers <Rudi@xxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 27 Jul 2008 14:44:43 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=hQU5uY4rmANZ1alcQ6KkSw2xMpe6YRDpD/uQT/D6JxA=; b=P9rJVkMAIgvZZvy84SwOl+LwvPbrVMxrIErpc89SKWVu4hHqOZ4Q+HbWv08ctUQhGc 0QBrZUq8d8fPiX5gG8vFeCRhlgpTFYAulnTS5NZCXUWbDWh3gPgjS+hvb2zy5HrmCTv3 5vxY1+9sxvpFpfU68hB+6B6wdkW4pqwK0dvSM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=fsk8IIBAFA2NAdxl2/98qI4HQcm4ktyKD30EWOL7VDvVbbRZcptE1S2SAMTlyP7LKC 8vKMlsftCGv8DJfkL96jbFzRQ879waNDPWjRKVVPKPkVj+viZHPxcNb0cWYuDMXf0AMe ezDs+cM/7OXPukyUufe98B9ZV7FiW2gJmoGLk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200807271927.05740.mark.williamson@xxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4889B0D1.3030803@xxxxxxxxxxx> <200807271927.05740.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Sun, Jul 27, 2008 at 2:27 PM, Mark Williamson <mark.williamson@xxxxxxxxxxxx> 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/)

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users