In Arch Linux, I would like to run VirtualBox without a window manager.
As a root I can easily do:
xinit /usr/bin/VirtualBox -- :0 vt1
As a non-root user I get a blank screen. If I open another terminal, kill VirtualBox and read
~/.local/share/xorg/Xorg.0.log ,
then it does not show any error and is basically the same as the "/var/log/Xorg.0.log"
I get as a root.
UPDATE
As noted by Arkadiusz Drabczyk, the problem was with a bug in VB. It works with version 5.2.4-119785.
My final objective is to use VB kind of bare-metal, starting an OS in fullscreen and nothing else, that is:
xinit '/usr/bin/VirtualBox' --startvm "VM name" --fullscreen -- :0 vt1
Best Answer
I remember I was able to reproduce your problem with not being able to run
Virtualbox
as non-root user without window manager with older versions ofVirtualbox
but it works for me with5.2.4-119785
.However, as stated in the comments you don't need to graphical interface at all.
Virtualbox
comes with command line interface, it's my preferred method of interacting with it. Say, to list virtual machines:To start a virtual machine:
You can then access a started virtual machine with
ssh
,telnet
etc.To remove a virtual machine:
To show info on a given virtual machine:
To stop a virtual machine:
You can even create a new virtual machine in command line: https://gist.github.com/ardrabczyk/65b68d0121f2964cd99e