Does the virt-manager port have additional requirements?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Does the virt-manager port have additional requirements?

Ralph Seichter-2
Hello.

I have installed the virt-manager port on macOS Catalina:

  The following ports are currently installed:
  virt-manager @2.1.0_0 (active)

Alas, on launch I only get an error message stating that the display
can't be opened.

  → virt-manager -c 'qemu+ssh://user@host/system?socket=/run/libvirt/libvirt-sock' --debug
  [Sa, 30 Mai 2020 00:59:11 virt-manager 12280] DEBUG (cli:203) Launched with command line: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/share/virt-manager/virt-manager -c qemu+ssh://user@host/system?socket=/run/libvirt/libvirt-sock --debug
  [Sa, 30 Mai 2020 00:59:11 virt-manager 12280] DEBUG (virt-manager:176) virt-manager version: 2.1.0
  [Sa, 30 Mai 2020 00:59:11 virt-manager 12280] DEBUG (virt-manager:177) virtManager import: <module 'virtManager' from '/opt/local/Library/Frameworks/Python.framework/Versions/3.7/share/virt-manager/virtManager/__init__.py'>

  (virt-manager:12280): Gtk-WARNING **: 00:59:11.316: cannot open display:

I have made sure to enable ForwardX11 and ForwardX11 in my SSH client
config, and X11Forwarding in the SSH-Daemon config. I can also use the
same connection URL successfully with "virsh".

What am I missing? Do I need to install a separate X-Server on my Mac?

-Ralph
Reply | Threaded
Open this post in threaded view
|

Re: Does the virt-manager port have additional requirements?

Ken Cunningham
What am I missing? Do I need to install a separate X-Server on my Mac?

Yes, that should fix it.

We are having discussions about automating this by making the server a dependency of the x11 subsystem, but consensus eludes us to date.

Ken
Reply | Threaded
Open this post in threaded view
|

Re: Does the virt-manager port have additional requirements?

Ralph Seichter-2
* Ken Cunningham:

> We are having discussions about automating this by making the server a
> dependency of the x11 subsystem, but consensus eludes us to date.

I have opened a pull request [1] with an enhanced long description for
the virt-manager port. I used "port info" myself, but there was no hint.
Hopefully the PR will prevent others from wasting time in the future.

[1] https://github.com/macports/macports-ports/pull/7271

-Ralph