qemu安装

1 下载qemu 

wget http://wiki.qemu-project.org/download/qemu-2.4.1.tar.bz2

2 解压qemu

tar -jxvf qemu-2.4.1.tar.bz2

3 安装qemu

./configure

报错

[root@localhost qemu-2.4.1]# ./configure
Disabling libtool due to broken toolchain support

ERROR: zlib check failed
       Make sure to have the zlib libs and headers installed.

解决第一个问题:

[root@localhost qemu-2.4.1]# yum install libtool
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libtool.x86_64 0:2.2.6-15.5.el6 will be installed
--> Processing Dependency: automake >= 1.4 for package: libtool-2.2.6-15.5.el6.x86_64
--> Processing Dependency: autoconf >= 2.58 for package: libtool-2.2.6-15.5.el6.x86_64
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                 Version                       Repository          Size
====================================================================================================
Installing:
 libtool                x86_64               2.2.6-15.5.el6                base               564 k
Installing for dependencies:
 autoconf               noarch               2.63-5.1.el6                  base               781 k
 automake               noarch               1.11.1-4.el6                  base               550 k

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 1.9 M
Installed size: 5.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): autoconf-2.63-5.1.el6.noarch.rpm                                      | 781 kB     00:00
(2/3): automake-1.11.1-4.el6.noarch.rpm                                      | 550 kB     00:00
(3/3): libtool-2.2.6-15.5.el6.x86_64.rpm                                     | 564 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                               3.5 MB/s | 1.9 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : autoconf-2.63-5.1.el6.noarch                                                     1/3
  Installing : automake-1.11.1-4.el6.noarch                                                     2/3
  Installing : libtool-2.2.6-15.5.el6.x86_64                                                    3/3
  Verifying  : libtool-2.2.6-15.5.el6.x86_64                                                    1/3
  Verifying  : autoconf-2.63-5.1.el6.noarch                                                     2/3
  Verifying  : automake-1.11.1-4.el6.noarch                                                     3/3 

Installed:
  libtool.x86_64 0:2.2.6-15.5.el6                                                                   

Dependency Installed:
  autoconf.noarch 0:2.63-5.1.el6                   automake.noarch 0:1.11.1-4.el6                  

Complete!

./configure

[root@localhost qemu-2.4.1]# ./configure 

ERROR: zlib check failed
       Make sure to have the zlib libs and headers installed.

安装zlib

[root@localhost qemu-2.4.1]# yum install zlib*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
---> Package zlib-static.x86_64 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch                 Version                    Repository          Size
====================================================================================================
Installing:
 zlib-devel                x86_64               1.2.3-29.el6               base                44 k
 zlib-static               x86_64               1.2.3-29.el6               base                52 k

Transaction Summary
====================================================================================================
Install       2 Package(s)

Total download size: 96 k
Installed size: 227 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): zlib-devel-1.2.3-29.el6.x86_64.rpm                                    |  44 kB     00:00
(2/2): zlib-static-1.2.3-29.el6.x86_64.rpm                                   |  52 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                               580 kB/s |  96 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : zlib-devel-1.2.3-29.el6.x86_64                                                   1/2
  Installing : zlib-static-1.2.3-29.el6.x86_64                                                  2/2
  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                                                   1/2
  Verifying  : zlib-static-1.2.3-29.el6.x86_64                                                  2/2 

Installed:
  zlib-devel.x86_64 0:1.2.3-29.el6                 zlib-static.x86_64 0:1.2.3-29.el6                

Complete!

./configure

[root@localhost qemu-2.4.1]# ./configure 

ERROR: glib-2.22 gthread-2.0 is required to compile QEMU

安装glib

[root@localhost qemu-2.4.1]# yum install -y glib*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Package glibmm24-2.22.1-1.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package glib-networking.x86_64 0:2.28.6.1-2.2.el6 will be installed
---> Package glib2.x86_64 0:2.22.5-7.el6 will be updated
.......................

./configure

