centos6.7环境之kvm虚拟化quem工具配置及使用详解 (2)


1、网络配置 添加网桥设备br0
# cd /etc/sysconfig/network-scripts/
# cp ifcfg-eth0 ifcfg-br0


# vim ifcfg-br0


DEVICE=br0
TYPE=Bridge
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPV6INIT=no
IPADDR=192.168.8.46
BROADCAST=192.168.8.255
NETMASK=255.255.255.0
GATEWAY=192.168.8.254
USERCTL=no


# vim ifcfg-eth0


DEVICE=eth0
NM_CONTROLLED=no
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
BRIDGE=br0


# service network restart


验证配置是否成功
# ifconfig br0 Link encap:Ethernet HWaddr 00:0C:29:4D:E2:88 inet addr:192.168.8.46 Bcast:192.168.8.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe4d:e288/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:119 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8131 (7.9 KiB) TX bytes:4302 (4.2 KiB) eth0 Link encap:Ethernet HWaddr 00:0C:29:4D:E2:88 inet6 addr: fe80::20c:29ff:fe4d:e288/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6232 errors:0 dropped:0 overruns:0 frame:0 TX packets:493 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:796837 (778.1 KiB) TX bytes:81011 (79.1 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) 2、加载kvm模块 # modprobe kvm # modprobe kvm_intel # lsmod | grep kvm kvm_intel 55624 0 kvm 341551 1 kvm_intel

安装kvm管理相关组件
# yum install -y qemu-kvm qemu-kvm-tools


创建命令的链接
# ln -sv /usr/libexec/qemu-kvm /usr/sbin/
`/usr/sbin/qemu-kvm\' -> `/usr/libexec/qemu-kvm\'
创建存储目录
# mkdir -pv /images/vm1
mkdir: created directory `/images\'
mkdir: created directory `/images/vm1\'


3、安装vnc客户端并安装系统

安装tigervnc客户端用来观察系统安装的过程

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzjwzz.html