LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 5052|回复: 27

[原创]兼讨论:在Fedora Core 1.0下安装VMware 4.0.5 Build 6030

[复制链接]
发表于 2003-12-20 13:27:20 | 显示全部楼层 |阅读模式
版权所有,不得翻录,如果需要发表,请注明出处,嘿嘿……
小弟是个彻底的菜鸟,学习Linux几乎都是靠在Linuxsir上潜水所得,现在能够有一点小小的心得,希望能够回馈社区。
在测试、写稿的过程中,曾经参考本站多位兄弟的帖子,在此一并致谢,有了你们的帮助,我等菜鸟才能得到提高!
以下内容部分取自小弟参加本社区的“自由之路”开源文档计划,现在提前放上来,主要是想请大家帮助捉捉Bug,并且能够得到完善,如果能够有幸置精,则更是喜出望外*^_^*
为了能够方便大家阅读,小弟斗胆先占三个占位帖,以便今后按照不同分类进行完善。

正文:
安装、配置VMware Workstation
下载、解压缩、注册,无甚可说,不过建议大家下载tar.gz安装包,而非rpm包,同时为了方便讲述,这里假设大家完全安装Fedora。
整个安装过程分为两部分,一是安装、二是安装后配置:
◆安装过程
解压缩tar.gz安装包,运行其下的vmware-install.pl即可开始安装过程,需要回答一些问题。不用管它,一路回车即可,最后系统会提示是否需要自动运行网络配置程序vmware-config.pl,当然回答yes,这就进入了第二步。
◆配置过程
呵呵,这才是VMware的重头戏呢!
1.接受EULA协议后,系统会提示需要把vmmon模块编译进系统内核,由于Fedora Core 1.0所使用的usr/bin/gcc版本(3.2.3)和所需的gcc版本(3.2.2)不符合,配置程序警告说可能导致VMware Workstation崩溃,不要理会VMware的警告,键入yes并回车开始强行编译。
2.接下来又是一路回车,直到系统提示The module loads perfectly in the running kernel,说明已经成功编译模块!
3.接下来会询问一些配置过程所必须回答的问题,这是一个关键,很多朋友抱怨他们的VMware Workstation老是不听使唤,无法使用其网络功能,究其原因,是因为没有正确地回答这些问题。下面就详细解释这些重要问题:
① Do you want networking for your virtual machines? (yes/no/help)
这是询问是否需要进行虚拟机的网络配置,这里自然回答yes。回答no,则中止配置过程,键入help即可查看详细帮助信息:
Networking will allow your virtual machines to use a virtual network. There are primarily two types of networking available: bridged and host-only.  A bridged network is a virtual network that is connected to an existing ethernet device. With a bridged network, your virtual machines will be able to communicate with other machines on the network to which the ethernet card is attached.  A host-only network is a private network between your virtual machines and host. Virtual machines connected to a host-only network may only communicate directly with other virtual machines or the host.  A virtual machine may be configured with more than one bridged or host-only network.
配置程序可以允许虚拟机使用虚拟网络,可用的网络配置有两种类型:Bridge(桥接)模式和Host-only(仅宿主机)模式。桥接网络(VMnet0)是连接到宿主机物理网卡上的虚拟网络,虚拟机可以通过桥接网络连接外部网络──通过物理网卡连接的外部网络。Host-only虚拟子网(VMnet1)是仅供宿主机、虚拟机通信的虚拟网络,Host-only虚拟子网上的虚拟机只能和宿主机、或者其他虚拟机直接通信。一个虚拟机可以同时配置不止一个Bridged网络、或者Host-only网络。
回答yes后,将会出现以下提示信息,表示系统正在配置桥接网络(VMnet0)、和NAT网络(VMnet8):
Configuring a bridged network for vmnet0.
Configuring a NAT network for vmnet8.

