pacman -S polkit
This worked for me even though polkit was already installed. Weird.
]]>It is a rather vanilla arch install with xfce DE but no display manager. I've done a few of these vms in the past and can always invoke xfce just by entering startxfce4 as a non-root user. However, in this case, I found that I needed to invoke startxfce4 as root.
Anyway, I noticed that the only difference between this install and previous ones was the presence of "loglevel=3" in the GRUB_CMDLINE_LINUX_DEFAULT statement of the /etc/default/grub file. I removed "loglevel=3" and was able to invoke xfce as non-root as before.
I didn't really think much about it, just proceeded with my intended experiment, and deleted the VM after successfully carrying out my experiment.
I didn't tweak any of the VM settings and merely accepted the defaults, except creating a 16G virtual drive, and setting networking to bridged.
-----------------------
I'm not an advanced user, so I'm not certain what the implication of removing "loglevel=3" on the overall system, and certainly not advocating that users should just remove it. Just sharing this info in case it helps shed light on the problem.
]]>If the driver doesn't support KMS, rootless xorg fails .
Display Manager don't use rootless Xorg at all.
Does VboxVga have a kernel module that supports KMS ?
]]>Since I wanted to use the VirtualBox guest additions for automatic display resizing, I set the graphics controller of the VM to VBoxVGA.
Now I had the problem again that I could start Xorg as root but not as user when running startx.
What I noticed: When I install a display manager such as LXDM and configure LXDM to run at boot time, then I can log into Xorg as normal user.
I still do not understand what the root cause is. But at least it is working now using a display manager.
]]>I googled a lot for "modeset(0): drmSetMaster failed: Permission denied". What finally helped was this:
pacman -S polkit
Now everything seems to be working fine.
]]>- xf86enableioports failed to set iopl for i/o (operation not permitted)
- Fatal server error: (EE) AddScreen/ScreenInit failed for driver 0
- xinit: unable to connect to X server: Connection refused
- modeset(0): drmSetMaster failed: Permission denied
Probably not a VB issue, search for - modeset(0): drmSetMaster failed: Permission denied and you'll find several things to try that can solve this without crippling graphics capabilities like nomodeset does.
]]>I wanted to run Arch on VirtualBox using i3 as window manager. I did a pretty standard Arch installation.
When it came to Xorg, I did: pacman -S xorg xorg-xinit xterm virtualbox-guest-utils xf86-video-vmware
I also did: cp /etc/X11/xinit/xinitrc ~/.xinitrc
(I want to run X as non-root user.)
When running startx now, the X server would start just fine. However, after rebooting, I get various error messages when running startx:
- xf86enableioports failed to set iopl for i/o (operation not permitted)
- Fatal server error: (EE) AddScreen/ScreenInit failed for driver 0
- xinit: unable to connect to X server: Connection refused
- modeset(0): drmSetMaster failed: Permission denied
Funnily enough, startx worked as root user.
What fixed it for me: I added the "nomodeset" kernel parameter:
vim /etc/default/grub
=> GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
grub-mkconfig -o /boot/grub/grub.cfg
Now after rebooting Xorg finally worked for me.
You can check the current kernel parameters with: cat /proc/cmdline
]]>