Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.01 KB

VM ballooning driver detection.md

File metadata and controls

51 lines (39 loc) · 1.01 KB

Hypervisor detection

sudo dmidecode -s system-product-name

or

lsmod | grep "vbox\|hv\|xen\|vmxnet\|vmhgfs\|vmmemctl\|vmware_balloon"

VM ballooning

cat /proc/hyperv/balloon /proc/virtio/balloon /proc/vmware/balloon /proc/xen/balloon

VMWare examples

vmware-toolbox-cmd stat balloon
cat /proc/vmmemctl /proc/vmware/balloon

Xen example

$ cat /proc/xen/balloon

Current allocation: 114688 kB
Requested target: 114688 kB
Low-mem balloon: 24576 kB
High-mem balloon: 0 kB
Driver pages: 136 kB
Xen hard limit: ??? kB

Combined scipt

sudo dmidecode -s system-product-name
lsmod | grep "vbox\|hv\|xen\|vmxnet\|vmhgfs\|vmmemctl\|vmware_balloon"
cat /proc/hyperv/balloon /proc/virtio/balloon /proc/vmware/balloon /proc/xen/balloon /proc/vmmemctl /proc/vmware/balloon
vmware-toolbox-cmd stat balloon
vmware-toolbox-cmd stat swap
vmware-toolbox-cmd stat memlimit
vmware-toolbox-cmd stat memres
vmware-toolbox-cmd stat cpures
vmware-toolbox-cmd stat cpulimit