Tag Archives: virtualization

Access libvirtd on Synology NAS with libvirt-manager

Installation:

To use libvirt-manager only small subset of changes are needed for convenience:
1. Add your client public ssh key to /root/.ssh/authorized_keys on your Synology NAS.
2. Install ssh-askpass on your client (needed to confirm host/NAS ssh fingerprint or to log in using password)
3. Login to root shell of your Synoglogy NAS and issue:

root@nas:~# synogear install

This will install necessary netcat tool normally missing on Synology shell.

4. Add new connection in libvirt-manager and choose custom URI as below:

And now for custom URI you should set:

qemu+ssh://root@nas/system?proxy=netcat&netcat=/var/packages/DiagnosisTool/target/tool/ncat&socket=/run/libvirt/libvirt-sock

Minding you NAS hostname/FQDN/IP here. Click add and you should be able to connect now.

This allows migration between hosts and more advanced VM configuration possible by libvirtd but not exposed on Synolgoy GUI.

That’s it. Have fun!

EDIT: To connect to graphical console you may need to create symbolic link in standard location for libvirt-manager to connect to display console:

ln -sf /var/packages/DiagnosisTool/target/tool/ncat /usr/bin/nc

After doing so you may use standard netcat location in your Custom URI or just use default should detect it by then.