r/openstack • u/Hfjqpowfjpq • Oct 16 '24
Ideas to connect to VMs in internal network
Hello everybody,
recently i was working and testing some VMs residing on the internal network of my deployment and i found some difficulties using commands. In specific i wanted to use the controller to launch multiple openstack cli commands to configure and create a VM on the internal network. I want to build the machine such that it automaticaly attaches and mounts a volume, but without a direct connection to it i cannot use ssh. How can I deal with it?
1
Upvotes
1
u/dasbierclaw Oct 16 '24
Commands to attach a volume don't have to be performed from the deployed vm. Instead, execute them from somewhere else that can reach the OpenStack API and target the VM in question. Cinder and nova do the rest.
1
u/gwynbleiddyenn Oct 17 '24
Are you using the —mountpoint parameter in volume attach?
1
u/x3rt00 Oct 17 '24
What about cloud config? Is it too early stage for you?
1
u/gwynbleiddyenn Oct 17 '24
You can get an url to connect to the VM’s console via https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/console-url.html