How to install xorg inside virtualbox guest?

21,319

Install the full xorg, plus virtualbox support (you might have to reboot after that):
pacman -S xorg virtualbox-guest-utils
If you really want to use startx you need either to change your ~/.xinitrc to start blackbox or install ugly old twm instead.

Share:
21,319

Related videos on Youtube

SMR
Author by

SMR

Updated on September 18, 2022

Comments

  • SMR
    SMR almost 2 years

    I am fairly new to Arch linux so I want to install it inside a VM first before replacing my current Linux installation.

    I've successfully installed base, base-devel & grub packages inside a virtualbox vm. I can successfully login to the newly installed system.

    I am a bit confused as I cannot get the xorg working.
    I've installed the following packages:

    #pacman -S xorg-server xorg-xinit xorg-server-utils mesa
    #pacman -S xorg-twm xorg-xclock xterm
    

    I have selected all the default selection for driver choice.
    Following is the error log when I run startx: error

    Here is the log: /var/log/Xorg.0.log: enter image description here Is there any specific package which I need to install in order to successfully startx inside a virtualbox guest VM?

    • SMR
      SMR over 8 years
      (EE) Fatal server error: (EE) no screens found (EE) Pklease consult the X Org Foundation support xinit: unable to connect to X server: Connection refused
    • SMR
      SMR over 8 years
      @Mat I've updated the question. Please have a look
    • Mat
      Mat over 8 years
      Please consult the log file at "/var/..." for additional information
    • schaiba
      schaiba over 8 years
      What video card do you have?
    • Edward Torvalds
      Edward Torvalds over 8 years
      did you try this method from Arch Linux wiki?
  • progfan
    progfan over 5 years
    Thanks for your answer. Installing virtualbox-guest-utils fixed the problem for me, however, my situation was a little different from OPs -- I'd run systemctl enable lxdm.service. Because I lacked the guest package, I saw a grainy, blue screen with no indication of the real problem.