ubuntu16.04 Environment Installation KVM

Source: Internet
Author: User

1. See if the CPU supports virtualization
[Email protected]:~$ egrep-o "(SVM|VMX)"/proc/cpuinfo
Vmx
Vmx
Vmx
Vmx

2. Installing KVM and related dependency packages
sudo apt-get-y install QEMU-KVM
sudo apt-get-y install Ubuntu-vm-builder
sudo apt-get-y install bridge-utils
sudo apt-get-y install Virt-manager
sudo apt-get-y install Virt-viewer
sudo apt-get-y install Libvirt-bin
sudo apt-get-y install Qemu


3. Enable the KVM kernel module
[Email protected]:~$ modprobe KVM
[Email protected]:~$ modprobe Kvm-intel


4. Check whether the installation is successful
[Email protected]:~$ Kvm-ok
INFO:/DEV/KVM exists
KVM acceleration can used



5, after the installation is complete, the default is to enable the bridge network (Ifconfig can be viewed)
VIRBR0 Link ENCAP: Ethernet Hardware Address 00:00:00:00:00:00
inet Address: 192.168.122.1 Broadcast: 192.168.122.255 Mask: 255.255.255.0
Up broadcast multicast mtu:1500 metric: 1
Receive packets: 0 Error: 0 Discard: 0 Overload: 0 Number of frames: 0
Send packet: 0 Error: 0 Discard: 0 Overload: 0 Carrier: 0
Collisions: 0 Send Queue Length: 1000
Bytes Received: 0 (0.0 B) Send bytes: 0 (0.0 B)

If the bridging network is not enabled, then you need to enable a bridged network for the KVM virtual machine to connect, manually enable the method as follows:
Make changes to the/etc/network/interfaces configuration file
sudo vim/etc/network/interfaces

# enabing Bridge Networking Br0 Interface
Auto Br0
Iface br0 inet Static
Address 192.168.1.130
Network 192.168.1.0
Netmask 255.255.255.0
Broadcast 192.168.1.255
Gateway 192.168.1.1
Dns-nameservers 223.5.5.5
Bridge_ports eth0
BRIDGE_STP off

6. Open the KVM graphical interface manager
[Email protected]:~$ sudo virt-manager

7. To this end, the environment on which the KVM virtual machine is running is installed to complete the bird ...






This article is from the "Operation and maintenance of AC Q Group: 223843163" blog, please be sure to keep this source http://freshair.blog.51cto.com/8272891/1909942

ubuntu16.04 Environment Installation KVM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.