Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

  1. #11
    Join Date
    Jun 2020
    Beans
    83
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    No it shows some error like pre-removal script subprocess returned error exit status 1.

  2. #12
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    A problem for us is that we [might] have installed VirtualBox some other way, and therefore cannot reproduce exactly the errors that you get. For that reason it is important that you show exactly what you do and how the system responds (copy&paste the commands and the output to a new post in this thread).

    Let us hope that someone will recognize your problem and help you solve it.

  3. #13
    Join Date
    Jun 2020
    Beans
    83
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    This is what happens on trying to remove it:

    Code:
    sudo apt remove virtualbox-6.1 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libmessaging-menu0 linux-headers-5.8.0-53-generic
      linux-hwe-5.8-headers-5.8.0-53 linux-image-5.8.0-53-generic
      linux-modules-5.8.0-53-generic linux-modules-extra-5.8.0-53-generic
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
      virtualbox-6.1
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 216 MB disk space will be freed.
    Do you want to continue? [Y/n] Y
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    (Reading database ... 245854 files and directories currently installed.)
    Removing virtualbox-6.1 (6.1.22-144080~Ubuntu~eoan) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing package virtualbox-6.1 (--remove):
     installed virtualbox-6.1 package pre-removal script subprocess returned error e
    xit status 1
    dpkg: too many errors, stopping
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
    rocess: Resource temporarily unavailable
    vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
    
    There were problems setting up VirtualBox.  To re-start the set-up process, run
      /sbin/vboxconfig
    as root.  If your system is using EFI Secure Boot you may need to sign the
    kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
    them. Please see your Linux system's documentation for more information.
    Errors were encountered while processing:
     virtualbox-6.1
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Last edited by deadflowr; June 23rd, 2021 at 05:18 PM. Reason: code tags

  4. #14
    Join Date
    Jun 2020
    Beans
    83
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    And this is what I get to see when I try to start a created Virtual machine on virtualbox:

    Kernel driver not installed (rc=-1908)

    The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

    '/sbin/vboxconfig'

    as root.

    If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

    where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

  5. #15
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    Are you booting in UEFI mode and are you using 'secure boot'? Please check in the UEFI/BIOS system of the computer.

    If secure boot is on, it should be possible to turn it off, reboot, and then try again with VirtualBox.

  6. #16
    Join Date
    Jun 2020
    Beans
    83
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    Yeah I have UEFI and sercure boot both since I purchased the computer. I can run the virtual machine after signing kernels, however I haven't tried to uninstall.

  7. #17
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    I think your computer is safe, when you turn off secure boot, and then we can expect that VirtualBox will work. I think it is very complicated to sign the VirtualBox modules, and not at all worth the effort.

  8. #18
    Join Date
    Aug 2013
    Beans
    4,728

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    BTW, VB messes up your python in Ubuntu-20.04. After you remove it, make sure you install the package

    python-is-python3

    VB installs python-is-python2 as a dependency and sets your default python to python2, which is unmaintained and kind of broken (since there are only some core packages in Ubuntu-20.04 for legacy software), this may mess up other applications that depend on python. so until VB retires python2 or makes it a recommended only package I don't recommend it for Ubuntu 20.04 or newer (it doesn't really need python except for scripting) At least this should come with a warning.
    Last edited by monkeybrain20122; June 23rd, 2021 at 10:19 PM.

  9. #19
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    I'm sold on KVM and Virtual Manager also, as some other's mentioned, over using VirtualBox... but that is a personal preference.

    Getting back to "light versions"... Which also is personal preferences...

    Have you thought about installing a VM of Ubuntu Core? Then minimal XServer, and what flavor of a grahical logon manager, with flavor(s) of Desktop Environments. Then you could install light-weight applications as needed. The thing with Linux is that you can interchange things as you please.

    For instance, with LightDM as a DM, you can easily change which DE you want to use. OpenBox is a very lightweight DE, but then you have to edit the OpenBox aplications menu manually with the OpenBox Menu editor.

    If you want something really light, don't install a login manager, and install just OpenBox. It will boot to the virtual TTY's. On starting X, use startX, which will boot X and OpenBox (or whatever is in the rcinit scripts). On exiting OpenBox, it then unloads the DE and X back down to the TTY's.

    That option is limitless to what you want to do, and end up with... Based on your preferences and choices.

    In that manner, you can create something that will run in a 256MB to 1GB RAM container, depending on the combination you create.

    And on a VM, you can play with the assigned RAM, to see how it runs and works in the recources you give it.
    Last edited by MAFoElffen; June 24th, 2021 at 08:33 PM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  10. #20
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Suggest some Light-weight OS to run in virtualbox on Ubuntu 20.04.2

    Quote Originally Posted by EngineerStrange View Post
    This is what happens on trying to remove it:

    Code:
    sudo apt remove virtualbox-6.1 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libmessaging-menu0 linux-headers-5.8.0-53-generic
      linux-hwe-5.8-headers-5.8.0-53 linux-image-5.8.0-53-generic
      linux-modules-5.8.0-53-generic linux-modules-extra-5.8.0-53-generic
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
      virtualbox-6.1
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 216 MB disk space will be freed.
    Do you want to continue? [Y/n] Y
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    (Reading database ... 245854 files and directories currently installed.)
    Removing virtualbox-6.1 (6.1.22-144080~Ubuntu~eoan) ...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: error processing package virtualbox-6.1 (--remove):
     installed virtualbox-6.1 package pre-removal script subprocess returned error e
    xit status 1
    dpkg: too many errors, stopping
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
    rocess: Resource temporarily unavailable
    vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
    
    There were problems setting up VirtualBox.  To re-start the set-up process, run
      /sbin/vboxconfig
    as root.  If your system is using EFI Secure Boot you may need to sign the
    kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
    them. Please see your Linux system's documentation for more information.
    Errors were encountered while processing:
     virtualbox-6.1
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Going back to what you tried... It broke leaving a broken VBox system while trying to remove it, but then, could not roll back to a working VBox system. It's in currenlty in "Limbo."

    In dmesg check to see if there is any addition hints on why the vbox kernel drivers are loading or not:
    Code:
    dmesg --facility kern | grep -A6 -i "vbox"
    And/or checking if the vbox* are loaded as a modules
    Code:
    lsmod | grep -i "vbox"
    You should get output simular to this:
    Code:
    vboxpci                24576  0vboxnetadp             28672  0
    vboxnetflt             28672  0
    vboxdrv               454656  3 vboxnetadp,vboxnetflt,vboxpci
    Your output gave you this hint to correct it:
    Code:
    To re-start the set-up process, run  /sbin/vboxconfig
    # As root or
    sudo /sbin/vboxconfig
    If that fails, then I suspect it's because it's still in limbo somehow... It said it couldn't roll back. Relinstalling VirtualBox would then fix that with less effort..

    To get back to where you were, since it said it had lock problems... unlock any file locks that will affect apt:
    Code:
    sudo rm /var/lib/apt/lists/lock
    sudo rm /var/lib/dpkg/lock
    sudo rm /var/lib/dpkg/lock-frontend
    sudo rm /var/cache/apt/archives/lock
    sudo apt-get install -f
    sudo apt-get clean
    sudo apt-get update --fix-missing
    apt-get --reinstall install virtualbox-6.1
    But if your goal is to continue to remove VirtualBox, unload the 4 VBox kernel modules on-demand, in realtime, then remove the Vbox package (that way, nothing of vbox is being used and causing any conflict):
    Code:
    sudo modprobe -r vbox*
    sudo apt-get remove --purge virtualbox-6.1
    Last edited by MAFoElffen; June 24th, 2021 at 10:03 PM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •