如何在Debian 4.0(Etch)上安装VMware服务器

如何在Debian 4.0(Etch)上安装VMware Server

版本1.0
作者:Till Brehm <t [dot] brehm [at] projektfarm [dot] de>,Falko Timme

本教程提供有关如何在Debian Etch系统上安装免费的VMware Server(1.0.2版)的逐步说明。

使用VMware Server,您可以在主机操作系统下创建和运行客户机操作系统(“虚拟机”),如Linux,Windows,FreeBSD等。 这样可以在相同的硬件上运行多个操作系统,从而节省大量资金,您可以将虚拟机从一个VMware服务器移动到另一个(或者具有VMware Player的系统也是免费的) )。 在本文中,我们使用Debian Etch(4.0)作为主机操作系统。

我想先说说这不是建立这样一个系统的唯一途径。 实现这一目标有很多方法,但这是我所采取的方式。 我不会保证这将为您工作!

1初步说明

我假设你已经建立了一个基本的Debian蚀刻系统。 您可以按照本教程前两页所述设置系统: 完美设置 - Debian Etch(4.0)

我在本教程中使用192.168.0.100作为IP地址和server1.example.com作为我的Debian Etch系统的主机名。 如果您的Debian Etch系统没有静态IP地址,那么您现在应该更改其网络配置,以便将来会有一个静态IP地址:

vi /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

(如果使用与192.168.0.1不同的网关,请更改/ etc / network / interfaces中的网关IP地址。)

然后重新启动您的网络:

/etc/init.d/networking restart

编辑/etc/resolv.conf并添加一些Nameservers:

vi /etc/resolv.conf
search server
nameserver 145.253.2.75
nameserver 193.174.32.18
nameserver 194.25.0.60

编辑/ etc / hosts并添加新的IP地址:

vi /etc/hosts
127.0.0.1       localhost.localdomain   localhost
192.168.0.100   server1.example.com     server1


# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

2安装所需的软件包

首先我们更新我们的包数据库:

apt-get update

现在我们通过运行在Debian Etch系统上安装VMware所需的软件包

apt-get install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential

你会被问到几个问题,你可以回答如下:

Please keep only the resolutions you would like the X server to use. Removing all of them is the same as removing none, since in both cases the X server will attempt to use the highest possible resolution.

Video modes to be used by the X server:

< - 接受默认值

分辨率值并不重要,因为我们不想在Debian Etch系统上使用桌面。 我们将从稍后的工作站连接到VMware Server,其中可以是安装了VMware Server客户端软件包的Windows或Linux系统。

接下来我们创建目录/ var / vm ,稍后我们要安装我们的虚拟机。 虚拟机需要大量磁盘空间,确保虚拟机的/ var分区上有足够的可用空间。

mkdir /var/vm

3获取VMware Server

可以从VMware网站免费下载VMware服务器: http : //www.vmware.com/download/server/
要运行VMware Server软件,您需要一个(免费)序列号,可以通过点击下载页面上的“立即注册”按钮来请求。

4下载软件

要在Debian Etch上设置VMWare Server,我们需要VMware下载页面中的以下软件包:

适用于Linux的VMware Server(Binary tar.gz)
管理界面(二进制tar.gz)

我们要将软件包下载到我们的/ tmp目录 ,因此我们去那里:

cd /tmp

要将软件下载到服务器,我建议使用Linux命令行程序wgetwget语法如下:

wget [URL of the VMware Server for linux binary tar.gz package]
wget [URL of the Management Interface binary tar.gz package]

打开VMware服务器tar.gz:

tar xvfz VMware-server-*.tar.gz

运行安装程序脚本:

cd vmware-server-distrib
./vmware-install.pl

安装人员问你几个问题。 大多数时候你可以接受默认值:

Creating a new installer database using the tar3 format.
Installing the content of the package.

您要在哪个目录中安装二进制文件?
[/ usr / bin] < - / usr / bin

包含init目录(rc0.d / to rc6.d /)的目录是什么?
[/ etc] < - / etc

包含init脚本的目录是什么?
[/etc/init.d] < - /etc/init.d

要在哪个目录中安装守护进程文件?
[/ usr / sbin] < - / usr / sbin

在哪个目录中要安装库文件?
[/ usr / lib / vmware] < - / usr / lib / vmware

