thllgo, not sure if this helps but you can use the --import feature of virt-install. Basically, what you have to do is as follows:
1 - figure out how the guest OS is stored (image files, logical volume, etc.)
2 - read the contents of dumpxml xxxx (from virsh where xxxx is your guest OS) and write down the key parameters
3 - copy over the guest OS image (assuming it's an image) to your new host machine
4 - fire up virt-install and use the --import parameter
For instance, if your guest OS is on "virtual.img" in some directory (here it's /home/temp), you can fire it up on your new KVM host like this (the other parameters are made up):
virt-install \
--accelerate -v \
-w bridge:br0 \
-n virtual1a \
-r 2000 \
--os-variant=rhel5.4 \
--vnc \
--import \
--disk path=/home/temp/virtual1.img
Step 2 is the trickier part if it's a LV or something (an image file is nice because you can just copy it over). Also, for step 4, you're virt-install parameters should be informed by what you see from the dumpxml results (step 2). It seems like you should be able to skip virt-install and somehow "dump" and "import" directly in virsh, but we haven't tried that. Anyway, hope that helps.
|