¹°¸®ÀûÀÎ ¼¹ö / °¡»ó¼¹ö È®Àιæ¹ý
1. dmidecode
- DMI table decoder
# apt-get install dmidecode
:: ½Ç¼¹ö
# dmidecode -s system-manufacturer
System manufacturer
:: °¡»ó¼¹ö
# dmidecode -s system-manufacturer
OpenStack Foundation
2.fecter
- Gather system infomation
- Collect and display facts about the system.
:: ½Ç¼¹ö
# facter 2> /dev/null | grep virtual
is_virtual => false
virtual => physical
:: °¡»ó¼¹ö
# facter 2> /dev/null | grep virtual
is_virtual => true
virtual => kvm
3. lshw
- list hardware
:: ½Ç¼¹ö
# lshw -class system
chonnom
description: Desktop Computer
product: System Product Name (To Be Filled By O.E.M.)
vendor: System manufacturer
version: System Version
serial: System Serial Number
width: 64 bits
capabilities: smbios-2.5 dmi-2.5 vsyscall32
configuration: boot=normal chassis=desktop family=To Be Filled By O.E.M.
sku=To Be Filled By O.E.M. uuid=E0326F05-8EFE-D511-884B-F46D04D2EF96
:: °¡»ó¼¹ö
# lshw -class system
mojily-3340
description: Computer
product: OpenStack Nova
vendor: OpenStack Foundation
version: 13.1.2
serial: 7147e77f-cc07-9fbc-1042-1c75580ef237
width: 64 bits
capabilities: smbios-2.8 dmi-2.8 vsyscall32
configuration: boot=normal family=Virtual Machine uuid=7E7F3356-7641-D44E-AA09-7DBC84E85B0D
4. dmesg
- print or control the kernel ring buffer
:: ½Ç¼¹ö
# dmesg |grep "Hypervisor"
:: °¡»ó¼¹ö
# dmesg |grep "Hypervisor"
[ 0.000000] Hypervisor detected: KVM
5. hostnamectl
- Control the system hostname
:: ½Ç¼¹ö
# hostnamectl
Static hostname: chonnom
Pretty hostname: CHONNOM
Icon name: computer-desktop
Chassis: desktop
Machine ID: c1b0b3f716774db991030221bf09c09f
Boot ID: 07b97a3e6a6c43f3a137787bf42a79d7
Operating System: Ubuntu 16.04.2 LTS
Kernel: Linux 4.4.0-93-generic
Architecture: x86-64
:: °¡»ó¼¹ö
# hostnamectl
Static hostname: mojily-3340
Icon name: computer-vm
Chassis: vm
Machine ID: 56337f7e41764ed4aa097dbc84e85b0d
Boot ID: 90f2a54bfae4425fad11253d0fc45aa1
Virtualization: kvm
Operating System: Ubuntu 16.04.2 LTS
Kernel: Linux 4.4.0-93-generic
Architecture: x86-64
6. systemd-detect-virt- Detect execution in a virtualized environment:: ½Ç¼¹ö
# systemd-detect-virt
none
:: °¡»ó¼¹ö
# systemd-detect-virt
kvm
±×ÀÌ¿Ü¿¡µµ imvirt(perl), virt-what ¸í·É¾î¸¦ ÅëÇؼµµ °¡´ÉÇÕ´Ï´Ù.