|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Best way to convert pv to hvm?
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
|
|
|
|
|