Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

machines: VNC Vertical Sizing is Off #8392

Closed
dcrdev opened this issue Jan 10, 2018 · 25 comments
Closed

machines: VNC Vertical Sizing is Off #8392

dcrdev opened this issue Jan 10, 2018 · 25 comments

Comments

@dcrdev
Copy link

dcrdev commented Jan 10, 2018

The vnc viewer in the latest release doesn't appear to be handling vertical resizing - part of the screen gets cut off and unlike the x axis, the y axis doesn't offer scrollbars.

screenshot_2018-01-10_17-13-04

CentOS 7.4 Host
Fedora 26 Client with Chrome 63.0.3239.132

Might I also make a suggestion at the same time... Could a button be implemented to allow full screen viewing of the running vnc session?

@dcrdev dcrdev changed the title machines: VNC Vertical Sizing + Suggestion machines: VNC Vertical Sizing is Off Jan 11, 2018
@mareklibra
Copy link
Contributor

Real full screen can be achieved just via external viewer, like remote-viewer.

@andreasn , what do you think?

We might i.e. open a new tab with just the single no-vnc session. Or use just the whole plugin-space. It would be up to the browser if it can resize to full screen (like F11 key in FF).

@dcrdev
Copy link
Author

dcrdev commented Jan 12, 2018

@mareklibra true but this has value for those who do not want to open up vnc externally in their firewall; it's only a suggestion really.

My main point though is around the vertical sizing - as it makes the functionality unusable.

@dcrdev
Copy link
Author

dcrdev commented Feb 7, 2018

@mareklibra any update on the scrollbar issue?

The vnc console is still unusable for me because of this.

@mareklibra
Copy link
Contributor

@dcrdev , this needs to be fixed. Unfortunately, I did not have time to get to it so far.

@mareklibra
Copy link
Contributor

Related: #8894

@KKoukiou
Copy link
Contributor

This issue is not present anymore. See screenshot bellow:
installation-fedora-vnc-

@couillonnade
Copy link

I know this is closed but adding some information that might help someone else. Feel free to delete.

It happens sometime when resolution changes (ex.: login screen has a different resolution than the session). The workaround is to modify the size of your browser (restore down then maximize or modify manually).

I am also loosing the keyboard when navigating in other menus of Cockpit. If you experience it, you can change the console type to Desktop Viewer and back to VNC or, faster, just click in the black area of VNC (left or right side on the capture above) and then your keys will be captured again by VNC instead of the browser.

Since we are in the workarounds, in the Terminal you can Copy and Paste if you do CTRL-A before CTRL-C and CTRL-V.

My vote for full screen or a way to hide the left menu to have more space. Having 2FA authentication with Cockpit is great and this is on the the reasons why I do not access VNC directly by opening another port in the FW.

@mzamot
Copy link
Contributor

mzamot commented Dec 16, 2019

Having a full screen button or the option of opening the VNC in a different tab would be really nice

@KKoukiou
Copy link
Contributor

KKoukiou commented Jan 8, 2020

Having a full screen button or the option of opening the VNC in a different tab would be really nice

Please create a new issue for that - it makes sense but noone will keep track of it in a closed issue.

@brekke-roq
Copy link

I have the same issue on ubuntu 22 host while installing ubuntu 20 guest. It seem that it has something to do with Virtio video driver as switching to QXL fixed the issue.

@syncmasterN
Copy link

I have the same issue on ubuntu 22 host while installing ubuntu 20 guest. It seem that it has something to do with Virtio video driver as switching to QXL fixed the issue.

Please provide more details on what exactly you have changed, I am having the same problems on some versions of Centos7, ubuntu and rhel8 & 9.

@souhaiebtar
Copy link

The vnc viewer in the latest release doesn't appear to be handling vertical resizing - part of the screen gets cut off and unlike the x axis, the y axis doesn't offer scrollbars.

screenshot_2018-01-10_17-13-04

CentOS 7.4 Host Fedora 26 Client with Chrome 63.0.3239.132

Might I also make a suggestion at the same time... Could a button be implemented to allow full screen viewing of the running vnc session?

i had to install using text mode by adding inst.text (because i can't see the buttons that i have to click on),

, at the end thanks goes to linuxconfig.org site

@garrett
Copy link
Member

garrett commented Feb 28, 2023

We have a PR @ cockpit-project/cockpit-machines#900 that should further improve the situation. Hopefully it'll land ASAP, so it should ideally be in the next release of Cockpit.

Meanwhile, I'd suggest clicking on "Expand" to make the VM take up more of the browser view, which should help mitigate the issue. It's at the top-right of the "Console" card on the VM's overview:

image

@souhaiebtar
Copy link

souhaiebtar commented Feb 28, 2023 via email

@garrett
Copy link
Member

garrett commented Feb 28, 2023

@souhaiebtar: Could you provide details?

  1. Which version of Cockpit?
  2. Which distribution and version was Cockpit running on?
  3. What browser are you using?
  4. What were you installing as a VM?

We could then try to recreate that and hopefully make sure it's fixed in cockpit-project/cockpit-machines#900 (if it isn't already).

