[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Install ubunto domU


  • To: admin@xxxxxxxxxxx
  • From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
  • Date: Thu, 13 May 2010 02:45:30 -0700 (PDT)
  • Cc: "Nuno L. Ferreira" <nunolf@xxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 13 May 2010 02:47:04 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=iQpayMAhvRojfXIWORvKkx1StloyPQJUSmJfbBAxOOuMZ2fIHPvyT2qje+aSxmaXa7esia3kZG9gLZtpoAq9TwxfBFeG27Oq/j/LncRjUtvJQVq00WpXABojIu+GLWaM+hoXOmzZoMj17g3ou5TR1EaXLDRBpTIhLSS5vCB6tf0=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

When done DomU may be loaded via profile with your's patch back ported to Xen 4.0 :

root@ServerLnx:/home/boris/ubuntu# cat ubuntu.py
name="U10PV"
memory=2048
disk = ['phy:/dev/sdb5,xvda,w' ]
vif = [ 'bridge=eth0' ]
vfb = [ 'type=vnc,vncunused=1']
bootloader = "/usr/bin/pygrub"
vcpus=2



On DomU :

# lsmod | grep xen

xen_fbfront             7225  1
fb_sys_fops             1611  1 xen_fbfront
sysimgblt               2547  1 xen_fbfront
xen_kbdfront            4249  0
sysfillrect             3949  1 xen_fbfront
syscopyarea             3640  1 xen_fbfront
xen_netfront           17890  0
xen_blkfront           10697  3


You are right regarding VFB.

Boris.



--- On Thu, 5/13/10, David Markey <admin@xxxxxxxxxxx> wrote:

From: David Markey <admin@xxxxxxxxxxx>
Subject: Re: [Xen-users] Install ubunto domU
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: "Nuno L. Ferreira" <nunolf@xxxxxxxxx>, "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Date: Thursday, May 13, 2010, 5:13 AM

1. I never really found a use for vfb. This is ubuntu server. If you're looking for a desktop after the install you can modprobe xen-fbfront.

2. If you're deploying a lot of machines i have used http-replicator to cache the packages so they're only downloaded once. 




On 13 May 2010 10:03, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
I was able to start installer :

root@ServerLnx:/home/boris/ubuntu# wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/xen/vmlinuz
--2010-05-13 12:36:14--  http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/xen/vmlinuz
Resolving archive.ubuntu.com... 91.189.92.167, 91.189.88.30, 91.189.88.31, ...
Connecting to archive.ubuntu.com|91.189.92.167|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4037888 (3.9M) [text/plain]
Saving to: `vmlinuz'

100%[========================================================================>] 4,037,888    101K/s   in 27s    

2010-05-13 12:36:41 (144 KB/s) - `vmlinuz' saved [4037888/4037888]

root@ServerLnx:/home/boris/ubuntu# wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/xen/initrd.gz
--2010-05-13 12:37:02--  http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/xen/initrd.gz
Resolving archive.ubuntu.com... 91.189.92.166, 91.189.92.167, 91.189.88.30, ...
Connecting to archive.ubuntu.com|91.189.92.166|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9678415 (9.2M) [application/x-gzip]
Saving to: `initrd.gz'

100%[========================================================================>] 9,678,415    200K/s   in 60s    

2010-05-13 12:38:03 (156 KB/s) - `initrd.gz' saved [9678415/9678415]

root@ServerLnx:/home/boris/ubuntu# cat ubuntu.cfg
name="U10PV"
memory=2048
disk = ['phy:/dev/sdb5,xvda,w' ]
vif = [ 'bridge=eth0' ]
# vfb = [ 'type=vnc,vncunused=1']
kernel = "/home/boris/ubuntu/vmlinuz"
ramdisk = "/home/boris/ubuntu/initrd.gz"
vcpus=2



# xm create -c ubuntu.cfg

and see several obvious disadvantages (vs HVM convertion) :

1. VFB doesn't work
2. After selecting local mirror "Installing base system" is already running for 15 min
at 2MB/sec ADSL connection.

Boris.

--- On Thu, 5/13/10, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>

Subject: Re: [Xen-users] Install ubunto domU
To: admin@xxxxxxxxxxx
Cc: "Nuno L. Ferreira" <nunolf@xxxxxxxxx>, "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Date: Thursday, May 13, 2010, 4:05 AM


Virt-install HVM :

# virt-install -n LucidSRV -r 1024 --hvm --vnc -f /dev/sdc7 -c /root/isos/UbuntuServer10.04.iso --debug

> Ubuntu now has a fully PV xen aware netboot installer available, so installing HVM and doing a "conversion" isnt necessary.

I don't know what you mean exactly, but Karmic,Jaunty,Intrepid Servers PV DomUs may be also installed via debootstrap. View for instance:

http://bderzhavets.wordpress.com/2009/05/02/debootstrap-ubuntu-jaunty-pv-domu-at-xen-331-f10-dom0-kernel-2630-rc3-tip/
 

Does Ubuntu provide URL acceptable for " --location URL" option of virt-install ?


Boris.

--- On Wed, 5/12/10, David Markey <admin@xxxxxxxxxxx> wrote:

From: David Markey <admin@xxxxxxxxxxx>
Subject: Re: [Xen-users] Install ubunto domU
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>, "Nuno L. Ferreira" <nunolf@xxxxxxxxx>
Date: Wednesday, May 12, 2010, 4:56 PM

Ubuntu now has a fully PV xen aware netboot installer available, so installing HVM and doing a "conversion" isnt necessary.

As for how to make virt-install work with this, i'm not so sure. I'm assuming its using a debootstrap style install.



On 12 May 2010 21:43, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
Create Lucid HVM via virt-install and load same image via pygrub,
without switching /boot/grub/grub.cfg to no UUID mode on HVM

Boris.

--- On Wed, 5/12/10, Nuno L. Ferreira <nunolf@xxxxxxxxx> wrote:

From: Nuno L. Ferreira <nunolf@xxxxxxxxx>
Subject: [Xen-users] Install ubunto domU
To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Date: Wednesday, May 12, 2010, 3:48 PM


Dear *,

I'm more used to work with RedHat like OSes. Still, I did not denied the request from a user who wants a domU based on ubunto. I usually use virt-install to do the job, with a script similar to this one:

#!/bin/sh
BASE=SL-4.7-i386-pv \
virt-install --nographics     \
             --nonsparse      \
             --paravirt       \
             --noreboot       \
             --file-size=4    \
             --ram=512        \
             --vcpus=1        \
             --name=$BASE-`date +%d%m%y`     \
             --file=$BASE-`date +%d%m%y`.img \
             --location=ftp://linuxsoft.cern.ch/scientific/47/i386/

I tried several --location values for ubunto (e.g. http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/xen/ )
but I'm always getting the following error:

Starting install...
ERROR    Could not find an installable distribution at 'http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images'

Can someone point me to the right direction? Clearly I'm missing something, probably virt-install only works for RH like. Also open to suggestions of installing domU's using other methods.
Thank you,
N.

-- ==============================================
Nuno Ricardo Santos Loureiro da Silva Ferreira

NMR Spectroscopy Research Group
Bijvoet Center for Biomolecular Research
Utrecht University
Bloembergen gebouw
Padualaan 8, 3584 CH Utrecht
The Netherlands

P: +31.(0)30.253 9932
F: +31.(0)30.253 2652
E: n.l.ferreira@xxxxx
W: http://nmr.chem.uu.nl
==============================================


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


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



-----Inline Attachment Follows-----


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



-----Inline Attachment Follows-----

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

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.