How can I send commands to VMs through the CLI?

asked 2015-04-15 19:50:58 -0600

Alex Altair gravatar image

updated 2015-04-17 12:08:43 -0600

I'm writing tests for a product that is built on top of OpenStack. I often want to execute a command on a guest VM (like pinging another VM, or simulating resource usage). So far I'm doing this by SSHing into the VM, but this often runs into networking problems. What I'd like to do is send commands directly to the VM, which the hypervisor should let me do. As far as I can tell, OpenStack only provides me with graphical consoles to manually type into.

Is there any CLI command I can run to execute a statement directly onto a VM?

I've found this, and the python API I'm using has this method ... but as far as I can tell, there's no documentation for it, so I cannot figure out how to use it.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-16 04:18:45 -0600

MentheAlow gravatar image

I think it primarily depends on the hypervisor you're using. For example, if you use OpenVZ, you may use: vzctl *veid* enter to enter into the console.

About nova get-serial-console, you should take a look there: There're also nova get-rdp-console, nova get-spice-console and nova get-vnc-console.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-04-15 19:50:58 -0600

Seen: 733 times

Last updated: Apr 17 '15