You can execute commands on VirtualIron nodes, using the supplied support_tools/testagent program, like this:

./support_tools/testagent 192.168.0.1 --exec="ls"

But this is cumbersome. Run the following commands to activate the ssh daemon:

ip=192.168.0.1
ag=./support_tools/testagent
$ag $ip --exec='ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -C "" -N ""'
$ag $ip --exec='
   echo sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
   >> /etc/passwd'
$ag $ip --exec='/usr/sbin/sshd'
$ag $ip --exec='echo r00t:FBx3ZpLywKVEk:0:0::/root:/bin/bash >> /etc/passwd'

The last command creates a user with login r00t and password foobar.

This is useful for when a node’s agent locks and you can’t use it in the Virtualization Manager Console. Usually, some SCSI scan process gets stuck in the D state. Search for the storage_discover.py process, kill it, and the node will be available once again.

But remember: with great power, comes great responsibility!