Tag Archives: virt-p2v

virt-p2v, virt-v2v in Fedora 14+

I have built latest virt-p2v and virt-v2v packages for Fedora 14, 15, 16 and Rawhide. These are highly experimental and may not work, but please help us to try them out.

virt-p2v Rawhide
virt-p2v F16
virt-p2v F15
virt-p2v F14

virt-v2v Rawhide
virt-v2v F16
virt-v2v F15
virt-v2v F14

For virt-p2v you have to run virt-p2v-image-builder. For more details see the virt-p2v and virt-v2v home page.

If you find problems, join us on #libguestfs on FreeNode, or post to the virt-tools mailing list.



Filed under Uncategorized

New virt-p2v and virt-v2v page

I’ve added a virt-p2v and virt-v2v page describing the new version and where to get all the sources etc.


Filed under Uncategorized

libguestfs, virt tools, virt-v2v, virt-p2v Summit video

The video is up here. It’s only available to Red Hat subscribers. You’ll need an RHN account of some sort for access.

The handouts which go with the talk are here.

Thanks to Sean Huck who did a good job editing the video into shape.

Leave a comment

Filed under Uncategorized

Red Hat Summit: hand-outs for our talk

Thanks to everyone who came to our Summit talk this year. We must have had over 200 people there.

There will be a video — it’s not up yet.

In the meantime, here are the hand-outs which contain background, documentation and worked examples. Both are PDFs:


Filed under Uncategorized

Reminder: Summit talk on libguestfs, virt-v2v

Anyone who’s coming to the Red Hat Summit next week (Boston USA, May 3-6), please remember to drop in at our talk on libguestfs, the virt tools, virt-v2v and virt-p2v. It’s on Wednesday morning at 11.30am.

I will be live demonstrating guestfish, virt-resize and more. Matt will be showing us virt-v2v and the new version of virt-p2v that he has written.

To head off the expected question: Will the slides be available after the talk? Mine won’t because I don’t really “do” slides. However there will be a handout available (either on this blog or on the summit web pages or both) which covers all the background material and contains additional worked examples and exercises. We are hoping the talk will also be videoed like last year.

Leave a comment

Filed under Uncategorized

New virt-p2v screenshot


Filed under Uncategorized

Poor man’s P2V

(P2V = physical to virtual, taking a physical machine and converting it into a virtual machine)

What happens when you have an old server sitting in the corner — the hardware is flaky and you need to set up a virtual equivalent ASAP, but no one can remember how that old server is configured? People will sell you very expensive software to solve this problem for you.

But if you have some time and patience you can do P2V conversions by hand for free, and it’s not too hard. Here’s how.

First of all, grab a bootable Linux rescue CD. A Fedora CD in rescue mode will do just fine, but choose any Linux CD that you’re happy with.

Now you boot your machine from the CD, so that we are in a modern, Linux-based OS. From the Linux command line you will see the physical disks in the machine like /dev/sda or /dev/hda (check /sys/block).

All you do is take each physical disk in turn and copy it complete over to your virtualization host. Just do:

dd if=/dev/sda | ssh root@virthost 'cat > /var/lib/libvirt/images/guest.img'

That makes a block-for-block identical copy of the hard disk, and it usually takes several minutes to an hour to copy everything across, depending how fast the old server and the network is.

Now over to your virtualization host, how do you boot this?

With very recent versions of virt-install there is a virt-install --import option that you can use to import disk images directly.

Alternately, write a libvirt XML configuration file for the virtual machine. It’s usually best to start off with an existing XML configuration, so just pick another guest at random and do virsh dumpxml foo. Take that output, modify it suitably, make sure it’s full virt (“hvm”), and boot using:

virsh define guest.xml

Now at this point it may not in fact boot. You might need to edit a few things inside the virtual machine disk image, typically /etc/fstab, maybe install a new kernel, perhaps edit the network configuration.

Step forward: guestfish and virt-edit.

$ guestfish -i guest.img
$ virt-edit guest.img /etc/fstab

(Note: I am the author of virt-p2v which is currently in a big version 2.0 rewrite).


Filed under Uncategorized