When I try and shut down my computer by closing the lid or well whatever means while my virtual machines are running I get a message that says something along the line of. Virtual machines are running and have prevented the computer from shutting down please close the VMS first. How can I set it up to where they shut down or even just force close when I close the lid. I want my computer to shut down when I close the lid even if I am running a VM.
What OS, What desktop, What virtualization.
What shutdown - Hibernate or Sleep or Power Off.
You do not want to power off virtual machines - they can become corrupt.
If the cursor is in focus of a VirtualBox virtual machine - the Linux host does not see things like the screensaver come on as the mouse focus in the virtual machine reset the no activity counter back to zero - thus keeping the screensaver from kicking in.
The same probably happens to closing the lid on a laptop, it is not seen by the OS as it is in the virtual machine and the virtual machine has no lid to close.
I’m on opensuse tumbleweed in KDE and using virtual box. And if u mean what VM am I running I mean any and all VMS I want my computer to shutdown when I close the lid even if a VM is running is this possible?
Idk when BUT I used to be able to close my lid with any VM running and it would shutdown the VMS and then my os. That’s how it was for years using TW so idk what or when or why it changed.
Where do you get this message if you closed the lid?
Well once I realize it hasn’t shutdown I re open my lid. The message is in the bottom right. From plasma workspace it says exactly logout cancelled by ‘usr/lib/virtualbox/VirtualBoxVM’
Because of kernel 6.6 changes - VirtualBox cannot give up focus by any means other than you moving the mouse out of focus.
They are making the kernel more secure and that closed the door on allowing VirtualBox to relinquish control to some other function.
You can select the sleep or hibernate from the KDE menu.
Blame tightening of Linux kernel to make it more secure - this is true for all Linux flavors running 6.6 kernels.
Those of us that try to stay ahead for kernel changes for VirtualBox are surprised at how much they are changing and the need for more fields in calls to do what used to work and got broken by the new kernel. Hopefully someone at Oracle will figure out how to put back features that once worked but no longer can due to kernel changes.
Show full output of systemd-cgls
after you have logged in and started your VB VM. Use preformatted text (button </>
in editor).
Try starting VB after unsetting SESSION_MANAGER
environment variable. Something like
unset SESSION_MANAGER
VirtualBox
you may need to terminate all running VirtualBox instances before doing it. I am not familiar with exact process structure of VB.
CGroup /:
-.slice
├─user.slice
│ └─user-1000.slice
│ ├─user@1000.service …
│ │ ├─session.slice
│ │ │ ├─xdg-permission-store.service
│ │ │ │ └─2291 /usr/libexec/xdg-permission-store
│ │ │ ├─xdg-document-portal.service
│ │ │ │ ├─2286 /usr/libexec/xdg-document-portal
│ │ │ │ └─2298 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/d>
│ │ │ ├─xdg-desktop-portal.service
│ │ │ │ └─2279 /usr/libexec/xdg-desktop-portal
│ │ │ ├─plasma-ksmserver.service
│ │ │ │ └─2374 /usr/bin/ksmserver
│ │ │ ├─pipewire-pulse.service
│ │ │ │ └─2820 /usr/bin/pipewire-pulse
│ │ │ ├─plasma-kwin_wayland.service
│ │ │ │ ├─2268 /usr/bin/kwin_wayland_wrapper --xwayland
│ │ │ │ ├─2273 /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xw>
│ │ │ │ └─2330 /usr/bin/Xwayland :1 -auth /run/user/1000/xauth_yeerAL -listen 50 -listen 51 -displayfd 42 ->
│ │ │ ├─wireplumber.service
│ │ │ │ └─2600 /usr/bin/wireplumber
│ │ │ ├─gvfs-daemon.service
│ │ │ │ ├─2546 /usr/libexec/gvfs/gvfsd
│ │ │ │ └─2557 /usr/libexec/gvfs/gvfsd-fuse /run/user/1000/gvfs -f
│ │ │ ├─plasma-kded.service
│ │ │ │ ├─2381 /usr/bin/kded5
│ │ │ │ └─2584 /usr/bin/xsettingsd
│ │ │ ├─plasma-xdg-desktop-portal-kde.service
│ │ │ │ └─2458 /usr/libexec/xdg-desktop-portal-kde
│ │ │ ├─plasma-plasmashell.service
│ │ │ │ ├─ 2412 /usr/bin/plasmashell --no-respawn
│ │ │ │ ├─ 3532 /usr/lib/virtualbox/VBoxXPCOMIPCD
│ │ │ │ ├─ 3538 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
│ │ │ │ ├─ 3894 /usr/lib/virtualbox/VirtualBoxVM --comment Whonix-Gateway-Xfce --startvm 7f5c7a72-4236-4c15>
│ │ │ │ ├─ 4493 /usr/lib/virtualbox/VirtualBoxVM --comment mx linux --startvm 8e122ffe-c753-4ed3-8217-a3cbe>
│ │ │ │ ├─23769 cat
│ │ │ │ └─23770 cat
│ │ │ ├─at-spi-dbus-bus.service
│ │ │ │ ├─2535 /usr/libexec/at-spi2/at-spi-bus-launcher
│ │ │ │ ├─2545 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork ->
│ │ │ │ └─2574 /usr/libexec/at-spi2/at-spi2-registryd --use-gnome-session
│ │ │ ├─pipewire.service
│ │ │ │ └─2593 /usr/bin/pipewire
│ │ │ └─dbus.service
│ │ │ ├─2241 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation >
│ │ │ ├─2614 /usr/bin/jackdbus auto
│ │ │ └─2720 /usr/bin/kwalletd5
│ │ ├─background.slice
│ │ │ ├─plasma-kactivitymanagerd.service
│ │ │ │ └─2453 /usr/libexec/kactivitymanagerd
│ │ │ ├─plasma-polkit-agent.service
│ │ │ │ └─2456 /usr/libexec/polkit-kde-authentication-agent-1
│ │ │ ├─plasma-xembedsniproxy.service
│ │ │ │ └─2459 /usr/bin/xembedsniproxy
│ │ │ ├─plasma-ksystemstats.service
│ │ │ │ └─2489 /usr/bin/ksystemstats
│ │ │ ├─plasma-baloorunner.service
│ │ │ │ └─10605 /usr/libexec/baloorunner
│ │ │ ├─plasma-gmenudbusmenuproxy.service
│ │ │ │ └─2455 /usr/bin/gmenudbusmenuproxy
│ │ │ └─plasma-powerdevil.service
│ │ │ └─2457 /usr/libexec/org_kde_powerdevil
│ │ ├─app.slice
│ │ │ ├─app-mullvad\x2dvpn@autostart.service
│ │ │ │ ├─2673 /opt/Mullvad VPN/mullvad-gui
│ │ │ │ ├─2730 /opt/Mullvad VPN/mullvad-gui --type=zygote --no-zygote-sandbox
│ │ │ │ ├─2731 /opt/Mullvad VPN/mullvad-gui --type=zygote
│ │ │ │ ├─2751 /opt/Mullvad VPN/mullvad-gui --type=zygote
│ │ │ │ ├─2863 /opt/Mullvad VPN/mullvad-gui --type=gpu-process --enable-crash-reporter=fe9f8096-f279-4f34-b>
│ │ │ │ ├─2881 /opt/Mullvad VPN/mullvad-gui --type=utility --utility-sub-type=network.mojom.NetworkService >
│ │ │ │ └─2981 /opt/Mullvad VPN/mullvad-gui --type=renderer --enable-crash-reporter=fe9f8096-f279-4f34-b054>
│ │ │ ├─app-kaccess@autostart.service
│ │ │ │ └─2696 /usr/bin/kaccess
│ │ │ ├─app-geoclue\x2ddemo\x2dagent@autostart.service
│ │ │ │ └─2695 /usr/libexec/geoclue-2.0/demos/agent
│ │ │ ├─app-org.kde.konsole-6f0f6306b0114e6d9ef0a8c6adebe270.scope
│ │ │ │ ├─24157 /usr/bin/konsole
│ │ │ │ ├─24170 /bin/bash
│ │ │ │ ├─24390 systemd-cgls
│ │ │ │ └─24391 less
│ │ │ ├─dconf.service
│ │ │ │ └─2436 /usr/libexec/dconf-service
│ │ │ ├─app-chromium\x2dbrowser-4579bd4cad674f43a91795abce9d1d16.scope
│ │ │ │ └─2436 /usr/libexec/dconf-service
│ │ │ ├─app-chromium\x2dbrowser-4579bd4cad674f43a91795abce9d1d16.scope
│ │ │ │ ├─23765 /usr/lib64/chromium/chrome
│ │ │ │ ├─23772 /usr/lib64/chromium/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=>
│ │ │ │ ├─23774 /usr/lib64/chromium/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=p>
│ │ │ │ ├─23778 /usr/lib64/chromium/chrome --type=zygote --no-zygote-sandbox --crashpad-handler-pid=23772 ->
│ │ │ │ ├─23779 /usr/lib64/chromium/chrome --type=zygote --crashpad-handler-pid=23772 --enable-crash-report>
│ │ │ │ ├─23781 /usr/lib64/chromium/chrome --type=zygote --crashpad-handler-pid=23772 --enable-crash-report>
│ │ │ │ ├─23813 /usr/lib64/chromium/chrome --type=gpu-process --crashpad-handler-pid=23772 --enable-crash-r>
│ │ │ │ ├─23837 /usr/lib64/chromium/chrome --type=utility --utility-sub-type=network.mojom.NetworkService ->
│ │ │ │ ├─23848 /usr/lib64/chromium/chrome --type=utility --utility-sub-type=storage.mojom.StorageService ->
│ │ │ │ ├─23936 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23946 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23956 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23962 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23993 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─24023 /usr/lib64/chromium/chrome --type=utility --utility-sub-type=data_decoder.mojom.DataDecoder>
│ │ │ │ ├─24037 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─24066 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ └─24085 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ ├─app-firefox-1b59066a44e946afba1e320ad0ebaad6.scope
│ │ │ │ ├─ 3622 /usr/lib64/firefox/firefox
│ │ │ │ ├─ 3710 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20231116134553 -prefsLen 33210 -pref>
│ │ │ │ ├─ 3747 /usr/lib/mozilla/kmozillahelper
│ │ │ │ ├─ 3845 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 39195 -prefMapSi>
│ │ │ │ ├─ 3936 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20231116134553 -sandboxingKind 0 -pr>
│ │ │ │ ├─ 3938 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 30789 -prefMapSi>
│ │ │ │ ├─ 3986 /usr/lib64/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 39249 -prefMapSi>
│ │ │ │ ├─ 4289 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20231116134553 -prefsLen 39434 -pref>
│ │ │ │ ├─ 9891 /usr/lib64/firefox/firefox -contentproc -childID 18 -isForBrowser -prefsLen 31080 -prefMapS>
│ │ │ │ ├─10526 /usr/lib64/firefox/firefox -contentproc -childID 19 -isForBrowser -prefsLen 31080 -prefMapS>
│ │ │ │ └─10577 /usr/lib64/firefox/firefox -contentproc -childID 20 -isForBrowser -prefsLen 31080 -prefMapS>
│ │ │ ├─xdg-desktop-portal-gtk.service
│ │ │ │ └─2521 /usr/libexec/xdg-desktop-portal-gtk
│ │ │ └─app-org.kde.kalendarac@autostart.service
│ │ │ └─2699 /usr/bin/kalendarac
│ │ └─init.scope
│ │ ├─2197 /usr/lib/systemd/systemd --user
│ │ └─2198 (sd-pam)
│ └─session-1.scope
│ ├─2194 /usr/libexec/sddm/sddm-helper --socket /tmp/sddm-auth-42906bab-c61d-4039-bab6-4b76f9ef42dd --id >
│ └─2207 /usr/bin/startplasma-wayland
├─init.scope
│ └─1 /usr/lib/systemd/systemd --switched-root --system --deserialize=33
└─system.slice
├─irqbalance.service
│ └─1566 /usr/sbin/irqbalance
├─fail2ban.service
│ └─1919 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
├─systemd-udevd.service …
│ └─udev
│ └─1070 /usr/lib/systemd/systemd-udevd
├─rng-tools.service
│ └─1578 /usr/sbin/rngd --foreground --fill-watermark=3700
├─cron.service
│ └─2175 /usr/sbin/cron -n
├─polkit.service
│ └─1573 /usr/libexec/polkit-1/polkitd --no-debug
├─rtkit-daemon.service
│ └─2306 /usr/libexec/rtkit/rtkit-daemon
├─chronyd.service
│ └─1934 /usr/sbin/chronyd
├─bluetooth.service
│ └─1792 /usr/libexec/bluetooth/bluetoothd
├─auditd.service
│ └─1556 /sbin/auditd
├─wpa_supplicant.service
│ └─2022 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -t -f /var/log/wpa_supplica>
├─ModemManager.service
│ └─1707 /usr/sbin/ModemManager
├─systemd-journald.service
│ └─1003 /usr/lib/systemd/systemd-journald
├─display-manager.service
│ ├─1957 /usr/bin/sddm
│ └─1968 /usr/bin/Xorg.bin -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_kEtFJC -nor>
├─NetworkManager.service
│ └─1805 /usr/sbin/NetworkManager --no-daemon
├─firewalld.service
│ └─1708 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid
├─nscd.service
│ └─1590 /usr/sbin/nscd
CGroup /:
-.slice
├─user.slice
│ └─user-1000.slice
│ ├─user@1000.service …
│ │ ├─session.slice
│ │ │ ├─xdg-permission-store.service
│ │ │ │ └─2291 /usr/libexec/xdg-permission-store
│ │ │ ├─xdg-document-portal.service
│ │ │ │ ├─2286 /usr/libexec/xdg-document-portal
│ │ │ │ └─2298 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/d>
│ │ │ ├─xdg-desktop-portal.service
│ │ │ │ └─2279 /usr/libexec/xdg-desktop-portal
│ │ │ ├─plasma-ksmserver.service
│ │ │ │ └─2374 /usr/bin/ksmserver
│ │ │ ├─pipewire-pulse.service
│ │ │ │ └─2820 /usr/bin/pipewire-pulse
│ │ │ ├─plasma-kwin_wayland.service
│ │ │ │ ├─2268 /usr/bin/kwin_wayland_wrapper --xwayland
│ │ │ │ ├─2273 /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xw>
│ │ │ │ └─2330 /usr/bin/Xwayland :1 -auth /run/user/1000/xauth_yeerAL -listen 50 -listen 51 -displayfd 42 ->
│ │ │ ├─wireplumber.service
│ │ │ │ └─2600 /usr/bin/wireplumber
│ │ │ ├─gvfs-daemon.service
│ │ │ │ ├─2546 /usr/libexec/gvfs/gvfsd
│ │ │ │ └─2557 /usr/libexec/gvfs/gvfsd-fuse /run/user/1000/gvfs -f
│ │ │ ├─plasma-kded.service
│ │ │ │ ├─2381 /usr/bin/kded5
│ │ │ │ └─2584 /usr/bin/xsettingsd
│ │ │ ├─plasma-xdg-desktop-portal-kde.service
│ │ │ │ └─2458 /usr/libexec/xdg-desktop-portal-kde
│ │ │ ├─plasma-plasmashell.service
│ │ │ │ ├─ 2412 /usr/bin/plasmashell --no-respawn
│ │ │ │ ├─ 3532 /usr/lib/virtualbox/VBoxXPCOMIPCD
│ │ │ │ ├─ 3538 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
│ │ │ │ ├─ 3894 /usr/lib/virtualbox/VirtualBoxVM --comment Whonix-Gateway-Xfce --startvm 7f5c7a72-4236-4c15>
│ │ │ │ ├─ 4493 /usr/lib/virtualbox/VirtualBoxVM --comment mx linux --startvm 8e122ffe-c753-4ed3-8217-a3cbe>
│ │ │ │ ├─23769 cat
│ │ │ │ └─23770 cat
│ │ │ ├─at-spi-dbus-bus.service
│ │ │ │ ├─2535 /usr/libexec/at-spi2/at-spi-bus-launcher
│ │ │ │ ├─2545 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork ->
│ │ │ │ └─2574 /usr/libexec/at-spi2/at-spi2-registryd --use-gnome-session
│ │ │ ├─pipewire.service
│ │ │ │ └─2593 /usr/bin/pipewire
│ │ │ └─dbus.service
│ │ │ ├─2241 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation >
│ │ │ ├─2614 /usr/bin/jackdbus auto
│ │ │ └─2720 /usr/bin/kwalletd5
│ │ ├─background.slice
│ │ │ ├─plasma-kactivitymanagerd.service
│ │ │ │ └─2453 /usr/libexec/kactivitymanagerd
│ │ │ ├─plasma-polkit-agent.service
│ │ │ │ └─2456 /usr/libexec/polkit-kde-authentication-agent-1
│ │ │ ├─plasma-xembedsniproxy.service
│ │ │ │ └─2459 /usr/bin/xembedsniproxy
│ │ │ ├─plasma-ksystemstats.service
│ │ │ │ └─2489 /usr/bin/ksystemstats
│ │ │ ├─plasma-baloorunner.service
│ │ │ │ └─10605 /usr/libexec/baloorunner
│ │ │ ├─plasma-gmenudbusmenuproxy.service
│ │ │ │ └─2455 /usr/bin/gmenudbusmenuproxy
│ │ │ └─plasma-powerdevil.service
│ │ │ └─2457 /usr/libexec/org_kde_powerdevil
│ │ ├─app.slice
│ │ │ ├─app-mullvad\x2dvpn@autostart.service
│ │ │ │ ├─2673 /opt/Mullvad VPN/mullvad-gui
│ │ │ │ ├─2730 /opt/Mullvad VPN/mullvad-gui --type=zygote --no-zygote-sandbox
│ │ │ │ ├─2731 /opt/Mullvad VPN/mullvad-gui --type=zygote
│ │ │ │ ├─2751 /opt/Mullvad VPN/mullvad-gui --type=zygote
│ │ │ │ ├─2863 /opt/Mullvad VPN/mullvad-gui --type=gpu-process --enable-crash-reporter=fe9f8096-f279-4f34-b>
│ │ │ │ ├─2881 /opt/Mullvad VPN/mullvad-gui --type=utility --utility-sub-type=network.mojom.NetworkService >
│ │ │ │ └─2981 /opt/Mullvad VPN/mullvad-gui --type=renderer --enable-crash-reporter=fe9f8096-f279-4f34-b054>
│ │ │ ├─app-kaccess@autostart.service
│ │ │ │ └─2696 /usr/bin/kaccess
│ │ │ ├─app-geoclue\x2ddemo\x2dagent@autostart.service
│ │ │ │ └─2695 /usr/libexec/geoclue-2.0/demos/agent
│ │ │ ├─app-org.kde.konsole-6f0f6306b0114e6d9ef0a8c6adebe270.scope
│ │ │ │ ├─24157 /usr/bin/konsole
│ │ │ │ ├─24170 /bin/bash
│ │ │ │ ├─24390 systemd-cgls
│ │ │ │ └─24391 less
│ │ │ ├─dconf.service
│ │ │ │ └─2436 /usr/libexec/dconf-service
│ │ │ ├─app-chromium\x2dbrowser-4579bd4cad674f43a91795abce9d1d16.scope
│ │ │ │ ├─23765 /usr/lib64/chromium/chrome
│ │ │ │ ├─23772 /usr/lib64/chromium/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=>
│ │ │ │ ├─23774 /usr/lib64/chromium/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=p>
│ │ │ │ ├─23778 /usr/lib64/chromium/chrome --type=zygote --no-zygote-sandbox --crashpad-handler-pid=23772 ->
│ │ │ │ ├─23779 /usr/lib64/chromium/chrome --type=zygote --crashpad-handler-pid=23772 --enable-crash-report>
│ │ │ │ ├─23781 /usr/lib64/chromium/chrome --type=zygote --crashpad-handler-pid=23772 --enable-crash-report>
│ │ │ │ ├─23813 /usr/lib64/chromium/chrome --type=gpu-process --crashpad-handler-pid=23772 --enable-crash-r>
│ │ │ │ ├─23837 /usr/lib64/chromium/chrome --type=utility --utility-sub-type=network.mojom.NetworkService ->
│ │ │ │ ├─23848 /usr/lib64/chromium/chrome --type=utility --utility-sub-type=storage.mojom.StorageService ->
│ │ │ │ ├─23936 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23946 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23956 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23962 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─23993 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─24023 /usr/lib64/chromium/chrome --type=utility --utility-sub-type=data_decoder.mojom.DataDecoder>
│ │ │ │ ├─24037 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ ├─24066 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ │ └─24085 /usr/lib64/chromium/chrome --type=renderer --crashpad-handler-pid=23772 --enable-crash-repo>
│ │ │ ├─app-firefox-1b59066a44e946afba1e320ad0ebaad6.scope
│ │ │ │ ├─ 3622 /usr/lib64/firefox/firefox
│ │ │ │ ├─ 3710 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20231116134553 -prefsLen 33210 -pref>
│ │ │ │ ├─ 3747 /usr/lib/mozilla/kmozillahelper
│ │ │ │ ├─ 3845 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 39195 -prefMapSi>
│ │ │ │ ├─ 3936 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20231116134553 -sandboxingKind 0 -pr>
│ │ │ │ ├─ 3938 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 30789 -prefMapSi>
│ │ │ │ ├─ 3986 /usr/lib64/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 39249 -prefMapSi>
│ │ │ │ ├─ 4289 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20231116134553 -prefsLen 39434 -pref>
│ │ │ │ ├─ 9891 /usr/lib64/firefox/firefox -contentproc -childID 18 -isForBrowser -prefsLen 31080 -prefMapS>
│ │ │ │ ├─10526 /usr/lib64/firefox/firefox -contentproc -childID 19 -isForBrowser -prefsLen 31080 -prefMapS>
│ │ │ │ └─10577 /usr/lib64/firefox/firefox -contentproc -childID 20 -isForBrowser -prefsLen 31080 -prefMapS>
│ │ │ ├─xdg-desktop-portal-gtk.service
│ │ │ │ └─2521 /usr/libexec/xdg-desktop-portal-gtk
│ │ │ └─app-org.kde.kalendarac@autostart.service
│ │ │ └─2699 /usr/bin/kalendarac
│ │ └─init.scope
│ │ ├─2197 /usr/lib/systemd/systemd --user
│ │ └─2198 (sd-pam)
│ └─session-1.scope
│ ├─2194 /usr/libexec/sddm/sddm-helper --socket /tmp/sddm-auth-42906bab-c61d-4039-bab6-4b76f9ef42dd --id >
│ └─2207 /usr/bin/startplasma-wayland
├─init.scope
│ └─1 /usr/lib/systemd/systemd --switched-root --system --deserialize=33
└─system.slice
├─irqbalance.service
│ └─1566 /usr/sbin/irqbalance
├─fail2ban.service
│ └─1919 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
├─systemd-udevd.service …
│ └─udev
│ └─1070 /usr/lib/systemd/systemd-udevd
├─rng-tools.service
│ └─1578 /usr/sbin/rngd --foreground --fill-watermark=3700
├─cron.service
│ └─2175 /usr/sbin/cron -n
├─polkit.service
│ └─1573 /usr/libexec/polkit-1/polkitd --no-debug
├─rtkit-daemon.service
│ └─2306 /usr/libexec/rtkit/rtkit-daemon
├─chronyd.service
│ └─1934 /usr/sbin/chronyd
├─bluetooth.service
│ └─1792 /usr/libexec/bluetooth/bluetoothd
├─auditd.service
│ └─1556 /sbin/auditd
├─wpa_supplicant.service
│ └─2022 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -t -f /var/log/wpa_supplica>
├─ModemManager.service
│ └─1707 /usr/sbin/ModemManager
├─systemd-journald.service
│ └─1003 /usr/lib/systemd/systemd-journald
├─display-manager.service
│ ├─1957 /usr/bin/sddm
│ └─1968 /usr/bin/Xorg.bin -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_kEtFJC -nor>
├─NetworkManager.service
│ └─1805 /usr/sbin/NetworkManager --no-daemon
├─firewalld.service
│ └─1708 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid
├─nscd.service
│ └─1590 /usr/sbin/nscd
├─mullvad-daemon.service
│ └─1877 /usr/bin/mullvad-daemon -v --disable-stdout-timestamps
├─postfix.service
│ ├─ 2149 /usr/lib/postfix/bin//master -w
│ ├─ 2151 qmgr -l -t fifo -u
│ └─22951 pickup -l -t fifo -u
├─cups.service
│ └─1871 /usr/sbin/cupsd -l
├─pcscd.service
│ └─1685 /usr/sbin/pcscd --foreground
├─upower.service
│ └─2491 /usr/libexec/upower/upowerd
├─mcelog.service
│ └─1674 /usr/sbin/mcelog --ignorenodev --daemon --foreground
├─udisks2.service
│ └─2482 /usr/libexec/udisks2/udisksd
├─dbus.service
│ └─1564 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslo>
├─system-getty.slice
│ └─getty@tty1.service
│ └─1960 /sbin/agetty -o -p -- \u --noclear - linux
├─avahi-daemon.service
│ └─1563 avahi-daemon: running [linux.local]
├─smartd.service
│ └─1581 /usr/sbin/smartd -n -q never
└─systemd-logind.service
└─1705 /usr/lib/systemd/systemd-logind
also i tried to unset session manager and it still gives me that error when i shutdown with a vm running.
It’s the normal behavior of VB.
You must use the headless feature and rdesktop to get a GUI for the headless VM.
You must install rdesktop and kdocker to minimize rdesktop window in the systray.
the login script
#!/bin/bash
sleep 30s
bash -c 'VBoxManage startvm "name_of_the_VM" --type headless & '
sleep 45s
bash -c 'rdesktop -a 16 -g 1280x1030 -N -M localhost &'
# minimize the rdsktop window in the systray
while [ true ]
do
sleep 5s
status=$(wmctrl -l | grep "rdesktop - localhost")
if [ "$status" != "" ] ; then
break
fi
done
WID="$(wmctrl -lx | grep "rdesktop - localhost")"; kdocker -qtw "${WID%% *}" -i /usr/share/icons/breeze/devices/64/smartphone.svg &
You can modify the icon of the window “smartphone.svg” by what you want.
The logout script
#!/bin/bash
VBoxManage controlvm "name_of_the_VM" poweroff