Libvirt-1.0.4 and qemu-1.4 compilation installation under ubuntu12.04

Source: Internet
Author: User

The reason for compilation and installation is mainly to test its new features by using the latest libvirt and qemu versions.

1. libvirt-1.0.4 compilation Installation
(1) install GCC and dependent Software

  1. Sudo apt-Get install libxml2-dev libgnutls-Dev
    Libdevmapper-dev Python-dev libnl-dev libpciaccess-Dev
    Build-essential

(2) Configure Configuration

  1. ./Configure -- prefix =/usr -- localstatedir =/var -- sysconfdir =/etc

(3) Compile and install

  1. Make & sudo make install

2. qemu-1.4 compilation Installation
(1) install the dependent software, where UML-utilities
Bridge-utils is used for KVM bridges. If no bridge is used, you do not need to install

  1. Sudo apt-Get install libzip-dev libsdl1.2-Dev
    UML-utilities DH-autoreconf bridge-utils

(2) Configure Configuration

  1. ./Configure -- target-list = x86_64-softmmu -- prefix =/usr -- localstatedir =/var -- sysconfdir =/etc

(3) Compile and install: Make & sudo make install

3. Problems encountered and Solutions
Question 1:
Error: failed to connect to the hypervisor
Error: no valid connection
Error: failed to connect socket to '/var/run/libvirt-Sock': no such file or directory
Libmongod is not started. Just start it.

  1. Sudo libmongod-d

Question 2:
Dylan @ LAPTOP :~ $ Virsh net-start default
Error: failed to get network 'default'
Error: network not found: No network with matching name 'default'

This is because libvirt does not create the default network. You can create it manually:

  1. Virsh net-Define/etc/libvirt/qemu/networks/Default. xml
  2. Vrsh net-start default

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.