linux VMVare 安裝windows

來源:互聯網
上載者:User
在Fedora 4.0 中,用VMware 安裝和使用Windows
 
來源: ChinaUnix部落格  日期: 2006.02.05 18:45 (共有0條評論) 我要評論
 
在Fedora 4.0 中,用VMware 安裝和使用Windows
+++++++++++++++++++++++++++++++++++++++++++本文:+++++++++++++++++++++++++++++++++++++++++++
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-pppoe
rp-pppoe-3.5-27

如果沒有安裝,請找出安裝盤,把rp-pppoe安裝上;

[root@localhost beinan]#rpm -ivh rp-pppoe*
二、配置rp-pppoe
在終端上以root許可權運行
#adsl-setup

[root@LinuxSir02 root]# adsl-setup
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
LOGIN NAME
Enter your Login Name (default root): ADSL供應商給的使用者名稱,寫在這裡
INTERFACE
Enter the Ethernet interface connected to the ADSL modem
For 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 seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no):在這裡按一下斷行符號就行了。
DNS
Please 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 are
doing 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,也是電信給的。
PASSWORD
Please enter your Password:在這裡把 ADSL供應商給的密碼寫上
Please re-enter your Password:確認密碼
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2): 2
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):yes
** Summary of what you entered **
Ethernet Interface: eth0
User name: ADSL使用者名稱
Activate-on-demand: No
Primary DNS: 202.96.134.133
Secondary DNS: 202.96.168.68
Firewalling: MASQUERADE
User Control: yes
Accept 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

本文來自ChinaUnix部落格,如果查看原文請點:http://blog.chinaunix.net/u/12110/showart_71905.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.