Virt Tool
Virt - Tool Management
> Install Virt Tool
Command: #yum -y install libguestfs-tools virt-top
> Display virtual machine status
Command: #virt-top
Display running virtual machine resource usage.
test is a running virtual machine.
> Display list of files in virtual machine directory
Command: #virt-ls -l test /
The command will list all files and directories of test virtual machine from / partition.
Note: Before running this command make sure power on guest virtual machine is Linux
> Display file contains in guest virtual machine
Command: #virt-cat test /etc/selinux/config
Cat command display config file contains of test virtual machine.
> Display disk usage in virtual machine.
Command: #virt-df -h test
> Open virt manager to manager guest virtual machines in graphical user mode.
Command: #virt-manager
Run this command only GUI mode is available in linux.
> Validate hypervisor
Command: #virt-host-validate
> Edit virtual machine files.
Note: Make sure guest virtual machine is power off.
Command: #virt-edit test /etc/fstab
Edit fstab file of test virtual machine.
:wq ----- Save the file and exit.
EOF
> Install Virt Tool
Command: #yum -y install libguestfs-tools virt-top
> Display virtual machine status
Command: #virt-top
Display running virtual machine resource usage.
test is a running virtual machine.
> Display list of files in virtual machine directory
Command: #virt-ls -l test /
The command will list all files and directories of test virtual machine from / partition.
Note: Before running this command make sure power on guest virtual machine is Linux
> Display file contains in guest virtual machine
Command: #virt-cat test /etc/selinux/config
Cat command display config file contains of test virtual machine.
> Display disk usage in virtual machine.
Command: #virt-df -h test
> Open virt manager to manager guest virtual machines in graphical user mode.
Command: #virt-manager
Run this command only GUI mode is available in linux.
> Validate hypervisor
Command: #virt-host-validate
> Edit virtual machine files.
Note: Make sure guest virtual machine is power off.
Command: #virt-edit test /etc/fstab
Edit fstab file of test virtual machine.
:wq ----- Save the file and exit.
EOF
Comments
Post a Comment