Owned by Steve Beattie
Get this repository:
git clone https://git.launchpad.net/~sbeattie/ubuntu-qa-tools/+git/ubuntu-qa-tools
Only Steve Beattie can upload to this repository. If you are Steve Beattie please log in for upload directions.


Name Last Modified Last Commit
master 2017-09-20 23:20:00 UTC 2017-09-20
vm-tools/uvt: use 'virsh domifaddr' for ping/ssh when UVT_USE_DOMIFADDR=1

Author: Jamie Strandboge
Author Date: 2017-09-20 23:20:00 UTC

vm-tools/uvt: use 'virsh domifaddr' for ping/ssh when UVT_USE_DOMIFADDR=1
- add vm_domifaddr()
- adjust vm_run_command() to use ip with ssh if UVT_USE_DOMIFADDR=1
- adjust vm_ping() to obtain ip and ping it if UVT_USE_DOMIFADDR=1
- adjust ssh_connect() to add 'resolve=True' argument which will call
  vm_domifaddr() if UVT_USE_DOMIFADDR=1

While not required for uvt, people may want to adjust their ~/.ssh/config to
have something along the lines of:

Host *.vm sec-*-amd64 sec-*-i386
# StrictHostKeyChecking no
# UserKnownHostsFile /dev/null
    ProxyCommand nc $(virsh domifaddr $(echo %h | sed "s/\.vm//g") | grep ipv4 | tail -1 | awk '{print $NF}' | cut -d '/' -f 1) %p

so that things like 'ssh sec-xenial-amd64' work as expected.

11 of 1 result
This repository contains Public information 
Everyone can see this information.