[qemu] qemu从源码编译安装

环境:CentOS7-1804

下载最新的源码:

┬─[tong@T7:~/Src/thirdparty/PACKAGES]─[11:38:08 AM]
╰─>$ axel  https://download.qemu.org/qemu-3.0.0.tar.xz

解压:

[root@base-centos7-1804 package]# tar Jxvf qemu-3.0.0.tar.xz -C ../build/

编译:

configure

[root@base-centos7-1804 qemu-3.0.0]# ./configure --target-list=x86_64-softmmu --disable-gtk --disable-vte --disable-docs

make && make install

[root@base-centos7-1804 qemu-3.0.0]# make
[root@base-centos7-1804 qemu-3.0.0]# make install

完成

[root@base-centos7-1804 qemu-3.0.0]# which qemu-system-x86_64 
/usr/local/bin/qemu-system-x86_64
[root@base-centos7-1804 qemu-3.0.0]# qemu-system-x86_64 --version
QEMU emulator version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
[root@base-centos7-1804 qemu-3.0.0]# 

参考:

[qemu][cloud][centos][ovs][sdn] centos7安装高版本的qemu 以及 virtio/vhost/vhost-user咋回事

原文地址:https://www.cnblogs.com/hugetong/p/9830050.html