FS#45738 - [systemd] vboxservice not started by systemd when using KVM paravirtualization
Attached to Project:
Arch Linux
Opened by moething (moething) - Wednesday, 22 July 2015, 06:39 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 23:52 GMT
Opened by moething (moething) - Wednesday, 22 July 2015, 06:39 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 03 May 2018, 23:52 GMT
|
Details
If I run my Archlinux VM with KVM as paravirtualization, the
vboxservice is no longer working:
# systemctl status vboxservice.service ● vboxservice.service - VirtualBox Guest Service Loaded: loaded (/usr/lib/systemd/system/vboxservice.service; enabled; vendor preset: disabled) Active: inactive (dead) Condition: start condition failed at Wed 2015-07-22 08:16:31 CEST; 2s ago ConditionVirtualization=oracle was not met This because the systemd vboxservice.service file contains the check for virtualization "ConditionVirtualization=oracle". But as soon as I turn on KVM emulation in the Virtualbox host configuration, "oracle" is no longer the valid value for this systemd check. It should be kvm in my case. Running "systemd-detect-virt" on command line, it reports "kvm" as used virtualization which -- I believe -- should be used in this case in the systemd check. Any generic approach needs to be found to support legacy virtualization (orcacle) as well as KVM. |
This task depends upon
"New capabilities in Oracle VM VirtualBox 5.0:
Paravirtualization Support for Windows and Linux Guests: Significantly improves guest OS performance by leveraging built-in virtualization support on operating systems such as Oracle Linux 7 and Microsoft Windows 7 and newer."
You can configure in your guest environment that the VM should be run with kvm support (new setting under settings -> system -> acceleration), hence the reported virtualization within the guest OS is kvm when set to "KVM" in that menu. You could also set it to "legacy" in there, which leads to the old, known virtualization "oracle". With legacy / oracle the systemd script works fine.
I was just wondering if it works as desired when KVM is chosen in the above mentioned menu. For me it reports the error from the description above.
https://github.com/systemd/systemd/commit/e32886e0105d30799309ab2705addbee0d33b4da
systemd 223 is expected to be released soon, so let's wait for it.
https://github.com/systemd/systemd/commit/050e65ada2e0023a1a4c953522f39846c6bdebf8
condition failed at Wed 2018-03-07 12:36:23 UTC; 1min 7s ago
└─ ConditionVirtualization=oracle was not met
systemd-detect-virt says: vm-other
Virtualbox host: Arch
Virtualbox guest: Arch
lsmod output on the host:
lsmod |grep -i vbox
vboxpci 28672 0
vboxnetflt 32768 0
vboxnetadp 28672 0
vboxdrv 483328 4 vboxnetadp,vboxnetflt,vboxpci
so I have no idea whats going on here ..
systemd version: systemd-237.64-1
does not have that issue: systemd-237.31-1
systemd 238.76-1
all is working (again)