在Windows下使用VMware安装Linux系统及其设置.doc
文本预览下载声明
在Windows下使用VMware安装Linux系统及其设置
首先,个人电脑的Windows系统上已经安装了VMware软件(如果没有,需要安装该软件),打开该软件:
点击“New Virtual Machine“
点击“Next”
点击“Browse…”,找到安装光盘镜像文件(ISO文件),选中该文件。
点击“Open ”
点击“Next”
输入名字和密码,点击“Next”
修改指定虚拟机的名字和安装的位置(文件存放的路径),点击“Next“。
点击“Next”
点击“Customize Hardware…”,定制硬件配置。
选择“Bridged”,选择桥接方式,点击OK,回到上一层。
点击“Finish”,就开始安装,等待几分钟……
最后出现以下画面:
输入用户名和密码,登录系统
这样就已经成功安装了Linux系统。如果希望中文界面,可以选择中文;如果要退出,按照下图操作:
点击菜单Actions — Log Out,即可退出或关机
以后运行Linux时只要使用VMware Player即可,这是一个播放器软件,比VMware Workstation要小很多。
点击
点击如下图标:
找到该虚拟机文件,打开。
点击“Play virtual machine”
第一次会出现以下图片
点击“OK“即可
1、修改MAC地址(如果有必要)
查看MAC地址和IP地址
[root@localhost ~]# ifconfig –a (查看)
eth0 Link encap:Ethernet HWaddr 00:0C:29:E1:7E:3B
inet addr:28 Bcast:55 Mask:
inet6 addr: fe80::20c:29ff:fee1:7e3b/64 Scope:Link
………
一次性修改MAC地址
[root@localhost ~]# ifconfig eth0 down
[root@localhost ~]# ifconfig eth0 hw ether 00809f563ba9
[root@localhost ~]# ifconfig eth0 up
[root@localhost ~]# ifconfig –a (再次查看)
eth0 Link encap:Ethernet HWaddr 00:80:9F:56:3B:A9
inet addr:28 Bcast:55 Mask:
inet6 addr: fe80::280:9fff:fe56:3ba9/64 Scope:Link
………
永久修改MAC地址
编辑 /etc/rc.d/rc.local 文件,在里面加三行:
vi /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you dont
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
ifconfig eth0 down
ifconfig eth0 hw ether 00809f563ba9
ifconfig eth0 up
修改虚拟机配置,网卡采用桥接方式:
重启LINUX虚拟机,再看MAC地址:
[root@localhost ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:9F:56:3B:A9
inet addr:3 Bcast:55 Mask:
inet6 addr: fe80::280:9fff:fe56:3ba9/64 Scope:Link
………
有时在动态获取IP地址的情况下,需要刷新IP地址,只需这样做:
dhclient –r (r意味着释放原来的IP地址)
dhclient
2、修改IP地址的方法
ifconfig ethe0 down
ifconfig ethe0 45 netmask
以上的方法下次启动时就无效了
如果要以后每次都生效则需要把以上两句加入到以下文件里面
在/etc/sysconfig/network-scripts/下修改ifcfg-eth0地址
一块网卡添加两个ip地址
ifconfig eth0:1 netmask
ifconfig eth0:2
显示全部