Enable KVM Support on your hardware
grep -E 'vmx|svm' /proc/cpuinfo
BIOS setup
Installing and Configuring KVM-related software
1 install KVM on the host sys
make sure linux is not running a Xen kernel: uname -a
2.6.18-164.e15Xen
yum install kvm
Install addtional virtualization management pack
yum install virt-manager libvirt libvirt-python python-virtinst
2 Configure
Load the correct KVM modules
(1) Insert KVM module
modprobe kvm
(2)Insert the chip-specific KVM module
modprobe kvm-intel
(3) lsmod |grep kvm
kvm-intel
kvm
(4) Start the libvirtd daemon service
/etc/init.d/libvirtd start
chkconfig libvirtd on
(5) Verify the default virtual network is available. virbr0 192.168.122.x
ifconfig virbr0
3 Creating a KVM guest and Install an os
图形界面: virt-manager
1) ssh -X start X11 env
2) virt-manager
3) New
4) 选择虚拟化方法
命令工具: virt-install
4 Install the guest OS
virt-viewer 继续安装或者回复安装窗口
yum isntall virt-viewer
Start
virt-viewer <guest name>
SSH 或者 virt-viewer 访问guest OS
KVM 的安装创建虚拟机
原创
©著作权归作者所有:来自51CTO博客作者松岛军的原创作品,谢绝转载,否则将追究法律责任
上一篇:CentOS server 攻略
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
安装kvm及虚拟机的创建
安装kvm及虚拟机的创建
安装kvm及虚拟机的创建 -
kvm安装及虚拟机创建
kvm的简单安装!
linux 虚拟化 kvm