Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Virtual Machine (Read 3655 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Virtual Machine

I will likely need to set up a virtual machine to run a Django environment.  Vrtualbox, which I have installed before, obviously doesn't come with an Artix install out of the box.  I am wondering if anyone has worked on this and how they do it, instead of reinventing the wheel.  I'm sure our developer team has folks doing this.

Ruben

Re: Virtual Machine

Reply #1
pacman version is not working :(
Code: [Select]
[ruben@flatbush ~]$ virtualbox 
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.2.14-artix1-1-ARTIX) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

that probram isn't under /usr/sbin either

Re: Virtual Machine

Reply #2
pacman version is not working :(
Code: [Select]
[ruben@flatbush ~]$ virtualbox 
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.2.14-artix1-1-ARTIX) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

that probram isn't under /usr/sbin either
Do you have virtualbox modules installed (there are packages for artix mainline kernel and dkms)?
ARMtix

Re: Virtual Machine

Reply #3
I  believe so

Code: [Select]
[ruben@flatbush ~]$ sudo pacman -Ss virtualbox
galaxy/libvirt 5.6.0-1 [installed]
    API for controlling virtualization engines
    (openvz,kvm,qemu,virtualbox,xen,etc)
galaxy/virtualbox-guest-modules-artix 6.0.12-3 [installed]
    Virtualbox guest kernel modules for Artix Kernel
galaxy/virtualbox-guest-utils-openrc 20170919-1 (openrc-galaxy) [installed]
    OpenRC virtualbox-guest-utils init script
galaxy/virtualbox-host-modules-artix 6.0.12-3 [installed]
    Virtualbox host kernel modules for Artix Kernel
community/libvirt 5.6.0-1 [installed]
    API for controlling virtualization engines
    (openvz,kvm,qemu,virtualbox,xen,etc)
community/phpvirtualbox 5.2_1-1
    PHP/AJAX web interface for VirtualBox
community/virtualbox 6.0.12-2 [installed]
    Powerful x86 virtualization for enterprise as well as home use
community/virtualbox-ext-vnc 6.0.12-2 [installed]
    VirtualBox VNC extension pack
community/virtualbox-guest-dkms 6.0.12-2
    VirtualBox Guest kernel modules sources
community/virtualbox-guest-iso 6.0.12-1 [installed]
    The official VirtualBox Guest Additions ISO image
community/virtualbox-guest-modules-arch 6.0.12-8 [installed]
    Virtualbox guest kernel modules for Arch Kernel
community/virtualbox-guest-utils 6.0.12-2 [installed]
    VirtualBox Guest userspace utilities
community/virtualbox-guest-utils-nox 6.0.12-2
    VirtualBox Guest userspace utilities without X support
community/virtualbox-host-dkms 6.0.12-2
    VirtualBox Host kernel modules sources
community/virtualbox-host-modules-arch 6.0.12-8 [installed]
    Virtualbox host kernel modules for Arch Kernel
community/virtualbox-sdk 6.0.12-2 [installed]
    VirtualBox Software Developer Kit (SDK)

I also tried to start the
 sudo /etc/init.d/vboxservice start

Re: Virtual Machine

Reply #4
Works here.
Though has temporarily stopped working for a while quite a few times at the point of kernel upgrades and when virtualbox went from 5.xx to 6.xx

You seem to have a lot more virtualbox related packages installed than I do
Code: [Select]
pacman -Qs virtualbox
local/virtualbox 6.0.12-2
    Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-ext-oracle 6.0.12-1
    Oracle VM VirtualBox Extension Pack
local/virtualbox-host-modules-artix 6.0.12-3
    Virtualbox host kernel modules for Artix Kernel

Other than adding the vboxusers group to my user I don't recall any other issues ? but I might have forgotten ?

What errors , if any, do you get when you run sudo /etc/init.d/vboxservice start ?


Re: Virtual Machine

Reply #5
Works here.
Though has temporarily stopped working for a while quite a few times at the point of kernel upgrades and when virtualbox went from 5.xx to 6.xx

You seem to have a lot more virtualbox related packages installed than I do
Code: [Select]
pacman -Qs virtualbox
local/virtualbox 6.0.12-2
    Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-ext-oracle 6.0.12-1
    Oracle VM VirtualBox Extension Pack
local/virtualbox-host-modules-artix 6.0.12-3
    Virtualbox host kernel modules for Artix Kernel

Other than adding the vboxusers group to my user I don't recall any other issues ? but I might have forgotten ?

What errors , if any, do you get when you run sudo /etc/init.d/vboxservice start ?



Code: [Select]
vboxusers:x:108:
vboxsf:x:109:
are already in my group list.  I dodn't put them there so I suppose the package manger did.  I haad a conflict with the running kernel and the upgraded one that artix had.  This is one of the problems with constantly upgrading artix is the kernel upgrades means I have to do hard reboots nearly every week for the kernbel upgrades.

So you bring up a new issue, which is what is the vboxusers group securing?  I was able to start a virtrualbox now, but it is not finding a distro.  It is looking for an iso in this location

**NOTE FOund documentation on Oracle Web site**
Quote
2  Installation Details2.3.4  The vboxusers GroupThe Linux installers create the system user groupvboxusersduring installation.  Any systemuser who is going to use USB devices from Oracle VM VirtualBox guests must be a member ofthat group. A user can be made a member of the groupvboxusersthrough the GUI user/groupmanagement or using the following command:sudo usermod -a -G vboxusers username

Code: [Select]
Runtime error opening '/home/ruben/VirtualBox VMs/artix/artix.vbox' for reading: -102 (File not found.).
/build/virtualbox/src/VirtualBox-6.0.12/src/VBox/Main/src-server/MachineImpl.cpp[752] (nsresult Machine::i_registeredInit()).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
MachineWrap
Interface:
IMachine {5047460a-265d-4538-b23e-ddba5fb84976}

I don't even have a directory at this point.  I can download a fresh artix iso and install in the virtual machine (I did that for kernel hacking a few years ago when I was rewriting the scheduler).  But I would like to try to stay in the expections of that package.  Advise on how to proceed?