<a href="http://yulimin.javaeye.com/blog/298383">http://yulimin.javaeye.com/blog/298383</a>
1、cpu
amd系列的cpu略过
intel系列的cpu芯片需要支持em64t和vt技术才行,并且bios也要支持才可以。
为了确定你的intel cpu是否支持vt,请查看:
<a href="http://compare.intel.com/pcc/default.aspx?familyid=5&culture=en-us" target="_blank">http://compare.intel.com/pcc/default.aspx?familyid=5&culture=en-us</a>
我的笔记本cpu是:intel mobile core 2 duo t7300支持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.
然后不能启动,会报如下错误:
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
<a href="http://kb.vmware.com/selfservice/viewcontent.do?externalid=1901" target="_blank">http://kb.vmware.com/selfservice/viewcontent.do?externalid=1901</a>
2、bios
设置bios,virtualization technology 为 enabled 后,保存。
保存好修改后的bios后,需要冷启动一下,即:关机,再开机。这样这个设置才生效,要不然仍然无法生效。这个一定要注意,直接通过重启windows无法达到这个目的的。cold rebooting the machine.
详细:
我的lenovo x61,f1进入bios设置
bios setup utility
config ==> cpu ==> 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
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用户。