[systemd-devel] [PATCH v3] detect-virt: detect User-Mode Linux
Lennart Poettering
lennart at poettering.net
Tue Jul 16 05:31:25 PDT 2013
On Tue, 16.07.13 16:44, Ramkumar Ramachandra (artagnon at gmail.com) wrote:
> 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.
Thanks! Applied!
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list