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

Mihamina Rakotomandimby mihamina at gulfsat.mg
Tue Oct 12 18:17:49 UTC 2010


Manao ahoana, Hello, Bonjour,

I installed a Windows (XP and 2003) guest using one partition as hard
drive.
I used:

  sudo virt-install --connect qemu:///system \
   --name win2003-01 \
   --ram 1024 \
   --keymap=fr \
   --disk path=/dev/lvm0/win2003-01 \
   --cdrom=/home/mihamina/Windows_2003_Server.iso \
   --os-type windows \
   --os-variant=win2k3 \
   --noapic \
   --noacpi \
   --network=bridge:br0 \
   --accelerate \
   --vnc \
   --force

And this works fine. Really fine.


The disk section in the definition:

    <disk type='block' device='disk'>
      <source dev='/dev/lvm0/win2003-01'/>
      <target dev='hda' bus='ide'/>
    </disk>

After installation, people asked me to add another hard drive to this
installation, and then, I added another "disk" in the definition:

    <disk type='block' device='disk'>
      <source dev='/dev/lvm0/win2003-01'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='block' device='disk'>
      <source dev='/dev/lvm0/win2003-01-a'/>
      <target dev='hdb' bus='ide'/>
    </disk>

I destroyed + undefined + defined + started the VM and the definition
is OK (dumpxml), but the Windows guest doesnt see any new hard drive. 

I already tried with replacing "ide" with "virtio", no new hard drive
yet.

This is my configuration:
mihamina at kvm-lxc-02:~$ dpkg -l | grep "virt"
ii  kvm                                 72+dfsg-5~lenny5           Full virtualization on x86 hardware
ii  libvirt-bin                         0.4.6-10                   the programs for the libvirt library
ii  libvirt0                            0.4.6-10                   library for interfacing with different virtualization systems
ii  python-libvirt                      0.4.6-10                   libvirt Python bindings
ii  virt-manager                        0.6.0-6                    desktop application for managing virtual machines
ii  virt-viewer                         0.0.3-2                    Displaying the graphical console of a virtual machine
ii  virtinst                            0.400.0-7                  Programs to create and clone virtual machines

How to make, with this, new hard drive recognized by the Windows guest? 

Misaotra, Thanks, Merci.


-- 

       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 34 56 000 19




More information about the virt-tools-list mailing list