[root@localhost qemu-2.4.1]# ./configure
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
library directory /usr/local/lib
module directory  /usr/local/lib/qemu
libexec directory /usr/local/libexec
include directory /usr/local/include
config directory  /usr/local/etc
local state directory   /usr/local/var
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/qemu-2.4.1
C compiler        cc
Host C compiler   cc
C++ compiler      c++
Objective-C compiler cc
ARFLAGS           rv
CFLAGS            -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -g
QEMU_CFLAGS       -I$(SRC_PATH)/pixman/pixman -I$(BUILD_DIR)/pixman/pixman -I$(SRC_PATH)/dtc/libfdt -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all
LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g
make              make
install           install
python            python -B
smbd              /usr/sbin/smbd
module support    no
host CPU          x86_64
host big endian   no
target list        aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu or32-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user or32-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user unicore32-linux-user x86_64-linux-user
tcg debug enabled no
gprof enabled     no
sparse enabled    no
strip binaries    yes
profiler          no
static build      no
pixman            internal
SDL support       no
GTK support       no
GNUTLS support    no
GNUTLS hash       no
GNUTLS gcrypt     no
GNUTLS nettle     no ()
VTE support       no
curses support    yes
curl support      no
mingw32 support   no
Audio drivers     oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support    no
VNC support       yes
VNC TLS support   no
VNC SASL support  no
VNC JPEG support  no
VNC PNG support   no
xen support       no
brlapi support    no
bluez  support    no
Documentation     no
GUEST_BASE        yes
PIE               yes
vde support       no
netmap support    no
Linux AIO support yes
ATTR/XATTR support yes
Install blobs     yes
KVM support       yes
RDMA support      no
TCG interpreter   no
fdt support       yes
preadv support    yes
fdatasync         yes
madvise           yes
posix_madvise     yes
sigev_thread_id   yes
uuid support      no
libcap-ng support no
vhost-net support yes
vhost-scsi support yes
Trace backends    nop
spice support     no
rbd support       no
xfsctl support    no
nss used          no
libusb            no
usb net redir     no
OpenGL support    no
libiscsi support  no
libnfs support    no
build guest agent yes
QGA VSS support   no
QGA w32 disk info no
seccomp support   no
coroutine backend ucontext
coroutine pool    yes
GlusterFS support no
Archipelago support no
gcov              gcov
gcov enabled      no
TPM support       yes
libssh2 support   no
TPM passthrough   yes
QOM debugging     yes
vhdx              no
lzo support       no
snappy support    no
bzip2 support     no
NUMA host support no
tcmalloc support  no

make

make install

时间: 2024-09-25 19:04:24

qemu安装的相关文章

《云安全原理与实践》——3.1 主机虚拟化技术概述

3.1 主机虚拟化技术概述 虚拟化技术经过半个多世纪的发展,已日趋成熟并逐渐得到广泛的应用,成为云计算的基础技术. 1959年,在国际信息处理大会上,著名科学家克里斯托弗(Christopher Strachey)发表了一篇名为"大型高速计算机中的时间共享"(Time Sharing in Large Fast Computers)的学术报告.在该报告中,他提出了虚拟化的基本概念,同时这篇文章也被认为是对虚拟化技术的最早的论述. 1965年,IBM公司发布IBM7044,它被认为是最早

《树莓派实战秘籍》——2.6 技巧26仿真Pi

2.6 技巧26仿真Pi 树莓派实战秘籍无论你是在旅行过程中没有带着Pi的情况下需要紧急测试什么东西,还是你的孩子已经接管了Pi而你一时找不着他,这个技巧有时可以很方便地在另一台机器上模拟Pi,这时QEMU就可以帮助你. 快速模拟器(QEMU,Quick EMUlator的简称)是一个开源的.托管的虚拟机管理程序.这意味着你可以用它在你平时的计算机(比如,一个x86的笔记本电脑)上来运行一个树莓派(使用ARM硬件)的Linux发行版. 它有两种模式,第一种是用户模式仿真,可以让你运行不是为你的机

运行MeeGo SDK 的windows版本

