KVM 的安装创建虚拟机

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)