Regular user cannot connect to VM by SSH with the virtctl tool

Solution In Progress - Updated -

Issue

  • A regular user with admin privileges in a project, gets the following error when using the virtctl ssh command to connect to a VM:
can't access VMI vm: virtualmachineinstances.subresources.kubevirt.io "vm" is forbidden: User "username" cannot get resource "virtualmachineinstances/portforward" in API group "subresources.kubevirt.io" in the namespace "username"
  • It works for a cluster admin.

Environment

  • Openshift Container Platform (OCP) 4.11
  • Openshift Virtualization 4.11.2
  • virtctl v0.53.2-138-gaf356de41

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content