歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> Fedora4.0中用VMware安裝和使用Windows

Fedora4.0中用VMware安裝和使用Windows

日期:2017/2/27 14:29:51   编辑:更多Linux
  大多新手入門的弟兄有時特別想念Windows ,比如一些專業性較強軟件,只有Windows的版本;有些弟兄認為在Linux中沒有類似軟件,或者有類似的,但功能不適用。如何在Linux中把這些軟件用起來?基於這些弟兄的想法,所以成此文;最主要還是幫助初學者能快速入門Linux ;VMware 是什麼 ?VMware 是一套能虛擬安裝各種操作系統的軟件;能為每個操作系統虛擬出安裝操作系統的硬件環境;在VMware中的每個操作系統都是相對獨立的,每個虛擬的系統都相當於一台獨立的並帶有系統的機器;在VMware 中,您可以同時打開多個虛擬的操作系統;並且還能在一台機器上,虛擬多個操作系統來操作虛擬網絡;比如您在Windows中安裝和VMware ,就可以模擬架設局域網來學習;VMware 有Linux、Windows以及MACOS等版本;本文介紹的是VMware的 Linux 版本的安裝和使用;安裝准備:1、VMware Linux 版本;我用的是Linux版本VMware 5.0 的源碼包 ;2、Windows安裝盤;操作環境:系統環境:Fedora Core 4.0 ,開發工具(gcc,automake,make,perl等);kernel-devel 要都安裝上;硬件環境;Intel C 1.4 ,內存512M,顯示卡集成i810x一、安裝VMware在Linux (Fedora Core 4.0)中;[root@localhost beinan]# tar zxvf VMware-workstation-e.x.p-15576.tar.gz[root@localhost beinan]# cd vmware-distrib/ [root@localhost vmware-distrib]#./vmware-install.pl或[root@localhost vmware-distrib]# perl vmware-install.pl[/usr/bin] 注:遇到類似的,請直接回車;Is this what you want? [yes] yes 注:遇到類似輸入Yes的;注:當 perl vmware-install.pl 到了網絡配置的時候,您可以都選擇為YES ,也可以根據自己的網絡環境來YES或者NO ,最好都是YES吧;這是配置VMware的基礎,至於虛擬的系統網絡怎麼配置都是根據整個網絡情況而來了。可以根據我們網絡情況對Windows來配置 Windows的網絡;二、添加Windows虛擬系統到VMware中;1、添加新的虛擬機;點擊[New Virtual Machine],我們來添加Windows的虛擬機; 點擊查看大圖開始創建虛擬機: 點擊查看大圖2、虛擬機配置添加過程的選擇:您可以選擇系統默認的,也可以自定義,其實默認配置足夠; 點擊查看大圖3、選擇創建虛擬系統的類型:這也是我們本文正要學習的Winodws; 點擊查看大圖虛擬機名:WinXP,自己寫一個就行;如果不指定是放在當前用戶的家目錄中的.vmware目錄中,如果您的/home目錄沒有那麼大,最好指定一個目錄。比如我指定在了/mnt/hda10這個目錄中,我把一個分區掛載到了/mnt/hda10,體積有15G大小;這還不夠,還要確保您要把虛擬機存放的目錄是對所用的用戶是可寫的;只是權限的事,我是如下做的;[root@localhost beinan]# mkdir /mnt/hda10/winxp[root@localhost beinan]# chown -R /mnt/hda10/winxp[root@localhost beinan]# chmod -R 777 /mnt/hda10所有用戶都是可讀可寫可執行;我上面配置的目錄屬主沒有太大的意義了;因為權限都讓我打開了,主要是這樣做簡單,安全不安全是另一回事了,本來也是實驗性的;;) 點擊查看大圖4、網絡配置:如果您是通過路由器或者別的機器的網關上網,就用bridged networking 就行;比如DHCP 獲取IP,只在是Windows安裝中或者安裝完成後,配置為DHCP就行了;如果您是通過網關,並且是非DHCP的,你可以在Windows安裝的過程中指定您的機器的IP和網關;如果您只有一台機器,並且在Fedora Core 4.0 中是通過pppoe或者ppp拔號上網的,首先要讓Linux有支持共享上網的能力,這在LinuxSir.Org 網絡版中有解決辦法;其實網絡比較好配置,和您操作幾台機器的網絡是相似的,或者說是一樣的;把虛擬的操作系統看成是一個獨立的機器就OK了。 點擊查看大圖5、虛擬機磁盤的大小的設定:Windows XP 有近兩G大小,自己根據情況來設定虛擬磁盤大小;我設置為10G;在Winows安裝的過程中,我又把這10G分成兩個區; 點擊查看大圖6、Windows虛擬機的各項配置;點擊[Edit Virtual Machine Setting],就可以看到所有的設置,您可以點一點,比如內存的大小的配置要調大一點,要是4的倍數;網卡也能自己來配置;根據自己的情況來吧; 點擊查看大圖 點擊查看大圖這是輸入VMware序列號界面;序列號是可以申請獲得的,自己去找找看?不要給我要,我沒有 ;:( 點擊查看大圖問你是否現在注冊,寫否也行, 以後注冊;三、在虛擬機上安裝Windows系統:1、安裝過程:首先我們要為剛才添加的WinXP開機;然後點出來的畫面,如果您是台式機,就按一下DEL鍵,讓CDROM 開機自動運行;我們就能插入光盤來安裝Windows了;下面是幾幅圖,其它安裝過程就免了; 點擊查看大圖 點擊查看大圖 點擊查看大圖 點擊查看大圖 點擊查看大圖其它過程免;下面我們介紹安裝VMware tools ;2、安裝VMware tools :點擊VM菜單,選擇安裝VMware tools install ; VMware tools 就放到了Windows系統中的光盤中,我們點擊鼠標就能簡單的安裝上了; 點擊查看大圖 點擊查看大圖 點擊查看大圖 點擊查看大圖後記:祝新手弟兄學有所得;討論:禁止叫罵,技術討論歡迎中~;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++附:單台機器用非路由ADSL的配置:(如果您用的是路由器或者通過網關上網,不要看以下部份;)++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++首先要配置Linux的網卡,把Linux的網卡和虛擬的網卡都設置在 192.168.0.這個網段上,Linux的網卡的IP設置為192.168.1.1 ,不要設置網關;虛擬機的網卡設置為192.168.1.2;掩碼都是255.255.255.0;虛擬機要指定網關和DNS;DNS的可以用 202.96.128.143 和202.96.134.133試試再說吧,我用的是路由器上網,把路由器配成自動拔號,並且能DHCP的就行了;一、查看是否安裝了rp-pppoe [root@localhost beinan]# rpm -qa rp-pppoerp-pppoe-3.5-27如果沒有安裝,請找出安裝盤,把rp-pppoe安裝上;[root@localhost beinan]#rpm -ivh rp-pppoe*二、配置rp-pppoe在終端上以root權限運行#adsl-setup[root@LinuxSir02 root]# adsl-setupWelcome to the ADSL client setup. First, I will run some checks onyour system to make sure the PPPoE client is installed properly...LOGIN NAMEEnter your Login Name (default root): ADSL提供商給的用戶名,寫在這裡INTERFACEEnter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like /dev/hme0.For Linux, it will be ethX, where 'X' is a number.(default eth0): eth0這是ADSL通過第一台機器的第一張網卡eth0提供上網Do you want the link to come up on demand, or stay up continuously?If you want it to come up on demand, enter the idle time in secondsafter which the link should be dropped. If you want the link tostay up permanently, enter 'no' (two letters, lower-case.)NOTE: Demand-activated links do not interact well with dynamic IPaddresses. You may have some problems with demand-activated links.Enter the demand value (default no):在這裡按一下回車就行了。DNSPlease enter the IP address of your ISP's primary DNS server.If your ISP claims that 'the server will provide dynamic DNS addresses',enter 'server' (all lower-case) here.If you just press enter, I will assume you know what you aredoing and not modify your DNS setup.Enter the DNS information here: 202.96.134.133 這是DSN,最好用你本地電信給的Please enter the IP address of your ISP's secondary DNS server.If you just press enter, I will assume there is only one DNS server.Enter the secondary DNS server address here: 202.96.168.68這是第二個DNS,也是電信給的。PASSWordPlease enter your Password:在這裡把 ADSL提供商給的密碼寫上Please re-enter your Password:確認密碼USERCTRLPlease enter 'yes' (two letters, lower-case.) if you want to allownormal user to start or stop DSL connection (default yes): yesFIREWALLINGPlease choose the firewall rules to use. Note that these rules arevery basic. You are strongly encouraged to use a more sophisticatedfirewall setup; however, these will provide basic security. If youare running any servers on your machine, you must choose 'NONE' andset up firewalling yourself. Otherwise, the firewall rules will denyAccess to all standard servers like Web, e-mail, FTP, etc. If youare using SSH, the rules will block outgoing SSH connections whichallocate a privileged source port.The firewall choices are:0 - NONE: This script will not set any firewall rules. You are responsiblefor ensuring the security of your machine. You are STRONGLYrecommended to use some kind of firewall rules.1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation2 - MASQUERADE: Appropriate for a machine acting as an Internet gatewayfor a LANChoose a type of firewall (0-2): 2Start this connection at boot timeDo you want to start this connection at boot time?Please enter no or yes (default no):yes** Summary of what you entered **Ethernet Interface: eth0User name: ADSL用戶名Activate-on-demand: NoPrimary DNS: 202.96.134.133Secondary DNS: 202.96.168.68Firewalling: MASQUERADEUser Control: yesAccept these settings and adjust configuration files (y/n)?y三、在/etc/rc.d/rc.local中加入如下:echo 1 > /proc/sys/net/ipv4/ip_forwardiptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE




Copyright © Linux教程網 All Rights Reserved