Windows 2003 > SelfImage > KVM

twocell

Member
May 12, 2010
59
0
6
I'm trying to convert a 2003 server to a virtual machine.

I've run mergeide.reg, and created an image using Selfimage, transferred it to the proxmox server. I've got a 2003 virtual machine set up on the proxmox web interface. What's next? Do I need to convert the .img file Selfimage generated?

I tried just overwriting a drive I created in both the qcow2 and raw format, but that just leads to a virtual machine that sits there at "Booting from Hard Disk ...".
 
I'm trying to convert a 2003 server to a virtual machine.

I've run mergeide.reg, and created an image using Selfimage, transferred it to the proxmox server. I've got a 2003 virtual machine set up on the proxmox web interface. What's next? Do I need to convert the .img file Selfimage generated?

I tried just overwriting a drive I created in both the qcow2 and raw format, but that just leads to a virtual machine that sits there at "Booting from Hard Disk ...".
Hi,
i'm a little bit confused about your converting. Please post your config (cat /etc/qemu-server/VMID.conf) and the content of the images from the VM:
Code:
cd /var/lib/vz/images/VMID
ls -l
file *

Udo
 
Hi,

This doesn't work with the img file you have to get selfimage to send an image direct to the proxmox server via the qemu-ndb client.


eg.


1) create a new KVM container with a suitable HD size.
2) export the qcow2 in the container directory with NBD

eg.

qemu-nbd -t /var/lib/vz/images/***/vm-***-disk.qcow2

where *** is the VM number

3) install selfimage on windows PC
4) choose to image entire hard disk , not partition
5) on output file select NBD with parameters ip and port 1024

6) start

when imaging is complete you should be able to boot the win m/c in KVM. you may need to use mergeide.reg for non IDE drives.


Hope this helps


James
 
Hmm, this is a practice run for a bigger server where the server is in geographically different location than the proxmox ve server. I'm thinking the NBD method might be slow at best, and have timeout issues at worst. Maybe I better explore the vmware converter.

Thanks James ... definitely helpful.
 
I have used this method between sites over a 10mb link, it did take most of the weekend but worked.

BTW you could use any linux box with qemu installed on to 'capture' the image in qcow2 format, so you could take a laptop with suitable HD to site and leave it going!

James
 
Last edited by a moderator: