diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2020-10-11 21:25:00 +0100 |
---|---|---|
committer | Noah Meyerhans <nmeyerha@amazon.com> | 2021-04-30 09:31:34 -0700 |
commit | b6eca3731dd92b009b182f188936e1c2544574da (patch) | |
tree | 1f4bb7967e2c3e8492e031c326df1d7486b0198a /src/basic/virt.h | |
parent | c068a17f6a18d3ebfabe88fc49e24a923d0bdd0a (diff) | |
download | systemd-b6eca3731dd92b009b182f188936e1c2544574da.tar.gz |
virt: detect Amazon EC2 Nitro instance
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/
Diffstat (limited to 'src/basic/virt.h')
-rw-r--r-- | src/basic/virt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/virt.h b/src/basic/virt.h index 378c7c4d23..1eafbe2cbe 100644 --- a/src/basic/virt.h +++ b/src/basic/virt.h @@ -10,6 +10,7 @@ enum { VIRTUALIZATION_VM_FIRST, VIRTUALIZATION_KVM = VIRTUALIZATION_VM_FIRST, + VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU, VIRTUALIZATION_BOCHS, VIRTUALIZATION_XEN, |