In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build KVM open source virtual machine, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
KVM (full name is Kernel-based Virtual Machine) is a fully functional virtualization solution on x86 hardware platform under Linux, including a loadable kernel module kvm.ko provides and virtualizes core architecture and processor specification module.
Environment: Red Hat Enterprise Linux Server release 7.3
1. First, configure the yum source and check whether the current CPU supports KVM virtualization. Red Hat or CentOS [root @ localhost Desktop] # cat / proc/cpuinfo | egrep'(vmx | svm)'# if vmx is included in the output result, Intel virtualization technology is used; if svm is included, AMD virtualization technology is adopted; if there is no output, the current CPU does not support KVM virtualization technology. You can also check with grep-E'svm | vmx' / proc/cpuinfo and egrep-- color-I "svm | vmx" / proc/cpuinfo. View apt-get install cpu-checkerkvm-ok in Ubuntu system. The following results show that VTINFO: / dev/kvm existsKVM acceleration can be used is supported. The following results show that VTINFO: Your CPU does not support KVM extensionsKVM acceleration can NOT be used2. Install the virtualization package [root@localhost Desktop] # yum install-y qemu-kvm qemu-img#Ubuntu install [root@localhost Desktop] # lsmod with apt-get install-y virt-manager | grep kvm# verifies that the KVM module has successfully loaded kvm_intel 170181 0kvm 554609 1 kvm_intelirqbypass 13503 1 kvm# if the above results are output Indicates that the KVM module has loaded successfully. [root@localhost Desktop] # virsh-c qemu:///system list# verifies whether the libvirtd service starts normally Id Name State# will output the above result if it has been started successfully; if an error occurs, it means that the libvirtd service has not been started successfully. 3. Install virtual machine [root@localhost Desktop] # virt-manager# if the default storage is not available, then choose to create a custom storage
Configure the relevant parameters and prepare to install the system:
Construction of Virtualization Technology KVM Construction of Virtualization Technology KVM
Installing:
Construction of Virtualization Technology KVM Construction of Virtualization Technology KVM
Installation is complete, ready to restart:
Construction of Virtualization Technology KVM Construction of Virtualization Technology KVM
Installation successful!
The Construction of Virtualization Technology KVM the Construction of Virtualization Technology KVM View the virtual machine [root@localhost] # virsh list-- allId Name State--- rhel7.3 on the host Shut off [root@localhost ~] # virsh start rhel7.3Domain rhel7.3 started [root@localhost ~] # virsh list-allId Name State---6 rhel7.3 running [root@localhost ~] # virsh destroy rhel7.3Domain rhel7.3 destroyed [root@localhost ~] # virsh list-- allId Name State--- rhel7.3 shut off above is "such as" All the contents of the article "how to build the KVM open source virtual machine" 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.