wiki:GiB-to-ProtoGENI

Version 5 (modified by Vic Thomas, 12 years ago) (diff)

--

Moving Experiments from GENI-in-a-Box to ProtoGENI Aggregates

The GENI-in-a-Box aggregate is most similar to the GENI ProtoGENI aggregates. This page describes some of the similarities and differences between these aggregates.

Similarities

  • All experimenter nodes have 3 NICs available to the experimenter. These is, in addition, a fourth NIC that is connected to by the aggregate control network. This network should not be used for experiment traffic.
  • Experimenters get root access to their virtual machines.
  • Virtual machines from both aggregates are implemented as OpenVZ containers running Fedora 15. The Ubuntu flavor of GENI-in-a-Box provides OpenVZ containers running Ubuntu.
  • The manifest rspec is available in all the experimenter nodes at /prof/geni-in-a-box.net/exp/<slicename>/tbdata/geni_manifest and the fully qualified name of the node is available in /var/emulab/boot/nickname. An example of a fully qualified node name is pc101.myslice.geni-in-a-box.net where myslice is the name of the slice.

Differences

  • Mapping of device name to experimenter specified interface name. The mapping of the experimenter specified interface name to the operating system device name is available in the manifest rspec. For example, the <interface> element in the snippet of a manifest rspec shown below tells us that the interface with the experimenter specified name left:if0 is mapped to eth1 by the operating system (see the last part of the component_id for this interface). In the ProtoGENI aggregate this mapping is not guaranteed to be correct i.e. it might actually be mapped to a different operating system interface such as eth2 or eth3. With GENI-in-a-Box the mapping will be correct.
    <node client_id="left" component_id="urn:publicid:IDN+geni-in-a-box.net+node+pc101" component_manager_id="urn:publicid:IDN+geni-in-a-box.net+authority+cm" exclusive="false" sliver_id="urn:publicid:IDN+geni-in-a-box.net+sliver+101">    
            <sliver_type name="virtual-pc">      
                <disk_image name="urn:publicid:geni-in-a-box.net+image//FEDORA15-STD"/>      
            </sliver_type>    
            <services>      
                <install file_type="tar.gz" install_path="/local" url="http://groups.geni.net/geni/attachment/wiki/GiB-gettingStarted/iperf-execute-script.tar.gz?format=raw"/>      
                <execute command="/local/iperf-execute-script.sh" shell="sh"/>      
                <login authentication="ssh-keys" hostname="pc101.geni-in-a-box.net" port="22" username="alice"/>      
            </services>    
            <interface client_id="left:if0" component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" mac_address="00:0C:29:B4:DF:A7" sliver_id="urn:publicid:IDN+geni-in-a-box.net+sliver+1011">      
                <ip address="10.0.3.101"/>      
            </interface>    
            <rs:vnode name="pc101" xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1"/>    
            <host name="pc101.geni-in-a-box.net"/>    
    </node>  
    
  • Aggregate URN in rspec. As you might expect, the aggregate URN in a GENI-in-a-Box rspec will be different from that in a ProtoGENI rspec. However, you can use your ProtoGENI rspec, with the URN for a ProtoGENI aggregate, in your GENI-in-a-Box rspec. The GENI-in-a-Box aggregate manager does not check the aggregate URN in the rspec. This is a feature and not a bug. It is so you can use your ProtoGENI rspec with GENI--in-a-Box with very little or no changes.
  • Running commands as root in startup scripts. The startup script specified by the experimenter as an <execute> element of the request rspec is executed with root privileges in the GENI-in-a-Aggregate. You therefore do not require to sudo to run commands that require root privileges. In fact, such scripts with sudo in them will fail as the VMs are set up to disallow sudo'ing without a tty.