In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to achieve the KVM graphical interface version", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to achieve the KVM graphical interface version" this article.
Question:
Although KVM can use qemu-kvm commands to create, delete, modify and other operations on the virtual machine, it is still not very convenient and difficult to master. It would be nice to have a graphical interface like VmwareWorkStation.
Since there is a need, there is a corresponding solution = > need to be installed: qemu-kvm, libvirt, libvirt-bin, virt-manager, bridge-utils
Steps
1. Check whether cup supports virtual reality.
Grep-E-o 'vmx | svm'-- color / proc/cpuinfo
Note: if you want to use KVM in the virtual machine of vmwareWorkstation
You need to enable VT-X technology in the settings, as shown in the figure:
2. Check whether the kvm module is loaded in the Linux kernel
Lsmod | grep kvm
3. Load KVM module
Modprobe kvm modprobe kvm_intel
4. Install qemu-kvm libvirt-bin virt-manager bridge-utils
Yum-y install qemu-kvm libvirt libvirt-bin virt-manager bridge-utils 1:qemu-kvm / / the most basic component of virtualization (core technology) 2:libvirt-bin / / A component that provides an interface for managing virtual machines, which can manage virtual machines (create, boot, shut down, etc.) 3:virt-manager / / based on the graphical processing interface implemented by api provided by libvirt-bin It is more convenient for users to manage virtual machines (create, boot, shut down, etc.) 4:bridge-utils / / this is a bridging component that allows virtual machines to share the same video card and network segment as the host.
5: restart the system (must)
Sudo reboot
Create the virtual machine section
Use the graphical interface provided by virt-manager to operate
1: there are two ways to open the graphical interface
1:) typing virt-manager in the terminal will bring up a management interface 2:) Open / usr/share/applications in the file system in turn, and there will be a virtual management terminal
2: the interface after opening is as follows
The interface uses api provided by libvirt-bin to manage virtual machines. The process of using it is not much different from that of vmware, that is, to create a virtual machine-> specify memory, virtual hard disk-> network, etc., and then install it.
Common summary of 3:virsh command
````virsh list-- all / / View virtual machine list virsh start vhostname / start virtual machine virsh shutdown vhostname / / disable virtual machine virsh dominfo vhostname / / view virtual machine information, including memory and cpu virsh edit vhostname / / Open the xml configuration file corresponding to the virtual machine, in which you can modify memory, cpu and other information virsh create / etc/libvirt/qemu/vhostname.xml / / to make the configuration file effective. Vrish setmem vhostname 1024000 / / set virtual machine memory to 1G vrish setvcpu hostname 2 / / set virtual machine cpu to 2 ```
The above is all the contents of the article "how to achieve the KVM graphical interface version". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.