Thanks!

@souhaiebtar
Copy link

@garrett

  1. Cockpit Version: cockpit 286 ( and cockpit-machine 283)
  2. Host Os: fedora server 37
  3. Browser: Chromium ( and i also tested on firefox)
  4. VM: Rocky linux 9

@garrett
Copy link
Member

garrett commented Feb 28, 2023

I've tried Rocky 9 on what's in main and with that PR, to see what would happen. This is also Fedora 37 (but Silverblue instead of Server, but it should be similar enough). This is on Firefox, but as you note, it should be similar in Chrome too.

It looks like it's a lot better with the change. But it's not perfect; there are still some issues. But we're aware of that and plan on merging in the fixes as-is and doing a follow-up to try to get it behaving better in different situations too.

So, hopefully, the next version of Cockpit will help fix the problem for you. (And then we'll have to try to figure out how to improve it in the corner case scenarios and for mobile too. Although it's probably a little weird to manipulate a VM via VNC from a phone, even if it worked fully correct, however.)

Testing the pending branch with Rocky 9 VM

Here's Rocky 9 in the VM page:

image

Here it is after I click expand and move the mouse over it (it had a momentary glitch, but I think that's due to the resize request):

image

Still some issues

Some smaller sizes still have issues (these are all resizing the browser, where responsive mode starts kicking in):

image

image

image

image

(This last one is an iPhone size, after the page was reloaded.)

But it's better, especially expanded

Even when it's narrow, the expand works:

image

image

@souhaiebtar
Copy link

@garrett is nested vm enabled by default or not in cockpit, sorry for not being related to the problem above ?

@garrett
Copy link
Member

garrett commented Feb 28, 2023

@souhaiebtar: I'm pretty sure this isn't Cockpit-related. Nested VMs are a system-level thing. I think you should be able to use nested VMs with Cockpit-Machines. File a bug at https://github.com/cockpit-project/cockpit-machines/issues/new if there's some problem specifically with nested machines and Cockpit-Machines.

(I think we're even using nested VMs for testing Cockpit-Machines... we have test VMs that test running a VM.)

@jelly
Copy link
Member

jelly commented Feb 28, 2023

Nested VMs are something the OS has to enable and not really something cockpit-machines controls over. For more information see https://www.linux-kvm.org/page/Nested_Guests

But note that nested VMs won't be the most fast thing to use.

@thiagolinhares
Copy link

I'm having same issue, but on Rocky Linux 9.1

[root@localhost ~]# rpm -qa | grep cockpit
cockpit-bridge-276.1-1.el9.x86_64
cockpit-ws-276.1-1.el9.x86_64
cockpit-packagekit-276.1-1.el9.noarch
cockpit-system-276.1-1.el9.noarch
cockpit-storaged-276.1-1.el9.noarch
cockpit-276.1-1.el9.x86_64
cockpit-navigator-0.5.9-2.el9.noarch
cockpit-machines-274-1.el9.noarch

[root@localhost ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.1 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.1 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.1"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.1"

@deajan
Copy link

deajan commented Apr 30, 2023

Same issues here, trying to install Almalinux 9.1 on a Almaliinux 9.1 host

image

rpm -qa | grep cockpit
cockpit-bridge-276.1-1.el9.x86_64
cockpit-ws-276.1-1.el9.x86_64
cockpit-packagekit-276.1-1.el9.noarch
cockpit-system-276.1-1.el9.noarch
cockpit-276.1-1.el9.x86_64
cockpit-storaged-276.1-1.el9.noarch
cockpit-machines-274-1.el9.noarch
cockpit-pcp-276.1-1.el9.x86_64

I've seen this bug for quite a while now, already present for Almalinux 9.0. No improvements seen so far.
Expanding the console doesn't help, no screen resizing is done.
Indeed, I really don't want to expose my VNC ports, so using virt-viewer isn't really a good solution.
My workaround for now is to install and use virt-manager, but that's horribly slow over WAN links.

@garrett
Copy link
Member

garrett commented May 2, 2023

@thiagolinhares @deajan: VNC sizing was fixed in this PR: cockpit-project/cockpit-machines#900, which landed in Cockpit-Machines 286 on March 22.

@deajan
Copy link

deajan commented May 2, 2023

@garrett Thanks for the follow up. Hopefully Redhat will backport this at some time.

@deajan
Copy link

deajan commented May 15, 2023

Just for the notes, Redhat did backport Cockpit Machines 284 to RHEL 9.2, but didn't include the necessary fix yet.
Guess we'll have to wait until RHEL 9.3, since they usually only backport security fixes.
I had success using browser inspector to resize the canvas earlier, but I don't get that to work with v284 anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests