Fedora20 compilation and installation qemu-system

Source: Internet
Author: User
Tags glusterfs

1.1. All the operations for this compilation and installation are on the Fedora 20 x86-64 with the kernel version 3.14.4-200. fc1_x86 _ 64. For compilation and installation in other systems, see other articles.

2. Installation preparation:

2.1 install the dependency and compiling environment .. /Configure does not report errors when necessary dependencies are insufficient. Therefore, the dependencies I installed below are not fully installed, but can be compiled at least. Many useless packages may be installed.

    

yum install automake autoconfig clang gcc gcc-c++ cdk-devel curl-devel gtk-vnc2-devel gvnc-devel novnc xen-devel SDL2-mixer-devel  bluez-libs-devel libaio-devel brlapi-devel ccompdrbd-udev gcc-objc gcc-objc++ ghc-OpenGL-devel glib-devel glusterfs glusterfs-api glusterfs-devel glusterfs-devel  gprof2dot gtk-vnc-devel  libcap-ng-devel libfdt-devel  libiscsi libiscsi-devel libmpcdec-devel libseccomp-devel libseccopm-devel libtool  libusb-devel llvm-libs  ncurses-devel nss-softokn-freebl-devel compsparse-devel spice-glib-devel spice-gtk3-devel spice-server-devel sysprof trousers trousers-static uuid-devel vhostmd xfsprogs-devel

2.2 obtain the source code:

    

yum install gitgit clone git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git qemu-kvm.git

 

3. Compile and install:

Note that-w should be added to CFLAGS, because the source code of git treats the warning as an error. I didn't find the related options in makefile, so I had to disable it.

export CFLAGS="-w -O3 -msse -msse2 -mmmx -funroll-loops -mfpmath=sse"cd qemu-kvm.git./configure --prefix=/usr/local/qemu-systemmakemake install

 

4. test and install:

Create a 16 GB qcow2 format image file, and then start a M memory dual-core virtual machine from the CentOS-6.5-x86_64-minimal.iso.

qemu-img create -f qcow2 CentOS-6.5-x64.qcow2 16G qemu-system-x86_64 --enable-kvm -m 1024 -smp 2 -boot order=cd -hda CentOS-6.5-x64.qcow2 -cdrom /home/livenux/Public/System-cd/CentOS-6.5-x86_64-minimal.iso

After the CentOS is started, we can see the installation interface of CentOS:

5. Follow-up:

In fact, at the time of writing this article, the system has been installed and has been restarted for a period of time and then crashed. We will continue to share our future experiences.

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.