
On Sat, Oct 16, 2010 at 06:55:13PM +0530, Tapas Mishra wrote:
Richard Jones wrote:
guestfish -a /dev/lvm0/win2003-01-a <<EOF run part-disk /dev/sda mbr mkfs ntfs /dev/sda1 EOF
Are you suggesting to erase mbr also? The guy is adding another disk to his vm so why does one need to erase mbr in vm?
OK, I see your confusion. When you add disks to libguestfs, they appear as /dev/sda, /dev/sdb and so on, in the same order that you added them. In this case I added one disk, 'guestfish -a /dev/lvm0/win2003-01-a', which will appear in libguestfs as /dev/sda. This is *not* the same as /dev/sda in a VM. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v