]> git.proxmox.com Git - qemu-server.git/commit
use enter_systemd_scope instead of systemd-run
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 3 Jun 2016 09:10:01 +0000 (11:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jun 2016 09:41:31 +0000 (11:41 +0200)
commit8e59d952be9bc5cdf17f9c364444149840c23097
treeccbb73e3b25b8461a653e67b1bb968309430d1c2
parent674051dcac21b7f19ee0bdcb06b563ef12969675
use enter_systemd_scope instead of systemd-run

With systemd-run qemu's --daemonize forks often happen
before systemd finishes setting up the scopes, which means
the limits we apply often don't work.
We now use enter_systemd_scope() to create the scope before
running qemu directly without systemd-run.

Note that vm_start() runs in a forked-worker or qm cli
command, so entering the scope in such a process should not
affect the rest of the pve daemon.
PVE/QemuServer.pm