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

Gilberto Nunes gilberto.nunes32 at gmail.com
Tue Jul 15 16:59:40 CEST 2014


Gilou...

Here I have installed a Windows 2012 with raw disk and with virtio...
I am able to resize C: disk of Windows 2012...




2014-07-15 8:11 GMT-03:00 Gilberto Nunes <gilberto.nunes32 at gmail.com>:

> Hi
> Did you tried to change the SCSI Type to VIRTIO??
> I did it before and work fine... It's a VM running Windows 2021...
>
>
> 2014-07-15 6:01 GMT-03:00 Gilou <contact+dev at gilouweb.com>:
>
> Le 15/07/2014 10:33, Alexandre DERUMIER a écrit :
>>
>>  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.
>>>
>>
>>
>> Hi,
>>
>> If so, I indeed would like more information on that bug. However, I can
>> successfully resize C:\ disks on Windows 2008 R2 & Windows 2012, Windows
>> 2012 R2 using the latest virtio drivers, so I guess it was fixed, or I just
>> didn't hit it...
>>
>> Cheers
>>
>> Gilles
>>
>>
>>>
>>>
>>>
>>> ----- 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
>>>
>>>
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com
>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>>
>
>
>
> --
> Gilberto Ferreira
>



-- 
Gilberto Ferreira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20140715/2ae465ef/attachment.htm>


More information about the pve-user mailing list