歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 32bit Win7 在VMware中安裝64位的RedHat Linux 4.7

32bit Win7 在VMware中安裝64位的RedHat Linux 4.7

日期:2017/2/28 16:33:15   编辑:Linux教程

1、CPU
AMD系列的CPU略過
Intel系列的CPU芯片需要支持EM64T和VT技術才行,並且BIOS也要支持才可以。
為了確定你的Intel CPU是否支持VT,到這裡查看。
我的筆記本DELL630 CPU是:Intel Mobile Core 2 Duo T7100支持EM64T,如下圖

如果BIOS裡沒有設置支持VT(Virtualization Technology),會在創建VMWare後,安裝64位Linux時,會報如下錯誤:
This CPU does not support VT.
You have configured this virtual machine to use a 64-bit guest operating system. However, this host's CPU is not capable of running 64-bit virtual machines or this virtual machine has 64-bit support disabled.
For more detailed information, see http://www.vmware.com/info?id=152

然後不能啟動,會報如下錯誤:
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
Unable to boot - please use a kernel appropriate for your CPU.
更多VMWare硬件要求的信息參見:
Hardware and Firmware Requirements for 64-Bit Guest Operating Systems
http://kb.vmware.com/selfservice/viewContent.do?externalId=1901

2、BIOS
設置BIOS,Virtualization Technology 為 enabled 後,保存。
保存好修改後的BIOS後,需要冷啟動一下,即:關機,再開機。這樣這個設置才生效,要不然仍然無法生效。這個一定要注意,直接通過重啟Windows無法達到這個目的的。cold rebooting the machine.
詳細:
我的DELL ,F2進入BIOS設置
BIOS Setup Utility
Intel(R) Virtualization Technology ==> 設置為 Enabled
When enabled, a VMM can utilize the additional hardwar capabilities provided by Intel(R) Virtualization Technology.
NOTE
=======
After any change in this option, system must be powered off to take effect.

3、加載Ubuntu安裝介質,順利啟動安裝
在安裝在72%,會停在“Configuring apt”,“Scanning the mirror”這個地方,此時可以設置VMWare的網絡連接方式為Host-only,因為我剛開始是設置為Bridged方式,所以也卡在這裡

即可,這樣就是斷開與Internet的連接,不去獲取信息,就會順利安裝完成了。當然,在創建虛擬機時,你的網絡配置就是為這個Host-only,或者你的主機沒有連上網絡,也會順利地安裝下去了。

4、安裝VWMare Tools
基於安全方面的考慮,Ubuntu默認是禁止了 root 用戶的,會出現你的當前用戶安裝不了 VMWare Tools 的現象。
可以先通過 sudo passwd root 去設置 root 密碼,然後切換到 root 用戶下,再去安裝 VMWare Tools 即可。

5、驗證
查看Linux系統是不是64位的?
uname -m
會顯示x86_64
當然uname -a會顯示所有的信息,在裡面如果看到有_64表示是64位的,沒有則是32位的。
file /sbin/init
/sbin/init: ELF 64-bit LSB shared object, x86-64, version 1(SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
但getconf WORD_BIT仍是32,奇怪

6、安裝Sun 64位JDK 1.6.0.11
Java SE Development Kit (JDK) 6 Update 11 for Linux x64, Multi-language
http://java.sun.com/javase/downloads/?intcmp=1281
./java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
嘗試加大內存,注意我開了給VMWare開了3G的內存才有這麼大
./java -Xms4577m -Xmx5099m -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)

7、加載Windows機器上的共享文件夾
要先切換到 root 用戶,然後如下去掛接
mount -t smbfs -o codepage=cp936,username=Windows共享用戶名,password=密碼 -l //IP地址/共享文件夾名 Linux中的掛接點

8、總結注意點

CPU的EM64T和VT技術支持;
BIOS的VT開關設置後一定要冷啟動一下生效之,這一點很重要,要不然怎麼整都不行的;
安裝時網絡不要連接,安裝後再連接上網絡去安裝其它軟件;
安裝VMWare Tools與加載Windows共享文件夾都需要切換到root用戶。

安裝完後,如何查看LINUX是64bit還是32bit呢?

1.# uname -mx86_642.# archx86_64

Copyright © Linux教程網 All Rights Reserved