• How to install Virtualbox in Antergos (Tutorial).


    Hi, in the forum there are many questions about how to install Virtualbox, I’ll do this small guide for those who have doubts:

    [b:yeaf77i2]Prerequisites:
    [/b:yeaf77i2]

    We start from the basic idea that we are using the default kernel that comes in Antergos (“core”). Well simply:

    [b:yeaf77i2]Add the headers to the kernel:[/b:yeaf77i2]

    sudo pacman -S linux-headers
    

    [b:yeaf77i2]Installing VirtualBox:[/b:yeaf77i2][/size:yeaf77i2]

    [b:yeaf77i2]1 -Installation.[/b:yeaf77i2]

    sudo pacman -S virtualbox virtualbox-guest-iso
    

    [b:yeaf77i2]Note: virtualbox-host-modules [/b:yeaf77i2]package is also installed.
    As optional dependencies the installer offers a series of packages,i personally installed the following packages:

    vde2: Virtual Distributed Ethernet support
    net-tools: Host-only or bridged networking
    virtualbox-ext-vnc VNC server support

    sudo pacman -S vde2 net-tools virtualbox-ext-vnc
    

    [b:yeaf77i2]
    2 -Loading the modules manually.[/b:yeaf77i2]

    \# modprobe vboxdrv (as root)
    

    [b:yeaf77i2]
    3 -Autoloading modules at startup:[/b:yeaf77i2]

    sudo nano /etc/modules-load.d/virtualbox.conf
    

    vboxdrv
    vboxnetadp
    vboxnetflt
    vboxpci

    [b:yeaf77i2]4 -Add vboxusers usernames to the group:[/b:yeaf77i2]

    \# gpasswd -a $youruser vboxusers (as root)
    

    [b:yeaf77i2]5 -Optional steps:[/b:yeaf77i2]

    [b:yeaf77i2]
    To use USB in the virtual machine.[/b:yeaf77i2]

    $ yaourt -S virtualbox-ext-oracle
    

    … or if you prefer you go to the web page (virtualbox) and install it manually [b:yeaf77i2]virtualbox-extension-pack[/b:yeaf77i2]:

    [https://www.virtualbox.org/wiki/Downloads][0]">[https://www.virtualbox.org/wiki/Downloads][1]
    [http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack][0]">[http://download.virtualbox.org/virtualb][2] … ox-extpack

    [b:yeaf77i2]Important Note[/b:yeaf77i2]: With this method, each time a new version’s virtualbox is released is[b:yeaf77i2] highly recommended[/b:yeaf77i2] to install the [b:yeaf77i2]new extension-pack version[/b:yeaf77i2].

    …After:

    [b:yeaf77i2]Open Virtualbox:[/b:yeaf77i2]
    [b:yeaf77i2]
    File —> Preferences —> Extensions (and install the package that you has downloaded from virtualbox page):[/b:yeaf77i2]

    [[img:yeaf77i2]http://i273.photobucket.com/albums/jj229/hectorsales/Seleccioacuten_001_zpsc5051375.png[/img:yeaf77i2][/url:yeaf77i2]

    More information : [https://wiki.archlinux.org/index.php/Virtualbox][4]

    Best Regards,

    Héctor.][3]

    [0]: <a href=
    [1]: https://www.virtualbox.org/wiki/Downloads
    [2]: http://download.virtualbox.org/virtualb
    [3]: http://s273.photobucket.com/user/hectorsales/media/Seleccioacuten_001_zpsc5051375.png.html:yeaf77i2
    [4]: https://wiki.archlinux.org/index.php/Virtualbox

  • Hi, in the forum there are many questions about how to install Virtualbox, I’ll do this small guide for those who have doubts:

    [b:yeaf77i2]Prerequisites:
    [/b:yeaf77i2]

    We start from the basic idea that we are using the default kernel that comes in Antergos (“core”). Well simply:

    [b:yeaf77i2]Add the headers to the kernel:[/b:yeaf77i2]

    sudo pacman -S linux-headers
    

    [b:yeaf77i2]Installing VirtualBox:[/b:yeaf77i2][/size:yeaf77i2]

    [b:yeaf77i2]1 -Installation.[/b:yeaf77i2]

    sudo pacman -S virtualbox virtualbox-guest-iso
    

    [b:yeaf77i2]Note: virtualbox-host-modules [/b:yeaf77i2]package is also installed.
    As optional dependencies the installer offers a series of packages,i personally installed the following packages:

    vde2: Virtual Distributed Ethernet support
    net-tools: Host-only or bridged networking
    virtualbox-ext-vnc VNC server support

    sudo pacman -S vde2 net-tools virtualbox-ext-vnc
    

    [b:yeaf77i2]
    2 -Loading the modules manually.[/b:yeaf77i2]

    \# modprobe vboxdrv (as root)
    

    [b:yeaf77i2]
    3 -Autoloading modules at startup:[/b:yeaf77i2]

    sudo nano /etc/modules-load.d/virtualbox.conf
    

    vboxdrv
    vboxnetadp
    vboxnetflt
    vboxpci

    [b:yeaf77i2]4 -Add vboxusers usernames to the group:[/b:yeaf77i2]

    \# gpasswd -a $youruser vboxusers (as root)
    

    [b:yeaf77i2]5 -Optional steps:[/b:yeaf77i2]

    [b:yeaf77i2]
    To use USB in the virtual machine.[/b:yeaf77i2]

    $ yaourt -S virtualbox-ext-oracle
    

    … or if you prefer you go to the web page (virtualbox) and install it manually [b:yeaf77i2]virtualbox-extension-pack[/b:yeaf77i2]:

    [https://www.virtualbox.org/wiki/Downloads][0]">[https://www.virtualbox.org/wiki/Downloads][1]
    [http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack][0]">[http://download.virtualbox.org/virtualb][2] … ox-extpack

    [b:yeaf77i2]Important Note[/b:yeaf77i2]: With this method, each time a new version’s virtualbox is released is[b:yeaf77i2] highly recommended[/b:yeaf77i2] to install the [b:yeaf77i2]new extension-pack version[/b:yeaf77i2].

    …After:

    [b:yeaf77i2]Open Virtualbox:[/b:yeaf77i2]
    [b:yeaf77i2]
    File —> Preferences —> Extensions (and install the package that you has downloaded from virtualbox page):[/b:yeaf77i2]

    [[img:yeaf77i2]http://i273.photobucket.com/albums/jj229/hectorsales/Seleccioacuten_001_zpsc5051375.png[/img:yeaf77i2][/url:yeaf77i2]

    More information : [https://wiki.archlinux.org/index.php/Virtualbox][4]

    Best Regards,

    Héctor.][3]

    [0]: <a href=
    [1]: https://www.virtualbox.org/wiki/Downloads
    [2]: http://download.virtualbox.org/virtualb
    [3]: http://s273.photobucket.com/user/hectorsales/media/Seleccioacuten_001_zpsc5051375.png.html:yeaf77i2
    [4]: https://wiki.archlinux.org/index.php/Virtualbox

  • Very useful post, thanks Hector! I am going to make it a sticky, but it would be even better as a wiki article hehe

    Just two things I’d like to add regarding this topic…

    1. Be sure that you enable dkms so that the kernel modules will be automatically rebuilt for every new kernel version.:

    sudo systemctl enable dkms
    

    2. Pay attention when you install updates. There can sometimes be a delay between when a new kernel version is available and when the bumped version of virtualbox is available (usually within 24 hours). Be mindful of this and anytime you see a kernel update but not a virtualbox update you should cancel and hold back on the kernel.

    Cheers!

    PS>> This should go without saying BUT…A system reboot is required after installing a kernel update. ALWAYS.

  • @“lots.0.logs”:2u0pm9xg said:

    Very useful post, thanks Hector! I am going to make it a sticky, but it would be even better as a wiki article hehe

    Just two things I’d like to add regarding this topic…

    1. Be sure that you enable dkms so that the kernel modules will be automatically rebuilt for every new kernel version.:

    Código: Seleccionar todo
    sudo systemctl enable dkms[/quote:2u0pm9xg]

    Hi, I think [b:2u0pm9xg]dkms [/b:2u0pm9xg] is not necessary if you use the custom kernel:

    virtualbox-host-modules [/b:2u0pm9xg]package [b:2u0pm9xg]works fine[/b:2u0pm9xg] with custom kernels of the same version of the Arch Linux stock kernel such as linux-ck. Since the virtualbox-host-modules comes with the official Arch Linux kernel (linux) as a dependency and if you do not use that kernel, install [b:2u0pm9xg]virtualbox-host-dkms[/b:2u0pm9xg] instead.

    [https://wiki.archlinux.org/index.php/Virtualbox][0]">[https://wiki.archlinux.org/index.php/Virtualbox][1]

    The use of the package[b:2u0pm9xg] dkms[/b:2u0pm9xg] is to the the users that are using a custom kernel which is not of the same version of the Arch Linux stock one.

    @“lots.0.logs”:2u0pm9xg said:

    2. Pay attention when you install updates. There can sometimes be a delay between when a new kernel version is available and when the bumped version of virtualbox is available (usually within 24 hours). Be mindful of this and anytime you see a kernel update but not a virtualbox update you should cancel and hold back on the kernel.

    Ok, Usually when there’re a new kernel update is released a new version’s virtualbox-host-modules is updated (This is so that the new kernel does not break virtualbox ).

    [b:2u0pm9xg]Note: [/b:2u0pm9xg]I installed Antergos in May, first with gnome and then with Kde and i never installed dkms and I had no problem which Virtualbox.

    Best Regards,

    Héctor.

    [0]: <a href=
    [1]: https://wiki.archlinux.org/index.php/Virtualbox

  • @“hector”:3qczdj1n said:

    Hi, I think dkms is not necessary if you use the custom kernel: [/quote:3qczdj1n]This may have changed since I first began using Arch almost three years ago…wow didn’t realize it had been that long! Anyway, if it’s no longer needed then forget I mentioned it!

    @“hector”:3qczdj1n said:

    Ok, Usually when there’re a new kernel update is released a new version’s virtualbox-host-modules is updated (This is so that the new kernel does not break virtualbox ).[/quote:3qczdj1n]They are not ALWAYS released at exactly the same time. It depends on the daily schedules of the package maintainers. Just recently I couldnt figure out why vbox wasn’t working and wasted a good 30 minutes because the virtualbox modules package had not been bumped up and rebuilt for the kernel update I installed earlier that day. It may not happen often but its something to be aware of

    Best Regards,
    Dustin

  • I agree with you

    Active: failed (Result: exit-code) since mar 2014-06-03 18:11:03 CEST; 5min ago
    Docs: man:systemd-modules-load.service(8)
    man:modules-load.d(5)
    Process: 147 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
    Main PID: 147 (code=exited, status=1/FAILURE)

    [b:3mhfz0o7]jun 03 18:11:03 antergos systemd-modules-load[147]: Inserted module 'vboxdrv’
    jun 03 18:11:03 antergos systemd-modules-load[147]: Failed to insert 'vboxnetadp’
    jun 03 18:11:03 antergos systemd-modules-load[147]: Failed to insert ‘vboxnetflt’[/b:3mhfz0o7]
    jun 03 18:11:03 antergos systemd[1]: systemd-modules-load.service: main pro…RE
    jun 03 18:11:03 antergos systemd[1]: Failed to start Load Kernel Modules.
    jun 03 18:11:03 antergos systemd[1]: Unit systemd-modules-load.service ente…e.

    [b:3mhfz0o7]jun 03 18:11:03 antergos systemd-modules-load[147]: Inserted module 'vboxdrv’
    jun 03 18:11:03 antergos systemd-modules-load[147]: Failed to insert ‘vboxnetadp’: Invalid argument
    jun 03 18:11:03 antergos systemd-modules-load[147]: Failed to insert ‘vboxnetflt’: Invalid argument[/b:3mhfz0o7]

    Best Regards

    Héctor.

  • Muchas gracias por el tutorial Tocayo, siempre he querido instalar el virtual box pero me hacía bolas. Saludos

  • Great tutorial Hector & easily explained for all new users.

    "It's mind over matter, if you don't have a mind it doesn't matter"

  • Thanks for the tutorial, good explained.
    I am installing, no problems.

    Regards.

    Roberto Serrano

    Edit:
    This post would be nice to find it in the wiki.

    /dev/null

  • I think in the future antergos should offer a helper of some kind automatically create what is needed to get virtualbox to work without the end user having to manually edit a file.
    I can understand arch not doing this as arch is made for command line freaks but if antergos is aiming at beginners it needs to offer some helpers.

  • @hector
    This is a pretty good tutorial, thanks for doing this for people.


    @“MadmanRB”:2ilbij47 said:

    I think in the future antergos should offer a helper of some kind automatically create what is needed to get virtualbox to work without the end user having to manually edit a file.[/quote:2ilbij47]
    The problem is that not everyone needs all of the modules loaded, in this example he mentioned 4 but only the 1st one is vital, the rest are based on features. For example, I do not load the 4th module because I do not use it so my conf file is not the same.

    @“MadmanRB”:2ilbij47 said:

    I can understand arch not doing this as arch is made for command line freaks but if antergos is aiming at beginners it needs to offer some helpers.[/quote:2ilbij47]
    Antergos is NOT aiming at beginners. Antergos IS Arch, fundamentally and structurally you are still using Arch and people need to know this. Antergos is available and makes Arch usable to everyone who wants to try it but that does not mean it is for anyone and everyone. If you use Antergos you are still making a commitment to use Arch thus the pros and cons that come with Arch.

    Personal: http://michaeltunnell.com
    Business: http://visuex.com

  • This tutorial guarantee that virtual box could be installe Arhc Linux Systems in Virtual Machine without errors? I tried install manjaro, apricity and antergos in a virtual box in Antergos and i never could install this. And when i installed deepin, his installation was veri slow and his performance was very poor.

  • This post is deleted!
  • Guys? guarantees tis tutorial a good performance for virtual box?

  • @hector hey man thank you :+1: )

Posts 15Views 14234
Log in to reply