Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ซอฟต์แวร์ >> เครื่องเสมือน

คู่มือขั้นตอน: ติดตั้ง VMware Server บน Ubuntu

โดยทฤษฎี ควรเป็นงาน trivial แต่ไม่ใช่ ส一方面 Ubuntu เป็น Linux distribution สมัยใหม่ non-conventional ที่ break classic conventions หลายอย่าง อีก方面 VMware มุ่งไปที่ business segment ที่ stability และ backward support สำคัญกว่า latest innovations และทำให้ products compatible กับ kernels แบบเก่าและ traditional มากกว่า เมื่อคุณพยายามติดตั้ง VMware Server บน Ubuntu คุณจะชน snags หลายอย่าง

ใน tutorial นี้ ผมอยากแสดงว่าคุณสามารถ overcome hail of problems ที่จะเกิดเมื่อพยายามติดตั้ง VMware Server บน Ubuntu (64-bit) มาเริ่มกัน

Short introduction

ผมใช้ VMware Server ตั้งแต่ beta days ส่วนใหญ่บน SUSE machines ไม่เคยมีปัญหากับ distro นี้ เพราะ SUSE retains backward compatibility สำหรับสองเวอร์ชันเต็ม และหมายถึง old things scripts libraries และ directories ที่คุณเห็นบน versions 9 และ 10 ก็ยังอยู่บน 11

กับ Ubuntu สิ่งต่างๆ fluid มาก dynamic มาก และแตกต่างมากจาก average by-the-book Linux distro ไม่แปลกใจที่ผม plagued กับ variety of issues ตั้งแต่ Gutsy Gibbon เกี่ยวกับ VMware Server นั่นคือ ด้วยแต่ละ release ใหม่ problems เพิ่มขึ้นซับซ้อน จุดสูงสุดคือ latest attempt ของผมกับ VMware Server 1.0.9 บน Ubuntu 9.04 64-bit edition ที่ผมติดตั้งบน laptop ใหม่เงางามของผม 一大堆

ด้วย online reading บ้าง และ intuition บ้าง ผมได้ VMware Server running หลัง only half a dozen botched installations เพื่อ save คุณ เวลา และ effort ผม compile guide นี้ พร้อม all little troubles ผมเห็นและเผชิญ - 所以 你 将 知道 如何 避免 他们 和 如果 必要 处理 他们 quickly 和 painlessly

What you need to know

VMware Server 有 สอง flavors: .rpm package และ .tar.gz archive Ubuntu เป็น Debian-based 不能 run .rpm packages out of the box ต้อง convert 它们 使用 alien converter utility

因为 这 加上 事实 你 有 far less control 过 automated installations 通过 RPM 我 推荐 你 使用 archive 它 slower 和 supposedly 更 cumbersome 但 它 给 你 更好 understanding 什么 你 在 做

Packages

VMware Server 有 三 组件:

  • VMware Server 本身 (tar.gz package)
  • Management interface (MUI) (tar.gz package)
  • Server Console (Windows 和 Linux packages 在 .zip file)

你 需要 安装 他们 在 这 顺序 你 也 可能 想 参考 我 的 旧 VMware Server guide 那 解释 程序 在 一些 detail

Compilation

安装 涉及 compilation 的 VMware drivers 在 你 的 host 这 意味著 你 将 有 编译 tools installed 和 ready 在 Ubuntu 获得 这些 package 非常 简单

sudo apt-get install build-essential

和 那 是 所有 你 准备 好 尝试 安装

Begin installation

Extract VMware Server archive cd 进去 created directory 和 run as sudo vmware-install.pl script .pl extension 是 Perl 没有 关系 与 Poland

Installer 是 simple text-based script 那 问 你 很多 问题 像 你 想 放 binaries documentation icon 等 它 是 fairly standard 东西 没有 太 exciting 或 complicated 真正 fun 开始 当 installer 尝试 compile 一个 它 的 modules

Unable to build the vmmon module

这是 第一个 错误 你 将 遇到

Reading online 你 将 一个 staggering list 可能的 patches updates 一些 那些 只 work 为 VMware Server 2 其他 那些 只 work 为 VMware Server 1 和 all dependent on kernel version

幸运 有 一 地方 你 可以 找到 all required updates - insecure.ws 他们 写得好 他们 非常 simple 使用 和 最重要的是 他们 work as promised

Download the updates

