kubevirt: Can't get "virtctl vnc..." running on OSX

Hi,

I installed the kubevirt demo on a remote cluster. Everything seems to run fine, virtctl console ... works, but I can’t get virtctl vnc ... running. A window is opening and showing these errors: first “Unknown graphic type for the guest vnc://127.0.0.1:55073”, and after a click on ok “Couldn’t create a session for this type: vnc”.

For getting so far I installed the Spice OSX client (https://www.spice-space.org/osx-client.html), and added a script named remote-viewer to my PATH, which just calls the OSX binary with /Applications/RemoteViewer.app/Contents/MacOS/RemoteViewer "$@".

Do I need to install more?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

It’s pretty simple, and I think there’s still an issue with RealVNC, but here it is

#!/bin/bash

# This is a wrapper for calling third-party VNC clients. Automatic VNC doesn't
# work with built-in Mac screen sharing app due to the authentication dialog. Choose
# a VNC application below and install it, or provide your own and add it here.

#### Tiger VNC ####
# https://github.com/TigerVNC/tigervnc/releases
TIGER_VNC="/Applications/TigerVNC Viewer 1.8.0.app/Contents/MacOS/TigerVNC Viewer"

#### Chicken VNC ####
# https://sourceforge.net/projects/chicken/
CHICKEN_VNC="/Applications/Chicken.app/Contents/MacOS/Chicken"

####  Real VNC ####
# https://www.realvnc.com/en/connect/download/viewer/macos/
REAL_VNC="/Applications/VNC Viewer.app/Contents/MacOS/vncviewer"

HOST_PORT=${1//vnc:\/\/}

if [ -x "${TIGER_VNC}" ]
then
    "${TIGER_VNC}" ${HOST_PORT}
elif [ -x "${CHICKEN_VNC}" ]
then
    "${CHICKEN_VNC}" ${HOST_PORT}
elif [ -x "${REAL_VNC}" ]
then
    "${REAL_VNC}" -WarnUnencrypted=0 ${HOST_PORT}
else
    echo "No supported VNC app found"
    exit 1
fi

it looks like remote-viewer does not support vnc://user:pass@ URL format. Without setting a VNC password the built-in Mac VNC client won’t connect, and it seems the various Linux VNC clients require a few extra hoops to utilize a VNC password.

It would be nice to revisit VNC password and try to come up with a cross-platform compatibility, however I imagine this is pretty low priority. It seems the best short term solution for Mac compatibility without breaking Linux is to keep using a script like the one in my last comment and install a third party VNC client.