[PVE-User] Hot resize of Windows virtio disks ?

Alexandre DERUMIER aderumier at odiso.com
Tue Jul 15 10:33:23 CEST 2014


Hi,

>>I'm not trying to make it work, I can see why it doesn't. I would like 
>>to know the reason for having it disabled, if there's one still 
>>standing. And have the condition altered if there's no reason to keep it ;) 


I need to make a patch to enable resize of virtio0 disk.

It was disabled  because of a bug in previous virtio drivers. (only for the c:\, boot disk),
giving instant bluescreen.




----- Mail original ----- 

De: "Gilou" <contact+dev at gilouweb.com> 
Cc: pve-user at pve.proxmox.com 
Envoyé: Mercredi 9 Juillet 2014 23:10:33 
Objet: Re: [PVE-User] Hot resize of Windows virtio disks ? 

Le 09/07/2014 21:04, Gilberto Nunes a écrit : 
> Hi again 
> 
> First, I thing that I cannot resize the VM disk on-line, because I used 
> an out of date Virtio Drive.. 
> So, I install a new VM with Windows 2012 using last Virtio Drive and 
> still can't resize a disk with an online VM!... 
> 
> Is there some bug with Virtio Driver or Qemu?? I'm using 
> Virtio-Win-0.1-81.iso... 
, 

Hi 
The web interface tells you that you can't.. But if you tell Proxmox 
it's Linux inside instead of Windows (or you can also remove the disk, 
qemu-img resize it, then add it back, then issue block_resize 
disk-virtio0 blabla in the monitor), it'll allow the change and Windows 
will work fine with it, afaict. 

I'm not trying to make it work, I can see why it doesn't. I would like 
to know the reason for having it disabled, if there's one still 
standing. And have the condition altered if there's no reason to keep it ;) 

Cheers 

Gilles 

> 
> Thanks 
> 
> 
> 2014-07-09 11:50 GMT-03:00 Gilou <contact+dev at gilouweb.com 
> <mailto:contact+dev at gilouweb.com>>: 
> 
> Le 09/07/2014 16:36, Gilberto Nunes a écrit : 
> 
> Hello 
> 
> I have tried here too and get the same error... 
> 
> 
> The code doesn't lie, if you put your OS type to linux, it'll work 
> (or change the .pm file, and restart pvedaemon, but you might not 
> want to do this ;)) 
> 
> Cheers, 
> 
> Gilles 
> 
> 
> 
> 
> 
> 2014-07-09 11:25 GMT-03:00 Eneko Lacunza <elacunza at binovo.es 
> <mailto:elacunza at binovo.es> 
> <mailto:elacunza at binovo.es <mailto:elacunza at binovo.es>>>: 
> 
> 
> Hi, 
> 
> I just tested this on a test cluster, and got the same 
> error. If the 
> VM is stopped, it works OK. If <vmid>.conf has hotplug: 1 
> doesn't 
> work either. 
> root at pmx1:/etc/pve/nodes/pmx2# pveversion -v 
> proxmox-ve-2.6.32: 3.2-129 (running kernel: 2.6.32-30-pve) 
> pve-manager: 3.2-4 (running version: 3.2-4/e24a91c1) 
> pve-kernel-2.6.32-30-pve: 2.6.32-130 
> pve-kernel-2.6.32-29-pve: 2.6.32-126 
> lvm2: 2.02.98-pve4 
> clvm: 2.02.98-pve4 
> corosync-pve: 1.4.5-1 
> openais-pve: 1.1.4-3 
> libqb0: 0.11.1-2 
> redhat-cluster-pve: 3.2.0-2 
> resource-agents-pve: 3.9.2-4 
> fence-agents-pve: 4.0.5-1 
> pve-cluster: 3.0-12 
> qemu-server: 3.1-16 
> pve-firmware: 1.1-3 
> libpve-common-perl: 3.0-18 
> libpve-access-control: 3.0-11 
> libpve-storage-perl: 3.0-19 
> pve-libspice-server1: 0.12.4-3 
> vncterm: 1.1-6 
> vzctl: 4.0-1pve5 
> vzprocps: 2.0.11-2 
> vzquota: 3.1-2 
> pve-qemu-kvm: 1.7-8 
> ksm-control-daemon: 1.1-1 
> glusterfs-client: 3.4.2-1 
> 
> 
> 
> 
> On 09/07/14 16:02, Gilou wrote: 
> 
> Hi, 
> 
> I'm new on the list, so if you think this shouldn't be 
> posted 
> here, feel free to direct me elsewhere. 
> 
> I tried to resize a disk on Windows 2012/2008, and I 
> got this error : 
> you can't online resize a virtio windows bootdisk 
> 
> Why not ? It seems to be fully supported on 2008 & 
> 2012, so I 
> wonder if I missed some incompatibility that would blow 
> out at my 
> face.. 
> 
> Code is in API2/Qemu.pm:2643 (in 3.2-129) 
> die "you can't online resize a virtio 
> windows bootdisk\n" 
> if 
> PVE::QemuServer::check___running($vmid) && 
> $conf->{bootdisk} eq $disk && $conf->{ostype} =~ m/^w/ 
> && $disk =~ 
> m/^virtio/; 
> 
> I would say something like $conf->{ostype} =~ m/^w[^i]/ 
> to only 
> match pre-2008 windows, that most likely won't like 
> this kind of 
> resizing (Or let Proxmox believe it's Linux, but I 
> guess that 
> would have other implications, maybe). 
> 
> 
> Regards, 
> 
> Gilles 
> _________________________________________________ 
> pve-user mailing list 
> pve-user at pve.proxmox.com <mailto:pve-user at pve.proxmox.com> 
> <mailto:pve-user at pve.proxmox.__com 
> <mailto:pve-user at pve.proxmox.com>> 
> http://pve.proxmox.com/cgi-__bin/mailman/listinfo/pve-user 
> <http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user> 
> 
> 
> 
> 
> -- 
> Zuzendari Teknikoa / Director Técnico 
> Binovo IT Human Project, S.L. 
> Telf. 943575997 
> 943493611 
> Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 
> Oiartzun (Gipuzkoa) 
> www.binovo.es <http://www.binovo.es> <http://www.binovo.es> 
> 
> 
> _________________________________________________ 
> pve-user mailing list 
> pve-user at pve.proxmox.com <mailto:pve-user at pve.proxmox.com> 
> <mailto:pve-user at pve.proxmox.__com 
> <mailto:pve-user at pve.proxmox.com>> 
> 
> http://pve.proxmox.com/cgi-__bin/mailman/listinfo/pve-user 
> <http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user> 
> 
> 
> 
> 
> -- 
> Gilberto Ferreira 
> 
> 
> _________________________________________________ 
> pve-user mailing list 
> pve-user at pve.proxmox.com <mailto:pve-user at pve.proxmox.com> 
> http://pve.proxmox.com/cgi-__bin/mailman/listinfo/pve-user 
> <http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user> 
> 
> 
> _________________________________________________ 
> pve-user mailing list 
> pve-user at pve.proxmox.com <mailto:pve-user at pve.proxmox.com> 
> http://pve.proxmox.com/cgi-__bin/mailman/listinfo/pve-user 
> <http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user> 
> 
> 
> 
> 
> -- 
> Gilberto Ferreira 

_______________________________________________ 
pve-user mailing list 
pve-user at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user 



More information about the pve-user mailing list