Here a simple howto to prepare the connection:
- Install MacPorts
- Insrall XQuartz
-
Install virt-viewer
# sudo port install virt-viewer
-
Create SSH id on OSX (used for passwordless login)
# ssh-keygen
-
Then copy this key to your remote server (~/.ssh/id_XXX.pub)
# ssh-copy-id root@server.machine
Now you can connect with the following URL:
# virt-viewer -c qemu+ssh://root@server.machine/system?socket=/var/run/libvirt/libvirt-sock