Hi All,
.
I am trying to find whether Solaris 11 installed on physical server or on VMware/KVM.
I tried uname -a but it's giving only whether i installed on X86 or sparc machine.
I tried prtdiag command but it's giving below information.
command : prtdiag -v |grep "System Configuration"
Output : System Configuration: QEMU Standard PC (i440FX + PIIX, 1996)
Is QEMU stands for Virtual machine ?
Can someone please let me know is there any direct command to check the info ?
You could look for VM[wW]are
in the output from /usr/X11/bin/scanpci as it should output something like [VMware SVGA II] PCI Display Adapter
on a VMWare client.
Try:
if /usr/X11/bin/scanpci | grep -q "VM[wW]are"
then
echo "System is running on VMWare"
else
echo "Not VMWare"
fi
Yes, QEMU is a virtual machine.
sys1=`prtdiag | awk -F: '$1=="System Configuration" {print $2} NR>5 {exit}'`
case $sys1 in
*QEMU*) echo "QEMU (KVM-based on a Linux host)";;
*VM[Ww]are*) echo "VMware (maybe ESX-based)";;
*) echo "$sys1";;
esac