Skip to content

Instantly share code, notes, and snippets.

@Lennie
Lennie / gist:35ae648347ccb9d45962
Last active January 17, 2020 00:48
boot2docker-qemu
This is based on http://serverascode.com/2014/03/13/boot2docker-qemu.html
After running the script, you should be able to login using:
ssh-keygen -R $IP # if the host-key is already know for that IP-address
ssh-keyscan -p 22 $IP > /var/lib/libvirt/images/boot2docker1.hostfile
ssh-keygen -H -f /var/lib/libvirt/images/boot2docker1.hostfile
rm -f /var/lib/libvirt/images/boot2docker1.hostfile.old
ssh -p 22 -o UserKnownHostsFile=/var/lib/libvirt/images/boot2docker1.hostfile -i /var/lib/libvirt/images/boot2docker1.key docker@$IP