I have about a dozen virtual machines that used to run under VMware
Server 2.x until something changed in RHEL5. Half of them are various
flavors of Windows workstation & server, while the others are Fedora. I
want to convert them to the native KVM virt-manager format. Up to now
the results of searches on how to accomplish those conversions have been
either way too brief or completely off target.

I've tried running 'qemu-img' and 'virt-convert'. With both I've found
myself standing on first base blindfolded with no clue how to get to
home plate.

The source directory for one of the conversion targets is:

        $ ls -l /pub/Virtual-Machines/F10-64b
        total 10787500
        -rw------- 1 doc doc 1073741824 Oct 12  2008 
564d9171-490c-0367-1951-809d15844fce.vmem
        drwxrwxrwx 2 doc doc       4096 Oct 12  2008 
564d9171-490c-0367-1951-809d15844fce.vmem.lck
        -rw------- 1 doc doc 1016201216 Oct 12  2008 F10-64b-s001.vmdk
        -rw------- 1 doc doc  679280640 Oct 12  2008 F10-64b-s002.vmdk
        -rw------- 1 doc doc  235995136 Oct 12  2008 F10-64b-s003.vmdk
        -rw------- 1 doc doc  111673344 Oct 12  2008 F10-64b-s004.vmdk
        -rw------- 1 doc doc   22478848 Oct 12  2008 F10-64b-s005.vmdk
        -rw------- 1 doc doc  271908864 Oct 12  2008 F10-64b-s006.vmdk
        -rw------- 1 doc doc   54001664 Oct 12  2008 F10-64b-s007.vmdk
        -rw------- 1 doc doc   22544384 Oct 12  2008 F10-64b-s008.vmdk
        -rw------- 1 doc doc  229965824 Oct 12  2008 F10-64b-s009.vmdk
        -rw------- 1 doc doc   21757952 Oct 12  2008 F10-64b-s010.vmdk
        -rw------- 1 doc doc   15269888 Oct 12  2008 F10-64b-s011.vmdk
        -rw------- 1 doc doc 1960706048 Oct 12  2008 F10-64b-s012.vmdk
        -rw------- 1 doc doc 2119958528 Oct 12  2008 F10-64b-s013.vmdk
        -rw------- 1 doc doc 1855782912 Oct 12  2008 F10-64b-s014.vmdk
        -rw------- 1 doc doc  568393728 Oct 12  2008 F10-64b-s015.vmdk
        -rw------- 1 doc doc  775421952 Oct 12  2008 F10-64b-s016.vmdk
        -rw------- 1 doc doc      65536 Oct 12  2008 F10-64b-s017.vmdk
        -rw------- 1 doc doc       8684 Oct 12  2008 F10-64b.nvram
        -rw------- 1 doc doc       1037 Oct 12  2008 F10-64b.vmdk
        -rw------- 1 doc doc          0 Oct 12  2008 F10-64b.vmsd
        -rwxr-xr-x 1 doc doc       2142 Oct 12  2008 F10-64b.vmx
        -rw------- 1 doc doc        262 Oct 12  2008 F10-64b.vmxf
        -rw-r--r-- 1 doc doc     237095 Oct 20  2008 vmware.log

I want the conversion products to go to /pub/VM/F10-64b/. Running
qemu-img doesn't produce much:

        $ qemu-img convert /pub/Virtual-Machines/F10-64b/F10-64b.vmdk -O raw 
/pub/VM/F10-64b/F10-64b.img
        $ ls -l /pub/VM/F10-64b/
        total 8
        -rw-r--r-- 1 doc doc 1024 Jan 16 14:35 F10-64b.img

Running virt-convert doesn't produce much more:

        $ virt-convert -i vmx -o virt-image /pub/Virtual-Machines/F10-64b/ 
/pub/VM/vm-f10-64b
        Generating output in 'virt-image' format to /pub/VM/
        Converting disk 'F10-64b.vmdk' to type raw...
        Done.
        $ ls -l /pub/VM
        total 16
        -rw-r--r-- 1 doc doc 1024 Jan  6 12:22 F10-64b.raw
        -rw-rw-r-- 1 doc doc  464 Jan  6 12:22 vm-f10-64b

Both of these seem to produce a metadata descriptor file. There must be
several more steps required to produce a complete VM image set that will
run under virt-manager, but I'm darned if I can figure out what they
are.

Can someone please provide a link detailing the rest of the process?

--Doc Savage
  Fairview Heights, IL

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to