In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to install KVM in CentOS 7. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Install virtualization softwar
[root@kvm-centos7~] # yum-y install qemu-kvm libvirt virt-install bridge-utils# ensure that the module is loaded with [root@kvm-centos7~] # lsmod | grep kvm kvm_intel 170181 0 kvm 554609 1 kvm_intelirqbypass 13503 1 kvm [root@kvm-centos7~] # systemctl start libvirtd [root@kvm-centos7~] # systemctl enable libvirtd
Configure bridging
# vi / etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.0.1.167
GATEWAY=10.0.1.1
NETMASK=255.255.255.0
DNS1=8.8.8.8
Bridge the original network to the br0
# vi / etc/sysconfig/network-scripts/ifcfg-enp2s0
DEVICE=enp2s0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
BRIDGE=br0
Restart the network
# systemctl restart network
Create virtual machine # create image storage location virt-install\-- name=myos\-- ram 512\-- vcpus 2\-- disk path=/opt/hubin/myos2.qcow2,size=40,format=qcow2\-- cdrom / opt/hubin/1KEY_GHOST.iso\-- graphic vnc,listen=0.0.0.0,port=5910\-- os-type=linux\-- virt-type=kvm\-- hvm\-- accelerate\-- network bridge=br0\-- autostart
Parameter description:
-- name specifies the name of the virtual machine-- ram specifies Virtual Machine-- amount of memory of disk path = xxx,size = xxx 'path =' ⇒ specified virtual machine size = '⇒ specifies the number of disks of the virtual machine-- vcpus specifies virtual CPU-- os-type specifies the type of GuestOS-- os-variant specifies the type of GuestOS-- it is possible to use the following command osinfo-query os--network in the confirmation list to specify the network type of the virtual machine-- graphics specifies the type of graphics. If set to none, it means that it is not graphical. -- console specifies the console type-- location specifies the installation location, where from-- extra-args specifies the parameters set in the kernel. This is how to install KVM in CentOS 7 shared by the editor. If you happen to have similar doubts, please refer to the above analysis for understanding. If you want to know more about it, you are 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.