onevm.xml 2.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<profile>
<attribute name='profile_pid'>  <value>emulab-ops</value></attribute>
<attribute name='profile_name'>  <value>OneVM</value></attribute>
<attribute name='rspec'>  <value>&lt;rspec xmlns:client=&quot;http://www.protogeni.net/resources/rspec/ext/client/1&quot; xmlns:emulab=&quot;http://www.protogeni.net/resources/rspec/ext/emulab/1&quot; xmlns:jacks=&quot;http://www.protogeni.net/resources/rspec/ext/jacks/1&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://www.geni.net/resources/rspec/3&quot; xsi:schemaLocation=&quot;http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd&quot; type=&quot;request&quot;&gt;
  &lt;rspec_tour xmlns=&quot;http://www.protogeni.net/resources/rspec/ext/apt-tour/1&quot;&gt;
    &lt;description type=&quot;markdown&quot;&gt;One small virtual machine running Ubuntu 14.04 LTS.&lt;/description&gt;
    &lt;instructions type=&quot;markdown&quot;&gt;Log into your VM and poke around. You have root access via `sudo`. Any work you do in the VM will be lost when it terminates.&lt;/instructions&gt;
  &lt;/rspec_tour&gt;
  &lt;node client_id=&quot;node1&quot; exclusive=&quot;false&quot;&gt;
    &lt;sliver_type name=&quot;emulab-xen&quot;&gt;
    &lt;/sliver_type&gt;
  &lt;/node&gt;
&lt;/rspec&gt;</value></attribute>
<attribute name='script'>  <value>&quot;&quot;&quot;One small virtual machine running Ubuntu 14.04 LTS.

Instructions:
Log into your VM and poke around. You have root access via `sudo`. Any work you do in the VM will be lost when it terminates.&quot;&quot;&quot;

# Import the Portal object.
import geni.portal as portal
# Import the ProtoGENI library.
import geni.rspec.pg as pg
# Import the Emulab specific extensions.
import geni.rspec.emulab as emulab

# Create a portal object,
pc = portal.Context()

# Create a Request object to start building the RSpec.
request = pc.makeRequestRSpec()

# Node node1
node1 = request.XenVM('node1')

# Print the generated rspec
pc.printRequestRSpec(request)
</value></attribute>
<attribute name='profile_listed'><value>1</value></attribute>
<attribute name='profile_public'><value>1</value></attribute>
</profile>