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

Re: [Xen-users] Best way to convert pv to hvm?



Nico Kadel-Garcia wrote:
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.

I ended up with:

Power off the domu.
Create a large disk file to hold the data.  Edit the .cfg file to add
this to the domu.
Power on the domu, and fdisk/mkfs on the new virtual disk.
Power off the domu.
Mount the new partition and the old partition
Do rsync -av between new and old.
Make any required fstab alterations.
Alter the cfg file to remove the old partions and just use the new file.
Power on the domu.  Make sure everything works.
Install grub/kernel/etc.

If I could work out a way of making the mkfs work without having to boot
the domu with the virtual file it would be a lot quicker... could
probably even script it (well maybe not the fstab stuff).

Tony




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