Gregor Pirnaver
2006-Apr-11 08:35 UTC
[Fedora-xen] How to use xenguest-install.py to install to LVM?
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/
Henning Sprang
2006-Apr-11 12:48 UTC
Re: [Fedora-xen] How to use xenguest-install.py to install to LVM?
Hi,> --- Ursprüngliche Nachricht --- > [...] > 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?There was somebody else having problems with the fedory python script. I don''t have a fedory install in front of me right now. I''d look into the python script to see if it accepts any options to do something else but the default, which is it creates a file as block device at the location you give there. The other solution is just create your domU on your own with the older howto in the fedora wiki (the one which is not suffixed with "5"). Henning
Jeremy Katz
2006-Apr-11 14:36 UTC
Re: [Fedora-xen] How to use xenguest-install.py to install to LVM?
On Tue, 2006-04-11 at 10:35 +0200, Gregor Pirnaver wrote:> 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?Yes, as it turns out, the entire OS expects to have _disks_, not partitions. And going through and changing those assumptions isn''t that reasonable. Instead, you export disks and things work.> BTW is there a way to mount "xvda" paritions?You can use device-mapper (via, eg, kpartx) or lomount for mounting partitions on an arbitrary block device like this Jeremy
Denis Forveille
2006-Apr-12 03:20 UTC
Re: [Fedora-xen] How to use xenguest-install.py to install to LVM?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Verdana">I have the same problem/questions as yours (see my previous post named "need advices on how to install domU with xenguest-install")<br> This is how I manage to install FC5 in an lvg as a domU on my x86_64 system (guest named FC5-2):<br> Basic instructions:<br> - In dom0: <br> - create an lvg, format it with ext3<br> </font></font><font size="-1"><font face="Verdana"> - install the domU kernel locally (will be used to boot domU): yum install kernel-xenU.x86_64</font></font><br> <font size="-1"><font face="Verdana">- 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...<br> - dont install grub, configure Your network as normal<br> - reboot in dom0 (remove the DVD...)<br> - mount the lvg in some local fs (let say /ZZ),<br> - edit /ZZ/etc/fstab like this:<br> /dev/sda1 / ext3 defaults 1 1<br> devpts /dev/pts devpts gid=5,mode=620 0 0<br> tmpfs /dev/shm tmpfs defaults 0 0<br> proc /proc proc defaults 0 0<br> sysfs /sys sysfs defaults 0 0<br> - run yum --installroot=/ZZ install kernel-xenU.x86_64<br> - create a file in /etc/xen/FC5-2 like this: <br> name = "FC5-2"<br> memory = "300"<br> disk = [ ''phy:<name of your lvg>,sda1,w'' ]<br> vif = [ ''mac=00:16:3e:11:2c:e9'' ]<br> kernel="/boot/vmlinuz-2.6.16-1.2080_FC5xenU"<br> ramdisk="/boot/initrd-2.6.16-1.2080_FC5xenU.img"<br> root="/dev/sda1"<br> extra = "ro selinux=0 3" <br> on_reboot = ''restart''<br> on_crash = ''restart''<br> - umount /ZZ<br> - xm create -c FC5-2<br> This should start your guest. logon as root, </font></font><font size="-1"><font face="Verdana"> perform basic configuration when requested to do so (network, disable selinux..)</font></font><br> <font size="-1"><font face="Verdana">- yum remove kernel-2.6.15-1.2054_FC5<br> - yum update<br> </font></font><font size="-1"><font face="Verdana">- vi ~/.vnc/xstartserver. replace "twm" by "gnome-session"<br> - vncserver<br> <br> Then start vncviewer from dom0,, and then configure services with gnome (disable all unneeded services...) and configure your guest..<br> You can also perform rm /boot/*2054* from dom0<br> <br> To create a new server from that one (make a clone named FC5-3):<br> </font></font><font size="-1"><font face="Verdana">- xm shutdown FC5-2<br> </font></font><font size="-1"><font face="Verdana">- create another lvg identical to the first one<br> - mount both lvg on local fs<br> - cp -ar fs_lvg1 to fs_lvg2<br> - cp /etc/xen/FC5-2 /xen/FC5-3. change the mac address and the name of the lvg...<br> </font></font><font size="-1"><font face="Verdana">- umount both fs<br> </font></font><font size="-1"><font face="Verdana">- xm create -c FC5-3<br> - logon, vncserver<br>>From dom0 start vncviewer. There use the gnome/network manager tochange the network adress <br> logout, shutdown, restart...<br> <br> You can also create another lvg for swap, pass it in the config file, start ur guest and configure the swap stuff there...<br> <br> I hope that helps.<br> 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...)<br> <br> I start to LOVE xen. I hope in some future, we''ll be able to run X/gnome in at least one domU...<br> <br> Denis<br> <br> <br> <br> </font></font><br> Gregor Pirnaver wrote: <blockquote cite="mid20060411083530.A12108B7BD@www1.email.si" type="cite"> <pre wrap="">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? <a class="moz-txt-link-freetext" href="http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/">http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/</a> 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? ____________________ <a class="moz-txt-link-freetext" href="http://www.email.si/">http://www.email.si/</a> -- Fedora-xen mailing list <a class="moz-txt-link-abbreviated" href="mailto:Fedora-xen@redhat.com">Fedora-xen@redhat.com</a> <a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-xen">https://www.redhat.com/mailman/listinfo/fedora-xen</a> </pre> </blockquote> </body> </html>
Stephen C. Tweedie
2006-Apr-12 20:56 UTC
Re: [Fedora-xen] How to use xenguest-install.py to install to LVM?
Hi, On Tue, 2006-04-11 at 23:20 -0400, Denis Forveille wrote:> Maybe there is a faster way to do itInstall to an LVM should Just Work --- I have half a dozen different Xen guests on different LVs on one of my boxes. The default setup partitions the LV as a disk, not as a single filesystem, true; but if you want to share the data with the dom0, then you can do so easily with lomount (it''s easiest if you don''t get the domU to set up its own LVM on top if you''re going to do this.) --Stephen