Difference between revisions of "HOWTO use VMware to set up virtual networks (Windows)"

From Nsnam
Jump to: navigation, search
Line 40: Line 40:
 
     g.  In the "Hardware" tab, select "CD-ROM";
 
     g.  In the "Hardware" tab, select "CD-ROM";
 
     h.  Deselect the "Connect at power on" radio button;
 
     h.  Deselect the "Connect at power on" radio button;
     i.  Select "Ethernet" and select the "Bridged" radio button;
+
     i.  Select "Ethernet" and make sure that the "Custom" radio button is
     i.  Press "OK";
+
        selected and "VMnet0 (default Bridged)" is selected in the drop-down
 +
        list.
 +
     j.  Press "OK";
 
5.  Start the new Virtual Machine
 
5.  Start the new Virtual Machine
 
     a.  Select the "Start this virtual machine" command on the VMware Server
 
     a.  Select the "Start this virtual machine" command on the VMware Server
Line 50: Line 52:
 
     b.  Select the console window to type into the VM, <control>+<alt> to exit;
 
     b.  Select the console window to type into the VM, <control>+<alt> to exit;
 
     c.  Login as user: ubuntu, password ubuntu;
 
     c.  Login as user: ubuntu, password ubuntu;
     d.  Change the password if you are connected to the real world;
+
     d.  Do an ifconfig -a and look at the ethernet devices.  When I create a
     e.  Ping www.google.com to test network connectivity.
+
        new VM, the device is configured as "eth2."  This means you need to  
 +
        edit the configuration.
 +
     e.  Type "sudo bash" and provide the "ubuntu" password.
 +
    f.  Edit (vi) the "/etc/network/interfaces" and change the references from
 +
        "eth0" to "eth2"
 +
    g.  Press the red square (stop) on the VMware console;
 +
    h.  Select the "Start this virtual machine" command on the VMware Server
 +
        Console;
 +
    i.  Ubuntu-jeos will start in a "console window";
 +
    j.  Select the console window to type into the VM, <control>+<alt> to exit;
 +
    k.  Login as user: ubuntu, password ubuntu;
 +
    l.  Ping www.google.com to test network connectivity.
 +
    m.  Change the password if you are connected to the real world;
 +
5.  Freshen the Software
 +
    a.  Sudo bash;
 +
    b.  apt-get purge
 +
 
 +
 
 +
 
  
[[User:Craigdo|Craigdo]] 19:55, 5 August 2008 (EDT)
+
[[User:Craigdo|Craigdo]] 21:35, 5 August 2008 (EDT)

Revision as of 01:35, 6 August 2008

Main Page - Current Development - Developer FAQ - Tools - Related Projects - Project Ideas - Summer Projects

Installation - Troubleshooting - User FAQ - HOWTOs - Samples - Models - Education - Contributed Code - Papers

One of the main points of using simulation software is that you don't have to buy lots of hardware in order to investigate large configurations. We have a realtime emulation package that allows us to connect ns-3 to real networks on real machines. The problem, of course, is that you need lots of real machines to run real programs. Using VMware, we replace "real machines" with "virtual machines" and configure virtual networks of virtual machines instead of having to work with tons of real hardware.

HOWTO use VMware to set up virtual networks (Windows)

1. Get the VMware server software

   a.  You may read in various release notes or documentation that you need 
       Microsoft servers of various kinds.  This is not the case.  You can 
       run VMware server on XP just fine;
   b.  Go to http://www.vmware.com/download/server/ to get the software;
   c.  Select the Download Now button (download as usual);
   d.  Install the software in the usual way;
   e.  Ignore warnings about requiring Microsoft IIS to continue.

2. Request a Serial Number

   a.  Go to http://register.vmware.com/content/registration.html
   b.  Fill out the page abd select "Submit";
   c.  You will be redirected to a page with your new serial number;
   d.  Copy the serial number;
   e.  Run the VMware server;
   f.  Select the menu item Help->Enter Serial Number ...
   g.  Paste in the new serial number.

3. Install a Virtual Machine

   a.  Exit the VMware Server.
   b.  We use Ubuntu Jeos without desktop.  Go to http://code.nsnam.org/
       and look for craigdo/VMs.  The required files will be there.  Use 
       mercurial to pull the VMs repository to your local host;
   c.  Copy the "craigdo/VMs/ubuntu-jeos" directory/folder into the VMware
       "c:\Virtual Machines" directory;
   d.  Select the "Local Host" radio button;
   e.  Select the File->Open->Browse menu option and browse to the 
       "ubuntu-jeos" directory and openthe "ubuntu-jeos.vmx" file;
   f.  Select "Edit virtual machine settings" from the VMware Console;
   g.  In the "Hardware" tab, select "CD-ROM";
   h.  Deselect the "Connect at power on" radio button;
   i.  Select "Ethernet" and make sure that the "Custom" radio button is
       selected and "VMnet0 (default Bridged)" is selected in the drop-down
       list.
   j.  Press "OK";

5. Start the new Virtual Machine

   a.  Select the "Start this virtual machine" command on the VMware Server
       Console;
   b.  You will get a dialog box asking about a new UUID.  Select the "Create"
       radio button.
   c.  Ubuntu-jeos will start in a "console window";
   b.  Select the console window to type into the VM, <control>+<alt> to exit;
   c.  Login as user: ubuntu, password ubuntu;
   d.  Do an ifconfig -a and look at the ethernet devices.  When I create a
       new VM, the device is configured as "eth2."  This means you need to 
       edit the configuration.
   e.  Type "sudo bash" and provide the "ubuntu" password.
   f.  Edit (vi) the "/etc/network/interfaces" and change the references from
       "eth0" to "eth2"
   g.  Press the red square (stop) on the VMware console;
   h.  Select the "Start this virtual machine" command on the VMware Server
       Console;
   i.  Ubuntu-jeos will start in a "console window";
   j.  Select the console window to type into the VM, <control>+<alt> to exit;
   k.  Login as user: ubuntu, password ubuntu;
   l.  Ping www.google.com to test network connectivity.
   m.  Change the password if you are connected to the real world;

5. Freshen the Software

   a.  Sudo bash;
   b.  apt-get purge



Craigdo 21:35, 5 August 2008 (EDT)