You are not logged in.
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
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
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
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
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
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
I have the VM now running with oracle VM. took some time
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
here you go;
qemu-img create -f qcow2 Unknown.qcow2 60G
qemu-system-x86_64 -m 3072 -cdrom Unknown.iso -boot d Unknown.qcow2 --enable-kvm
qemu-system-x86_64 --enable-kvm Unknown.qcow2 -cpu kvm64,+nx -m 4096 -device AC97
The below is for loading usbs in said vm:
qemu-system-x86_64 --enable-kvm Unknown.qcow2 -cpu kvm64,+nx -m 4096 -device AC97 -hdb /dev/sdb
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
You have 3 options.
1. For qemu/KVM do
apt-get install --install-recommends aqemu qemu-kvm qemu-system qemu-utils libvirt-daemon-system libvirt-clients bridge-utils virt-manager libguestfs-tools libosinfo-bin
Additionally for home use you can
nano /etc/libvirt/qemu.conf
add
user = "type_your_username_here"
group = "kvm"
sudo adduser `id -un` libvirt-qemu
sudo adduser `id -un` kvm
sudo adduser `id -un` libvirt-dnsmasq
sudo addgroup libvirtd
sudo adduser `id -un` libvirtd
/etc/libvirt/libvirt.conf
paste
#unix_sock_group = "libvirt"
#unix_sock_ro_perms = "0777"
#unix_sock_rw_perms = "0770"
If no sudo, use doas.
Then you have to define default network, something like (I'm not sure here)
virsh define default
virsh net-autostart default
Do not forget to add /etc/init.d/libvirtd service to autostart in your init system.
Finally you'll get usable qemu/KVM solution. But this is probably the worst solution.
Reasons:
too many components
bad shared folders for windows guest (try to run complex software even from virtiofs, good lack)
bridge on wifi? good lack
it looks for file in /var/log/libvirt, so if you are mounting /var on tmpfs take care
HiDPI display and Linux guest? Good lack. I've to use qxl only, manually increase video ram and then manually add new xorg resolution in the guest. I still don´t know how to do it with wayland.
Better solutions are virtualbox (but extensions are proprietary and Oracle is well known. Or. just use guest tools with limited functionality) or vmware workstation (also proprietary, but not as much scary).
2. For virtualbox do
apt-get install module-assistant
m-a prepare
then you can use mx-linux repository. Their virtualbox is 100% compatible with devuan.
For daedalus do
nano /etc/apt/sources.list.d/mxlinux.list
deb https://mxrepo.com/mx/repo/ bookworm main non-free
change bookworm to the previous version for chimaera (bullseye?)
then
nano /etc/apt/preferences.d/mxlinux
with the following context
Package: *
Pin: release a=mx
Pin-Priority: 100
go to
http://mxrepo.com/mx/repo/pool/main/m
get the keyring (mx21 is based on bullseye: wget https://mxrepo.com/mx/repo/pool/main/m/ … 9_all.deb)
apt-get install ./mx21-archive-keyring_2021.2.19_all.deb
apt-get update
Now you can install packages from mx-linux with lower priority only those that are not in devuan's repo, i.e. virtualbox.
3. Vmware Workstation is free for personal use now (from v. 17.5.2). Get the latest version and install it. It supports everything.
Then you can add this line
vmware-usbarbitrator
in /etc/rc.local
to have no problem with usb support.
If you've got this error
Could not open /dev/vmmon: No such file or directory.
Please make sure that the kernel module `vmmon' is loaded.
then do
vmware-modconfig --console --install-all
When completely new linux kernel version is here, you have to recompile vmware kernel modules
they can be found here https://github.com/mkubecek/vmware-host-modules
But I still have "no 3d support available from the host" error. I don't know how to force vmware to use 3d which is enabled on the host.
Offline