首页 > 其他 > 详细

kvm初试0

时间:2016-09-10 13:13:48      阅读:336      评论:0      收藏:0      [点我收藏+]

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

 

kvm初试0

原文:http://www.cnblogs.com/dodng/p/5859171.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!