Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-17435

[RFE][RHEL8] Provide some easy one-line command to switch from SPICE to VNC.

    • None
    • Important
    • rhel-sst-virtualization
    • ssg_virtualization
    • 13
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      Spice (server) was deprecated in RHEL8.3 and completely removed in RHEL9.

      For customers upgrading the RHEL KVM hosts from RHEL8 to RHEL9, they should first switch all existing VMs from SPICE to VNC before the upgrade, as preparation steps.

      Unless I am missing something, this is not a simple task from the command line. I can remove some of the spice related devices using detach-device but some others will not remove (i.e. graphics) as it's not allowed. Also, update-device does not seem to be able to switch some elements such as the graphics device from spice to vnc, it simply fails to find the graphics device.

      Using virt-edit with a perl EXPR may work, but I did not get far enough to do something that would do all the changes, its a bit too complex to do a one liner that iterates over every line and does the required changes, or even if done in steps (multiple commands).

      Please implement a way for the user to configure the graphics of the VM easily via virsh, so the user is able to switch from SPICE to VNC which is required on RHEL8 to 9 upgrades, otherwise the VMs will fail to start on 9 after the upgrade: https://access.redhat.com/solutions/6955095

       

              phrdina@redhat.com Pavel Hrdina
              rhn-support-gveitmic Germano Veit Michel
              virt-maint virt-maint
              Hongzhou Liu Hongzhou Liu
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated: