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] Installing CentOS as DomU on Debian Lenny (dom0) Xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Installing CentOS as DomU on Debian Lenny (dom0) Xen
From: Mark Pryor <tlviewer@xxxxxxxxx>
Date: Sat, 15 May 2010 09:50:12 -0700 (PDT)
Delivery-date: Sat, 15 May 2010 09:51:36 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1273942212; bh=jUTbyQgVMqIycs/W7LmNpql09ovi+vS2tXRcqERT/qg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=GpkfNGxmsdxpYk6v8Lplt2S2lfKYN8KpahFHCAxU3A9/Ttn2EwsMvvLvVXkOON11kg8MpiwBmdbAXH38AKuRhTX1Vyq0aUHzLnENaRaeKKCZa2IAQjEseuiV99b3tou+fprQUvEajU9yVH+GHh67R8ESWFHJBThNHfOp/J0exng=
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:In-Reply-To:MIME-Version:Content-Type; b=jp9IHNaKC4miptDauaKTsK45uwbCmgqHHBZ/kmWztq+6pX32/iRI+zuHIQ5PzmKwEkrBh2UfszW8bkh8l8Sc0yrdXcssSLtg96BUJzXvarIEV9itZ64MC2j9/PuPvHV7Q/U3DWLf4MZaJLFfdIPiolMoyCpjrWq95SdsF28YEyM=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTil3CV9RILvhTul1Tb45vrRCAOjYiICsbjrW8v8B@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

--- On Fri, 5/14/10, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:

> From: Tapas Mishra <mightydreams@xxxxxxxxx>
> Subject: [Xen-users] Installing CentOS as DomU on Debian Lenny (dom0) Xen
> To: "Xen List" <xen-users@xxxxxxxxxxxxxxxxxxx>
> Date: Friday, May 14, 2010, 10:36 PM
> Hi,
> I have searched the question which I am asking.But if some
> one has
> mentioned on their blog or link some where they have
> mentioned as how
> they
> installed CentOS as DomU on Debian Lenny (dom0)running
> xen-3.2.1 and I
> should have a look

Go here and grab your boot files:
http://mirrors.kernel.org/centos/5.5/os/x86_64/images/xen/

vmlinuz
initrd.gz

$ cat cent55.py
name = "cent55"
uuid = "442db20d-7a82-409b-b8aa-a352c1fe127c"
maxmem = 512
memory = 512
vcpus = 2
#bootloader = "/usr/bin/pygrub"
#bootargs = "-q"
#kernel="/usr/lib/xen/boot/pv-grub-x86_64.gz"
# kernel=/vmlinuz-2.6.18-194.el5xen initrd=/initrd-2.6.18-194.el5xen.img
on_poweroff = "destroy"
on_reboot = "destroy"
on_crash = "destroy"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "phy:/dev/maxvm/cent55,xvda,w" ]
vif = [ "bridge=br0,mac=00:16:3e:3b:2a:2f" ]
extra = " install=http://mirrors.kernel.org/centos/5.5/os/x86_64/ console=tty0 
console=ttyS0,38400n8 console=xvc0"
------------------------ snip ----------------

to kickoff your PV install
$sudo xm create -c cent55.py kernel=vmlinuz ramdisk=initrd.gz

you will boot into a netinstall. You can point the installer back to 
the same http source above where the xen boot files came from, or better yet, 
use a local resource.

Be prepared to switch over from a console to vnc when prompted by the text 
install.

Accept installer defaults.
Before you do "first boot", test that pygrub can find your install.
#pygrub -q /dev/VolGrp/LV

Check the path /var/run/xend/boot. If there is no /boot subfolder, then create 
it.

you should see something like this:
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /grub/menu.lst
linux (kernel /var/run/xend/boot/boot_kernel.P0o6ev)(ramdisk 
/var/run/xend/boot/boot_ramdisk.Y5yCn_)(args "ro root=/dev/VolGroup00/LogVol00 
console=xvc0 noresume selinux=0 ")

then edit cent55.py and uncomment the pygrub lines (x2).

To get the clock working, do
#nano /etc/sysctl.conf

add:
xen.independent_wallclock=1

to accept your changes
#sysctl -p

#yum install ntp
#chkconfig ntp on

I went throught this yesterday on karmic dom0 with no trouble.

-- 
Mark


      

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