vmware workstation ---> vm ---> reinstall vmware tools
tar -zxvf ~/tools/vmwaretools-10.3.2-9925305.tar.gz -c /root/ ~/vmware-tools-distrib/vmware-install.pl
vim /etc/systemd/logind.conf handlelidswitch=lock
vim /etc/sysconfig/network-scripts/ifcfg-ethxxxx dns1=114.114.114.114 bootproto=static ipaddr=192.168.156.120 gateway=192.168.156.2 netmask=255.255.255.0 nm_controlled=no onboot=yes
service network restart
systemctl stop firewalld.service systemctl disable firewalld.service chkconfig iptables off
setenforce 0 vi /etc/selinux/config selinux=disabled
reboot
(1)查看虚拟机网关与ip地址范围
vmware workstation--->edit--->vitual network editor--->nat vmnet8--->nat settings--->gateway ip vmware workstation--->edit--->vitual network editor--->nat vmnet8--->dhcp settings --->starting/ending ip address
(2)修改虚拟机网关或ip
vmware workstation--->edit--->vitual network editor--->change settings--->授权--->进入对应位置修改
(3)linux的ip地址、网关的设置与虚拟机的网卡设置要相匹配
如对本文有疑问, 点击进行留言回复!!
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论