samedi 17 avril 2010

basics 1 - making the lab - tutorial VMWare

In "basics" articles, we illustrate, with practical examples, some classical vulnerabilities. To achieve that goal, we'll use a laboratory, constituted of virtualized machines.



French version on http://infond.blogspot.com
updated 04/08/2010

tools

- VMWare Workstation
download: https://www.vmware.com/tryvmware/?p=workstation&lp=1
A 30-days trial full version of VMWare Workstation can be used. VMWare Server (free) is available too.
installation with Ubuntu [2]
installation with Windows: easy!
- Ubuntu 9.10 Karmic Server
download: http://www.ubuntu-fr.org/telechargement
- Ubuntu 9.10 Karmic Gnome
- Windows

network map




The machines are virtualized with VMWare.

create the machines

We pass on VMWare installation, already well explained on the Internet [2] , as the creation of a virtual machine with VMWare, and VMWare tools installation.

Remark 1: to use another language than US, check « I will install the operating system later ».

Remark 2: The creation of virtual machines with an Ubuntu host failed with VMWare 3.0.0 build-203739 version (Workstation, player and server) and kernel 2.6.31-17-generic. We had to create them under Windows (we used seven).

Here are some informations about the configuration of our machines

host

To put all machines on the same subnet 192.168.0.0/24, the network parameters of the VMNET8 interface must be set on VMWare Workstation.



remark: how to set the network VMNET8 interface on Windows7:



 

 

client windows XP

Network configuration:


Remark: here, we use google DNS servers.

client Linux

Network Configuration:


server Linux

to install it, chose an ISO image of Ubuntu Server (no graphical interface) without any add-on (no DNS server, etc.):


When the machine is started, in (virtualized) server:

update the machine:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
install VMWareTools:

in VMWare:
menu → VM → Install VMWareTools
in server:
serveur$ sudo mkdir /mnt/cdrom0
serveur$ sudo apt-get install gcc
serveur$ sudo mount /dev/scd0 /mnt/cdrom0
serveur$ cd ~
serveur$ tar -xvzf /mnt/cdrom0/VMwareTools-*
serveur$ sudo ./vmware*/vmware-install.pl
set network interface of server
serveur~$ sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
  address 192.168.0.2
  netmask 255.255.255.0
  gateway 192.168.0.254
  network 192.168.0.0
set DNS configuration too
serveur~$ sudo vim /etc/resolv.conf
search test.com
nameserver 192.168.0.254
remark: to shutdown server
$ sudo shutdown -h now
to restart server
$ sudo reboot

references

  1. Gilles Chamillard book - Ubuntu Linux Création, configuration et gestion d'un réseau local d'entreprise - collection Solutions informatiques - eni éditions
  2. documentation Ubuntu: installation de VMWare - http://doc.ubuntu-fr.org/vmware

Aucun commentaire:

Publier un commentaire