summaryrefslogtreecommitdiffstats
path: root/man/systemd-detect-virt.xml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* detect-virt: add --list-cvm optionDaniel P. Berrangé2023-07-061-0/+6
| | | | | | | | The --list-cvm option reports the known types of confidential virtualization technology that can be detected. Related: https://github.com/systemd/systemd/issues/27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* detect-virt: add --cvm optionDaniel P. Berrangé2023-07-061-0/+10
| | | | | | | | The --cvm option detects whether the OS is running inside a confidential virtual machine. Related: https://github.com/systemd/systemd/issues/27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* virt: Support detection of LMHS SRE guestsNeil Moore2022-12-021-1/+6
|
* virt: Support detection of Apple Virtualization.framework guestsZhaofeng Li2022-08-241-1/+6
|
* man: fix virtualization tableLennart Poettering2022-02-161-1/+1
| | | | | | | The count of VM types got out of sync, let's fix that. Follow-up for b6eca3731dd92b009b182f188936e1c2544574da which forgot to increase the count by one.
* virt: detect Amazon EC2 Nitro instanceBertrand Jacquin2021-04-301-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Amazon EC2 Nitro hypervisor is technically based on KVM[1], which systemd-detect-virt identify propely from CPUID. However the lack of CPUID on aarch64 (A1, T4 instance type) prevents a correct identification, impacting hostnamectl and systemd-random-seed. Instead it's possible to identify virtualization from DMI vendor ID. Prior to this commit: # hostnamectl Static hostname: n/a Transient hostname: ip-10-97-8-12 Icon name: computer Machine ID: 8e3772fbcfa3dd6f330a12ff5df5a63b Boot ID: b7b7e2fe0079448db664839df59f9817 Operating System: Gentoo/Linux Kernel: Linux 5.4.69-longterm Architecture: arm64 After this commit: # hostnamectl Static hostname: n/a Transient hostname: ip-10-97-8-12 Icon name: computer-vm Chassis: vm Machine ID: 8e3772fbcfa3dd6f330a12ff5df5a63b Boot ID: bd04da57084e41078f20541101867113 Virtualization: amazon Operating System: Gentoo/Linux Kernel: Linux 5.4.69-longterm Architecture: arm64 [1] https://aws.amazon.com/ec2/faqs/
* man: s/dash/mdash/Zbigniew Jędrzejewski-Szmek2021-01-151-1/+1
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* basic/virt: Detect PowerVM hypervisorMichal Suchanek2020-10-061-1/+6
| | | | | | | | Currently systemd-detect-virt fails to detect running under PowerVM. Add code to detect PowerVM based on code in util-linux. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
* man: fix table alignmentLennart Poettering2020-10-051-1/+1
|
* basic/virt: treat "pouch" as a container type (id: pouch)Wen Yang2020-08-201-0/+5
|
* doc: Put proot under "container" sectionChris Down2020-08-031-1/+1
| | | | | Missed in #15426. Otherwise, it ends up only taking the first two rows of the table, in no section.
* virt: Detect proot virtualisation by ptrace metadataChris Down2020-04-151-0/+5
| | | | | | | | | | | | | | | | proot provides userspace-powered emulation of chroot and mount --bind, lending it to be used on environments without unprivileged user namespaces, or in otherwise restricted environments like Android. In order to achieve this, proot makes use of the kernel's ptrace() facility, which we can use in order to detect its presence. Since it doesn't use any kind of namespacing, including PID namespacing, we don't need to do any tricks when trying to get the tracer's metadata. For our purposes, proot is listed as a "container", since we mostly use this also as the bucket for non-container-but-container-like technologies like WSL. As such, it seems like a good fit for this section as well.
* basic/virt: treat "podman" as separate container typeZbigniew Jędrzejewski-Szmek2019-04-291-2/+7
| | | | | We would detect podman as container-other. Let's assign a name to it. Inspired by https://github.com/containers/libpod/issues/2996.
* man: use same header for all filesZbigniew Jędrzejewski-Szmek2019-03-141-1/+1
| | | | | | | The "include" files had type "book" for some raeason. I don't think this is meaningful. Let's just use the same everywhere. $ perl -i -0pe 's^..DOCTYPE (book|refentry) PUBLIC "-//OASIS//DTD DocBook XML V4.[25]//EN"\s+"http^<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"\n "http^gms' man/*.xml
* man: standarize on one-line license headerZbigniew Jędrzejewski-Szmek2019-03-141-4/+1
| | | | | | No need to waste space, and uniformity is good. $ perl -i -0pe 's|\n+<!--\s*SPDX-License-Identifier: LGPL-2.1..\s*-->|\n<!-- SPDX-License-Identifier: LGPL-2.1+ -->|gms' man/*.xml
* virt: detect WSL environment as a container (id: wsl)Balint Reczey2019-03-131-1/+12
|
* man: add ACRN hypervisorRoss Burton2019-02-281-0/+5
|
* man: drop unnecessary parenthesisYu Watanabe2019-02-191-1/+1
|
* man: drop unused <authorgroup> tags from man sourcesZbigniew Jędrzejewski-Szmek2018-06-141-9/+0
| | | | | | | | | | | | Docbook styles required those to be present, even though the templates that we use did not show those names anywhere. But something changed semi-recently (I would suspect docbook templates, but there was only a minor version bump in recent years, and the changelog does not suggest anything related), and builds now work without those entries. Let's drop this dead weight. Tested with F26-F29, debian unstable. $ perl -i -0pe 's/\s*<authorgroup>.*<.authorgroup>//gms' man/*xml
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* detect-virt: add new --list command for showing all currently known ↵Lennart Poettering2018-05-221-0/+6
| | | | VM/container envs
* man: docbook doesn't like line breaks within table cells (#8885)Lennart Poettering2018-05-031-4/+2
| | | | It will pass them on as they are to the formatted man pages, which is pretty uncool. Let's hence avoid line breaks with table cells.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* virt: detect QNX hypervisorShuang Liu2018-02-221-2/+7
| | | | | | Detect QNX hypervisor based on the CPUID. Fixes: #7239
* Add SPDX license identifiers to man pagesZbigniew Jędrzejewski-Szmek2017-11-191-0/+2
|
* virt: swap order of cpuid and dmi again, but properly detect oracle (#5355)Christian Hesse2017-02-151-2/+4
| | | | | | This breaks again, this time for setups where Qemu is not reported via DMI for whatever reason. So swap order of cpuid and dmi again, but properly detect oracle. See issue #5318.
* virt: detect qemu/kvm as 'kvm'Christian Hesse2017-02-141-2/+2
| | | | | | | | | | In commit 050e65a we swapped order of detect_vm_{cpuid,dmi}(). That fixed Virtualbox but broke qemu with kvm, which is expected to return 'kvm'. So check for qemu/kvm first, then DMI, CPUID last. This fixes #5318. Signed-off-by: Christian Hesse <mail@eworm.de>
* detect-virt: add --private-users switch to check if a userns is activeZbigniew Jędrzejewski-Szmek2016-10-271-2/+14
| | | | | | | | | | | | | Various things don't work when we're running in a user namespace, but it's pretty hard to reliably detect if that is true. A function is added which looks at /proc/self/uid_map and returns false if the default "0 0 UINT32_MAX" is found, and true if it finds anything else. This misses the case where an 1:1 mapping with the full range was used, but I don't know how to distinguish this case. 'systemd-detect-virt --private-users' is very similar to 'systemd-detect-virt --chroot', but we check for a user namespace instead.
* virt: detect bhyve (FreeBSD hypervisor) (#3840)Leonardo Brondani Schenkel2016-08-011-1/+6
| | | | The CPUID and DMI vendor strings do not seem to be documented. Values were found experimentally and by inspecting the source code.
* man: top-align cell text for large tablesJan Engelhardt2016-01-281-2/+2
|
* man: avoid double virtualizationJan Engelhardt2016-01-281-5/+4
| | | | | "VM virtualization" <=> "virtual machine virtualization", and double virtualization is just incorrect in this context.
* man: normalize indentation in sd-detect-virt(1)Zbigniew Jędrzejewski-Szmek2015-11-111-38/+38
|
* Merge pull request #1799 from jengelh/docLennart Poettering2015-11-091-2/+2
|\ | | | | doc: typo and ortho fixes
| * doc: correct punctuation and improve typography in documentationJan Engelhardt2015-11-061-2/+2
| |
* | detect-virt: add rkt app container runtimeIago López Galeiras2015-11-091-0/+5
|/
* detect-virt: add new --chroot switch to detect chroot() environmentsLennart Poettering2015-10-271-2/+15
|
* virt: detect parallels virtualizationEvgeny Vereshchagin2015-09-021-1/+6
| | | | | | | | inspired by http://people.redhat.com/~rjones/virt-what/ see: * http://git.annexia.org/?p=virt-what.git;a=blob;f=virt-what.in;h=a5ed33ef3e4bfa3281c9589eccac4d92dff1babe;hb=HEAD#l200 * http://git.annexia.org/?p=virt-what.git;a=blob;f=virt-what.in;h=a5ed33ef3e4bfa3281c9589eccac4d92dff1babe;hb=HEAD#l253
* man: revert dynamic paths for split-usr setupsTom Gundersen2015-06-181-4/+1
| | | | | | | | | | | | | | | | | | | | | | | This did not really work out as we had hoped. Trying to do this upstream introduced several problems that probably makes it better suited as a downstream patch after all. At any rate, it is not releaseable in the current state, so we at least need to revert this before the release. * by adjusting the path to binaries, but not do the same thing to the search path we end up with inconsistent man-pages. Adjusting the search path too would be quite messy, and it is not at all obvious that this is worth the effort, but at any rate it would have to be done before we could ship this. * this means that distributed man-pages does not make sense as they depend on config options, and for better or worse we are still distributing man pages, so that is something that definitely needs sorting out before we could ship with this patch. * we have long held that split-usr is only minimally supported in order to boot, and something we hope will eventually go away. So before we start adding even more magic/effort in order to make this work nicely, we should probably question if it makes sense at all.
* man: generate configured paths in manpagesFilipe Brandenburger2015-05-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, use /lib/systemd instead of /usr/lib/systemd in distributions like Debian which still have not adopted a /usr merge setup. Use XML entities from man/custom-entities.ent to replace configured paths while doing XSLT processing of the original XML files. There was precedent of some files (such as systemd.generator.xml) which were already using this approach. This addresses most of the (manual) fixes from this patch: http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/patches/Fix-paths-in-man-pages.patch?h=experimental-220 The idea of using generic XML entities was presented here: http://lists.freedesktop.org/archives/systemd-devel/2015-May/032240.html This patch solves almost all the issues, with the exception of: - Path to /bin/mount and /bin/umount. - Generic statements about preference of /lib over /etc. These will be handled separately by follow up patches. Tested: - With default configure settings, ran "make install" to two separate directories and compared the output to confirm they matched exactly. - Used a set of configure flags including $CONFFLAGS from Debian: http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/rules Installed the tree and confirmed the paths use /lib/systemd instead of /usr/lib/systemd and that no other unexpected differences exist. - Confirmed that `make distcheck` still passes.
* Reindent man pages to 2chZbigniew Jędrzejewski-Szmek2015-02-041-206/+198
|
* man: join tables in systemd-detect-virt(1)Zbigniew Jędrzejewski-Szmek2014-10-131-20/+17
| | | | | | | | | I think it is more readable and nicer if everything is in one table. Also, describe what the return value, since it seems awkward to describe the change in behaviour with --quiet before describing what the default is.
* man: include zVM in systemd-detect-virt listLennart Poettering2014-10-101-3/+9
|
* man: rework VM/container identifier list into a table, and include ↵Lennart Poettering2014-10-101-12/+98
| | | | | | descriptions for all entries (also remove chroot from the list, we don't detect that anymore)
* man: clarify what "microsoft" and "oracle" stand forRahul Sundaram2014-10-101-4/+5
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1150477
* man: mention docker as type of virtualizationZbigniew Jędrzejewski-Szmek2014-10-081-1/+2
|
* man: xinclude --help/--version/--no-pagerZbigniew Jędrzejewski-Szmek2014-02-211-16/+4
|
* man: wording and grammar updatesJan Engelhardt2013-09-121-3/+3
| | | | | | | | | | | | This is a recurring submission and includes corrections to various issue spotted. I guess I can just skip over reporting ubiquitous comma placement fixes… Highligts in this particular commit: - the "unsigned" type qualifier is completed to form a full type "unsigned int" - alphabetic -> lexicographic (that way we automatically define how numbers get sorted)
* detect-virt: detect User-Mode LinuxRamkumar Ramachandra2013-07-161-0/+1
| | | | | | | | | | | | | | | | | | | | 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.