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

From Nsnam
Jump to: navigation, search
Line 29: Line 29:
 
3.  Install a Virtual Machine
 
3.  Install a Virtual Machine
 
     a.  Exit the VMware Server.
 
     a.  Exit the VMware Server.
     b.  We use Ubuntu Jeos without desktopGo to http://code.nsnam.org/
+
     b.  We prefer Ubuntu JeOS (Just enough OS)You can download the code from
        and look for craigdo/VMs.  The required files will be there.  Use
+
        the VMware "Virtual Appliance Marketplace" by going to
         mercurial to pull the VMs repository to your local host;
+
        http://www.vmware.com/appliances/directory/1136 and selecting "Download
     c.  Copy the "craigdo/VMs/ubuntu-jeos" directory/folder into the VMware
+
         this Appliance" link from the "Download" box to the right of the
        "c:\Virtual Machines" directory;
+
        appliance name (Ubuntu 7.10 JeOS v1.031 with VMware drivers (70MB));
     d.  Run the VMware server;
+
     c.  Download the appliance and unzip the file.  You should have a directory
     e.  Select the "Local Host" radio button;
+
        named "ub710jeos".  Copy this directory to the "c:\Virtual Machines"  
     f.  Select the File->Open->Browse menu option and browse to the  
+
        (VMware) directory.
         "ubuntu-jeos" directory and openthe "ubuntu-jeos.vmx" file;
+
     d.  Run the VMware server.  If you get a complaint about not having a disk
    g.  Select "Edit virtual machine settings" from the VMware Console;
+
        in your CD-ROM, just continue;
    h.  In the "Hardware" tab, select "CD-ROM";
+
     e.  Select the "Local Host" radio button and press "OK";
    i.  Deselect the "Connect at power on" radio button;
+
     f.  Select the File->Open menu option and Browse for the
    j.  Select "Ethernet" and make sure that the "Custom" radio button is
+
         "ub710jeos" directory and open the "ub710jeos.vmx" file;
        selected and "VMnet0 (default Bridged)" is selected in the drop-down
+
        list.
+
    k.  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
 
         Console;
 
         Console;
 
     b.  You will get a dialog box asking about a new UUID.  Select the "Create"
 
     b.  You will get a dialog box asking about a new UUID.  Select the "Create"
         radio button.
+
         radio button and press "OK";
     c.  Ubuntu-jeos will start in a "console window";
+
     c.  Ubuntu JeOS will start in a "console window";
     b.  Select the console window to type into the VM, <control>+<alt> to exit;
+
     b.  You click your mouse in the console window to type into the VM, and you
     c.  Login as user: ubuntu, password ubuntu;
+
        presss <control>+<alt> to exit back into Windows;
     d.  Do an ifconfig -a and look at the ethernet devices.  When I create a
+
     c.  Login as user: root, password root;
        new VM, the device is configured as "eth2."  This means you need to  
+
     d.  Change the password if you are connected to the real world and like
         edit the configuration.
+
         your system intact.
     e.  Type "sudo bash" and provide the "ubuntu" password.
+
     e.  Ping www.google.com to test network connectivity.
    f. Edit (vi) the "/etc/network/interfaces" and change the references from
+
5Freshen the Software Distribution
        "eth0" to "eth2"
+
     aapt-get update
    g. Press the red square (stop) on the VMware console;
+
     bapt-get install
    hSelect the "Start this virtual machine" command on the VMware Server
+
     capt-get install pkg-config libxml2 libxml2-dev
        Console;
+
     dapt-get install gcc g++ make automake autoconf binutils
     iUbuntu-jeos will start in a "console window";
+
     eapt-get install openssh-server openssh-client openssl libssl-dev
     jSelect the console window to type into the VM, <control>+<alt> to exit;
+
     f.  apt-get install mercurial
     kLogin as user: ubuntu, password ubuntu;
+
     lPing www.google.com to test network connectivity.
+
     mChange the password if you are connected to the real world;
+
5.  Freshen the Software
+
     a.  Sudo bash;
+
    b.  apt-get purge
+
  
[[User:Craigdo|Craigdo]] 22:45, 5 August 2008 (EDT)
+
[[User:Craigdo|Craigdo]] 01:52, 6 August 2008 (EDT)

Revision as of 05:52, 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 prefer Ubuntu JeOS (Just enough OS).  You can download the code from
       the VMware "Virtual Appliance Marketplace" by going to
       http://www.vmware.com/appliances/directory/1136 and selecting "Download
       this Appliance" link from the "Download" box to the right of the
       appliance name (Ubuntu 7.10 JeOS v1.031 with VMware drivers (70MB));
   c.  Download the appliance and unzip the file.  You should have a directory
       named "ub710jeos".  Copy this directory to the "c:\Virtual Machines" 
       (VMware) directory.
   d.  Run the VMware server.  If you get a complaint about not having a disk
       in your CD-ROM, just continue;
   e.  Select the "Local Host" radio button and press "OK";
   f.  Select the File->Open menu option and Browse for the  
       "ub710jeos" directory and open the "ub710jeos.vmx" file;

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 and press "OK";
   c.  Ubuntu JeOS will start in a "console window";
   b.  You click your mouse in the console window to type into the VM, and you
       presss <control>+<alt> to exit back into Windows;
   c.  Login as user: root, password root;
   d.  Change the password if you are connected to the real world and like
       your system intact.
   e.  Ping www.google.com to test network connectivity.

5. Freshen the Software Distribution

   a.  apt-get update
   b.  apt-get install
   c.  apt-get install pkg-config libxml2 libxml2-dev
   d.  apt-get install gcc g++ make automake autoconf binutils
   e.  apt-get install openssh-server openssh-client openssl libssl-dev
   f.  apt-get install mercurial

Craigdo 01:52, 6 August 2008 (EDT)