vmware配置,主要倾向于rails.(持续更新)

来源:互联网 发布:vb 替换加密 编辑:程序博客网 时间:2024/06/06 09:31

我目前推荐且用得最爽的方式:

启动为 text模式,不自动进入X

平时操作使用screen,用来保留当前shell环境

网络模式,使用nat方式,不用桥接,会依赖于网络环境,如在公司和家的ip不一样时。

与主机文件交互使用文件共享。

关闭虚拟机,直接用挂起,再启动时可直接恢复,再用putty连上之后,进入screen即可。

 

装不装X的问题:

我的建议是装上,不然装vmware tool可能装不了。内存占用上,只要启动时改为不启动X就行了。

其他虚拟机:

colinux用得还行,不过在win7上,直接蓝了我屏,多次没试出来,不好弄。

virtualbox吧,4.多少的版本,一开启就硬盘嘎嘎的响,且慢得死,不推荐用,我试用了之后又卸载了,

不过可以直接把virtualbox的境像转为vmware的。

 

 

网络设置:

一.host-only

1.在windows中,本地连接-属性-tcp/ip protocol-advanced-share connection-choose vnet1 or vnet8-ok

vnet1/vnet8 的ip address 变为192.168.0.1, netmask 255.255.255.0

2.在vmware中

选择网络类型为host-only,将dhcp and nat停掉,

a. vi /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.66
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

 

b. vi /etc/resolv.conf

nameserver windows下的dns ip addr

 

#/etc/init.d/network restart

二.nat

1.在windows中,本地连接-属性-tcp/ip protocol-advanced-share connection-choose vnet1 or vnet8-ok

vnet1/vnet8 的ip address 变为192.168.0.1, netmask 255.255.255.0

2.在vmware中,选择网络类型为nat,将nat启动,gateway address 192.168.0.2

a. vi /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.66
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.2

b. vi /etc/resolv.conf

nameserver 192.168.0.2

#/etc/init.d/network restart

windows连上网,试用vmware ping host主机,ping 网关,ping dns,如果都能ping 通,则可以上网。