Use virt-manager to create and manage virtual machines and virt-manager virtual machines
1. Virtual Machine Management Program and Virtual Machine Management
The era of installing a single operating system on a single server has passed. A single server can run different operating systems by installing multiple virtual machines. The extensive use of virtual machines reduces the hardware required for services and reduces the power consumption of servers, but introduces another problem. The increase in the number of virtual machines makes management more complex.
Virtualization brings new challenges to the management of virtual machines and their resources and the basic resources of physical hosts. Multiple operating systems now share the resources of a physical host as virtual machines. There is no one-to-one ing between the operating system and the physical host. Each virtual machine uses one container and other metadata to indicate that the container holds one or more virtual disks, which describe the configurations and constraints of the virtual machine. Each Virtual Machine shares the resources of the physical host. The host not only needs to be configured, but also needs to know the utilization rate of these resources (to ensure that the virtual machine has a proper density and can use the host best, it will neither burden the available resources nor waste them ).
2. Introduction to Virtual Machine Manager
Virtual Machine Manager (virt-manager) is an open-source solution for Virtual Machine management, developed by Red-Hat. The advantage of Virtual Machine Manager is obvious. It significantly simplifies the ability to manage Virtual machines and provides the ability to measure the performance of Virtual machines and monitor resource utilization.
Virtual Machine Manager (virt-manager) is a lightweight application suite in the form of a command line or graphical user interface (GUI) for managing Virtual machines ). In addition to Virtual Machine Management, virt-manager also provides a complete graphical console for the Guest virtual machine through an embedded Virtual Network Computing (VNC) Client viewer.
3. Introduction to the virtualization management tool suite
Virt-manager is a prime user of libvirt virtualization API, but an ever-growing tool ecosystem is using this interface for virtualization management. The virt-manager package provides a convenient GUI for creating and managing virtual machines on multiple VM management programs and hosts. If you prefer command line, many tools provide you with the capabilities and control that only command line can provide.
The virt-install tool provides the ability to configure new virtual machines. Virt-manager provides a small number of configuration options for virtual machines, while virt-install provides a wide range of configuration options, including installation methods, storage configuration, network configuration, graphical configuration, and virtualization options, and a large list of virtualization device options.
The virt-image tool is similar to the virt-install tool, but allows you to define the details of the Virtual Machine creation process in XML. The XML descriptor file specifies the general metadata, domain attributes (CPU, memory, etc.) of the virtual machine, and storage configuration.
The virt-clone tool allows you to clone existing Virtual Machine images. When it comes to cloning, I mean copying an existing virtual machine that has updated parameters to ensure that the new virtual machine is unique and thus avoid conflicts (such as MAC address conflicts ).
Virt-viewer provides a graphical console for a virtual machine that uses the VNC protocol. Virt-viewer can be attached to a virtual machine running on a local host or remote host.
Finally, the most powerful tool for managing the Guest domain is the virtual shell, or virsh. Virsh can be used to list, start, and stop virtual machines, and create virtual machines. In short, you can use virsh to perform comprehensive management across hypervisor to expose virtualization features not provided in other tools.
Virt-manager installation:
① For debian Series
Sudo apt-get install virt-manager
② Verify whether the installation is successful
Ps ax | grep lib1_d
③ Use the which command to check whether the virt-manager package has been installed and to know the location of the virt-manager file.
Which virt-manager
④ Use QEMU as the hypervisor because QEMU can run on any hardware.
Sudo apt-get install qemu