From 7080ea16b5a0bfd71bfcdffc998e91f5273d47f9 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Tue, 16 Jul 2013 16:44:40 +0530 Subject: detect-virt: detect User-Mode Linux In a User-Mode Linux session: $ systemd-detect-virt none Although it is possible to reliably detect virtualization: $ cat /proc/cpuinfo processor : 0 vendor_id : User Mode Linux model name : UML mode : skas host : Linux kytes 3.11.0-rc1-00009-ge5fd680 (...) bogomips : 7007.43 So, grep for the string "\nvendor_id\t: User Mode Linux\n" in /proc/cpuinfo, and say "uml" when asked. --- man/systemd-detect-virt.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'man/systemd-detect-virt.xml') diff --git a/man/systemd-detect-virt.xml b/man/systemd-detect-virt.xml index 762b6ab992..f21493df64 100644 --- a/man/systemd-detect-virt.xml +++ b/man/systemd-detect-virt.xml @@ -70,6 +70,7 @@ microsoft, oracle, xen, bochs, chroot, + uml, openvz, lxc, lxc-libvirt, systemd-nspawn. -- cgit v1.2.3-54-g00ecf