Virtual Machines Network : Différence entre versions

De Ensiwiki
Aller à : navigation, rechercher
Ligne 1 : Ligne 1 :
{{Projet de spécialité étudiant
{{Projet de spécialité étudiant
  |titre=Projet de spécialité VoIP et Mobilité IPv6
  |titre=VoIP et Mobilité IPv6
  |page principale=Projet de spécialité VoIP et Mobilité IPv6}}
  |page principale=Projet de spécialité VoIP et Mobilité IPv6}}

Version actuelle en date du 2 mai 2016 à 13:40

Project schedule.png
Titre du projet VoIP et Mobilité IPv6
Cadre Projets de spécialité
Page principale Projet de spécialité VoIP et Mobilité IPv6

We first tried to set up our network on a single computer, using virtual machines. This reduce considerably the amount of equipement we need. But this method is very RAM consumming, so we recommend not to use it.

Anyway, if you don't have any other solution, this article could help you to set it up.

Configuration of a virtual machine

The virtual machine we used is a VirtualBox version 3.2.0 r61806. We ran it under MacOSX Snow Leopard ; according to the versions of VirtualBox and of the OS, design and content of menus may be slightly different.

Fisrt, launch VirtualBox. You can configure VirtualBox in your langage, in VirtualBox/Preferences => "Language" tab.

Configuration of the Virtual Machine itself

  • Click New (at top left of the VirtualBox window)
  • After the welcome window, you are asked to give a name to your machine ; kind of OS :
    • SO : Linux
    • Version : Linux 2.6
  • Click Next
  • Set up the amount of RAM you want to allocate : do not give too much, since you will probably launch several virtual machines at the same time! Then, click Next
  • Create a virtual hard drive ; The assistant will guide you!
  • Check the abstract, and validate.

Do not launch the machine now ; You need now to tell VirtualBox the .iso file you want to use (in our case, the Nautilus6/Homeguy iso):

  • Go in File/MediaManager
  • In tab Images CD/DVD, add the iso (via the Add button, of by drag & drop)
  • Clic Ok

Then, associate this iso disk image to the virtual machine you just created:

  • Sélect the virtual machine
  • Click Configuration
  • In tab Storage, you have to add the disk image on Storage Manager : To do so, click the icon encircled in red:
Config VirtualBox iso.png

A window pops up, you will find your disk image in it (tab Images CD/DVD); click Choose, then Ok;

Your machine is ready!

How to set up a virtual network

VirtualBox allows to create and launch several virtual machines at the same time: we shall use it to run our whole network in a single physical machine. Our machines run Nautilus6/Homeguy, set up with the Nautilus6 installation tutorial.

Here we explain how to interconnect these machines, through a virtual network.

Virtual Box can allow up to 4 network interfaces per machine. To edit the parameters of these interfaces, you first need to stop the considered machine.

Then go in Configuration, then Network: here you find 4 tabs, one for each network interface.

Default setup is: 1st interface activated only. Network mode is on NAT, which allows the virtual machine to reach the internet, through the physical machine

If you wish to keep this connection alive, just do not touch it and go in Card 2 tab. Remember that you'll be able to desactivate the internet connection when the machine is started (using the ifconfig command)

Configuration of the network card for a network of virtual machines

  1. Check Activate the network card
  2. Choose Internal Network as Network Access Mode ; give the network a name
  3. Advanced tab allows you to change your virtual machine MAC address: useful to easily read the frames the network will carry! (especially if you use stateless autoconfiguration, which builds the IPv6 address from the MAC address).

The name you entered at step 2 identifies the network: if you want 2 machines to be on the same network, just give them the same network name!