Re: [Fedora-xen] How to use xenguest-install.py to install to LVM?

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

 



I have the same problem/questions as yours (see my previous post named "need advices on how to install domU with xenguest-install")
This is how I manage to install FC5 in an lvg as a domU on my x86_64 system (guest named FC5-2):
Basic instructions:
- In dom0:
  - create an lvg, format it with ext3
  - install the domU kernel locally (will be used to boot domU): yum install kernel-xenU.x86_64
- boot with the DVD, install FC5 in the lvg (You can format it or not), dont select swap file, choose "/boot" partition (the one used by dom0 DONT FORMAT IT of course...) for "/boot", install what you need there. I also gnome there...
- dont install grub, configure Your network as normal
- reboot in dom0 (remove the DVD...)
- mount the lvg in some local fs (let say /ZZ),
- edit /ZZ/etc/fstab like this:
     /dev/sda1 /         ext3    defaults        1 1
     devpts    /dev/pts  devpts  gid=5,mode=620  0 0
     tmpfs     /dev/shm  tmpfs   defaults        0 0
     proc      /proc     proc    defaults        0 0
     sysfs     /sys      sysfs   defaults        0 0
- run yum --installroot=/ZZ install kernel-xenU.x86_64
- create a file in /etc/xen/FC5-2 like this:
     name = "FC5-2"
     memory = "300"
     disk = [ 'phy:<name of your lvg>,sda1,w' ]
     vif = [ 'mac=00:16:3e:11:2c:e9' ]
     kernel="/boot/vmlinuz-2.6.16-1.2080_FC5xenU"
     ramdisk="/boot/initrd-2.6.16-1.2080_FC5xenU.img"
     root="/dev/sda1"
     extra = "ro selinux=0 3" 
     on_reboot   = 'restart'
     on_crash    = 'restart'
- umount /ZZ
- xm create -c FC5-2
This should start your guest. logon as root,
perform basic configuration when requested to do so (network, disable selinux..)
- yum remove kernel-2.6.15-1.2054_FC5
- yum update
- vi ~/.vnc/xstartserver. replace "twm" by "gnome-session"
- vncserver

Then start vncviewer from dom0,, and then configure services with gnome (disable all unneeded services...) and configure your guest..
You can also perform rm /boot/*2054* from dom0

To create a new server from that one (make a clone named FC5-3):
- xm shutdown FC5-2
- create another lvg identical to the first one
- mount both lvg on local fs
- cp -ar fs_lvg1 to fs_lvg2
- cp /etc/xen/FC5-2 /xen/FC5-3. change the mac address and the name of the lvg...
- umount both fs
- xm create -c FC5-3
- logon, vncserver
>From dom0 start vncviewer. There use the gnome/network manager to change the network adress
logout, shutdown, restart...

You can also create another lvg for swap, pass it in the config file, start ur guest and configure the swap stuff there...

I hope that helps.
Maybe there is a faster way to do it (by using shell command instead of gnome for configuration), but at least it works (an you don't need to be a linux expert...)

I start to LOVE xen. I hope in some future, we'll be able to run X/gnome in at least one domU...

Denis




Gregor Pirnaver wrote:
This is what I am doing:

# lvcreate -L32768 -nroot.webserver VolGroup00
# mkfs -t ext3 /dev/VolGroup00/root.webserver
# xenguest-install.py
What is the name of your virtual machine? webserver
How much RAM should be allocated (in megabytes)? 512
What would you like to use as the disk (path)? /dev/VolGroup00/root.webserver
What is the install location?
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/

The problem is that Fedora installation doesn't treat
/dev/VolGroup00/root.webserver as a partion but like a whole disk. How can I
change this? Or how else should I do it?

BTW is there a way to mount "xvda" paritions?

____________________
http://www.email.si/


--

Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

  

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux