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] Partition vs disk images

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Partition vs disk images
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=MAcprx8sHFkxVQJj2y8ZUkMMmM3z2cDiauYJtrBd8uM=; b=NWWh4TNY1R5XsKphkOtee2ffNV6jd3cSh79EgtMwCPAInYkaQmQOgDWZHOUQ8qZ8bUHBFauN3T3nHxI5nai4QzQSdAutND/v/T4HS4iaCC4Xqg6Jpnkph0BHIBg8ASHeZjAq+Rcdb+wssHideYXQnxZ3DrFsQTxgI4Q6ePy3V7g=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <VA.000031bb.016786d1@xxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <738584f80804281813x180002f5oc4f32cfeebd248cb@xxxxxxxxxxxxxx> <738584f80804291919o60087355k553f260411c1ec53@xxxxxxxxxxxxxx> <4817DB98.6060605@xxxxxxxxxxxx> <4817E439.1000604@xxxxxxxxx> <VA.000031b9.0108845e@xxxxxxxxxxxxxxxxxx> <VA.000031bb.016786d1@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
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

<Prev in Thread] Current Thread [Next in Thread>