Skip to content

Instantly share code, notes, and snippets.

@gmirsky
Created July 26, 2017 23:00
Show Gist options
  • Select an option

  • Save gmirsky/52d30adddef12778708bb550beff5279 to your computer and use it in GitHub Desktop.

Select an option

Save gmirsky/52d30adddef12778708bb550beff5279 to your computer and use it in GitHub Desktop.
Is the server physical or a VM? If VM what type of VM?
VMware Workstation
======================================
$sudo dmidecode -s system-product-name
Output ==> VMware Virtual Platform
VirtualBox
======================================
$sudo dmidecode -s system-product-name
Output ==> VirtualBox
Qemu with KVM
======================================
$sudo dmidecode -s system-product-name
Output ==> KVM
Qemu (emulated)
======================================
$sudo dmidecode -s system-product-name
Output ==> Bochs
Virtuozzo
======================================
$sudo dmidecode
Output ==> /dev/mem: Permission denied
Xen
======================================
$sudo dmidecode | grep -i domU
Output ==> Product Name: HVM domU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment