Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Rspecrequestdiskimageexample

Rspecrequestdiskimageexample

RSpec V2 Example

Example of an RSpec request to create a single node with a disk image loaded on it.

On the Emulab Component Manager, you can request one of several disk images to be loaded on a node during sliver creation. Each image has a different Operating System installed. If no disk image is specified, a default image will be used which is typically an old Redhat 9 image.

Most nodes at Emulab can use the following two image names:

  • urn:publicid:IDN+emulab.net+image+emulab-ops//FBSD72-STD
  • urn:publicid:IDN+emulab.net+image+emulab-ops//FEDORA10-STD

RSpec V2 Example

<?xml version="1.0" encoding="UTF-8"?>
<rspec type="request" xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2
                                          http://www.protogeni.net/resources/rspec/2/request.xsd"
       xmlns:flack="http://www.protogeni.net/resources/rspec/ext/flack/1"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://www.protogeni.net/resources/rspec/2">
  <node client_id="exclusive-0" component_manager_id="urn:publicid:IDN+emulab.net+authority+cm" exclusive="true">
    <sliver_type name="raw-pc">
      <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops//FEDORA10-STD"/>
    </sliver_type>
  </node>
</rspec>

RSpec V0.2 Example (Deprecated)

<?xml version="1.0" encoding="UTF-8"?>
<rspec xmlns="http://www.protogeni.net/resources/rspec/0.2" type="request">
 <node virtual_id="geni1" 
       exclusive="1"
       virtualization_type="emulab-vnode"
       virtualization_subtype="raw">
   <disk_image
      name="urn:publicid:IDN+emulab.net+image+emulab-ops//FBSD72-STD" />
 </node>
</rspec>