How to add a disk to a Windows VM

philister

Member
Jun 18, 2012
31
0
6
Hello all,

I ran into something supposedly easy, but it seems I'm missing something:

I added a 50GB IDE hard disk (LVM on iSCSI) to a Windows VM (Server 2008R2) through the Proxmox GUI. The new HD is IDE1, the boot disk is IDE0. I rebooted the Windows VM, but I can't see the new hard disk in Volume Manager.

Does somebody know what I'm doing wrong?

Thank you very much.
 
a reboot is not enough to detect new hardware. stop and start the windows VM.
 
Just tried adding "hotplug: 1" to a Ubuntu precise kvm .

Added a disk and it did not appear.

So shutdown the kvm , started in case that made a difference. But when I again added a disk, it did not show up in the kvm, per ' fdisk -l' and 'dmesg'

Is hotplug supposed to work with linux vm's ?
 
so when I tried to remove the added disks in pve this showed: " error hot-unplug virtio2 at /usr/share/perl5/PVE/API2/Qemu.pm line 652. (500) "

after removing the hotplug line from the kvm config file I was able to remove the disks in pve web page.

and in syslog:
Dec 19 20:16:21 fbc241 pvedaemon[342346]: error on hot-unplugging device virtio2
 
Last edited:
Just tried adding "hotplug: 1" to a Ubuntu precise kvm .

Added a disk and it did not appear.

So shutdown the kvm , started in case that made a difference. But when I again added a disk, it did not show up in the kvm, per ' fdisk -l' and 'dmesg'

Is hotplug supposed to work with linux vm's ?

This is why is not yet activated by default, you need to load 2 modules in your linux guest:

acpiphp
pci_hotplug