Re: [virt-tools-list] KVM Windows guest: add hard drive

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

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]