系统配置要求: 1.       MeeGo SDK 目前只支持 Windows Xp和 Windows 7操作系统. MeeGo SDK 不保证在Vista下可以工作,并且不提供支持. 2.       仿真器只能在32-bit 版本的windows 下工作.如果你使用的是64位的系统,很抱歉,你将不能使用仿真器. 已知问题及可能的工作环境 1.       目前,仿真器只能用于intel 的cpu 2.       现在只是测试过名为"meego-handset-ia32-w32.1.1&q

centos系统中kvm qemu 虚拟机安装配置教程

二,安装配置KVM  代码如下 复制代码 # yum -y install kvm python-virtinst libvirt bridge-utils \  virt-manager qemu-kvm-tools virt-viewer virt-v2v qemu-kvm tunctl    [root@localhost ~]#vim /etc/sysconfig/selinux //关闭selinux    SELINUX=disabled    [root@localhost ~]#

Centos 6.3 64bit安装KVM总结

1.[root@kvmtest ~]#egrep 'vmx|svm' /proc/cpuinfo//首先确定你的cpu是否支持vmx或者svm虚拟化,vmx属于inter处理器,svm属于amd处理器,或者用cpu-z查看你的处理器是否支持vt-x虚拟化,bios中开启vt支持. 2.系统安装利用kickstart安装KVM,最主要是添加4个组包 @virtualization //提供虚拟机的环境,主要包含qumu-kvm @virtualization-client//管理和安装虚拟机实例的

教你在移动硬盘安装多个虚拟随身操作系统

在一块硬盘上安装多个操作系统,不仅安装麻烦,多系统的维护更是一个棘手的难题.相信很多朋友都用过虚拟系统软件来解决多操作系统并存的难题,不过常规的虚拟系统软件不仅需要安装,而且配置也较为复杂.Qemu则是一款免费.绿色的虚拟系统软件,这样借助移动硬盘就可以轻松拥有多个随身系统了. 一.简单设置,Qemu轻松上手 首先点击这里下载其图形化运行软件_Qemu manger(以下简称为QM).下载后将文件解压到"k:\HA-qemuk21-FSYX\QemuManager"(k为移动硬盘分区)

如何在移动硬盘中安装虚拟的WinXP系统

  如何在移动硬盘中安装虚拟的WinXP系统            一.简单设置,Qemu轻松上手 首先下载图形化运行软件_Qemu manager(以下简称为QM).下载后将文件解压到"k:HA-qemuk21-FSYXQemuManager"(k为移动硬盘分区),然后运行Setup.exe安装.运行QM后单击"选项"→"新建虚拟磁盘",按提示建立一个大小为10GB虚拟磁盘文件,以WinXP.dsk为名保存在k:. 返回QM窗口,单击"

Linux系统云计算的KVM/QEMU桥接网络设置及kvm资料

  KVM/QEMU桥接网络设置 配置kvm的网络有2种方法.其一,默认方式为用户模式网络(Usermode Networking),数据包由NAT方式通过主机的接口进行传送.其二,使用桥接方式(Bridged Networking),外部的机器可以直接联通到虚拟机,就像联通到你的主机一样. 第一,用户模式 虚拟机可以使用网络服务,但局域网中其他机器包括宿主机无法连接它.比如,它可以浏览网页,但外部机器不能访问架设在它里面的web服务器. 默认的,虚拟机得到的ip空间为10.0.2.0/24,主

KVM下用DevStack快速安装和配置OpenStack开发环境教程

  OpenStack是一个开源的云计算管理平台项目,支持几乎所有类型的云环境,项目目标是提供实施简单.可大规模扩展.丰富.标准统一的云计算管理平台.本文我们来谈谈DevStack安装和配置OpenStack开发环境. OpenStack的安装和配置有一点复杂,特别对于初学者来,第一次安装OpenStack时经常会碰到很多的问题.不过在Openstack社区中,一些开发者开发了一些自动化脚本来方便搭建OpenStack的开发环境,其中,DevStack是其中相对比较完善的,也是OpenStack