你 需要 download 相关 updates 和 apply 他们 之前 尝试 安装 VMware Server 再次 选择 那个 匹配 你 的 kernel version 你 可以 发现 你 的 kernel version 通过 typing uname -r 在 command line 更多 信息 基本 command line usage 你 可能 想 看 commands & configurations tutorial 我 猜 新 updates 将 来 作为 新 versions 的 Ubuntu 和/或 VMware products 发布 为 现在:

  • 对于 kernels 2.6.26-28 你 有 这 - works 为 VMware Server & Workstation
  • 对于 kernels 2.6.29-30 你 有 这 - works 为 VMware Server & Workstation
  • 对于 kernel 2.6.31 你 有 这 - works 为 VMware Server & Workstation

Apply the patch

Extract archive 和 run runme.pl script 它 将 patch VMware package 和 relaunch installer 这 时间 vmmon module 应该 successfully compile

我们 过去 obstacle 1 继续 安装 直到 你 hit 下一个 错误:

Xinetd super service missing error

你 将 看到 像 这 图像:

message 是 为 inetd 但 在 modern Linux systems 服务 在 question 是 Xinetd Ubuntu 没有 Xinetd installed by default Xinetd 是 一种 super service 那 启动 其他 services on demand 既然 Ubuntu strategy 是 ship 有 all ports closed 作为 security measure 即 no running services developers 觉得 它 将 是 best idea 以 eliminate Xinetd 也 以 make 为 ever tighter security configuration

然而 VMware Server 需要 Xinetd 以 installed 我们 将 安装 它 然后 rerun installer ... 再次 你 可以 安装 通过 Synaptic:

或 简单 运行 apt-get 从 command line:

sudo apt-get install xinetd

这 将 get us past obstacle 2 到 problem #3

Problems with SSL certificates

VMware Server installation 将 fail 再次 因为 installer 不能 find rui.key 和 rui.crt files 必要 为 generation 的 SSL certificate 那 VMware Server 用 为 它 自己 internal communication 之间 host 和 guests

Solution: 你 需要 创建 两个 文件 rui.key 和 rui.crt

sudo touch /etc/vmware/ssl/rui.key
sudo touch /etc/vmware/ssl/rui.crt

让 我们 move on 到 problem 4

Problem with registering the serial number

接下来 installer 将 complain 关于 你 的 serial number 是 invalid 即使 它 完美 all right 这 将 发生 在 64-bit systems 因为 Ubuntu 不 来 with 某些 32-bit libraries 那 installer 需要 做 它 的 工作

Solution 是 安装 missing libraries 和 rerun installation script

sudo apt-get install ia32-libs

很多 dependencies 将 自动 solved:

在 你 solve 这 一个 你 的 VMware installation 应该 proceed smoothly

Installation successful!

和 这里 我们 是:

下一步 是 安装 MUI 和 Server Console 一旦 你 get past 四 个 difficult steps 在 Server installation 其他 两个 packages 将 carefree

在 几 分钟 内 你 应该 有 Server up 和 running:

Summary

你 可以 使 程序 更 pleasant 通过 satisfying all missing items 之前 你 launch update (runme.pl) script 这里 是 什么 你 需要 做:

Install packages

sudo apt-get install build-essential xinetd ia32-libs

Create SSL files

sudo touch /etc/vmware/ssl/rui.key
sudo touch /etc/vmware/ssl/rui.crt

你 也 可以 创建 一个 小 script 那 做 这 为 你 我 愿意 写 一个 来 帮助 你 自动化 你 的 VMware installation 如果 你 interested drop me a line 应该 popular demand 超过 laziness threshold 我 将 写 script 和 upload 它 这里

一旦 你 run 三 个 简单 commands 运行 update script 和 answer prompts 包括 configuration 你 的 network 位置 你 的 virtual machines 等 后 你 complete Server installation 安装 MUI 和 Server Console 你 good to go

结论

我 希望 你 enjoyed 这 文章 它 提供 step-by-step no nonsense solution 安装 VMware Server 在 Ubuntu 它 处理 每个 问题 那 发生 在 安装 和 提供 一个 simple solution

Ubuntu 和 VMware Server 不 sit well together 但 有 一些 loving goading 和 一些 patience 你 将 有 issues solved 从 having the right tools 为 compilation 通过 missing packages (xinetd, ia32-libs) 和 creating SSL files 到 running update 那 patches VMware sources 和 makes 安装 possible

当然 你 需要 感谢 insecure.ws 为 update 那 使 它 all possible 我 刚 polished 东西 一个 小 使 他们 presentable 为 average user Take care

Cheers.