[systemd-bugs] [Bug 77271] New: systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 10 08:30:36 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77271

          Priority: medium
            Bug ID: 77271
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: systemd-detect-virt and directive
                    ConditionVirtualization wrongly return vm for xen dom0
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: Thomas.Blume at suse.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Created attachment 97166
  --> https://bugs.freedesktop.org/attachment.cgi?id=97166&action=edit
avoid detecting xen dom0 as virtual machine

The current vm detection for xen was introduced in Bug 61491.
This implementation lacks the distinction between Xen dom0 and Xen domU.
Both, dom0 and domU are running inside the hypervisor.
Therefore systemd-detect-virt and the ConditionVirtualization directive detect
dom0 as a virtual machine.

However, dom0 is not using virtual devices but is accessing the real hardware.
Therefore dom0 should be considered the virtualisation host and not a virtual
machine.

Problems from this arise for example when using ConditionVirtualization in a
services file for smartd. It won't check the harddisks on dom0 because of the
vm detection.

Attached patch solves this.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140410/3f8727a2/attachment.html>


More information about the systemd-bugs mailing list