在安装之前先查看cpu是否支持虚拟化:
#cat /proccpuinfo 查看cpu信息,如果看到vmx/svm信息,则支持虚拟化。 #grep -E '(vmx|svm)' /proc/cpuinfo
现在开始安装spice,首先先安装一些依赖包:
apt-get install build-essential apt-get install autoconf apt-get install libjpeg62-dev apt-get install libogg-dev apt-get install libssl-dev apt-get install libasound2-dev apt-get install libxrandr-dev apt-get install libxfixes-dev apt-get install pkg-config从源码安装celt-0.5.1.3和pixman-0.18.4:
#./configure --prefix=/usr/local &&make &&make install
下载spice-protocol-0.10.1:
http://cgit.freedesktop.org/spice/spice-protocol/commit/?h=0.10
下载spice-0.10.1:
http://cgit.freedesktop.org/spice/spice/
下载qemu:
git://anongit.freedesktop.org/spice/qemu
安装spice-protocol:
#./configure --prefix=/usr/local &&make &&make install
安装spice:
#./configure --prefix=/usr/local &&make &&make install现在开始安装qemu,先查看cpu虚拟化是否打开:
#lsmod |grep kvm如果没打开,在BIOS中cpu选项开启,如果没安装KVM,安装KVM:
#apt-get install kvm安装qemu:
#./configure --enable-spice --enable-linux-aio --enable-uuid --enable-kvm-pit --enable-kvm --disable-werror --prefix=/usr/local --enable-debug --target-list=x86_64-softmmu &&make &&make install