[pve-devel] [PATCH qemu-server] use the -wait-for-cgroup option on kvm

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jun 1 12:06:04 CEST 2016


---
 PVE/QemuServer.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index b13dc71..d75ac98 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2750,6 +2750,7 @@ sub config_to_command {
     push @$cmd, '-pidfile' , pidfile_name($vmid);
 
     push @$cmd, '-daemonize';
+    push @$cmd, '-wait-for-cgroup', "cpu,cpuacct:/qemu.slice/$vmid.scope";
 
     if ($conf->{smbios1}) {
 	push @$cmd, '-smbios', "type=1,$conf->{smbios1}";
-- 
2.1.4




More information about the pve-devel mailing list