首先要登入自己的虚拟机,这里以ubuntu为例. 配置两块网卡,一块eth0为NAT模式,另一块为eth1仅主机模式 # 进入网卡配置页面vi /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback
因为该死的windows自动更新,所以vmplayer经常会被强制关闭. 但重新启动后,会发生不能连接到网络的情况显示: waiting for the network configuration…… Waiting seconds more for network configuration…… Booting system without full network configuration…… 这点很伤..折腾了很长时间都没搞定,最后还是从网友那边找到了解决的办法. 1.在管理员模式下,找
配置ubuntu配置成桥接,在ubuntu虚拟机中运行django.py开发服务器.windows访问django失败. 虚拟机运行: python manage.py runserver 0.0.0.0:8000 在windows上浏览器进行访问,访问失败. 虚拟机错误提示: DisallowedHost: Invalid HTTP_HOST header: '192.168.1.249:8000'. You may need to add u'192.168.1.249' to ALLOWE