Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
lama3
SUBMITTED BY:
linktag
DATE:
July 14, 2016, 2:32 p.m.
FORMAT:
Text only
SIZE:
773 Bytes
Raw
Download
Tweet
HITS:
2354
Go to comments
Report
#!/bin/sh
export OCCIAPI=https://nova3.ui.savba.sk:8787/
export OST=os_tpl#7fd8a156-6673-4e97-89c9-9f0180f6a794
export RES=resource_tpl#6
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"
echo sleeping 10...
sleep 10
VMID=$(occi --endpoint $OCCIAPI --auth x509 --voms --action list --resource compute)
echo sleeping 20
sleep 20
occi --endpoint $OCCIAPI --auth x509 --voms --action link --resource $VMID -j /network/nova
NET=$(occi --endpoint $OCCIAPI --auth x509 --voms --action describe --resource compute | grep occi.networkinterface.address | awk '{print $3}')
echo connect via:
echo ssh \$SSH_OPT -i ../tmpfedcloud centos@$NET
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus