The officially official Devuan Forum!

You are not logged in.

#1 2023-09-03 15:19:10

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 98  

How To install a virtual machine inside devuan chimaera, later stable

I need to speed up changes without breaking production platform(s).
Therefore I need to have a virtual machine for three purposes inside devuan chimaera

  • Run the already installed Win10 of this host for the purpose of updating my Navi from G????n. About every 4 weeks without necessarily restarting the computer.

  • copy the local distro installation and test the update  / upgrade / dist-upgrade e.g. to daedalus for this machine

  • test a fresh install of daedalus for this machine

eventually upgrade to daedalus and stable and

  • continue to have an experimental playground for testing things.

A net search is dominated by results on running *n?x inside a win$ows environment OMFG and other commercial solutions.

this workstation failed badly on updating to daedalus. dpkg locked in on the non-free nvidia driver. It broke the distro upgrade and it needed a fresh install.
This took days. The Reinstall is described elsewhere here.
Therefore I am careful || wary || overcautious || paranoid , when tinkering on production systems. Select as appropriate.

I started now with installing various packages

dpkg -l | grep -E "xen|virt|kvm"
ii  gir1.2-libvirt-glib-1.0:amd64           3.0.0-1                            amd64        GObject introspection files for the libvirt-glib library
ii  grub-xen                                2.06-3~deb11u5                     amd64        GRand Unified Bootloader, version 2 (Xen version)
ii  grub-xen-bin                            2.06-3~deb11u5                     amd64        GRand Unified Bootloader, version 2 (Xen modules)
ii  grub-xen-host                           2.06-3~deb11u5                     amd64        GRand Unified Bootloader, version 2 (Xen host version)
ii  gvfs:amd64                              1.46.2-1                           amd64        userspace virtual filesystem - GIO module
ii  gvfs-backends                           1.46.2-1                           amd64        userspace virtual filesystem - backends
ii  gvfs-common                             1.46.2-1                           all          userspace virtual filesystem - common data files
ii  gvfs-daemons                            1.46.2-1                           amd64        userspace virtual filesystem - servers
ii  gvfs-libs:amd64                         1.46.2-1                           amd64        userspace virtual filesystem - private libraries
ii  libvirt-clients                         7.0.0-3+devuan3                    amd64        Programs for the libvirt library
ii  libvirt-daemon                          7.0.0-3+devuan3                    amd64        Virtualization daemon
ii  libvirt-daemon-config-network           7.0.0-3+devuan3                    all          Libvirt daemon configuration files (default network)
ii  libvirt-daemon-config-nwfilter          7.0.0-3+devuan3                    all          Libvirt daemon configuration files (default network filters)
ii  libvirt-daemon-driver-qemu              7.0.0-3+devuan3                    amd64        Virtualization daemon QEMU connection driver
ii  libvirt-daemon-driver-xen               7.0.0-3+devuan3                    amd64        Virtualization daemon Xen connection driver
ii  libvirt-daemon-system                   7.0.0-3+devuan3                    amd64        Libvirt daemon configuration files
ii  libvirt-daemon-system-sysv              7.0.0-3+devuan3                    all          Libvirt daemon configuration files (sysv)
ii  libvirt-glib-1.0-0:amd64                3.0.0-1                            amd64        libvirt GLib and GObject mapping library
ii  libvirt0:amd64                          7.0.0-3+devuan3                    amd64        library for interfacing with different virtualization systems
ii  libxencall1:amd64                       4.14.5+94-ge49571868d-1            amd64        Xen runtime library - libxencall
ii  libxendevicemodel1:amd64                4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxendevicemodel
ii  libxenevtchn1:amd64                     4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxenevtchn
ii  libxenforeignmemory1:amd64              4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxenforeignmemory
ii  libxengnttab1:amd64                     4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxengnttab
ii  libxenhypfs1:amd64                      4.14.5+94-ge49571868d-1            amd64        Xen runtime library - libxenhypfs
ii  libxenmisc4.14:amd64                    4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - miscellaneous, versioned ABI
ii  libxenstore3.0:amd64                    4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxenstore
ii  libxentoolcore1:amd64                   4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxentoolcore
ii  libxentoollog1:amd64                    4.14.5+94-ge49571868d-1            amd64        Xen runtime libraries - libxentoollog
ii  python3-libvirt                         7.0.0-2                            amd64        libvirt Python 3 bindings
ii  qemu-efi-aarch64                        2020.11-2+deb11u1                  all          UEFI firmware for 64-bit ARM virtual machines
ii  virt-manager                            1:3.2.0-3                          all          desktop application for managing virtual machines
ii  virtinst                                1:3.2.0-3                          all          utilities to create and edit virtual machines
ii  virtualbox-7.0                          7.0.10-158379~Debian~bullseye      amd64        Oracle VM VirtualBox
ii  xen-doc                                 4.14.5+94-ge49571868d-1            amd64        XEN documentation
ii  xen-hypervisor-4.14-amd64               4.14.5+94-ge49571868d-1            amd64        Xen Hypervisor on AMD64
ii  xen-hypervisor-common                   4.14.5+94-ge49571868d-1            all          Xen Hypervisor - common files
ii  xen-system-amd64                        4.14.5+94-ge49571868d-1            amd64        Xen System on AMD64 (metapackage)
ii  xen-tools                               4.9-1                              all          Tools to manage Xen virtual servers
ii  xen-utils-4.14                          4.14.5+94-ge49571868d-1            amd64        XEN administrative tools
ii  xen-utils-common                        4.14.5+94-ge49571868d-1            amd64        Xen administrative tools - common files
ii  xenstore-utils                          4.14.5+94-ge49571868d-1            amd64        Xenstore command line utilities for Xen

