WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Cloning a Windows VM

To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Cloning a Windows VM
From: Ligesh <myself@xxxxxxxxxx>
Date: Wed, 20 Jun 2007 04:43:12 +0530
Delivery-date: Tue, 19 Jun 2007 15:56:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
 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

<Prev in Thread] Current Thread [Next in Thread>