服务器虚拟化
本文完成于 2010-03-04,原文发表在我的人人网日志。
![服务器虚拟化](/content/images/size/w1200/2011/09/VMware_Workstation_7_logo.png)
本文完成于 2010-03-04,原文发表在我的人人网日志。背景是院里新买了一台服务器来做计算。可是需要使用的人太多而使用者运行软件的平台不统一,有 Linux 下的有 Windows 下的,导致计算资源的浪费。为了提高机器的利用率,向院里的领导提交了一份《理学院服务器虚拟化可行性报告》,没想到居然获得了同意。其实现在想想,服务器虚拟化是在服务器空载或者非满负载的情况经常出现才有意义。现在是用不着了,不过当时的确是没办法的选择。具体的过程比较繁杂,因此采用了图片为主的记录方式。供以后参考。
将服务器虚拟化之后,可以实现在单个服务器上同时运行多个操作系统。
安装 ESXi
将下载的ESXi光盘镜像刻录到光盘,放入光驱,将服务器从光驱引导,按提示操作如下:
![b_large_5bW6_608600005ddf2d12](https://yinguobing.com/content/images/2011/09/b_large_5bW6_608600005ddf2d12.jpg)
![b_large_7jhF_608600005dc82d12](https://yinguobing.com/content/images/2011/09/b_large_7jhF_608600005dc82d12.jpg)
![b_large_ALJd_608600005e492d12](https://yinguobing.com/content/images/2011/09/b_large_ALJd_608600005e492d12.jpg)
![b_large_Hj2d_608600005e2c2d12](https://yinguobing.com/content/images/2011/09/b_large_Hj2d_608600005e2c2d12.jpg)
![b_large_jrDh_608600005df22d12](https://yinguobing.com/content/images/2011/09/b_large_jrDh_608600005df22d12.jpg)
![b_large_juJy_608600005e062d12](https://yinguobing.com/content/images/2011/09/b_large_juJy_608600005e062d12.jpg)
![b_large_l3wV_608600005daf2d12](https://yinguobing.com/content/images/2011/09/b_large_l3wV_608600005daf2d12.jpg)
![b_large_ub3O_608600005e1d2d12](https://yinguobing.com/content/images/2011/09/b_large_ub3O_608600005e1d2d12.jpg)
![b_large_wsBd_608600005e382d12](https://yinguobing.com/content/images/2011/09/b_large_wsBd_608600005e382d12.jpg)
该过程结束后,ESXi安装完毕。
网络配置
好吧,我承认我们条件确实比较简陋。这里应该都算不上是一个正式的机房。
![b_large_pQZj_1daf00014c542d0c](https://yinguobing.com/content/images/2011/09/b_large_pQZj_1daf00014c542d0c.jpg)
![b_large_9nI2_1daf00014c9f2d0c](https://yinguobing.com/content/images/2011/09/b_large_9nI2_1daf00014c9f2d0c.jpg)
![b_large_IBVF_1daf00014d1b2d0c](https://yinguobing.com/content/images/2011/09/b_large_IBVF_1daf00014d1b2d0c.jpg)
![b_large_5Vwy_1daf00014d342d0c](https://yinguobing.com/content/images/2011/09/b_large_5Vwy_1daf00014d342d0c.jpg)
![b_large_Uiz1_1da9000016ef2d0c](https://yinguobing.com/content/images/2011/09/b_large_Uiz1_1da9000016ef2d0c.jpg)
![b_large_8i7N_1daf00014d712d0c](https://yinguobing.com/content/images/2011/09/b_large_8i7N_1daf00014d712d0c.jpg)
![b_large_ECrp_1dab000040f92d0c](https://yinguobing.com/content/images/2011/09/b_large_ECrp_1dab000040f92d0c.jpg)
配置好了以后,从远程使用 VMware vspher client登录上边的IP地址。
新建虚拟机、安装系统
同样以图为主
![vt_os_01](https://yinguobing.com/content/images/2011/09/vt_os_01.jpg)
自定义
![vt_os_02](https://yinguobing.com/content/images/2011/09/vt_os_02.jpg)
起个名字
![vt_os_03](https://yinguobing.com/content/images/2011/09/vt_os_03.jpg)
选择磁盘
![vt_os_04](https://yinguobing.com/content/images/2011/09/vt_os_04.jpg)
这里版本尽量选择7
![vt_os_05](https://yinguobing.com/content/images/2011/09/vt_os_05.jpg)
选择将来要安装的系统
![vt_os_06](https://yinguobing.com/content/images/2011/09/vt_os_06.jpg)
分配虚拟核心
![vt_os_07](https://yinguobing.com/content/images/2011/09/vt_os_07.jpg)
配置内存大小
![vt_os_08](https://yinguobing.com/content/images/2011/09/vt_os_08.jpg)
配置网卡
![vt_os_09](https://yinguobing.com/content/images/2011/09/vt_os_09.jpg)
SCSI控制器,这个我也不懂,一般默认就没有问题。初步估计可能是由操作系统决定的
![vt_os_10](https://yinguobing.com/content/images/2011/09/vt_os_10.jpg)
新机器一般都选择创建新的虚拟磁盘
![vt_os_11](https://yinguobing.com/content/images/2011/09/vt_os_11.jpg)
分配磁盘大小
![vt_os_12](https://yinguobing.com/content/images/2011/09/vt_os_12.jpg)
默认就可以
![vt_os_13](https://yinguobing.com/content/images/2011/09/vt_os_13.jpg)
最后一步,点完成就可以了。
![vt_os_14](https://yinguobing.com/content/images/2011/09/vt_os_14.jpg)
创建了虚拟机后,点击 启动虚拟机
![vt_os_15](https://yinguobing.com/content/images/2011/09/vt_os_15.jpg)
没有安装操作系统
![vt_os_16](https://yinguobing.com/content/images/2011/09/vt_os_16.jpg)
连接Ubuntu的光盘镜像之后
![vt_os_17](https://yinguobing.com/content/images/2011/09/vt_os_17.jpg)
其他的系统类似,下图是安装了windows 2003 server、windows 2008 server R2、windows XP与Ubuntu server 9.10之后,四个系统同时运行的截图。
![vt_os_18](https://yinguobing.com/content/images/2011/09/vt_os_18.jpg)
Comments ()