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

Richard W.M. Jones rjones at redhat.com
Wed Oct 13 12:25:25 UTC 2010


On Wed, Oct 13, 2010 at 05:54:00AM +0300, Mihamina Rakotomandimby wrote:
> > acathrow at redhat.com :
> > Are you looking for a new driver to appear in 'my computer'
> 
> Yes, that is what I expected.
> 
> > because it wouldn't appear there until you format it. Does it show
> > up in device manager?
> 
> I'll try to see in the device manager and see if I can ask for
> formatting from somewhere.

You could also try partitioning and preformatting the drive before you
add it.  _Shut down_ the virtual machine, then do:

guestfish -a /dev/lvm0/win2003-01-a <<EOF
run
part-disk /dev/sda mbr
mkfs ntfs /dev/sda1
EOF

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




More information about the virt-tools-list mailing list