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] Best way to convert pv to hvm?

To: tim.post@xxxxxxxxxxx
Subject: Re: [Xen-users] Best way to convert pv to hvm?
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Tue, 05 Jun 2007 20:50:49 +0100
Cc: Tony Hoyle <tmh@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 05 Jun 2007 12:49:03 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=i+kV27eE2pPixlaMeNboDawkbdaepat83g7RNxofW/3kfzwXyp9bKKp/0SvyaIRlSW0v0XO//P0sMd+uXsJPPl5qRYAntQSjz7ro7pHXOSmYZ231egM3z7dkhLS89GyUO5lub09nIxjB8yAre13H0Sw4WtTddM+7E752cNqQyiM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=RjatyYi9VRPxA1QAq4rGl2+WuPHz1HCWoeOrMcIOGkC8rTShAv8tr9J71k5Mu0/080Lun01jh3qj0uFXOu+NKnc7hntyr+GoGf7DV8dBckmCc6mLOACaxDF1tkpJn+x8WNckP381PLYTNWkDDdjgh+SH0oIDmPH0AzYKZY6iwqU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1181036824.5786.328.camel@xxxxxxxxxxxxxxxxxxxxx>
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: <4664A97D.2010609@xxxxxxxxxxxx> <1181017201.5784.251.camel@xxxxxxxxxxxxxxxxxxxxx> <46652CC8.5070605@xxxxxxxxxxxx> <1181036824.5786.328.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)
Tim Post wrote:
I'll run through what I'm thinking once more, a little more coherently.

Step 1 - on the guest, install the packager's kernel, modules, grub,
configs, everything that you would find on a normal server.
Step 2 - Stop the guest.

Step 3 - Copy said kernel that you just installed to where you need it
to be. Boot the guest passing the nfsroot option so that it mounts the
PV's file system as / , while also passing a blank block device you can
slice up using the disk tools already present on the PV guest.

Step 4 - Boot, fix udev, copy everything over, take the nfsroot out of
the equation

Done. Just boot the VM now converted to HVM, nuke the PV guests file
system since its no longer being used.
Not sure why you would want to do that, but it seems to be the path of
least resistance unless of course your'e able to work with lomount /
fdisk / parted from dom-0 :)

Don't forget the swap space.
Hmmph. Think about this:

1: Power off the old DomU.

2: Mount and make a tarball of the partition.

3: Boot the HVM in live CD or rescue CD or network boot mode. This gives you access to the next step.

4: Pre-partition the disk visible iin rescue mode. (There is no need for LVM, or extended partitions: you can add new disk drives via Xen later if necessary.)

5: Mount the new partitons.

6: Download and extract the tarballs on top of the mounted partitions.

7: Edit the mounted /etc/fstab and /etc/mtab to match your setup.

8: Reboot with the CD or network boots in "install" mode, and do an update install. This should get you grub or lilo, configured to match your system.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users