Create a Jetstream VM with a floating IP address

Using the OpenStack command-line interface (CLI), the following commands will set up a VM that you can use.

Create a security group with firewall rules

$ openstack security group create --description \
"For Globus Connect Server v5" globus-connect-server-5

$ openstack security group rule create --protocol tcp \
--dst-port 22:22 --remote-ip 0.0.0.0/0 globus-connect-server-5

$ openstack security group rule create --protocol tcp \
--dst-port 443:443 --remote-ip 0.0.0.0/0 globus-connect-server-5

$ openstack security group rule create --protocol tcp \
--dst-port 50000:51000 --remote-ip 0.0.0.0/0 globus-connect-server-5

$ openstack security group rule create --protocol icmp \
globus-connect-server-5

 

Create a virtual network

(Use names you’ll remember for network, subnet, and router names)

$ openstack network create network_name

$ openstack subnet create --network network_name --subnet-range 10.0.0.0/24 subnet_name

$ openstack router create router_name

$ openstack router add subnet router_name subnet_name

$ openstack router set --external-gateway public router_name

 

Create a virtual machine

Featured images available can be listed using he

$ openstack flavor list

$ openstack image list --limit 1000 | grep JS-API-Featured

Finally, use the following commands to create your VM instance and assign a floating IP
address. Here we use Jetstream’s featured CentOS7 Image and choose the size m1.medium. Use a name you’ll remember for the instance. You should already have an SSH keypair established with Jetstream.

$ openstack server create instance_name \

--flavor m1.medium \

--image JS-API-Featured-CentOS7-Latest \

--key-name ssh-keypair-name \

--security-group globus-connect-server-5 \

--nic net-id=network_name

$ openstack floating ip create public

$ openstack server add floating ip instance_name your_ip_address

 

OpenStack command line