Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the virsh command of linux to manage the user interface

Shulou Source: shulou.com Published: 2022-06-02 16:16:11 09月22日 Update

This article mainly introduces the use of linux virsh command management user interface, the article is very detailed, has a certain reference value, interested friends must read it!

The virsh command is the main interface for managing the virsh guest domain. This program can be used to create, pause, and close domains. It can also be used to list the current domain.

Libvirt is a feature of Linux (and other operating systems), the latest version of the C toolkit that interacts with virtualization. It is a free software license under GNU. The virtualization of the Linux operating system means that multiple operating system instances can be run on a hardware system at the same time, where the basic resources are driven by a single Linux instance. The goal of the library is to provide long-term stable C API. It currently supports Xen, QEMU, KVM, LXC, OpenVZ, VirtualBox and VMware ESX.

Syntax format: virsh [parameters]

Common parameters:

Reference example

Get KVM hypervisor (host) memory information:

[root@linuxcool ~] # virsh nodememstats

Get the KVM hypervisor CPU information:

[root@linuxcool ~] # virsh nodecpustats

Get the number of guest virtual machines, regardless of running, saving, shutting down, etc.:

[root@linuxcool] # virsh list-- all

Get all the networks available to the KVM hypervisor:

[root@linuxcool ~] # virsh net-list above is all the contents of the user interface managed by linux's virsh command. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Management programs systems commands interfaces operating systems instances users user interfaces information content parameters guests references runs monitoring programs hosts values free software interests Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info Huawei Apple Shulou Information