logo

Using SLIM in VMware HowTo

David C. M. Lee
Department of Computer Science
The University of Hong Kong

Last update: Dec 5, 2006

1. Introduction

SLIM can manage large number of Linux system machines. People may not have many PCs to try it out. Virtual machine is new emerging computing platform. It virtualizes PC hardware. It is perfect tool for people to setup SLIM environment without real hardware. VMware is one of virtual machines in the market. This document describes how to use it to setup virtual SLIM environment. We will use Fedora Core 6 Linux DVD distribution and SLIM version 2.1 for fc6.

This HowTo is useful even you're using SLIM in real machines. In this case, just ignore the parts about VMWare.

2. Preparation

Followings are needed in order to follow the steps of this documentation.

SoftwareDownload Sites
Fedora Core DVDfedora.redhat.com
VMware Serverwww.vmware.com
SLIM version 2.1 for FC6SLIM download, after donwload put it on a floppy

Following the instructions from VMware to install VMWare Server.

3. Creates Virtual Machines

Firstly, creates virtual machines for SLIM server and client machines

pic01

pic01

pic01

pic01

pic01

pic01

For SLIM server VM, we use default 8G for virtual disk. But SLIM client VM, the disk size can be just 0.1%, because default setting of SLIM client does not use disk.

pic01

Do same steps for client, finally we should have at least two VMs

Virtual Machine NamePurpose
Fedore Core 6SLIM server
Node01SLIM Client

You may create more SLIM client VM which depends how many memory your host machine has

pic01

3. Install Fedora Core 6 to the SLIM Server virtual machine

Insert the Fedora Core 6 DVD, then turn on virtual machines. After DVD boot up, you should see following screens.

pic01

pic01

Following steps asked by the FC6 installation program.

pic01

We need to assign an IP address and host name at below stage. We will use hostname "slimserver" and IP address to be "10.0.1.254/255.255.255.0"

pic01

pic01

We select the software package

pic01

pic01

Then, installation of software packages will go on. It will be a while. Time depends on how powerful is your machine. You may take a coffee break.

pic01

When see below screen Fedora Core 6 installation is done. You may reboot now.

pic01

4. Fedora Core 6 First Boot

pic01

pic01

pic01

pic01

pic01

pic01

5. Prepare Sharable Root File System

Use "root" user to login GNOME desktop session, start a terminal

pic01

Ignore errors shown as below during copying operation

pic01

Build sharable root file system for SLIM client as below shown.

pic01

6. Install FC6 network services

Insert FC6 DVD and install "xinet", "dhcpd" and "tftp" service packages.

pic01

Set those network services to be on

pic01

7. Setup SLIM services

Insert the SLIM software version 2.1-fc6 floppy.

pic01

pic01

pic01

Now, the SLIM server is ready, reboot Fedora Core 6

8. Stop DHCP service of VMware virtual network

pic01

pic01

9. Finally

Now, you can turn on client virtual macines. If everything go right you should see below screens.

pic01

SLIM client (node01) starts with PXE network booting.

pic01

pic01

pic01

11. Optional Customization

This step is optional if you find the preset configuration is fine to you.

Because of default configuration files we use, we presets the SLIM server on 10.0.1.0/255.255.255.0 private subnet. SLIM server itself will use 10.0.1.254 IP address. The other IP addresses are for client PC which are dynamically assigned by DHCP service in SLIM server. In case, you want to change to other else you need to modify following configureation files in SLIM server to reflect to the IP addresses you want. Restart SLIM server after you change them.


  /etc/hosts       # hostname and IP address  mapping

  /etc/exports     # NFS exports 

  /etc/dhcpd.conf  # dhcp service

  /etc/sysconfig/network-scripts/ifcfg-eth0   # network interface IP address

  /tftpboot/pxelinux.cfg/0A0001   # configure file for pxelinux network boot loader, 
                                    and rename 0A0001(10.0.1) to your new subnet address.
                                    change "imageroot=" booting parameter  value
                                    in configure file to new
                                    new IP address of slim server
  /linux/images/fc6/etc/hosts     # hostname and IP address  mapping on client root FS
  

12. Setting Connection to Internet

This setting uses private network, both SLIM server and clients can not reach internet. Linux supports NAT and works like a router. This section shows how to use SLIM server as NAT router for VM clients in private network.

In order to do so, we need to an additional network card to connect Internet link.

pic01

pic01

pic01

pic01

Configure the additional network interface in FC6

pic01

pic01

We assume it uses DHCP to obtain IP address.

pic01

Enable NAT features and Save the NAT rules

pic01

edit /etc/sysctl.conf to enable "IP forwarding"

pic01

edit /etc/dhcpd.conf, to set the IP address of your DNS server for SLIM clients Internet access.

pic01

Now, you can simply reboot the SLIM server for above setup to be effective.