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 09:52:47 +0100
Cc: Tony Hoyle <tmh@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 05 Jun 2007 01:51:27 -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=GS6ZCtOQBvOCybdBVGo78G5xCXsGPT5ipzOm4emmNhxQFIargwzdrc4hHgqwbhwSu+2qVxN+Yi8JoMCGg8XvfzI5nlH0RxY2qTMIfWuNJ/hFU+K897wLqIv7lZGsZFG2md3TtLA2K89hK7afgIrhLNdOfFSfamDuDmT9zksjLX4=
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=SBxAklB9EPG6XiB2l+FxHZP4LebHDBQDgUyOw12dt1DjsHz48kSDfv3tDhTcyzt9LaYB5HdT2Uy7zoigC9FST62SLalM1fflXTQIMciLaj1D0N02LsKax40GYE+kwEm5sXVbOwUB1nihgE8Jv0k7pvGK8m3+fxz7IHVyseoGtHM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1181017201.5784.251.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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)
Tim Post wrote:
On Tue, 2007-06-05 at 01:08 +0100, Tony Hoyle wrote:
Hi,

I'm trying to convert a number of PV domains to HVM domains. The snag is they're all in separate partitions, so I need to get a unified disk image.

My current plan is to mount the root of dom0 inside a booted domu (single user mode) and dd the entire contents of the virtual disk /dev/sda into a file on the dom0 disk. Is this likely to work? It's gonna be slow I know due to the dom0->domu->dom0 translation but is there perhaps a faster way? I presume xen itself creates a partition table somewhere and if I could get at that and do it entire thing in dom0... is this just a python script generating it at runtime or is it stored somewhere?

Tony

Why not setup the hvm guests to use nfsroots with a brand spanking new
unpartitioned image as well? Just fdisk, format, copy over adjust
config / boot paramaters and reboot.

This also lets you work the neuances you'll need to address in udev and
others when converting. Well , may need to. I have no idea what you have
or I'd make more distro specific suggestions.

Just setup the nfs server on dom-0. I don't use HVM much, but I don't
see any reason why that wouldn't work.

Seems like the easiest way to go for me. Its quite easy to break up var/
usr/ and the rest doing it like that.

Hmm. You're going to have fun and games with partitioning. If you're using a system that does network boot well, it may be feasible to pre-transfer your OS images into an appropriately built lfile image or partition, then use a "rescue" boot mode to boot ot the console form installation sources and successfully set up grub or something else.

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