WikiPrint - from Polar Technologies

EGI FedCloud

?https://appdb.egi.eu/store/vappliance/egi.ubuntu.14.04

$ ssh-keygen -t rsa -b 2048 -f tmpfedcloud $ cat > tmpfedcloud.login << EOFusers:

EOF export ENDPOINT=?https://carach5.ics.muni.cz:11443 export OS_TPL=?http://occi.carach5.ics.muni.cz/occi/infrastructure/os_tpl#uuid_egi_ubuntu_server_14_04_lts_fedcloud_warg_131 export RES_TPL=?http://fedcloud.egi.eu/occi/compute/flavour/1.0#small

VM_ID=$(occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action create --resource compute --attribute occi.core.title="MyFirstVM1" --mixin $OS_TPL --mixin $RES_TPL --context user_data="?file://$PWD/tmpfedcloud.login") occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action describe --resource ${VM_ID} ssh -i tmpfedcloud cloudadm@${IP} occi --endpoint $ENDPOINT --auth x509 --user-cred $X509_USER_PROXY --voms --action delete --resource ${VM_ID}