1:安装编译环境
sudo apt-get install build-essential linux-headers-`uname -r`
sudo apt-get install make
sudo apt-get install gcc
2:下载Vmware-server和安装脚本
点击 这里 下载Vmware-server:
点击 这里 下载安装脚本:
将脚本解压缩(我的下载目录为/Downloads):
www.linuxidc.com@linuxidc.com-laptop:~/Downloads$ tar zxvf raducotescu-vmware-server-linux-2.6.3x-kernel-release-1.5-1-g71f8b66.tar.gz
然后将下载到的Vmware压缩包放到脚本文件夹安装:
www.linuxidc.com@linuxidc.com-laptop:~/Downloads$ mv VMware-server-2.0.2-203138.i386.tar.gz ./raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66/
查看当前文件夹里的文件,如下:
www.linuxidc.com@linuxidc.com-laptop:~/Downloads/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$ ls
LICENSE VMware-server-2.0.2-203138.i386.tar.gz
README vmware-server-2.0.2-203138-update.patch
start-VMware-console.sh vmware-server-2.0.x-kernel-2.6.3x-install.sh
vmware-config.patch
3:运行安装脚本,开始安装
www.linuxidc.com@linuxidc.com-laptop:~/Downloads/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$ sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh
PS:注意这里需要以ROOT身份运行脚本,安装时候会提示各种安装目录和安装参数设置(包括虚拟网卡设置,访问端口设置等等),没有什么特殊的,一路默认即可
安装的最后看到如下信息:
Enjoy,
–the VMware team
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family: done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet1 (background) done
DHCP server on /dev/vmnet1 done
Host-only networking on /dev/vmnet8 (background) done
DHCP server on /dev/vmnet8 done
NAT service on /dev/vmnet8 done
VMware Server Authentication Daemon (background) done
Shared Memory Available done
Starting VMware management services:
VMware Server Host Agent (background) done
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines done
The configuration of VMware Server 2.0.2 build-203138 for Linux for this
running kernel completed successfully.
Housekeeping…
Thank you for using the script!
Patch provided by:
Ramon de Carvalho Valle
http://risesecurity.org
Script author:
Radu Cotescu
http://radu.cotescu.com
4:访问虚拟机
安装好后可以通过以下网址访问: http://127.0.0.1:8222 或者 https://127.0.0.1:8333(SSH)
完整安装参考官方文档:点击这里。
从WEB登录VMware时,需要使用Ubuntu的root用户名和密码。默认Ubuntu是没有root用户的,可用如下命令开启root命令:
sudo passwd root
然后输入并确认密码即可。