标签:com pad conf sysctl qemu mod boot alt col
使用虚拟化KVM安装RHEL7系统
作者:Eric 微信:loveoracle11g
检查真实物理机是否支持虚拟化功能 [root@server ~]# grep vmx /proc/cpuinfo [root@server ~]# grep svm /proc/cpuinfo 安装KVM以及相关的依赖软件包 [root@server ~]# yum -y groupinstall "Virtualization Host" [root@server ~]# yum -y install virt-{install,viewer,manager} [root@server ~]# echo "net.ipv4.ip_forward = 1" > /etc/sysctl.d/99-ipforward.conf [root@server ~]# sysctl -p /etc/sysctl.d/99-ipforward.conf [root@server ~]# vim /etc/sysconfig/network-scripts/ifcfg-eno16777736 注释掉其他信息,并追加以下参数 DEVICE=eno16777736 ONBOOT=yes HWADDR=00:0C:29:17:9E:2E BRIDGE=virbr0
[root@server ~]# vim /etc/sysconfig/network-scripts/ifcfg-virbr0 DEVICE=virbr0 TYPE=BRIDGE ONBOOT=yes BOOTPROTO=static IPADDR=192.168.10.10 NETMASK=255.255.255.0 GATEWAY=192.168.10.1 DNS1=192.168.10.1 [root@server ~]# reboot [root@server ~]# lsmod | grep kvm [root@server ~]# ip show virbr0 [root@server ~]# virsh -c qemu:///system list [root@server ~]# virt-manager
标签:com pad conf sysctl qemu mod boot alt col
原文地址:https://www.cnblogs.com/zhouwanchun/p/10699032.html