[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [CONTRIBUTE] [DONATE]

[solved] swap-file-creator breaks with Whonix 16 for VirtualBox and newer Linux host kernel version 5.18

Whonix vbox getting this error at the moment: (looks different message from the above post error)

And by this error whonix wont load (only black screen).

Note: vbox (virtualbox-dkms,virtualbox-qt,virtualbox) installed from sid repository (but there is no version differences between sid and upstream)

Workaround: keep ON/OFF the vm until it will load instead of the black screen.

Mixing packages from sid is well known and documented to cause issues:
Install from Debian Unstable

And at time of writing it’s neither recommended nor documented to do that. For current VirtualBox installation instructions, see:

The package (which is vbox in this case) working great, no sign of bad stuff happening from the package itself (so as other VMs in vbox)

Is there a way to debug this swap issue?

This is the output of swap-file-creator:

user@host:~$ bash -x /usr/share/swap-file-creator/swap-file-creator 
+ set -e
+ source /usr/share/swap-file-creator/common
++ set -o pipefail
++ set -o errtrace
++ trap error_handler ERR
++ set +e
++ '[' -f /etc/default/swap-file-creator ']'
++ source /etc/default/swap-file-creator
++ '[' -n '' ']'
++ SLEEP_SECONDS_ON_ERROR=5
++ '[' -n '' ']'
++ DESC='Encrypted Swap File Creator'
++ '[' -n '' ']'
++ NAME=swap-file-creator
++ '[' -n '' ']'
++ SCRIPTNAME=/etc/init.d/swap-file-creator
++ '[' -n '' ']'
++ LOG=/var/log/swap-file-creator.log
++ '[' -n '' ']'
++ SWAPFILE=/var/swapfile
++ '[' -n '' ']'
++ VERBOSE=yes
++ '[' -n '' ']'
++ UUID=0615ba72-85b0-4183-8d54-300bb0d2e491
++ '[' -n '' ']'
++ DD_IF=/dev/zero
++ '[' -n '' ']'
++ DD_BS=1M
++ '[' -n '' ']'
++ DD_COUNT=512
++ '[' -n '' ']'
++ PV_SIZE=512M
++ '[' -n '' ']'
++ MAPPER=swapfile
++ '[' -n '' ']'
++ MAPPER_FULL=/dev/mapper/swapfile
++ '[' -n '' ']'
++ RUN_FOLDER=/run/swap-file-creator
++ '[' -n '' ']'
++ cryptsetup_pre_wrapper=ld-system-preload-disable
++ '[' -n '' ']'
++ CRYPTSETUP_FORMAT='cryptsetup --batch-mode --pbkdf pbkdf2 --hash sha512 -c aes-xts-plain64 --key-size 512 luksFormat'
++ '[' -n '' ']'
++ SHRED_ON_STOP=no
++ '[' -n '' ']'
++ SHRED_OPTS='--verbose --iterations=1'
++ '[' -n '' ']'
++ RANDOM_PASSWORD_TIMEOUT=10
++ '[' -n '' ']'
++ RANDOM_DEVICE=/dev/random
++ '[' -n '' ']'
++ ENOUGH_RAM=1950
+ cat /proc/cmdline
+ grep boot=live
+ do_start
+ do_status_return_code=0
+ /usr/share/swap-file-creator/status
###############################################################################
## Swap File Creator ERROR
## /usr/share/swap-file-creator/status
##
## BASH_COMMAND: command -v losetup > /dev/null 2>&1
## exit_code: 1
##
## Experts only:
## bash -x /usr/share/swap-file-creator/status
## for verbose output. Clean the output and
## submit to developers.
###############################################################################
touch: cannot touch '/run/swap-file-creator/fail': No such file or directory
/usr/share/swap-file-creator/common: line 48: /var/log/swap-file-creator.log: Permission denied
+ do_status_return_code=1
+ true
+ '[' 1 = 0 ']'
+ sanity_tests
+ command -v pv
+ command -v losetup
++ error_handler
++ local exit_code=1
++ trap '' ERR
++ '[' '' = '' ']'
++ local 'msg=###############################################################################
## Swap File Creator ERROR
## /usr/share/swap-file-creator/swap-file-creator
##
## BASH_COMMAND: command -v losetup > /dev/null 2>&1
## exit_code: 1
##
## Experts only:
## bash -x /usr/share/swap-file-creator/swap-file-creator
## for verbose output. Clean the output and
## submit to developers.
###############################################################################'
++ echo '###############################################################################
## Swap File Creator ERROR
## /usr/share/swap-file-creator/swap-file-creator
##
## BASH_COMMAND: command -v losetup > /dev/null 2>&1
## exit_code: 1
##
## Experts only:
## bash -x /usr/share/swap-file-creator/swap-file-creator
## for verbose output. Clean the output and
## submit to developers.
###############################################################################'
###############################################################################
## Swap File Creator ERROR
## /usr/share/swap-file-creator/swap-file-creator
##
## BASH_COMMAND: command -v losetup > /dev/null 2>&1
## exit_code: 1
##
## Experts only:
## bash -x /usr/share/swap-file-creator/swap-file-creator
## for verbose output. Clean the output and
## submit to developers.
###############################################################################
++ rm --force /run/swap-file-creator/progress
++ rm --force /run/swap-file-creator/success
++ touch /run/swap-file-creator/fail
touch: cannot touch '/run/swap-file-creator/fail': No such file or directory
++ '[' -n /var/log/swap-file-creator.log ']'
++ echo '###############################################################################
## Swap File Creator ERROR
## /usr/share/swap-file-creator/swap-file-creator
##
## BASH_COMMAND: command -v losetup > /dev/null 2>&1
## exit_code: 1
##
## Experts only:
## bash -x /usr/share/swap-file-creator/swap-file-creator
## for verbose output. Clean the output and
## submit to developers.
###############################################################################'
/usr/share/swap-file-creator/common: line 48: /var/log/swap-file-creator.log: Permission denied
++ '[' -n 5 ']'
++ wait 2305
++ sleep 5
++ exit 1
user@host:~$
1 Like

ok figured out vbox issue:

latest vbox supported kernel is 5.17
latest kernel pushed to debian testing is 5.18

vbox gonna run in kernel 5.18 if installed from debian sid but it will run with all possible issues can come with (similar as above)

solution: check which latest kernel supported by vbox and run accordingly otherwise many stuff gonna break.

1 Like

Requires root/sudo.

1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Contributors] [Investors] [Priority Support] [Professional Support]