1.安装python3
yum -y install python3
2.安装wget
yum -y install wget
3.安装部分依赖组件以及工具
yum install git glib2-devel libfdt-devel pixman-devel zlib-devel
yum install gtk3-devel
yum install vte-devel
yum install libaio-devel libcap-devel libiscsi-devel libvirt-devel
4.修改yum源为阿里云
cd /etc/yum.repos.d
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repobak
wget -O /etc/yum.repos.d/CentOS-Base.repo http:
5.安装EPEL源
wget https:
yum clean all && yum makecache
6.安装编译工具
yum -y install gcc
yum -y install autoconf automake libtoo
7.安装qemu
yum install qemu -y
cd ~
wget https:
tar -xvJf qemu-4.1.0.tar.xz
cd qemu-4.1.0
./configure
./configure |grep SDL
若显示为no则需进行SDL安装
安装命令 yum install SDL*
若报冲突错误继续通过 yum install SDL*.x86_64进行安装
继续通过./configure |grep SDL进行验证是否支持。
显示支持后需重新编译安装qemu
make #大概要半小时
make install
8.安装xv6
cd ~
git clone https:
cd xv6-public
make
9.运行
cd xv6-public
make qemu-nox
crl+x 松开再按 a 退出