② Do you want this program to probe for an unused private subnet? (yes/no/help)
这是询问是否需要配置程序搜索未使用的专用子网地址。这里可以回答yes。如果不明白这个问题的具体含义,不要紧,只要键入help即可查看详细帮助信息:
Virtual machines configured to use NAT networking are placed on a virtual network that is confined to this host. Virtual machines on this network can communicate with the network through the NAT process, with each other, and with the host.
NAT虚拟子网(VMnet8)上的虚拟机是通过NAT设备来和宿主机、其他虚拟机进行通信。
To setup NAT networking you need to select a network number that is normally unreachable from the host. We can automatically select this number for you, or you can specify a network number that you want.
要正确设置NAT网络,我们必须选择一个从宿主机无法访问的网络地址(笔者注:和宿主机物理网卡不在同一个网段)。配置程序自动选择一个合适的网段地址,我们也可以自己指定一个网段地址。
The automatic selection process works by testing a series of Class C subnet numbers to see if they are reachable from the host. The first one that is unreachable is used. The subnet numbers are chosen from the private network numbers specified by the Internet Engineering Task Force (IETF) in RFC 1918 (http://www.isi.edu/in-notes/rfc1918.txt).
自动搜索进程可以自动测试一组C类网络地址来查看是否可以从宿主机访问,它会自动选择第一个物理网卡无法访问的网络地址(笔者注:和宿主机物理网卡不在同一个网段)。
Virtual machines residing on the NAT network will appear as the host when accessing the network. These virtual machines on the NAT network will not be accessible from outside the host machine. This means that it is OK to use the same number on different systems so long as you do not enable IP forwarding on the host.
NAT虚拟子网(VMnet8)上的虚拟机可以象宿主机一样访问外部网络,但是外部网络的计算机无法访问NAT虚拟子网上的虚拟机。这意味着只要不启用宿主机的IP转发功能,不同宿主机上的虚拟机可以采用同一个IP地址(笔者注:由于桥接网络直接连接到外部物理网络,所以同一个局域网里的不同宿主机,其桥接网络里的虚拟机必须有独立的IP,否则会提示IP冲突)。
回答yes之后,系统将出现以下提示信息,表示已经搜索到一个合适的网络地址(192.168.120.0,子网掩码255.255.255.0)
Probing for an unused private subnet (this can take some time)...
The subnet 192.168.120.0/255.255.255.0 appears to be unused.
……

③ Do you want this program to automatically configure your system to allow your virtual machines to access the host's filesystem? (yes/no/help)
这是询问是否需要配置程序自动配置我们的系统,使得虚拟机可以访问宿主机的文件系统。按help查看帮助信息:
To configure your system for host filesystem access, the program will install VMware's networking software to allow your virtual machines to use the network. It will also install a private Samba server to export your host's filesystem on a virtual network that is private to the physical machine and your virtual machines. If you already have a Samba server running on your host, it is highly recommended to answer "no" to this option.
要配置系统允许宿主机访问,配置程序将会安装VMware的专门网络软件,以允许虚拟机使用虚拟网络。同时也会安装一个专用的Samba服务器,该Samba服务器仅向虚拟网络提供宿主机文件系统的访问。如果宿主机里已经安装了Samba服务器,强烈建议回答no,以防两者产生冲突。
这里我们假设宿主机里没有Samba服务器,所以我们回答yes。

④ You have successfully configured VMware Workstation to allow your virtual machines to access the host's filesystem. Would you like to add a username and password for accessing your host's filesystem via network interface vmnet1 at this time? (yes/no/help)
这个问题的主要意思是现在我们已经成功配置宿主机访问功能,询问是否添加通过网络接口VMnet1访问宿主机网络的用户名、密码。这里可以回答yes,然后输入合适的帐号、密码即可。接下来系统会提示以下信息,表示配置工作已经成功完成,今后可以使用“/usr/bin/vmware”命令来运行VMware Workstation:
(笔者注:为什么要通过VMnet1访问宿主机,很简单,VMnet1其实就是Host-only虚拟子网,也就是说只有宿主机上的虚拟机才可以访问虚拟机)

The configuration of VMware Workstation 4.0.5 build-6030 for Linux for this running kernel completed successfully.
You can now run VMware Workstation by invoking the following command: "/usr/bin/vmware".
Enjoy,
--the VMware team
哈哈,看到这里,就OK了!

剩下的新建虚拟机、在虚拟机里安装Guest-OS,和在Windows宿主机里几乎没有什么不同!此处不再赘述。
另外请允许小弟留两个占位帖,以供今后适当增加一些内容,例如如何在Fedora里安装VMware GSX Server,如何用VMware进行一些高级网络配置实验,以助初学者更好地学习Linux,而不是将注意力集中在桌面美化、如何玩转软件上(个人认为Linux不要试图和Windows比拼兼容性、易用性,否则就是和老虎比牙齿、和长颈鹿比身高……西红柿、臭鸡蛋~~~~~!!!#◎!哈哈#番茄炒蛋)
 楼主| 发表于 2003-12-20 13:29:04 | 显示全部楼层
占位帖1
 楼主| 发表于 2003-12-20 13:30:10 | 显示全部楼层
占位帖2
 楼主| 发表于 2003-12-20 15:37:48 | 显示全部楼层
难道就没有人对此感兴趣吗?哪怕骂一句“什么破玩意”也好啊,55555555555555……
发表于 2003-12-20 15:44:01 | 显示全部楼层
兄弟的Fedora用的是什么内核啊。我用2.6的内核好像不行。
 楼主| 发表于 2003-12-20 15:59:18 | 显示全部楼层
最初由 黄叶 发表
兄弟的Fedora用的是什么内核啊。我用2.6的内核好像不行。

你好!是默认的内核,我未对全新安装的Fedora有任何的调整
不过VMware站点有一个针对最新内核的补丁,推荐使用。
发表于 2003-12-20 17:23:09 | 显示全部楼层
哦。谢谢你。
我去看看。
没办法,有时候还得回到windows,来回的换,想装一个vmware用来装装bsd玩玩。
发表于 2003-12-20 23:33:13 | 显示全部楼层
好贴,我要求强烈加精!:%

以后我在外面也可以上来找它看看
发表于 2003-12-20 23:35:59 | 显示全部楼层
不错不错,强烈要求加入精华
发表于 2003-12-20 23:49:24 | 显示全部楼层

强烈要求收精,要不。。。。

天啊,难得一见的好贴!!!
:eek: 太棒了,这样的帖子都不收精,我要去撞墙!!!!
强烈要求。。。。。。。收。。。精!!!:!! :!! :!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表