Install Virtualbox on ArchLinux

Today I just installed a Laptop the same as the one I use to a co-worker, but he does not use like me Qemu-KVM, but it is much easier to work with Virtualbox.

Installing Virtualbox in ArchLinux it is relatively easy. We open a terminal and put:

$ sudo pacman -S virtualbox virtualbox-guest-iso virtualbox-host-modules

Later we add our user to the group vboxusers:

$ sudo gpasswd -a $USER vboxusers

We close the session and re-enter. We execute in a terminal

# modprobe vboxdrv

We run Virtualbox and check that no error occurs. Now, so that we do not have to execute the previous command every time, we create the file vbox.conf with the command:

$ sudo nano /etc/modules-load.d/vbox.conf

And we put it inside:

vboxdrv

We reboot and that's it ..


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   eliotime3000 said

    Is that virtualobx the VirtualBox OSE or the VirtualBox that has been compiled by Oracle? Since in Debian Wheezy, I have installed Virtualbox, but compiled by Debian team (the logo and image used in the "about" window are from the OSE edition).

    1.    cat said

      It's Oracle's.

      1.    eliotime3000 said

        I have already downloaded the Arch ISO to be able to play on a virtual PC.

  2.   rasputin said

    And you are not a debian user? what happened to xcfe? don't you say it's better than kde? -.-

    1.    elav said

      It's been a long, long, long time since my opinion changed, a little bit 😀

      1.    eliotime3000 said

        In my case, I only want to update the programs that I use the most, not the ENTIRE system as is the case with Arch. To play with the new kernel and enjoy the latest final versions of each GNU / Linux component, it's good the Arch.

    2.    cookie said

      It seems that the raputin friend stopped being a frequent visitor.

  3.   Ankh said

    It should be enough to log in again, in order to apply the change in the user's group settings. Although restarting is just as comfortable XD.

  4.   jav said

    Very good article,

    By the way elav, a little question, you say that you use Qemu-KVM, it is possible to put the virtual machine on full screen Widescreen, because I can't do it instead with Virtualbox yes, if possible you could tell me how.

    Thanks and regards,

    jav

    1.    elav said

      Well, the most I've tried is Full Screen and if it works for me 😀

      1.    jav said

        Yes, of course I can put it in full screen, but at 4: 3 I can't do it on Widescreen, but on Virtualbox it can.

        That is the question.

        Thanks and regards,

        jav

        1.    elav said

          Well, honestly, I have not tried .. If I am successful I comment here por

      2.    eliotime3000 said

        Well, with that previous configuration that you have put in this post, it obviously works wonders. Ironically, in the case of Debian Stable, all that process that you have put in Arch does not have to be done, since that is done automatically.

  5.   jorgecg said

    Well, it seems pretty easy to install.

    Thanks for the instructions.

  6.   / Dev / null said

    I don't use Arch, but it's good to know… ..
    Greetings XD

    1.    eliotime3000 said

      I don't use it either, but I'll give it a taste.

  7.   Jean Pierre said

    A parallel Universe O:

  8.   ppsalama said

    Hello to everyone s.
    You seem to read my mind. Today I was just thinking about installing virtualbox and I thought that a sudo pacman -S virtualbox was enough and then look for it in my kde menu and click to run it.
    A bit of general culture for an inexperienced like me: what problem would arise installing it as I supposed it was done and what advantages are there in the way you suggest?
    Thank you and salu2

    1.    eliotime3000 said

      What happens is that @elav is adding the packages in which the VirtualBox host modules are found, which are important for you to emulate the operating system perfectly. In addition, it also adds the package that has the Guest Additions ISO if you are going to emulate Windows, Mac or another GNU / Linux distro.

      And the last command is to program the VirtualBox bridge controllers module to always run when turning on the PC and not have to activate them manually.

      That would be all that remained to be clarified.

      1.    ppsalama said

        Great explanation. I understand that the installation of virtualbox-guest-iso and virtualbox-host-modules is for better performance of the virtualized OS.

        On the other hand, in the sudo gpasswd -a $ USER vboxusers instruction, do I have to put my username where "USER" or where "$ USER"?

        And one last thing: if you don't want those virtualbox bridge controller modules to run with every power-up, how could you create a launcher that raises those modules and then opens virtualbox (that is, whenever I want and not with every power-up? )?

        Thank you

        1.    elav said

          In theory when putting $ USER, it takes your user, which in the end is the same as putting:

          $ sudo gpasswd -a ppsalama vboxusers

          1.    eliotime3000 said

            You beat me at the explanation.

          2.    ppsalama said

            graciassssssss

        2.    eliotime3000 said

          Well, I deduced that from the name of the packages, but giving permission to the user in vboxusers, because the $ USER it is equivalent to the user you are using at the moment (but not root).

          Regarding your last question, I could not answer you. I would have to start using Arch to be able to tell you how it should be installed, although there is also the Arch wiki to help you with all those VirtualBox questions.

          1.    ppsalama said

            graciassssssss

    2.    elav said

      Well, basically that's how it installs. But then when you run it, if you don't do everything else, then errors may appear 😉

      1.    ppsalama said

        Thank you ... I wrote the previous comment when yours arrived
        salu2

        1.    eliotime3000 said

          It is true. See if there will be a plugin that comes out with messages like "A new comment at the top / bottom" as in Disqus.

  9.   / Dev / null said

    The truth is that I use Debian, but the person that I always have next to me uses arch, and it doesn't bother me at all, but I'm faithful, I keep my DEBIAN

    1.    eliotime3000 said

      Well, I'm adept at Debian and Slackware, but the one that best suits my needs is Slackware (although I like Iceweasel, it doesn't bother me with its constant updates).

  10.   / Dev / null said

    Actually I've been with linux for a while, well actually I'm going for a year, and I started with debian and I'm dying with debian + KDE

    1.    elav said

      Excuse me .. What is this comment supposed to mean? We are talking about installing VirtualBox on ArchLinux. 🙁

      1.    eliotime3000 said

        So we all started. You may be using the terminal in a month and a half.

        1.    / Dev / null said

          I use ends 8 months ago because I adore the little black screen

          1.    eliotime3000 said

            Well, with Arch or Slackware, you're going to love it a lot more.

  11.   / Dev / null said

    You are not going to change my mind ...... I do not say the name of my favorite distro again because otherwise my friend Elav scolds me ... hahahaha
    no seriously, look, debian is something special for me, I'm not saying that arch is a small thing, but it's my criteria, let you know that on my laptop I have two stickers, one of arch and one of debian, appear and one of batman, or no, 2., they are 2 of batman ... XD

    1.    eliotime3000 said

      Well, what I love about Debian is the versatility it has on its platforms (and at home I have my PC with Wheezy with the Iceweasel release), and about Slackware, it's the absolute modularity it gives me when managing its packages. .

      I recently migrated from GNOME 3.4 to KDE due to a collapse of the first when executing Nautilus with FileRoller as superuser, and when decompressing files, it froze and the panel disappeared so many times lower.

    2.    msx said

      Aha, at "your discretion" of linuxear * a little over a year *.

      Well, when you have a little more we will talk about Arch Linux again.

  12.   to that said

    Very good, I honestly haven't used vbox for a long time.
    Although I see sudo and the first thing I think is that it is ubuntu 😛
    KISS

    1.    eliotime3000 said

      SUDO is like an additional layer to be able to use certain functions as superuser, but limited.

      Personally, I am not used to using SUDO until now and I directly use superuser on my Debian PC.

  13.   chinoloco said

    Hello elav. Thanks for doing this kind of tutoring, for people who are just starting out, like me.
    I really like this page, because it is not elitist.
    Greetings.

    1.    eliotime3000 said

      To tell the truth, I've already downloaded the Arch ISO so that I can experience firsthand what many of the archers felt when they installed that KISS + RTFM distro for the first time.

  14.   Rodolfo said

    Hi, I use virtualbox when I am using a Linux (ubuntu, fedora or openSUSE) to do my lan networks and practice servers with win clients, linux, etc., I generally use distros like debian, centos, ubuntu server for servers or better yet a BSD, I have the need to make a bridge or bridge, put some machines on the internal network and the servers put them as a bridge with the physical pc that serves as a gateway and that gives the internet, it has been easy for me to do with virtualbox, with kvm-quemu once I tried, but it was not easy, and I could not do everything I did or do with virtualbox, could you help us by doing a tutorial (I would be very grateful) friend on how to bridge between the virtual machine either of any operating system and the physical machine with kvm-quemu using graphical interface? repeated greetings.

  15.   leonardopc1991 said

    Thanks i will try

  16.   Marco Lopez said

    ArchiLinux, I'm also testing it, only that I have small problems but it is great and it would have been better to also know how to install GuestAdditions with Windows being the Host and ArchLinx also the virtual one. Greetings 😀

  17.   leonardopc1991 said

    We only put: sudo gpasswd -a $ USER vboxusers or instead of $ USER the name of the user is put in my case sudo gpasswd -a $ leonardopc1991 vboxusers, that's just my question

    1.    lifter said

      only $ USER

    2.    Phaquencio said

      NO ! you put the name of your user of your arch if your user is leonardoLOL gpasswd -a leonardoLOL vboxusers without the $ sign

  18.   vampire said

    It works wonders for me, only when installing VirtualBox Extension Pack from the downloadable version 4.2.18 no longer lets me start, I have to remove the extension and the virtual one is also 4.2

  19.   patodx said

    It is never too late to thank you for the installation guide ...
    greetings.

  20.   Rodrigo Moreno said

    hi can someone help me with this virtualbox problem. having some virtual disks turned off, delete from my home the folder called VirtualBox VMs. And now I get Inaccessible to those disks in virtualbox, but I can't delete them or anything.

    What do I do to erase that? Thanks.

    leave image

    https://lh3.googleusercontent.com/-QjgzoK1r8Qs/UrcWCLtmAEI/AAAAAAAAAf8/iTzC5SELljk/w744-h582-no/Captura+de+pantalla+-+221213+-+11%253A36%253A57.png

  21.   Eddy holliday said

    Good contribution. You helped me a lot on my Manjaro Linux.

  22.   static said

    Suggestion with Systemd there is an error if the bridge between the wireless and wired network is used, something cumbersome happened to me installing an LTSP server in which I need to bridge both networks and the solution was this command

    $ sudo vboxreload

    regards

  23.   Juan Carlos said

    Greetings to all, look I follow the steps but the terminal gives me this error, and I don't know what to do:
    [carlos @ Carlos-PC ~] $ su
    Password:
    [root @ Carlos-PC carlos] # modprobe vboxdrv
    modprobe: FATAL: Module vboxdrv not found.
    [root @ Carlos-PC carlos] #
    If you can give me a hand, I appreciate it, thank you.

  24.   guardian said

    It really needs an update this topic I have the same error and see the date of my comment, can it be said that these installation steps are obsolete?

  25.   Jacob tuz said

    They deserve a beer, how do I get it to them?

  26.   Jose said

    Hello, I installed virtual box in linux arch gnome, I followed all the steps but when executing it, it does not start virtual, what did I do wrong?

  27.   jaimenadal said

    If you want to create a virtual machine with a bridge adapter, you must execute the following line:

    sudo modprobe vboxnetflt. If not, you get this error:

    Failed to open / create the internal network 'HostInterfaceNetworking-wlan0' (VERR_SUPDRV_COMPONENT_NOT_FOUND).

    One of the kernel modules was not successfully loaded. Make sure that no kernel modules from an older verison of VirtualBox exist. Then try to recompile and reload the kernel modules by executing '/etc/init.d/vboxdrv setup' as root
    (VERR_SUPDRV_COMPONENT_NOT_FOUND).

    1.    jaimenadal said

      Sorry, I also forgot to add that you have to have the net-tools repertoire installed:

      sudo pacman -S net-tools.

      Edit the file:

      sudo nano /etc/modules-load.d/virtualbox.conf and add:

      vboxdrv
      vboxnetadp
      vboxnetflt

      Then, we execute on the command line:

      vboxreload

      This should clear up the error I mentioned earlier and allow us to automatically start VirtualBox with an available bridge adapter.