1.安装ubuntu 14
2.更新apt-get源
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
3.确认硬件知否支持VT-d
cat /proc/cpuinfo | grep vmx --color
4.确认kvm模块是否安装
lsmod | grep kvm
kvm_intel 137052 0
kvm 396281 1 kvm_intel
5.apt-get源更新qemu软件
apt-get install qemu-kvm libvirt-bin virt-manager bridge-utils(可能是)
6.下载一个centos iso
CentOS-6.8-i386-minimal.iso
7.创建一个镜像
dd if=/dev/zero of=centos6u8.img bs=1M count=2048
8.启动一个客户机
ubuntu图形启动:qemu-system-i386 -m 1024 -smp 2 -boot order=cd -hda /home/kvm_dodng/centos6u8.img -cdrom /home/kvm_dodng/CentOS-6.8-i386-minimal.iso
ssh启动:qemu-system-i386 -m 1024 -smp 2 -boot order=cd -hda /home/kvm_dodng/centos6u8.img -cdrom /home/kvm_dodng/CentOS-6.8-i386-minimal.iso -nographic