Trace: » linux09.html

[hemmerling] Linux 9/12 - Virtualisation with Linux

KVM

Installation by User "node11"

brctl

  • List all bridges:
    sudo brctl show

nmcli

virsh

virt-install

  • Error message:
    ERROR    Disk /var/lib/libvirt/images/IMAGE.img is already in use by other guests ['GUEST']. (Use --check path_in_use=off or --check all=off to override)
    

Calling KVM

VirtualBox

Installation on AlmaLinux

    • “​Fedora 40 / 41 / 42” - Installation works fine on AlmaLinux 10 :-).
    • “​Oracle Linux 10 / Red Hat Enterprise Linux 10” - Error message on AMD/Intel 64-bit (x86-64-v2) hardware
      CPU ISA level is lower than required
    • “​Oracle Linux 9 / Red Hat Enterprise Linux 9” - Installation is aborted on AlmaLinux 10 by the error message
      Error: 
       Problem: conflicting requests
        - nothing provides libvpx.so.6()(64bit) needed by VirtualBox-7.1-7.1.12_169651_el9-1.x86_64 from @commandline
      (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

VirtualBox Extension Pack

  • Installation of the extension pack by the “Install” button. Error message
    Can't enumerate USB devices.
    VirtualBox is not currently allowed to access USB devices. You can change this by adding your user to the "vboxusers" group. Please see your user manual for a more detailed explanation.
    
  • Adding the user to the group “vboxusers”
    $ sudo usermod -a -G vboxusers $USER
  • After a reboot ( not just logout & login from Linux ), the error message isn't displayed anymore.
    $ groups $USER

VirtualBox Guest Additions

ISO Image

  • After installation of VirtualBox 7.1.12, I found an guest addition ISO at /usr/share/virtualbox/VBoxGuestAdditions.iso.

Installation by VirtualBox App

  • “Devices / Insert Guest Additions CD image...”.
  • Error message:
    VirtualBox - Error
    Unable to insert the virtual optical disk /usr/share/virtualbox/VBoxGuestAdditions.iso into the machine vnode11.
    Could not mount the media/drive "/usr/share/virtualbox/VBoxGuestAdditions.iso" ( VERR_PDM_MEDIA_LOCKED ).
    

Installation by Script

  • Installation:
    1. Mount /usr/share/virtualbox/VBoxGuestAdditions.iso
      1. By the “Files” desktop app, mouse-rightclick “Open With Disk Image Mounter”.
      2. By console
        $ sudo mount -r /usr/share/virtualbox/VBoxGuestAdditions.iso /run/media/node11
        $ sudo umount /usr/share/virtualbox/VBoxGuestAdditions.iso 
        
    2. By console, visit the directory ( “node11” is my username ).
      $ cd /run/media/node11/VBox_GAs_7.1.121
    3. Installation failed on AmaLinux 10:
      $ sudo sh ./VBoxLinuxAdditions.run
      
      VirtualBox Guest Additions installer
      ./install.sh: line 153: VBoxControl: command not found
      This system appears to have a version of the VirtualBox Guest Additions
      already installed.  If it is part of the operating system and kept up-to-date,
      there is most likely no need to replace it.  If it is not up-to-date, you
      should get a notification when you start the system.  If you wish to replace
      it with this version, please do not continue with this installation now, but
      instead remove the current version first, following the instructions for the
      operating system.
      
      If your system simply has the remains of a version of the Additions you could
      not remove you should probably continue now, and these will be removed during
      installation.
      
      VirtualBox Guest Additions: Setting up modules
      VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
      modules.  This may take a while.
      VirtualBox Guest Additions: To build modules for other installed kernels, run
      VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
      VirtualBox Guest Additions: or
      VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
      VirtualBox Guest Additions: Building the modules for kernel 
      6.12.0-55.21.1.el10_0.x86_64_v2.
      VirtualBox Guest Additions: reloading kernel modules and services
      VirtualBox Guest Additions: unable to load vboxguest kernel module, see dmesg
      VirtualBox Guest Additions: kernel modules and services were not reloaded
      The log file /var/log/vboxadd-setup.log may contain further information.
      

VirtualBox Kernel Service

  • Error message after login
    VBoxClient: the VirtualBox kernel service is not running. Exiting.
    

Installation of Guest AlmaLinux 10 on Host AlmaLinux 10

Guest Setup & Host Configuration

  • Unattended Guest Installation requires a domain name :-(.
    • Name: “vnode11”.
    • Folder: ”/home/node11/Virtual Box VMs”. This is a host setting!
    • Username: “vnode11”. Password: “vnode11”.
    • Hostname: “vnode11”.
    • Domain name: “myguest.virtualbox.org” ( can't be empty :-(, at least 3 characters. Thats why I decided not to use this option ).
    • [x] Guest additions ”/usr/share/virtualbox/VBoxGuestAdditions.iso”.
  • Error message
    Powering VM up...
    VirtualBox can't operate in VMX mode. Please disable the KVM kernel extension, recompile your kernel and reboot ( VERR_VMX_IN_VMX_ROOT_MODE ).
  • Stop KVM by unloading KVM modules ( and reloading of KVM modules ) on AlmaLinux 10, temporarily. I.e. you must repeat the action after each reboot:
    # Unloading modules
    sudo modprobe -r kvm_intel
    sudo modprobe -r kvm<
    # Loading modules
    sudo modprobe kvm_intel
    sudo modprobe kvm
  • The alternative is to remove KVM permanently, by KVM kernel recompilation, kernel replacement and reboot.

Guest Network Installation

  • Network is detected on my notebook “ASUS K95VB”:
    • Ethernet: “enp0s3”.
    • Hardware address: “08:00:EB:87:96”.
    • IPv4 Address: 10.0.2.15/24
    • IPv6 Address: “fd17:625c:f037:2:cb58:e688:473d:”
    • Default Route: “10.0.2.2”.
    • DNS: “10.0.2.3”.
  • System message after boot of the Guest operating system “AlmaLinux 10”, at system prompt:
    block-dm-0: the capability attribute has been deprecated.
    

Virtual Appliance

Documentation

Resources

VMWare Workstation Pro & VMWare Player

Software

Installation of Guest AlmaLinux 10 on Host AlmaLinux 10

Make .bundle executable

Host Setup

  • Disk File: ”/home/node11/vmware/Alma10/Alma10.vmdk”.

Guest Setup

  • Root password: “vnode11”.
  • User: “vnode11”. Password: “vnode11”.

Guest Network Installation

  • Network is detected on my notebook “ASUS K95VB”:
    • Ethernet: “ens160”.
    • Hardware address: “00:0C:29:FB:E5:77”.
    • IP Address: 172.16.16.128/24
    • Default Route: “176.16.16.2”.
    • DNS: “176.16.16.2”.
    • Host Name: “vnode11”.
  • System messages after boot of the Guest operating system “AlmaLinux 10”, at system prompt:
    block-dm-0: the capability attribute has been deprecated.
    
    block nvme0n1: No UUID available prviding old NGUID
    
    hrtimer:  interrupt took 5000473 ms
    

VMware Workstation Pro

  • “Virtual Machine / Install VMware Tools...” is grayed :-(, i.e. can't be executed.

VMware Player

VMware Tools

Virtual Appliance

Virtual Appliance

OSboxes

Bitnami’s free Community Application Catalog & Bitnami Secure Images

open-vm-tools

Resources

Resources


When this document changes ! Site Navigation ( My Business ! My Topics ! Imprint / Contact ! Privacy Policy ! Keyword Index ! ! Google+ Publisher "hemmerling" )

 
en/linux09.html.txt · Last modified: 2025/08/04 21:27 (external edit) · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki