On Mon, Feb 1, 2010 at 9:32 AM, <satimis@xxxxxxxxxxxxxx> wrote: > Hi folks, > > Host – Fedora 12 64bit > KVM – virtualization software > > > I have 8 VMs on this virtual machine running different OS. Can VMs be > moved/copied to another PC of similar hardware config running Fedora 12 > (64bit) as host and KVM The below worked for me between two Fedora 12 hosts. I used virsh(comes with libvirt-client) 1) 'virsh dumpxml <domain(s) (or) id > ' (this will dump the guest machine info. into XML) 2) copy your qcow2(or whatever format) image files from host1 to host2(which of similar config as host1) 3) 'virsh define <xml file>' for the dumped xml files from step 1) (for each of the guests) 4) Now you should be good to start/run the guests on your host2 running KVM Your milage may vary. See virsh manpages for more. > > If Yes, whether copying following files, > > e.g. copying following files and paste them on the same /path/to/directory > > # ls -l /etc/libvirt/qemu/ > total 52 > ... > -rw------- 1 root root 1293 2010-01-14 22:48 vm01.xml > -rw------- 1 root root 1293 2010-01-11 17:19 vm02.xml > -rw------- 1 root root 1302 2010-01-11 19:11 vm03_ub9164.xml > -rw------- 1 root root 1273 2010-01-12 02:09 vm04_f1264.xml > -rw------- 1 root root 1193 2010-01-23 02:21 vm05_wser08.xml > -rw------- 1 root root 1368 2010-01-25 22:44 vm06_wser08.xml > -rw------- 1 root root 1389 2010-01-27 11:04 vm07_wser0832.xml > -rw------- 1 root root 1370 2010-01-27 22:23 vm08_vista32.xml > ... > > > # ls -l /home/satimis/ | grep vm > -rwxr-xr-x 1 root root 12884901888 2010-01-22 07:56 vm03_9164.qcow2 > > > # ls -l /home/satimis/VM/ | grep vm > -rwxr-xr-x 1 root root 12884901888 2010-01-23 08:19 vm01.qcow2 > -rwxr-xr-x 1 root root 12884901888 2010-01-23 08:16 vm02.qcow2 > -rwxr-xr-x 1 root root 12884901888 2010-01-26 22:33 vm04_f1264.qcow2 > > # ls -l /home/satimis/VM/VMWIN/ | grep vm > -rwxr-xr-x 1 root root 32212254720 2010-01-23 06:55 vm05_wser08.qcow2 > -rwxr-xr-x 1 root root 32212254720 2010-01-27 23:07 vm06_wser08.qcow2 > -rwxr-xr-x 1 root root 32212254720 2010-01-27 12:45 vm07_wser0832.qcow2 > -rwxr-xr-x 1 root root 32212254720 2010-01-28 00:14 vm08_vista32.qcow2 > > > What about if the host is running different OS, say Debian etc. can it also > work? haven't tried this. /kashyap > > TIA > > > B.R. > Stephen L > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html