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

Re: [Xen-users] Partition vs disk images


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
  • Date: Fri, 02 May 2008 09:10:03 +0100
  • Delivery-date: Fri, 02 May 2008 01:10:53 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=TLTgEp4rtPYBe3xymKXHepZCL1a7EDmKSkEdVuEiOTmNj+s5Y2elU1YxdbbrhJJpJISyq1y2zSkv9pUhBbYmZ21xXFQMucQsn1q01B+Ez+ZmciYSSVG7AFNnw0wbnlV0UgYUVgAKT9uM5EFftLcUE4QminGQZILojqngt5qwUmk=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Kai Schaetzl wrote:
I didn't find a way to directly install on the LV, but it's possible to install like normal to xvda and just use one partition (one could use more, but then it gets more complex). Then attach another LV and copy the the system over: cp -ax /{bin,boot,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,usr,var} /mnt/vm4

create dev, proc and sys directories
change fstab and grub.conf (to use /dev/sda1 or whatever you name it)
disable selinux in /etc/selinux/config
xm create the new vm with a config file that fits
Don't forget to change the network configurations, as well, and set a new MAC address in your Xen configuration files. Or the new image will much with the network connections of your old image.

Unfortunately, RHEL's installation tools and CD image do not deal well with running 'grub-install' from their CD rescue images. You have to do something clever like duplicate the /boot partition and grub boot loader with tools like 'dd', and keep /boot as your tiny first partition, if you intend to use the pygrub tool normally used with RHEL for booting Xen images. Otherwise you have to keep a copy of the guest kernel on your server: this is a *NASTY* problem if you use the Xensource kernels, which traditionally had the same kernel name for RHEL 4 and RHEL 5 kernels.

This is outlined in more detail here:
http://www.virtuatopia.com/index.php/Building_a_Xen_Virtual_Guest_Filesyst
em_using_Logical_Volume_Management_%28LVM%29
but you don't have to do all these steps, just what I did.

Kai



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