【原文链接】QEMIU-基于CentOS系统编译安装部署QEMU环境
- 备份原有的yum源配置
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
- 设置阿里云的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- 添加EPEL源
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
- 更新yum缓存
yum clean all
yum makecache
- 安装依赖包
yum install gcc*
yum install zlib*
yum install -y glib*
yum install install autoconf automakelibtool
yum install SDL-devel
- 下载qemuu并解压
cd /opt
wget https://github.com/qemu/qemu/archive/refs/tags/v2.7.0.tar.gz
tar -zxvf v2.7.0.tar.gz
- 编译安装
cd qemu-2.7.0
./configure
make
make install
- 验证qemu
退出后重新登录,然后执行qemu- 加tag,即出现如下命令提示,表示qemu已经编译安装成功
[root@redrose2100-test-Syzkaller-centos7 ~]# qemu-
qemu-aarch64 qemu-m68k qemu-nbd qemu-sparc qemu-system-m68k qemu-system-ppc qemu-system-unicore32
qemu-alpha qemu-microblaze qemu-or32 qemu-sparc32plus qemu-system-microblaze qemu-system-ppc64 qemu-system-x86_64
qemu-arm qemu-microblazeel qemu-ppc qemu-sparc64 qemu-system-microblazeel qemu-system-ppcemb qemu-system-xtensa
qemu-armeb qemu-mips qemu-ppc64 qemu-system-aarch64 qemu-system-mips qemu-system-s390x qemu-system-xtensaeb
qemu-cris qemu-mips64 qemu-ppc64abi32 qemu-system-alpha qemu-system-mips64 qemu-system-sh4 qemu-tilegx
qemu-ga qemu-mips64el qemu-ppc64le qemu-system-arm qemu-system-mips64el qemu-system-sh4eb qemu-unicore32
qemu-i386 qemu-mipsel qemu-s390x qemu-system-cris qemu-system-mipsel qemu-system-sparc qemu-x86_64
qemu-img qemu-mipsn32 qemu-sh4 qemu-system-i386 qemu-system-moxie qemu-system-sparc64
qemu-io qemu-mipsn32el qemu-sh4eb qemu-system-lm32 qemu-system-or32 qemu-system-tricore
[root@redrose2100-test-Syzkaller-centos7 ~]#
标签:repo,install,CentOS,QEMIU,system,CentOS7,yum,qemu,2.7
From: https://www.cnblogs.com/redrose2100/p/17554029.html