路径“/ usr / lib / vmware”目前不存在。 这个程序正在进行
创建它,包括所需的父目录。 这是你想要的吗?
[是] < - 是的

您要在哪个目录中安装手动文件?
[/ usr / share / man] < - / usr / share / man

在哪个目录中要安装文档文件?
[/ usr / share / doc / vmware] < - / usr / share / doc / vmware

路径“/ usr / share / doc / vmware”目前不存在。 这个程序是
要创建它,包括所需的父目录。 这是你想要的吗?
[是] < - 是的

The installation of VMware Server 1.0.2 build-39867 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

首次运行VMware Server之前,您需要配置它
调用以下命令:“/usr/bin/vmware-config.pl”。 你想要这个吗
程序现在为您调用命令? [是] < - 是的

Making sure services for VMware Server are stopped.
Stopping VMware services:
Virtual machine monitor done

您必须阅读并接受最终用户许可协议才能继续。
按回车键显示。 < - [ENTER]

..... snip [LICENCE TEXT] ......

你接受吗? (是/否) < - 是的

Configuring fallback GTK+ 2.4 libraries.

要在哪个目录中安装mime类型的图标?
[/ usr / share / icons] < - / usr / share / icons

路径“/ usr / share / icons”目前不存在。 这个程序正在进行
创建它,包括所需的父目录。 这是你想要的吗?
[是] < - 是的

什么目录包含您的桌面菜单条目文件? 这些文件有一个
.desktop文件扩展名。 [/ usr / share / applications] < - / usr / share / applications

要在哪个目录中安装应用程序的图标?
[/ usr / share / pixmaps] < - / usr / share / pixmaps

Trying to find a suitable vmmon module for your running kernel.

VMware Server的预先构建的vmmon模块都不适合您
运行内核。 你想要这个程序尝试构建vmmon模块
您的系统(您需要在您的系统上安装一个C编译器)? [是] < - 是的

Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18-4-486/build/include]<-- /lib/modules/2.6.8-2-386/build/include
[...]

你想要虚拟机的网络吗? (是/否/帮助)[是] < -

Configuring a bridged network for vmnet0.
The following bridged networks have been defined:
. vmnet0 is bridged to eth0

您是否要配置另一个桥接网络? (是/否)[否] < -

您想要在虚拟机中使用NAT网络吗? (是/否)
[是] < - 是的

Configuring a NAT network for vmnet8.

你想要这个程序探测一个未使用的私有子网? (是/否/帮助)
[是] < - 是的

Probing for an unused private subnet (this can take some time)...
The subnet 172.16.191.0/255.255.255.0 appears to be unused.
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 172.16.191.0.

您是否要配置另一个NAT网络? (是/否)[否] < -

您想要在虚拟机中使用主机专用网络吗?
[是] < - 是的

Configuring a host-only network for vmnet1.

你想要这个程序探测一个未使用的私有子网? (是/否/帮助)
[是] < - 是的

Probing for an unused private subnet (this can take some time)...
The subnet 172.16.98.0/255.255.255.0 appears to be unused.
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 172.16.98.0.

您是否要配置另一个仅限主机的网络? (是/否)[否] < -

[...]

请指定用于远程控制台连接的端口以使用[902] < - 902

Restarting internet superserver: inetd.
Configuring the VMware VmPerl Scripting API.
Building the VMware VmPerl Scripting API.
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
Installing the VMware VmPerl Scripting API.
The installation of the VMware VmPerl Scripting API succeeded.
Generating SSL Server Certificate

在哪个目录中要保留虚拟机文件?
[/ var / lib / vmware / Virtual Machines] < - / var / vm

Please enter your 20-character serial number.

键入XXXXX-XXXXX-XXXXX-XXXXX或“输入”以取消: < - 您的VMware Server序列号

Starting VMware services:
Virtual machine monitor done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet1 (background) done
Host-only networking on /dev/vmnet8 (background) done
NAT service on /dev/vmnet8 done
The configuration of VMware Server 1.0.2 build-39867 for Linux for this running
kernel completed successfully.

就这样,VMware Server安装在我们的Debian Etch系统上。 进入下一步...

赞(52) 打赏
未经允许不得转载:优客志 » 系统运维
分享到:

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