kvm virsh command line
This post covers about command line tools to work with virsh and KVM.
Get KVM version installed on the host machine
virsh version
Get KVM Hypervisor(Host) Memory info
virsh nodememstats
Get KVM Hypervisor CPU info
virsh nodecpustats
To get only running machines in KVM hypervisor
virsh list
Get Hardware information of a KVM guest machine
virsh dominfo BaseMachine
Get guest machine CPU details like how many vCPU’s etc.
virsh vcpucount centos-64
Get guest machine RAM details
virsh dommemstat centos-64
List all networks available for a VM
virsh domiflist centos-64
View VMs XML Configuration
virsh dumpxml vmname
Reference:
http://www.linuxnix.com/2013/02/kvm-get-hypervisor-and-guest-virtual-machine-details.html
http://blog.allanglesit.com/2011/03/kvm-guests-manipulating-libvirt-xml-for-guest-creation/
More indepth use of virsh shall be obtained from here
http://www.thegeekstuff.com/2015/02/add-memory-cpu-disk-to-kvm-vm/
This post covers about command line tools to work with virsh and KVM.
Get KVM version installed on the host machine
virsh version
Get KVM Hypervisor(Host) Memory info
virsh nodememstats
Get KVM Hypervisor CPU info
virsh nodecpustats
To get only running machines in KVM hypervisor
virsh list
Get Hardware information of a KVM guest machine
virsh dominfo BaseMachine
Get guest machine CPU details like how many vCPU’s etc.
virsh vcpucount centos-64
Get guest machine RAM details
virsh dommemstat centos-64
List all networks available for a VM
virsh domiflist centos-64
View VMs XML Configuration
virsh dumpxml vmname
Reference:
http://www.linuxnix.com/2013/02/kvm-get-hypervisor-and-guest-virtual-machine-details.html
http://blog.allanglesit.com/2011/03/kvm-guests-manipulating-libvirt-xml-for-guest-creation/
More indepth use of virsh shall be obtained from here
http://www.thegeekstuff.com/2015/02/add-memory-cpu-disk-to-kvm-vm/
No comments:
Post a Comment