[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Cloning a Windows VM



 Hi folks,

 I am trying to manually clone a windows HVM. Here are the steps I followed.

 I am trying to clone a windows HVM running on /dev/VolGroup00/windows to 
another LV /dev/VolGroup00/swindows

 1) losetup -o (63 * 512) /dev/loop6 /dev/VolGroup00/windows

 2) ntfsclone --save-image -O myfile.img /dev/loop6

 3) losetup -d /dev/loop6

 4) parted /dev/VolGroup00/swindows mklabel msdos
 
 5) parted /dev/VolGroup00/swindows unit s  mkpart primary ntfs 0 6666666 set 1 
boot on

 6) losetup -o (63 * 512) /dev/loop7 /dev/VolGroup00/swindows

 7) ntfsclone --restore-image -O /dev/loop7 myfile.img

 8) losetup -d /dev/loop7


 Then I tried to start the VM out of the new LV (swindows). I got an error: A 
disk read error occurred at the beginning. Basically the problem seems to be 
with the disk image I created with parted. ntfsclone is working fine, if I 
write it back on the same LV. 

 Does anyone here know how to create a bootable disk image for windows. Using 
ntfs-utils you can cleanly copy the file system alone into a partition, 
otherwise you end up losing the ability to manipulate the disk size easily.

 Thanks.





 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.