Results 1 to 8 of 8

Thread: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

  1. #1
    Join Date
    Jun 2021
    Beans
    2

    Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    Hello i discovered problem in Vbox i have GTX 960 ubuntu 20.04 21.04.
    In gdm if I chose gnome wayland it works but in ubuntu desktop it doesn't some times no icons or i cannot scroll throw all apps.First i thought i t is ubuntu 21.04 or wayland problem but than i discovered both ubuntu 20.04 and 21.04 in ubuntu-desktop have same issue it seem it doesn't affect gnome-session .

    2021-06-12-19-20-53-ubuntu.jpg

    2021-06-12-19-23-30.jpg
    Last edited by slickymaster; June 14th, 2021 at 11:07 AM. Reason: removed large images

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    Thread moved to Virtualisation

    Please do not post large images into your posts. Many of our users have slow internet connections and data limits. Large images can take a long time to load -- and may even cost a user extra money. Use the attachment functionality provided by the paperclip button above the text entry box.

  3. #3
    Join Date
    May 2010
    Beans
    1,451

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    I suggest you use a non-compositing session in VMs like XFCE or LXDE. It'll mean the guest system impacts the host less.
    Make sure you install the VirtualBox guest additions as well

  4. #4
    Join Date
    Jun 2021
    Beans
    2

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    i have VirtualBox guest additions but i said gnome-session works ubuntu-gnome package dont

  5. #5
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    I see that no one has really answered you...Welcome.

    Some people would ask: "And?" (Do you want to use Wayland?)

    I'm thinking most people do not "want" to address this, it has many heads to it, and it is not an Ubuntu thing, nor a problem with Ubuntu. Your observation is not really and Ubuntu Question, but rather how Oracle VirutualBox supports Xorg or Wayland Graphics.

    Virtualbox supports Xorg XServer Very well. Why? Because in the 33 years that I have been involved with using and supporting XServer, it basically works the same. It's understood. It's known. It's popular. Many Linux Distributions use Xorg XServer for the Linux Graphics Layer, between the Linux Core, and The Graphical Desktop.

    Wayland was new just under 7 years ago. I'm not saying the problem is because it is new...
    RE: Oracle VirtualBox Ticket #13471: VB Video driver should support Wayland
    "We are aware of this and working on it, but there is currently no estimate for when it will be done as we have many other things to work on too."
    That was their answer for 4 years... Their approach to that was to sit on it. Members of Oracle are the upper members, support and contributors to Xorg. Their answer to this ticket, was finally to use workarounds by using Guest Additions, disable 3D graphics Acceleration, enable 2D Graphics. (Not to fully support it.) It was not a full solution, nor did it work well. That is for their VBoxVGA driver, that supported Linux distros generally as legacy.

    Add that there are Now, 3 Graphics drivers for VBox: VBoxVGA, VMSVGA, VBoxSVGA.

    Each has it's own personalities, and what they work with and have problems with... Which will cause a black screen, even when mixed with how they are applied and mixed with other VM options... Such as booting from BIOS or EFI within the VM...

    So, if you want to use Wayland on VBox, be a bit more specific about what your setup is, and what you want to do. Their are options to make it work... But using Xorg as graphics in a VBox VM Guest, opens more options to you. Or use the VMSVGA driver with Guest additions.

    Just be aware that the Guest Additions for 6.1.6 are broken for Linux Guests and will break your graphics (all on it's own). This Ticket is still open and not fixed:
    RE: Oracle VirtualBox, Ticket #19496: Virtualbox 6.1.6 guest screen resize broken
    Last edited by MAFoElffen; 4 Weeks Ago at 06:53 PM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot

  6. #6
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    From the above, it seems VBox may not be very friendly with Wayland.

    I spun up a fresh installation of Hirsute in KVM just now.

    Code:
    loginctl show-session 2 -p Type
    Type=wayland
    It's working just fine using KVM/libvirt/QEMU. KVM may not be as straight-forward as VBox appears to be from the start, but it is a much better choice in my opinion. It might be worth the investment of your time in learning how to use it and doing virtualization with it rather than VBox.
    Last edited by QIII; 4 Weeks Ago at 06:39 AM.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  7. #7
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    Quote Originally Posted by QIII View Post
    From the above, it seems VBox may not be very friendly with Wayland.

    I spun up a fresh installation of Hirsute in KVM just now.

    It's working just fine using KVM/libvert/QEMU. KVM may not be as straight-forward as VBox appears to be from the start, but it is a much better choice in my opinion. It might be worth the investment of your time in learning how to use it and doing virtualization with it rather than VBox.
    @QIII:
    Agreed. KVM is definitely more friendly with a lot of things over VirtualBox. KVM is a (Linux) Type 1 hypervisor and VBox is a (Multi-Platform) Type 2 (software virtualization) hypervisor.

    What I learned in the past when I was a Forums Moderator supporting this section, is that members using this section, some of those posting in this section are not actually running Linux as a Host OS, and are here asking about running their Ubuntu Guests better. This section covers a lot of "combinations." The OP hasn't yet said what his Host OS is. (LOL)
    Last edited by MAFoElffen; 4 Weeks Ago at 09:44 PM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Virtualbox ubuntu-desktop on wayland do not work but gnome-session does work

    The hostOS would be good to know.
    I'm a convert from vbox to KVM/libvirt too. Never regretted that change, but spice is pretty amazing as a fast desktop protocol - both local and remote. Spice only works with KVM VMs. I did some testing with SPICE and both X11 and Wayland a few months ago. For some reason, I think Wayland worked fine after I was all done testing. Initially, I thought it was broke, but I was most definitely mistaken.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •