| 88 | |
| 89 | 3. Before creating a custom image verify your current list of custom images: |
| 90 | {{{ |
| 91 | $ omni.py listimages -a ig-utah |
| 92 | ... |
| 93 | Result Summary: Images created by urn:publicid:IDN+ch.geni.net+user+lnevers at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0: |
| 94 | [] |
| 95 | }}} |
| 96 | No images exist. |
| 97 | |
| 98 | 4. Now create a custom image: |
| 99 | {{{ |
| 100 | $ omni.py createimage -a ig-utah lnxenos lncustub12 -u urn:publicid:IDN+utah.geniracks.net+sliver+24391 |
| 101 | 10:44:24 INFO omni: Loading config file /home/lnevers/.gcf/omni_config |
| 102 | 10:44:24 INFO omni: Using control framework portal |
| 103 | 10:44:24 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 104 | 10:44:25 INFO omni: Slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenos expires on 2013-08-14 13:19:02 UTC |
| 105 | 10:44:25 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 106 | 10:44:27 INFO omni: (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=3be0f64c814c14d20cbb7c24fef33e5b) |
| 107 | 10:44:27 INFO omni: Snapshotting disk on urn:publicid:IDN+utah.geniracks.net+sliver+24391 at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, creating public image ['urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12', 'https://boss.utah.geniracks.net/image_metadata.php?uuid=30942743-0102-11e3-970d-000000000000'] |
| 108 | 10:44:27 INFO omni: ------------------------------------------------------------ |
| 109 | 10:44:27 INFO omni: Completed createimage: |
| 110 | |
| 111 | Options as run: |
| 112 | aggregate: ['ig-utah'] |
| 113 | framework: portal |
| 114 | project: ln-prj |
| 115 | slivers: ['urn:publicid:IDN+utah.geniracks.net+sliver+24391'] |
| 116 | |
| 117 | Args: createimage lnxenos lncustub12 |
| 118 | |
| 119 | Result Summary: Snapshotting disk on urn:publicid:IDN+utah.geniracks.net+sliver+24391 at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, creating public image ['urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12', 'https://boss.utah.geniracks.net/image_metadata.php?uuid=30942743-0102-11e3-970d-000000000000'] |
| 120 | 10:44:27 INFO omni: ============================================================ |
| 121 | }}} |
| 122 | |
| 123 | 5. Verify that custom image is available via list image command: |
| 124 | {{{ |
| 125 | $ omni.py listimages -a ig-utah 10:45:38 INFO omni: Loading config file /home/lnevers/.gcf/omni_config |
| 126 | 10:45:38 INFO omni: Using control framework portal |
| 127 | 10:45:38 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 128 | 10:45:38 INFO omni: ListImages using creator_urn 'urn:publicid:IDN+ch.geni.net+user+lnevers' |
| 129 | 10:45:38 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 130 | 10:45:40 INFO omni: (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=982afee125270d9628517daec151e02b) |
| 131 | 10:45:40 INFO omni: [ |
| 132 | { |
| 133 | "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=30942743-0102-11e3-970d-000000000000", |
| 134 | "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12" |
| 135 | } |
| 136 | ] |
| 137 | 10:45:40 INFO omni: ------------------------------------------------------------ |
| 138 | 10:45:40 INFO omni: Completed listimages: |
| 139 | |
| 140 | Options as run: |
| 141 | aggregate: ['ig-utah'] |
| 142 | framework: portal |
| 143 | project: ln-prj |
| 144 | |
| 145 | Args: listimages |
| 146 | |
| 147 | Result Summary: Images created by urn:publicid:IDN+ch.geni.net+user+lnevers at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0: |
| 148 | [ |
| 149 | { |
| 150 | "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=30942743-0102-11e3-970d-000000000000", |
| 151 | "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12" |
| 152 | } |
| 153 | ] |
| 154 | 10:45:40 INFO omni: ============================================================ |
| 155 | }}} |
| 156 | |
| 157 | 6. Create an RSpec that uses nodes with the Ubuntu12 custom image, node definitions are as follows: |
| 158 | {{{ |
| 159 | <node client_id="cust-ub12-1" exclusive="false"> |
| 160 | <sliver_type name="emulab-xen"> |
| 161 | <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12" /> |
| 162 | </sliver_type> |
| 163 | <interface client_id="cust-ub12-1:if0" /> |
| 164 | </node> |
| 165 | |
| 166 | <node client_id="cust-ub12-2" exclusive="false"> |
| 167 | <sliver_type name="emulab-xen"> |
| 168 | <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12" /> |
| 169 | </sliver_type> |
| 170 | <interface client_id="cust-ub12-2:if0" /> |
| 171 | </node> |
| 172 | |
| 173 | <link client_id="cust-ub12-1-and-cust-ub12-2"> |
| 174 | <interface_ref client_id="cust-ub12-1:if0"/> |
| 175 | <interface_ref client_id="cust-ub12-2:if0"/> |
| 176 | <property source_id="cust-ub12-1:if0" dest_id="cust-ub12-2:if0"/> |
| 177 | <property source_id="cust-ub12-2:if0" dest_id="cust-ub12-1:if0"/> |
| 178 | </link> |
| 179 | </rspec> |
| 180 | }}} |
| 181 | |
| 182 | 7. Create a slice and sliver using the custom Ubuntu 12 image |
| 183 | {{{ |
| 184 | $ omni.py createslice lnxenub12cust |
| 185 | 10:55:50 INFO omni: Loading config file /home/lnevers/.gcf/omni_config |
| 186 | 10:55:50 INFO omni: Using control framework portal |
| 187 | 10:55:52 INFO omni: Created slice with Name lnxenub12cust, URN urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenub12cust, Expiration 2013-08-16 14:55:51 |
| 188 | 10:55:52 INFO omni: ------------------------------------------------------------ |
| 189 | 10:55:52 INFO omni: Completed createslice: |
| 190 | |
| 191 | Options as run: |
| 192 | framework: portal |
| 193 | project: ln-prj |
| 194 | |
| 195 | Args: createslice lnxenub12cust |
| 196 | |
| 197 | Result Summary: Created slice with Name lnxenub12cust, URN urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenub12cust, Expiration 2013-08-16 14:55:51 |
| 198 | |
| 199 | 10:55:52 INFO omni: ============================================================ |
| 200 | |
| 201 | $ omni.py createsliver lnxenub12cust -a ig-utah ./insta-xen-cust-ub12.rspec |
| 202 | 10:57:23 INFO omni: Loading config file /home/lnevers/.gcf/omni_config |
| 203 | 10:57:23 INFO omni: Using control framework portal |
| 204 | 10:57:23 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 205 | 10:57:24 INFO omni: Slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenub12cust expires on 2013-08-16 14:55:51 UTC |
| 206 | 10:57:24 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 207 | 10:57:24 INFO omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 208 | 10:57:24 INFO omni: Creating sliver(s) from rspec file ./insta-xen-cust-ub12.rspec for slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenub12cust |
| 209 | 10:57:37 INFO omni: (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=c43151fea83a51083bfd3465ec2c10c1) |
| 210 | 10:57:37 INFO omni: Got return from CreateSliver for slice lnxenub12cust at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0: |
| 211 | 10:57:37 INFO omni: <!-- Reserved resources for: |
| 212 | Slice: lnxenub12cust |
| 213 | at AM: |
| 214 | URN: urn:publicid:IDN+utah.geniracks.net+authority+cm |
| 215 | URL: https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0 |
| 216 | --> |
| 217 | 10:57:37 INFO omni: <rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/manifest.xsd" type="manifest"> |
| 218 | |
| 219 | <node client_id="cust-ub12-1" exclusive="false" component_id="urn:publicid:IDN+utah.geniracks.net+node+pc3" component_manager_id="urn:publicid:IDN+utah.geniracks.net+authority+cm" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24398"> |
| 220 | <sliver_type name="emulab-xen"> |
| 221 | <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12"/> |
| 222 | </sliver_type> |
| 223 | <interface client_id="cust-ub12-1:if0" component_id="urn:publicid:IDN+utah.geniracks.net+interface+pc3:lo0" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24402" mac_address="02c0245d1fcf"><ip address="10.10.1.1" type="ipv4"/></interface> |
| 224 | <rs:vnode xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1" name="pcvm3-9"/><host name="cust-ub12-1.lnxenub12cust.ch-geni-net.utah.geniracks.net"/><services><login authentication="ssh-keys" hostname="pc3.utah.geniracks.net" port="31546" username="lnevers"/></services></node> |
| 225 | |
| 226 | <node client_id="cust-ub12-2" exclusive="false" component_id="urn:publicid:IDN+utah.geniracks.net+node+pc3" component_manager_id="urn:publicid:IDN+utah.geniracks.net+authority+cm" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24399"> |
| 227 | <sliver_type name="emulab-xen"> |
| 228 | <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustub12"/> |
| 229 | </sliver_type> |
| 230 | <interface client_id="cust-ub12-2:if0" component_id="urn:publicid:IDN+utah.geniracks.net+interface+pc3:lo0" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24403" mac_address="027f260afb32"><ip address="10.10.1.2" type="ipv4"/></interface> |
| 231 | <rs:vnode xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1" name="pcvm3-10"/><host name="cust-ub12-2.lnxenub12cust.ch-geni-net.utah.geniracks.net"/><services><login authentication="ssh-keys" hostname="pc3.utah.geniracks.net" port="31547" username="lnevers"/></services></node> |
| 232 | |
| 233 | <link client_id="cust-ub12-1-and-cust-ub12-2" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24401"> |
| 234 | <interface_ref client_id="cust-ub12-1:if0" component_id="urn:publicid:IDN+utah.geniracks.net+interface+pc3:lo0" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24402"/> |
| 235 | <interface_ref client_id="cust-ub12-2:if0" component_id="urn:publicid:IDN+utah.geniracks.net+interface+pc3:lo0" sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24403"/> |
| 236 | <property source_id="cust-ub12-1:if0" dest_id="cust-ub12-2:if0"/> |
| 237 | <property source_id="cust-ub12-2:if0" dest_id="cust-ub12-1:if0"/> |
| 238 | </link> |
| 239 | </rspec> |
| 240 | 10:57:37 INFO omni: ------------------------------------------------------------ |
| 241 | 10:57:37 INFO omni: Completed createsliver: |
| 242 | |
| 243 | Options as run: |
| 244 | aggregate: ['ig-utah'] |
| 245 | framework: portal |
| 246 | project: ln-prj |
| 247 | |
| 248 | Args: createsliver lnxenub12cust ./insta-xen-cust-ub12.rspec |
| 249 | |
| 250 | Result Summary: Got Reserved resources RSpec from utah-geniracks-net |
| 251 | 10:57:37 INFO omni: ============================================================ |
| 252 | }}} |
| 253 | |