上QQ阅读APP看书,第一时间看更新
How to do it...
Perform the following steps to install QEMU from packages on Ubuntu/Debian and RHEL/CentOS distributions:
- On Ubuntu/Debian distributions, update your packages index:
root@kvm:~# apt-get update
- Install the package:
root@kvm:~# apt-get install -y qemu
- On CentOS/RHEL distributions execute:
root@kvm:~# yum install qemu-kvm
To install from source, execute the following:
- Download the archive first:
root@kvm:~#cd /usr/src && wget
http://download.qemu-project.org/qemu-2.8.0.tar.xz
- Extract the files from the archive:
root@kvm:/usr/src# tar xvJf qemu-2.8.0.tar.xz && cd qemu- 2.8.0
- Configure and compile the source code:
root@kvm:/usr/src/qemu-2.8.0# ./configure
root@kvm:/usr/src/qemu-2.8.0# make && make install