lama3


SUBMITTED BY: linktag

DATE: July 14, 2016, 2:32 p.m.

FORMAT: Text only

SIZE: 773 Bytes

HITS: 2349

  1. #!/bin/sh
  2. export OCCIAPI=https://nova3.ui.savba.sk:8787/
  3. export OST=os_tpl#7fd8a156-6673-4e97-89c9-9f0180f6a794
  4. export RES=resource_tpl#6
  5. occi --endpoint $OCCIAPI --auth x509 --voms --action create -r compute -M $OST -M $RES --context user_data="file://$PWD/centos7fedcloud.login" --attribute occi.core.title="GPU-VM"
  6. echo sleeping 10...
  7. sleep 10
  8. VMID=$(occi --endpoint $OCCIAPI --auth x509 --voms --action list --resource compute)
  9. echo sleeping 20
  10. sleep 20
  11. occi --endpoint $OCCIAPI --auth x509 --voms --action link --resource $VMID -j /network/nova
  12. NET=$(occi --endpoint $OCCIAPI --auth x509 --voms --action describe --resource compute | grep occi.networkinterface.address | awk '{print $3}')
  13. echo connect via:
  14. echo ssh \$SSH_OPT -i ../tmpfedcloud centos@$NET

comments powered by Disqus