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

Re: [Xen-users] Question on Starting Centos52 DomU



On Thu, Mar 12, 2009 at 8:48 PM, Stephen Spector
<stephen.spector@xxxxxxxxxx> wrote:
> I want to learn the hard way and do things by hand.
>
> I will look at initrd. Thanks.

I didn't notice your email address on the first reply :D

So out of curiosity, I tried
http://jailtime.org/download:centos64:v5.2. At first glance it's setup
is not quite the same as mine, in that it uses dom0's kernel. So what
I did to get it working was :

- untar the tbz2
- copy the contents of the .img file to a LV with rsync -avP (I always
use LVM-backed storage)
- mount the LV, chroot
- create /etc/resolv.conf
#======================
nameserver NAME_SERVER_IP_ADDRESS_HERE
#======================

- create /etc/modprobe.conf
#======================
alias eth0 xennet
alias scsi_hostadapter xenblk
#======================

- yum -y install kernel-xen vim-enhanced grub (this will also create a
suitable initrd, since I already create a suitable /etc/modprobe.conf)

- create /boot/grub/menu.lst
#======================
default=0
timeout=5
hiddenmenu
title xen-domU
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-92.1.22.el5xen ro root=/dev/sda1
        initrd /boot/initrd-2.6.18-92.1.22.el5xen.img
#======================

- edit /etc/inittab, add "co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav"
- edit /etc/securetty, add "xvc0"
- exit chroot, umount LV

- create domU config
#======================
memory = "500"
maxmem = "8000"

vcpus=8
vcpu_avail=1
cpus="1-7"

disk =  [
        'phy:/dev/rootVG/testlv,sda1,w',
        ]
vif =   [
        'mac=00:16:3E:42:5E:16, bridge=xenbr0',
        ]
bootloader="/usr/bin/pygrub"
#======================

- xm create -c

That's about it, I can login with user "root", password "password"

Regards,

Fajar

_______________________________________________
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®.