From e5e3ccbbc23fd8f9f28c9b61e859d4301d09e011 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 16 Jul 2014 10:36:19 +0200 Subject: [PATCH] allow resize of virtio windows boot disk virtio-win-0.1-74 have fixed the resize bug of virtio boot disk Signed-off-by: Alexandre Derumier --- PVE/API2/Qemu.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 96c93020..d03e28a0 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2724,9 +2724,6 @@ __PACKAGE__->register_method({ die "you can't resize a cdrom\n" if PVE::QemuServer::drive_is_cdrom($drive); - 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/; - my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid); $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);