What I did not like that one of the WWWsites  wants me to install from oracle

ii  virtualbox-7.0                          7.0.10-158379~Debian~bullseye      amd64        Oracle VM VirtualBox

Can it be done with the devuan packages only ?
It should be done with the devuan packages only.

a:

  • A metapackage would be appreciated which does the right thing.

b:

  • A How To for devuan should result from this thread.

Last edited by bai4Iej2need (2023-09-04 16:47:15)


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#2 2023-09-03 16:37:04

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Re: How To install a virtual machine inside devuan chimaera, later stable

Virtualbox and its packages do not depend on systemd, so the original Debian files are passed through to ../merged into Devuan (like so many others).

If you don't like this there are two other ways to install VBox.

My preferred method is to load the deb from the Virtualbox website, copy it to /tmp and to install this via dpkg -i.

The other way is described on the Virtualbox website: you add a line into the sources.list and do an install with apt/apt-get/aptitude.

Last edited by rolfie (2023-09-03 16:38:12)

Offline

#3 2023-09-03 17:00:06

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,427  

Re: How To install a virtual machine inside devuan chimaera, later stable

These instructions will work with devuan repos. Don't use any debian.org repos.

https://wiki.debian.org/QEMU
https://wiki.debian.org/VirtualBox

Offline

#4 2023-09-08 12:54:34

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 98  

Re: How To install a virtual machine inside devuan chimaera, later stable

fsmithred wrote:

These instructions will work with devuan repos. Don't use any debian.org repos.

https://wiki.debian.org/QEMU
https://wiki.debian.org/VirtualBox

VirtualBox remains to ask for the non-free Oracle thing from the other website.
https://linuxize.com/post/how-to-instal … -on-debian
It remains qemu.

I installed xen-system-amd64 , but system became unbootable with dead displays. Deleted xen again.
Then I had to reinstall grub-efi-amd-64, which was deleted from the xen-install.
I keep on trying.


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#5 2023-09-08 18:56:26

Devarch
Member
Registered: 2022-10-03
Posts: 62  

Re: How To install a virtual machine inside devuan chimaera, later stable

Also you can run existing windows installation in virtual machine it is not recommended.

Normally, you do not need extension pack which is proprietary. In most cases guest-tools are OK.

I found yet another way to install virtualbox:

wget https://mxrepo.com/mx/repo/pool/main/m/mx23-archive-keyring/mx23-archive-keyring_2023.6.6_all.deb
apt-get install ./mx23-archive-keyring_2023.6.6_all.deb

nano /etc/apt/sources.list.d/mxlinux.list
deb http://mxrepo.com/mx/repo bookworm main non-free
deb http://mxrepo.com/mx/repo bookworm ahs

nano /etc/apt/preferences.d/mxlinux
Package: *
Pin: release a=mx
Pin-Priority: 100

apt-get update
apt-get install virtualbox virtualbox-guest-additions-iso

addgroup vboxsf
adduser your_user_name vboxsf
modprobe vboxdrv

nano /etc/modules   //add this line:
vboxdrv

Now you have fully functional virtualbox. It's for daedalus. For chimaera you can use

https://mxrepo.com/mx/repo/pool/main/m/mx21-archive-keyring/mx21-archive-keyring_2021.2.19_all.deb

and replace bookworm with bullseye

As a bonus mx repo contains a lot of useful software such as palemoon, tlpui, foliate etc.

Offline

#6 2023-09-08 19:25:32

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Re: How To install a virtual machine inside devuan chimaera, later stable

You can directly download VBox from this web page: https://www.virtualbox.org/wiki/Linux_Downloads

For Chimaera use the Debian11 file, for Daedalus the Debian12 file. Copy this file to /tmp and install it as root with dpkg -i . You may also download the extension pack if you require e.g. improved USB support.

Offline

Board footer