Hello. I was trying to use this in my environment, but found a few things that weren't implemented yet that I needed for my use case.
I don't know Go, but based on your code and documentation, I got this working in my environment.
In ssh_dialer, I added code that pulls auth info from the ssh agent by default. The keyfile parameter code is adjusted so that it only runs if the user passes a value. This section could be better - not sure the default behavior of libvirt, but I am usually able to rely on ssh agent to pass the keys without specification.
Next was adding a network_interface type of direct. This is macvtap in virt-manager config. It requires the host's dev to connect to and the mode (bridge).
I think it would be good to add knownhosts from ssh agent, too.
It would be cool to add these changes, but it may need more work. Wanted to commit and post before I forget, might be a while before I can delve into this more.
Hello. I was trying to use this in my environment, but found a few things that weren't implemented yet that I needed for my use case.
I don't know Go, but based on your code and documentation, I got this working in my environment.
In ssh_dialer, I added code that pulls auth info from the ssh agent by default. The keyfile parameter code is adjusted so that it only runs if the user passes a value. This section could be better - not sure the default behavior of libvirt, but I am usually able to rely on ssh agent to pass the keys without specification.
Next was adding a network_interface type of direct. This is macvtap in virt-manager config. It requires the host's dev to connect to and the mode (bridge).
I think it would be good to add knownhosts from ssh agent, too.
It would be cool to add these changes, but it may need more work. Wanted to commit and post before I forget, might be a while before I can delve into this more.