Ubuntu12.04 configure KVM to use Nic Bridging Mode

Source: Internet
Author: User
In the past, CentOS6 was changed because UbuntuServer did not solve Nic bridging because of kvm. It is easier to configure Bridging for Centos6 and supports VirtualMachineManager, but it is not ideal to manage virtual machines only with root. Now try again to configure the javastuserver Nic bridging, and find it is actually very simple 1. Install the minimal installation of javastuserver12.04, only enable OPEN

In the past, CentOS6 was changed Because Ubuntu Server did not solve Nic bridging during kvm. It is relatively easy to configure Bridging for Centos6 and supports Virtual Machine Manager, but it is not ideal to only use root to manage Virtual machines.

Now I try again to configure the Ubuntu Server Nic bridging, and it is actually very simple.

1. Install

Install Ubuntu Server 12.04 with only open ssh enabled. After installation:

Superv @ kvmserver :~ $ Sudo apt-get update; sudo apt-get upgrade-ySuperv @Kvmserver:~ $ Sudo apt-get install bridge-utils kvm libvirt-bin[Sudo] password for superv:Reading the package list... completeAnalyzing the dependency tree of the software packageReading status information... completeThe following additional software packages will be installed:Cgroup-lite cpu-checker dnsmasq-base ebtables gawk kvm-ipxe libaio1Libapparmor1 libbasound2 libasyncns0 libavahi-client3 libavahi-common-dataLibavahi-common3 libcaca0 lib1_8 libjson0 libnetfilter-conntrack3 libnspr4Libnss3 libnuma1 libogg0 libpulse0 librados2 librbd1 libsdl1.2debianLibsigsegv2 libsndfile1 lib1_0 libvorbis0a libvorbisenc2 libxenstore3.0Libxml2-utils libyajl1 msr-tools qemu-common qemu-kvm qemu-utils seabiosVgabiosRecommended software packages:Libasound2-plugins libasound2-python pulseaudio policykit-1 radvdMol-drivers-macosx openbios-iSCSI ubuntu-vm-builder uml-utilitiesThe following [new] software packages will be installed:Bridge-utils cgroup-lite cpu-checker dnsmasq-base ebtables gawk kvm-ipxeLibaio1 libapparmor1 libasound2 libasyncns0 libavahi-client3Libavahi-common-data libavahi-common3 libcaca0 lib1_8 libjson0Libnetfilter-conntrack3 libnspr4 libnss3 libnuma1 libogg0 libpulse0Librados2 librbd1 libsdl1.2debian libsigsegv2 libsndfile1 libvirt-binLib1_0 libvorbis0a libvorbisenc2 libxenstore3.0 libxml2-utils libyajl1Msr-tools qemu-common qemu-kvm qemu-utils seabios vgabios0 software packages are upgraded, 42 new software packages are installed, 0 software packages are to be uninstalled, and 3 software packages are not upgraded.Download the 11.5 MB software package.After decompression, 39.9 MB of extra space is consumed.Do you want to continue? [Y/n] n ......  
2. Use Virtual Machine Manager to test the connection. The following error message is displayed:

Unable to connect to libvirt:

End of file while reading data: Input/Output ErrorVerify that:-The 'libvirt-bin' package is installed-The 'libmongod' daemon has been started-You are member of the 'libmongod' group

 

Check and create an account:

 

Superv @Kvmserver:~ $ Sudo service libvirt-bin statusLibvirt-bin start/running, process 2487
Superv @Kvmserver:~ $ Sudo adduser vmuserAdding User "vmuser "...Adding new group "vmuser" (1001 )...Adding new user "vmuser" (1001) to group "vmuser "...Create a home directory "/home/vmuser "...Copying file from "/etc/skel...Enter a new UNIX Password:Re-enter the new UNIX Password:Passwd: password updated successfullyChanging the user information for vmuserEnter the new value, or press ENTER for the defaultFull Name []: vmuserRoom Number []:Work Phone []:Home Phone []:Other []:Are these information correct? [Y/n] y Superv @Kvmserver:~ $ Sudo usermod-aG libmongod vmuser Superv @Kvmserver:~ $ Groups vmuserVmuser: vmuser libmongod

 

 
Related Article

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.