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] How to create an ubuntu 10.04 virtual machine on ubuntu

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to create an ubuntu 10.04 virtual machine on ubuntu 8.04?
From: Dario Fiumicello - Antek <fiumicello@xxxxxxxx>
Date: Thu, 27 Jan 2011 10:35:11 +0100
Delivery-date: Thu, 27 Jan 2011 01:36:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimPAGh2b_xKe+4cTztnAFJvgFGAyVowjdtUG7zm@xxxxxxxxxxxxxx>
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: <AANLkTimPAGh2b_xKe+4cTztnAFJvgFGAyVowjdtUG7zm@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
Il 27/01/2011 10:14, Marco Weber ha scritto:
hello,

I'm new to xen. (Before i've used ESX...)
On the ubuntu 8.04 host machine i've always created images with
xen-create-image...
Unfortunately it cannot create lucid (10.04) images...

i've already tried to do it by foot, but the VM didn't startup... :/
vi /etc/xen/newlucid.cfg
dd if=/dev/zero of=disk,img bs=1024k seek=17k count=0
mkfs -t ext3 disk,img
dd if=/dev/zero of=swap.img bs=1024k seek=1024 count=0
mkswap swap.img
mount -o loop UbuntuXen.img /tmp/xenloop
debootstrap lucid /tmp/xenloop
umount /tmp/xenloop

Anyways, how can this be done easily? How do you setup your XEN VMs?
Is there a way to just install it with a iso-image (cdrom) as i would do it
with VMware?

Thanks a lot in advance for any reply...

See you,
            Marco

Hi, I didn't had Ubuntu 8.04 as dom0 but instead I had debian Lenny. To install Ubuntu 10.04 I do the following (note that I have not Full Virtualization):

- In another computer I did an alternate ubuntu installation of 10.04 using virtualbox - Ubunto must be installed in ext3. I don't know if ext4 will work but while in dubt I prefer to use ext3 (so it is also easy to mount 10.04 images in Lenny/Ubuntu8.04) - Once installed you have to remove grub2 and install (and configure) grub-legacy because pygrub in lenny / ubuntu 8.04 doesn't boot grub2 domUs - You have to install the ec2 kernel (sudo apt-get install linux-ec2) which is the only one which is capable to run on xen PVM environment. - I don't remember if kernel is automagically added to /boot/grub/menu.lst. If not do it yourself

Now your image is ready. Shut down virtualbox and convert the virtual disk image into a raw image by using the tool qemu-img (apt-get install qemu-kvm); example

qemu-img convert -O raw yourimage.vdi yuorimage.raw

Now copy the image on the Xen machine and try to boot it with pygrub.

It worked for me.

HTH

Dario

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>