Help installing Whonix on Ubuntu 22.04

When I run the command:

bash ./whonix-xfce-installer-cli

I get the following error:

whonix-xfce-installer-cli: [NOTICE]: Starting Virtual Machine(s).
whonix-xfce-installer-cli: [NOTICE]: Running: $ vboxmanage startvm Whonix-Gateway-Xfce
VBoxManage: error: Could not launch the VM process for the machine 'Whonix-Gateway-Xfce' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), ComSafeArrayAsInParam(aBstrEnv), progress.asOutParam())" at line 726 of file VBoxManageMisc.cpp
whonix-xfce-installer-cli: [ERROR]: Virtual Machine Startup Result: FAIL
  - The installer succeeded with download and import, but
  - failed to start the virtual machines (VMs).
  - The root cause for this issue is likely not the installer.
  - This issue would likely also happen if the user tried to manually start the VMs.
  - Refer to user documentation:
  https://www.whonix.org/wiki/VirtualBox/Troubleshooting

Please help in resolving the issue. Thank you!

Debug log required. You can get it as per:
Linux Installer Log

(Whonix is based on Kicksecure.)

You can upload it as per:
Pasting Logs for Support

At the directory ~/dist-installer-cli-download/logs/3$ the file debug.log seems most relevant. Here are the contents:

$ cat debug.log 
+ xtrace=1
+ touch /home/ubuntu/dist-installer-cli-download/logs/3/debug.log
+ return 0
+ get_utilities
+ get_su_cmd
+ true
+ has sudo
++ command -v sudo
+ _cmd=/usr/bin/sudo
+ '[' -x /usr/bin/sudo ']'
+ sucmd=sudo
+ break
+ log info 'Testing root_cmd function'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ root_cmd echo test
+ test -z echo
+ case "${sucmd}" in
+ log_run notice sudo -- echo test
+ level=notice
+ shift
++ echo sudo -- echo test
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- echo test'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- echo test'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- echo test
+ test '' = 1
+ test sudo = sudo
+ timeout --kill-after 5 5 sudo --non-interactive -- test -d /usr
+ log info 'User system is using credential caching: Yes'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
++ timeout --kill-after 5 5 sudo -- test -d /usr
+ root_output=
+ test -n ''
+ get_checkhash_cmd
+ test '' = 1
+ true
+ has sha512sum
++ command -v sha512sum
+ _cmd=/usr/bin/sha512sum
+ '[' -x /usr/bin/sha512sum ']'
+ checkhash='sha512sum --check --strict --warn'
+ break
+ get_transfer_cmd
+ transfer_utility=rsync
+ case "${transfer_utility}" in
+ rsync=1
+ transfer_max_time_large_file=2700
+ transfer_max_time_small_file=180
+ transfer_io_timeout=600
+ transfer_connect_timeout=180
+ transfer_size_test_connection=200K
+ transfer_size_small_file=2K
+ transfer_size_large_file=3G
+ case ${transfer_utility} in
+ transfer_io_timeout_opt='--timeout 600'
+ transfer_size_opt=--max-size
+ transfer_dryrun_opt=--dry-run
+ transfer_output_dir_opt=
+ transfer_output_file_opt=
+ transfer_verbosity_opt='--no-motd --progress --verbose --verbose'
+ transfer_speed_optimization_opt='--compress --partial'
+ get_download_links
+ site_clearnet_whonix=whonix.org
+ site_onion_whonix=dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion
+ site_clearnet_kicksecure=kicksecure.com
+ site_onion_kicksecure=w5j6stm77zs6652pgsij4awcjeel3eco7kvipheu6mtr623eyyehj4yd.onion
+ case "${guest}" in
+ site_clearnet=whonix.org
+ site_onion=dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion
+ test -z ''
+ mirror=0
+ case "${mirror}" in
+ site_download_clearnet=whonix.org/whonix
+ site_download_onion=dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/whonix
+ case "${transfer_utility}" in
+ protocol_prefix_clearnet=rsync
+ protocol_prefix_onion=rsync
+ url_download_clearnet=rsync://whonix.org/whonix
+ url_download_onion=rsync://dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/whonix
+ case "${onion}" in
+ log info 'Clearnet preferred.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test rsync = rsync
+ transfer_utility=rsync-ssl
+ curl_opt_ssl='--tlsv1.3 --proto =https'
+ url_origin=rsync://www.whonix.org
+ url_download=rsync://whonix.org/whonix
+ url_version_domain=https://www.whonix.org
+ case "${hypervisor}" in
+ test '' = 1
+ url_version_template=VersionNew
+ signify_key='untrusted comment: Patrick Schleizer adrelanos@whonix.org signify public key
RWQ6KRormNEETq+M8IysxRe/HAWlqZRlO8u7ACIiv5poAW0ztsirOjCQ'
+ signify_signer=adrelanos
+ url_domain=rsync://whonix.org/whonix/ova
+ guest_file_ext=ova
+ url_version_prefix='w/index.php?title=Template:'
+ url_version_suffix='&stable=0&action=raw'
+ url_version='https://www.whonix.org/w/index.php?title=Template:VersionNew&stable=0&action=raw'
+ main
+ log notice 'Saving user log to: '\''/home/ubuntu/dist-installer-cli-download/logs/3/user.log'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test -f /home/ubuntu/dist-installer-cli-download/logs/3/debug.log
+ log notice 'Saving debug log to: '\''/home/ubuntu/dist-installer-cli-download/logs/3/debug.log'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log info 'Starting main function.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
++ capitalize_first_char whonix
++ echo whonix
++ awk '{$1=toupper(substr($1,0,1))substr($1,2)}1'
+ guest_pretty=Whonix
+ case "${hypervisor}" in
+ hypervisor_pretty=VirtualBox
+ log info 'Parsed options:'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  directory_prefix="/home/ubuntu/dist-installer-cli-download"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  guest="whonix"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  hypervisor="virtualbox"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  interface="xfce"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  log_level="notice"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' = 1
+ log notice '\033[4mInstaller:\033[24m \033[1m'\''Whonix Xfce for VirtualBox Installer'\''\033[22m'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ log notice 'If you wish to cancel installation, press Ctrl+C.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ check_license
+ '[' '' = 1 ']'
+ log notice 'The license will be shown in 5 seconds.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice '(Use -n or --non-interactive for non-interactive mode.)'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ sleep 5
+ true
+ has dialog
++ command -v dialog
+ _cmd=
+ return 1
+ has whiptail
++ command -v whiptail
+ _cmd=/usr/bin/whiptail
+ '[' -x /usr/bin/whiptail ']'
+ dialog_box=whiptail
+ break
+ case "${dialog_box}" in
+ whiptail --scrolltext --title 'License agreement (scroll with arrows)' --yes-button Agree --no-button Disagree --yesno '
Please do NOT continue unless you understand everything!
 DISCLAIMER OF WARRANTY.
 .
 THE PROGRAM IS PROVIDED WITHOUT ANY WARRANTIES, WHETHER EXPRESSED OR IMPLIED,
 INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
 PURPOSE, NON-INFRINGEMENT, TITLE AND MERCHANTABILITY.  THE PROGRAM IS BEING
 DELIVERED OR MADE AVAILABLE '\''AS IS'\'', '\''WITH ALL FAULTS'\'' AND WITHOUT WARRANTY OR
 REPRESENTATION.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
 PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
 .
 LIMITATION OF LIABILITY.
 .
 UNDER NO CIRCUMSTANCES SHALL ANY COPYRIGHT HOLDER OR ITS AFFILIATES, OR ANY
 OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE
 LIABLE TO YOU, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, FOR ANY
 DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, DIRECT, INDIRECT, SPECIAL,
 INCIDENTAL, CONSEQUENTIAL OR PUNITIVE DAMAGES ARISING FROM, OUT OF OR IN
 CONNECTION WITH THE USE OR INABILITY TO USE THE PROGRAM OR OTHER DEALINGS WITH
 THE PROGRAM(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
 INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), WHETHER OR NOT ANY COPYRIGHT HOLDER
 OR SUCH OTHER PARTY RECEIVES NOTICE OF ANY SUCH DAMAGES AND WHETHER OR NOT SUCH
 DAMAGES COULD HAVE BEEN FORESEEN.
 .
 INDEMNIFICATION.
 .
 IF YOU CONVEY A COVERED WORK AND AGREE WITH ANY RECIPIENT
 OF THAT COVERED WORK THAT YOU WILL ASSUME ANY LIABILITY FOR THAT COVERED WORK,
 YOU HEREBY AGREE TO INDEMNIFY, DEFEND AND HOLD HARMLESS THE OTHER LICENSORS AND
 AUTHORS OF THAT COVERED WORK FOR ANY DAMAGES, DEMANDS, CLAIMS, LOSSES, CAUSES OF
 ACTION, LAWSUITS, JUDGMENTS EXPENSES (INCLUDING WITHOUT LIMITATION REASONABLE
 ATTORNEYS'\'' FEES AND EXPENSES) OR ANY OTHER LIABILITY ARISING FROM, RELATED TO OR
 IN CONNECTION WITH YOUR ASSUMPTIONS OF LIABILITY.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
' 24 80
+ log notice '\033[4mLicense Check:\033[24m '\''success'\'' - User has accepted the license.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ pre_check
+ get_os
++ uname -s
+ os=Linux
++ uname -r
+ kernel=6.2.0-34-generic
++ uname -m
+ arch=x86_64
+ distro=
+ distro_version=
+ debian_testing_or_unstable_detected=
+ case ${os} in
+ has lsb_release
++ command -v lsb_release
+ _cmd=/usr/bin/lsb_release
+ '[' -x /usr/bin/lsb_release ']'
++ lsb_release --short --description
+ distro='Ubuntu 22.04.3 LTS'
++ lsb_release --short --release
+ distro_version=22.04
+ distro='Ubuntu 22.04.3 LTS'
+ distro='Ubuntu 22.04.3 LTS'
+ case ${PATH} in
+ '[' '' ']'
+ '[' -z 6.2.0-34-generic ']'
+ echo 'Ubuntu 22.04.3 LTS'
+ grep --quiet /sid
+ distro_derivative_name_pretty='(No derivative detected.)'
+ distro_derivative_version='(No derivative detected.)'
+ test -f /usr/share/kicksecure/marker
+ test -f /usr/share/whonix/marker
+ log notice 'Detected architecture: '\''x86_64'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Detected system: '\''Linux'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Detected distribution / derivative name: '\''Ubuntu 22.04.3 LTS'\'' / '\''(No derivative detected.)'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Detected distribution / derivative version: '\''22.04'\'' / '\''(No derivative detected.)'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ '[' '' = true ']'
+ log info 'Debian testing or unstable detection: '\''Not detected.'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ '[' -z 22.04 ']'
++ echo 22.04
++ tr -d .
+ distro_version_without_dot=2204
+ is_integer 2204
+ printf %d 2204
+ get_system_stat
+ '[' x86_64 '!=' x86_64 ']'
+ case "${interface}" in
+ min_ram_mb=3328
+ test '' = 1
++ awk '/MemTotal/{print $2}' /proc/meminfo
+ total_mem_kB=8027892
+ total_mem=8027
+ '[' 8027 -lt 4200 ']'
++ df --output=avail -BG /home/ubuntu/dist-installer-cli-download
+ df_output='Avail
 849G'
++ echo 'Avail
 849G'
++ awk '/G$/{print substr($1, 1, length($1)-1)}'
+ free_space_available=849
+ free_space_required=10
+ case "${guest}" in
+ case "${interface}" in
+ free_space_required=5
+ test '' = 1
+ test '' = 1
+ '[' 849 -lt 5 ']'
+ get_host_pkgs
+ true 'distro: Ubuntu 22.04.3 LTS'
+ case "${os}" in
+ case "${distro}" in
+ '[' 2204 -lt 2204 ']'
+ log notice 'Preparing to install packages required for the hypervisor usage, this may take some time.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ debian_derivative_detected=1
+ install_package_debian_common
+ pkg_mngr=apt-get
+ pkg_mngr_install='apt-get install --yes --no-install-recommends'
+ pkg_mngr_update='apt-get update --yes --error-on=any'
+ pkg_mngr_check_installed=check_installed_debian
++ dpkg --audit
+ dpkg_audit_output=
+ test -n ''
+ test '' = 1
+ update_sources
+ log notice 'Updating package list.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ tty
+ console_write_command='tee /dev/tty'
++ root_cmd apt-get update --yes --error-on=any
++ tee /dev/tty
++ test -z apt-get
++ case "${sucmd}" in
++ log_run notice sudo -- apt-get update --yes --error-on=any
++ level=notice
++ shift
+++ echo sudo -- apt-get update --yes --error-on=any
+++ tr -s ' '
++ command_without_extrarenous_spaces='sudo -- apt-get update --yes --error-on=any'
++ test '' = 1
++ test '' = 1
++ log notice 'Running: $ sudo -- apt-get update --yes --error-on=any'
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace
++ sudo -- apt-get update --yes --error-on=any
+ update_output='whonix-xfce-installer-cli: [NOTICE]: Running: $ sudo -- apt-get update --yes --error-on=any
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists...'
+ true 'INFO: Exit code is zero but that does not guarantee in case of dnf that there is no error.'
+ echo 'whonix-xfce-installer-cli: [NOTICE]: Running: $ sudo -- apt-get update --yes --error-on=any
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists...'
+ grep --quiet --ignore-case Error:
+ true 'INFO: No error found in update output, ok.'
+ return 0
+ install_pkg lsb-release
+ pkgs=lsb-release
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian lsb-release
++ dpkg-query --show '--showformat=${db:Status-Status}' lsb-release
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''lsb-release'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ test -n ''
+ test '' = 1
+ install_pkg torsocks
+ pkgs=torsocks
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian torsocks
++ dpkg-query --show '--showformat=${db:Status-Status}' torsocks
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''torsocks'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ test -n ''
+ install_signify signify-openbsd
+ pkg_name=signify-openbsd
+ has signify-openbsd
++ command -v signify-openbsd
+ _cmd=/usr/bin/signify-openbsd
+ '[' -x /usr/bin/signify-openbsd ']'
+ return 0
+ install_virtualbox_ubuntu
+ has vboxmanage
++ command -v vboxmanage
+ _cmd=/usr/bin/vboxmanage
+ '[' -x /usr/bin/vboxmanage ']'
+ test_pkg linux-headers-generic
+ pkgs=linux-headers-generic
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ has linux-headers-generic
++ command -v linux-headers-generic
+ _cmd=
+ return 1
+ check_installed_debian linux-headers-generic
++ dpkg-query --show '--showformat=${db:Status-Status}' linux-headers-generic
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ test -n ''
+ install_virtualbox_debian_common_end
+ has vboxmanage
++ command -v vboxmanage
+ _cmd=/usr/bin/vboxmanage
+ '[' -x /usr/bin/vboxmanage ']'
+ add_user_to_vbox_group
++ id --name --user
+ id_of_user=ubuntu
+ id -nG ubuntu
+ grep -qw 'vboxusers$'
+ log info 'Linux Group Configuration: Account '\''ubuntu'\'' is already a member of the Linux group '\''vboxusers'\''.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ return 0
+ return 0
+ get_independent_host_pkgs
+ has signify-openbsd
++ command -v signify-openbsd
+ _cmd=/usr/bin/signify-openbsd
+ '[' -x /usr/bin/signify-openbsd ']'
+ has timeout
++ command -v timeout
+ _cmd=/usr/bin/timeout
+ '[' -x /usr/bin/timeout ']'
+ has curl
++ command -v curl
+ _cmd=/usr/bin/curl
+ '[' -x /usr/bin/curl ']'
+ has rsync
++ command -v rsync
+ _cmd=/usr/bin/rsync
+ '[' -x /usr/bin/rsync ']'
+ has mokutil
++ command -v mokutil
+ _cmd=/usr/bin/mokutil
+ '[' -x /usr/bin/mokutil ']'
+ install_pkg openssl ca-certificates
+ pkgs='openssl ca-certificates'
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian openssl
++ dpkg-query --show '--showformat=${db:Status-Status}' openssl
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''openssl'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ for pkg in ${pkgs}
+ check_installed_debian ca-certificates
++ dpkg-query --show '--showformat=${db:Status-Status}' ca-certificates
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''ca-certificates'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ test -n ''
+ true
+ has systemd-detect-virt
++ command -v systemd-detect-virt
+ _cmd=/usr/bin/systemd-detect-virt
+ '[' -x /usr/bin/systemd-detect-virt ']'
+ nested_virt_tool=systemd-detect-virt
+ break
+ nested_virtualization_test
+ nested_virtualization_detected=
+ test -z systemd-detect-virt
+ test '' = 1
+ root_cmd systemd-detect-virt
+ test -z systemd-detect-virt
+ case "${sucmd}" in
+ log_run notice sudo -- systemd-detect-virt
+ level=notice
+ shift
++ echo sudo -- systemd-detect-virt
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- systemd-detect-virt'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- systemd-detect-virt'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- systemd-detect-virt
+ return 1
+ test -f /usr/share/qubes/marker-vm
+ secure_boot_test
+ local mokutil_output
++ mokutil --sb-state
+ mokutil_output='This system doesn'\''t support Secure Boot'
+ log info '\033[4mSecure Boot Check Result:\033[24m '\''disabled'\'' (mokutil_output: '\''This system doesn'\''t support Secure Boot'\'') Ok.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case "${onion}" in
+ test -n ''
+ test '' = 1
+ get_virtualization
++ root_cmd grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
++ test -z grep
++ grep -wo -E '(vmx|svm)'
++ case "${sucmd}" in
++ log_run notice sudo -- grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
++ level=notice
++ shift
+++ echo sudo -- grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
+++ tr -s ' '
++ command_without_extrarenous_spaces='sudo -- grep -m1 -w ^flags[[:blank:]]*: /proc/cpuinfo'
++ test '' = 1
++ test '' = 1
++ log notice 'Running: $ sudo -- grep -m1 -w ^flags[[:blank:]]*: /proc/cpuinfo'
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace
++ sudo -- grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
+ virt_flag=vmx
+ case "${virt_flag:=}" in
+ brand=intel
+ case "${virt_flag:=}" in
+ log notice '\033[4mVirtualization Support Test:\033[24m Your CPU supports virtualization: '\''intel'\'': '\''vmx'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ virt_detection_success=true
+ return 0
+ log_time
++ get_elapsed_time
+++ date +%s
++ printf '%s\n' 15
+ log info 'Elapsed time: 15s.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ check_vm_exists
+ test '' = 1
+ log info 'Checking if Virtual Machine(s) have been already imported.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case "${hypervisor}" in
+ check_vm_exists_virtualbox
+ test '' = 1
+ case "${guest}" in
+ workstation_exists=0
+ gateway_exists=0
+ vboxmanage showvminfo Whonix-Gateway-Xfce
+ gateway_exists=1
+ vboxmanage showvminfo Whonix-Workstation-Xfce
+ workstation_exists=1
+ test 1 = 0
+ test 1 = 1
+ test 1 = 0
+ test 1 = 1
+ log notice '\033[4mExisting VM Check:\033[24m Virtual Machine(s) have been imported previously.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' = 1
+ test -n ''
+ test 1 = 0
+ test 1 = 0
+ log info 'Checking if user wants to start Virtual Machine(s) now.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ check_guest_boot
+ log notice '\033[4mVirtualBox Installation Result:\033[24m \033[32m\033[1m'\''SUCCESS'\''\033[22m\033[0m'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case "${guest}" in
+ log notice 'Available guest: '\''Whonix-Gateway-Xfce'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Available guest: '\''Whonix-Workstation-Xfce'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' = 1
+ test '' = 1
+ test '' = 1
+ log notice '\033[1mQuestion:\033[22m Do you want to start VirtualBox and the Whonix Virtual Machine(s) now? [y/n] (default: yes): '
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ printf %s 'Your answer: '
+ read -r response
+ log notice 'User replied: '\''y'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case ${response} in
+ log notice '\033[4mVirtualBox Startup Check:\033[24m User accepted to start VirtualBox.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' = 1
+ log info 'Virtual Machine(s) already exist.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ log notice 'If you would like to redownload the image, read about --redownload (safe).'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ log notice 'If you would like to reimport the image, read about --reimport (danger).'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' = 1
+ test '' = 1
+ case ${response} in
+ log notice '\033[4mVM Startup Check:\033[24m User accepted to start Virtual Machine(s).'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ start_guest
+ test '' = 1
+ case "${hypervisor}" in
+ start_virtualbox_vm
+ log notice 'Starting Virtual Machine(s).'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case "${guest}" in
+ log_run notice vboxmanage startvm Whonix-Gateway-Xfce
+ level=notice
+ shift
++ echo vboxmanage startvm Whonix-Gateway-Xfce
++ tr -s ' '
+ command_without_extrarenous_spaces='vboxmanage startvm Whonix-Gateway-Xfce'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ vboxmanage startvm Whonix-Gateway-Xfce'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ vboxmanage startvm Whonix-Gateway-Xfce
+ return 1
+ virtualbox_start_failed
+ '[' '' = true ']'
+ '[' true = false ']'
+ die 107 '\033[4mVirtual Machine Startup Result:\033[24m \033[31m\033[1mFAIL\033[22m\033[0m
  - The installer succeeded with download and import, but
  - failed to start the virtual machines (VMs).
  - The root cause for this issue is likely not the installer.
  - This issue would likely also happen if the user tried to manually start the VMs.
  - Refer to user documentation:
  https://www.whonix.org/wiki/VirtualBox/Troubleshooting'
+ log error '\033[4mVirtual Machine Startup Result:\033[24m \033[31m\033[1mFAIL\033[22m\033[0m
  - The installer succeeded with download and import, but
  - failed to start the virtual machines (VMs).
  - The root cause for this issue is likely not the installer.
  - This issue would likely also happen if the user tried to manually start the VMs.
  - Refer to user documentation:
  https://www.whonix.org/wiki/VirtualBox/Troubleshooting'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test 107 = 0
+ test 107 = 106
+ test 107 = 107
+ end_exit
+ trap - EXIT HUP INT QUIT ABRT ALRM TERM
+ test -n ''
+ exit 107

Thanks for the log. This is certainly a bug that I want and probably can fix as soon as possible.

The installer runs command vboxmanage showvminfo Whonix-Gateway-Xfce and thinks the VM is already there. But in fact it is actually not as we only notice through running the VM start command. I don’t understand yet how this can happen.

Could you please post the output of the following command here?

vboxmanage showvminfo Whonix-Gateway-Xfce

You can redact some stuff from the output such as /home/user to hide host operating system user name.

Here is the output of the requested command:

$ vboxmanage showvminfo Whonix-Gateway-Xfce
Name:                        Whonix-Gateway-Xfce
Groups:                      /
Guest OS:                    Debian (64-bit)
UUID:                        redacted
Config file:                 /home/ubuntu/VirtualBox VMs/Whonix-Gateway-Xfce/Whonix-Gateway-Xfce.vbox
Snapshot folder:             /home/ubuntu/VirtualBox VMs/Whonix-Gateway-Xfce/Snapshots
Log folder:                  /home/ubuntu/VirtualBox VMs/Whonix-Gateway-Xfce/Logs
Hardware UUID:               redacted
Memory size:                 1280MB
Page Fusion:                 disabled
VRAM size:                   128MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              3
PAE:                         enabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      disabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               HardDisk
Boot Device 2:               Not Assigned
Boot Device 3:               Not Assigned
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
RTC:                         UTC
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 enabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   KVM
State:                       powered off (since 2023-09-01T13:24:14.000000000)
Graphics Controller:         VMSVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:          
Teleporter Password:         
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:       
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:            
VM process priority:         default
Storage Controller Name (0):            controller
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      4
Storage Controller Bootable (0):        on
controller (0, 0): /home/ubuntu/VirtualBox VMs/Whonix-Gateway-Xfce/Whonix-Xfce-17.0.4.5-disk001.vmdk (UUID: redacted)
NIC 1:                       MAC: redacted, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:                       MAC: 080027201E6A, Attachment: Internal Network 'Whonix', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             PS/2 Mouse
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: PulseAudio, Controller: AC97, Codec: STAC9700)
Audio playback:              enabled
Audio capture:               disabled
Clipboard Mode:              Bidirectional
Drag and drop Mode:          HostToGuest
VRDE:                        disabled
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:<none>

Recording enabled:           no
Recording screens:           1
 Screen 0:
    Enabled:                 yes
    ID:                      0
    Record video:            yes
    Record audio:            no
    Destination:             File
    File:                    /home/ubuntu/VirtualBox VMs/Whonix-Gateway-Xfce/Whonix-Gateway-Xfce-screen0.webm
    Options:                 vc_enabled=true,ac_enabled=false,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
Description:
Build Version [A]: 17.0.4.5

Stay tuned! [B]

Please donate! [C]

[A] https://www.whonix.org/wiki/Build_Version
[B] https://www.whonix.org/wiki/Stay_Tuned
[C] https://www.whonix.org/wiki/Donate
Guest:

Configured memory balloon size: 0MB

And here is the first log file at the location ~/dist-installer-cli-download/logs/1$ cat debug.log in case this one is different. I ran the install command three times in a row (with the same error each time) and this should correspond to the first attempt:

~/dist-installer-cli-download/logs/1$ cat debug.log 
+ xtrace=1
+ touch /home/ubuntu/dist-installer-cli-download/logs/1/debug.log
+ return 0
+ get_utilities
+ get_su_cmd
+ true
+ has sudo
++ command -v sudo
+ _cmd=/usr/bin/sudo
+ '[' -x /usr/bin/sudo ']'
+ sucmd=sudo
+ break
+ log info 'Testing root_cmd function'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ root_cmd echo test
+ test -z echo
+ case "${sucmd}" in
+ log_run notice sudo -- echo test
+ level=notice
+ shift
++ echo sudo -- echo test
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- echo test'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- echo test'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- echo test
+ test '' = 1
+ test sudo = sudo
+ timeout --kill-after 5 5 sudo --non-interactive -- test -d /usr
+ log info 'User system is using credential caching: Yes'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
++ timeout --kill-after 5 5 sudo -- test -d /usr
+ root_output=
+ test -n ''
+ get_checkhash_cmd
+ test '' = 1
+ true
+ has sha512sum
++ command -v sha512sum
+ _cmd=/usr/bin/sha512sum
+ '[' -x /usr/bin/sha512sum ']'
+ checkhash='sha512sum --check --strict --warn'
+ break
+ get_transfer_cmd
+ transfer_utility=rsync
+ case "${transfer_utility}" in
+ rsync=1
+ transfer_max_time_large_file=2700
+ transfer_max_time_small_file=180
+ transfer_io_timeout=600
+ transfer_connect_timeout=180
+ transfer_size_test_connection=200K
+ transfer_size_small_file=2K
+ transfer_size_large_file=3G
+ case ${transfer_utility} in
+ transfer_io_timeout_opt='--timeout 600'
+ transfer_size_opt=--max-size
+ transfer_dryrun_opt=--dry-run
+ transfer_output_dir_opt=
+ transfer_output_file_opt=
+ transfer_verbosity_opt='--no-motd --progress --verbose --verbose'
+ transfer_speed_optimization_opt='--compress --partial'
+ get_download_links
+ site_clearnet_whonix=whonix.org
+ site_onion_whonix=dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion
+ site_clearnet_kicksecure=kicksecure.com
+ site_onion_kicksecure=w5j6stm77zs6652pgsij4awcjeel3eco7kvipheu6mtr623eyyehj4yd.onion
+ case "${guest}" in
+ site_clearnet=whonix.org
+ site_onion=dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion
+ test -z ''
+ mirror=0
+ case "${mirror}" in
+ site_download_clearnet=whonix.org/whonix
+ site_download_onion=dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/whonix
+ case "${transfer_utility}" in
+ protocol_prefix_clearnet=rsync
+ protocol_prefix_onion=rsync
+ url_download_clearnet=rsync://whonix.org/whonix
+ url_download_onion=rsync://dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/whonix
+ case "${onion}" in
+ log info 'Clearnet preferred.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test rsync = rsync
+ transfer_utility=rsync-ssl
+ curl_opt_ssl='--tlsv1.3 --proto =https'
+ url_origin=rsync://www.whonix.org
+ url_download=rsync://whonix.org/whonix
+ url_version_domain=https://www.whonix.org
+ case "${hypervisor}" in
+ test '' = 1
+ url_version_template=VersionNew
+ signify_key='untrusted comment: Patrick Schleizer adrelanos@whonix.org signify public key
RWQ6KRormNEETq+M8IysxRe/HAWlqZRlO8u7ACIiv5poAW0ztsirOjCQ'
+ signify_signer=adrelanos
+ url_domain=rsync://whonix.org/whonix/ova
+ guest_file_ext=ova
+ url_version_prefix='w/index.php?title=Template:'
+ url_version_suffix='&stable=0&action=raw'
+ url_version='https://www.whonix.org/w/index.php?title=Template:VersionNew&stable=0&action=raw'
+ main
+ log notice 'Saving user log to: '\''/home/ubuntu/dist-installer-cli-download/logs/1/user.log'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test -f /home/ubuntu/dist-installer-cli-download/logs/1/debug.log
+ log notice 'Saving debug log to: '\''/home/ubuntu/dist-installer-cli-download/logs/1/debug.log'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log info 'Starting main function.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
++ capitalize_first_char whonix
++ echo whonix
++ awk '{$1=toupper(substr($1,0,1))substr($1,2)}1'
+ guest_pretty=Whonix
+ case "${hypervisor}" in
+ hypervisor_pretty=VirtualBox
+ log info 'Parsed options:'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  directory_prefix="/home/ubuntu/dist-installer-cli-download"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  guest="whonix"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  hypervisor="virtualbox"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  interface="xfce"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ for item in ${arg_saved}
+ log info '  log_level="notice"'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' = 1
+ log notice '\033[4mInstaller:\033[24m \033[1m'\''Whonix Xfce for VirtualBox Installer'\''\033[22m'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ log notice 'If you wish to cancel installation, press Ctrl+C.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ check_license
+ '[' '' = 1 ']'
+ log notice 'The license will be shown in 5 seconds.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice '(Use -n or --non-interactive for non-interactive mode.)'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ sleep 5
+ true
+ has dialog
++ command -v dialog
+ _cmd=
+ return 1
+ has whiptail
++ command -v whiptail
+ _cmd=/usr/bin/whiptail
+ '[' -x /usr/bin/whiptail ']'
+ dialog_box=whiptail
+ break
+ case "${dialog_box}" in
+ whiptail --scrolltext --title 'License agreement (scroll with arrows)' --yes-button Agree --no-button Disagree --yesno '
Please do NOT continue unless you understand everything!
 DISCLAIMER OF WARRANTY.
 .
 THE PROGRAM IS PROVIDED WITHOUT ANY WARRANTIES, WHETHER EXPRESSED OR IMPLIED,
 INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
 PURPOSE, NON-INFRINGEMENT, TITLE AND MERCHANTABILITY.  THE PROGRAM IS BEING
 DELIVERED OR MADE AVAILABLE '\''AS IS'\'', '\''WITH ALL FAULTS'\'' AND WITHOUT WARRANTY OR
 REPRESENTATION.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
 PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
 .
 LIMITATION OF LIABILITY.
 .
 UNDER NO CIRCUMSTANCES SHALL ANY COPYRIGHT HOLDER OR ITS AFFILIATES, OR ANY
 OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE
 LIABLE TO YOU, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, FOR ANY
 DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, DIRECT, INDIRECT, SPECIAL,
 INCIDENTAL, CONSEQUENTIAL OR PUNITIVE DAMAGES ARISING FROM, OUT OF OR IN
 CONNECTION WITH THE USE OR INABILITY TO USE THE PROGRAM OR OTHER DEALINGS WITH
 THE PROGRAM(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
 INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), WHETHER OR NOT ANY COPYRIGHT HOLDER
 OR SUCH OTHER PARTY RECEIVES NOTICE OF ANY SUCH DAMAGES AND WHETHER OR NOT SUCH
 DAMAGES COULD HAVE BEEN FORESEEN.
 .
 INDEMNIFICATION.
 .
 IF YOU CONVEY A COVERED WORK AND AGREE WITH ANY RECIPIENT
 OF THAT COVERED WORK THAT YOU WILL ASSUME ANY LIABILITY FOR THAT COVERED WORK,
 YOU HEREBY AGREE TO INDEMNIFY, DEFEND AND HOLD HARMLESS THE OTHER LICENSORS AND
 AUTHORS OF THAT COVERED WORK FOR ANY DAMAGES, DEMANDS, CLAIMS, LOSSES, CAUSES OF
 ACTION, LAWSUITS, JUDGMENTS EXPENSES (INCLUDING WITHOUT LIMITATION REASONABLE
 ATTORNEYS'\'' FEES AND EXPENSES) OR ANY OTHER LIABILITY ARISING FROM, RELATED TO OR
 IN CONNECTION WITH YOUR ASSUMPTIONS OF LIABILITY.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
' 24 80
+ log notice '\033[4mLicense Check:\033[24m '\''success'\'' - User has accepted the license.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ pre_check
+ get_os
++ uname -s
+ os=Linux
++ uname -r
+ kernel=6.2.0-34-generic
++ uname -m
+ arch=x86_64
+ distro=
+ distro_version=
+ debian_testing_or_unstable_detected=
+ case ${os} in
+ has lsb_release
++ command -v lsb_release
+ _cmd=/usr/bin/lsb_release
+ '[' -x /usr/bin/lsb_release ']'
++ lsb_release --short --description
+ distro='Ubuntu 22.04.3 LTS'
++ lsb_release --short --release
+ distro_version=22.04
+ distro='Ubuntu 22.04.3 LTS'
+ distro='Ubuntu 22.04.3 LTS'
+ case ${PATH} in
+ '[' '' ']'
+ '[' -z 6.2.0-34-generic ']'
+ echo 'Ubuntu 22.04.3 LTS'
+ grep --quiet /sid
+ distro_derivative_name_pretty='(No derivative detected.)'
+ distro_derivative_version='(No derivative detected.)'
+ test -f /usr/share/kicksecure/marker
+ test -f /usr/share/whonix/marker
+ log notice 'Detected architecture: '\''x86_64'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Detected system: '\''Linux'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Detected distribution / derivative name: '\''Ubuntu 22.04.3 LTS'\'' / '\''(No derivative detected.)'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Detected distribution / derivative version: '\''22.04'\'' / '\''(No derivative detected.)'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ '[' '' = true ']'
+ log info 'Debian testing or unstable detection: '\''Not detected.'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ '[' -z 22.04 ']'
++ echo 22.04
++ tr -d .
+ distro_version_without_dot=2204
+ is_integer 2204
+ printf %d 2204
+ get_system_stat
+ '[' x86_64 '!=' x86_64 ']'
+ case "${interface}" in
+ min_ram_mb=3328
+ test '' = 1
++ awk '/MemTotal/{print $2}' /proc/meminfo
+ total_mem_kB=8027892
+ total_mem=8027
+ '[' 8027 -lt 4200 ']'
++ df --output=avail -BG /home/ubuntu/dist-installer-cli-download
+ df_output='Avail
 858G'
++ echo 'Avail
 858G'
++ awk '/G$/{print substr($1, 1, length($1)-1)}'
+ free_space_available=858
+ free_space_required=10
+ case "${guest}" in
+ case "${interface}" in
+ free_space_required=5
+ test '' = 1
+ test '' = 1
+ '[' 858 -lt 5 ']'
+ get_host_pkgs
+ true 'distro: Ubuntu 22.04.3 LTS'
+ case "${os}" in
+ case "${distro}" in
+ '[' 2204 -lt 2204 ']'
+ log notice 'Preparing to install packages required for the hypervisor usage, this may take some time.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ debian_derivative_detected=1
+ install_package_debian_common
+ pkg_mngr=apt-get
+ pkg_mngr_install='apt-get install --yes --no-install-recommends'
+ pkg_mngr_update='apt-get update --yes --error-on=any'
+ pkg_mngr_check_installed=check_installed_debian
++ dpkg --audit
+ dpkg_audit_output=
+ test -n ''
+ test '' = 1
+ update_sources
+ log notice 'Updating package list.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ tty
+ console_write_command='tee /dev/tty'
++ root_cmd apt-get update --yes --error-on=any
++ test -z apt-get
++ tee /dev/tty
++ case "${sucmd}" in
++ log_run notice sudo -- apt-get update --yes --error-on=any
++ level=notice
++ shift
+++ echo sudo -- apt-get update --yes --error-on=any
+++ tr -s ' '
++ command_without_extrarenous_spaces='sudo -- apt-get update --yes --error-on=any'
++ test '' = 1
++ test '' = 1
++ log notice 'Running: $ sudo -- apt-get update --yes --error-on=any'
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace
++ sudo -- apt-get update --yes --error-on=any
+ update_output='whonix-xfce-installer-cli: [NOTICE]: Running: $ sudo -- apt-get update --yes --error-on=any
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists...'
+ true 'INFO: Exit code is zero but that does not guarantee in case of dnf that there is no error.'
+ echo 'whonix-xfce-installer-cli: [NOTICE]: Running: $ sudo -- apt-get update --yes --error-on=any
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists...'
+ grep --quiet --ignore-case Error:
+ true 'INFO: No error found in update output, ok.'
+ return 0
+ install_pkg lsb-release
+ pkgs=lsb-release
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian lsb-release
++ dpkg-query --show '--showformat=${db:Status-Status}' lsb-release
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''lsb-release'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ test -n ''
+ test '' = 1
+ install_pkg torsocks
+ pkgs=torsocks
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian torsocks
++ dpkg-query --show '--showformat=${db:Status-Status}' torsocks
+ status='dpkg-query: no packages found matching torsocks'
+ test 1 '!=' 0
+ return 1
+ has torsocks
++ command -v torsocks
+ _cmd=
+ return 1
+ pkg_not_installed=' torsocks'
+ test -n ' torsocks'
+ test '' = 1
+ log notice 'Installing package(s): '\'' torsocks'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ root_cmd apt-get install --yes --no-install-recommends torsocks
+ test -z apt-get
+ case "${sucmd}" in
+ log_run notice sudo -- apt-get install --yes --no-install-recommends torsocks
+ level=notice
+ shift
++ echo sudo -- apt-get install --yes --no-install-recommends torsocks
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- apt-get install --yes --no-install-recommends torsocks'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- apt-get install --yes --no-install-recommends torsocks'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- apt-get install --yes --no-install-recommends torsocks
+ test_pkg ' torsocks'
+ pkgs=' torsocks'
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ has torsocks
++ command -v torsocks
+ _cmd=/usr/bin/torsocks
+ '[' -x /usr/bin/torsocks ']'
+ test -n ''
+ install_signify signify-openbsd
+ pkg_name=signify-openbsd
+ has signify-openbsd
++ command -v signify-openbsd
+ _cmd=
+ return 1
+ install_pkg signify-openbsd
+ pkgs=signify-openbsd
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian signify-openbsd
++ dpkg-query --show '--showformat=${db:Status-Status}' signify-openbsd
+ status='dpkg-query: no packages found matching signify-openbsd'
+ test 1 '!=' 0
+ return 1
+ has signify-openbsd
++ command -v signify-openbsd
+ _cmd=
+ return 1
+ pkg_not_installed=' signify-openbsd'
+ test -n ' signify-openbsd'
+ test '' = 1
+ log notice 'Installing package(s): '\'' signify-openbsd'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ root_cmd apt-get install --yes --no-install-recommends signify-openbsd
+ test -z apt-get
+ case "${sucmd}" in
+ log_run notice sudo -- apt-get install --yes --no-install-recommends signify-openbsd
+ level=notice
+ shift
++ echo sudo -- apt-get install --yes --no-install-recommends signify-openbsd
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- apt-get install --yes --no-install-recommends signify-openbsd'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- apt-get install --yes --no-install-recommends signify-openbsd'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- apt-get install --yes --no-install-recommends signify-openbsd
+ test_pkg ' signify-openbsd'
+ pkgs=' signify-openbsd'
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ has signify-openbsd
++ command -v signify-openbsd
+ _cmd=/usr/bin/signify-openbsd
+ '[' -x /usr/bin/signify-openbsd ']'
+ test -n ''
+ install_virtualbox_ubuntu
+ has vboxmanage
++ command -v vboxmanage
+ _cmd=
+ return 1
+ install_pkg virtualbox linux-headers-generic
+ pkgs='virtualbox linux-headers-generic'
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian virtualbox
++ dpkg-query --show '--showformat=${db:Status-Status}' virtualbox
+ status='dpkg-query: no packages found matching virtualbox'
+ test 1 '!=' 0
+ return 1
+ has virtualbox
++ command -v virtualbox
+ _cmd=
+ return 1
+ pkg_not_installed=' virtualbox'
+ for pkg in ${pkgs}
+ check_installed_debian linux-headers-generic
++ dpkg-query --show '--showformat=${db:Status-Status}' linux-headers-generic
+ status=not-installed
+ test 0 '!=' 0
+ test not-installed '!=' installed
+ return 1
+ has linux-headers-generic
++ command -v linux-headers-generic
+ _cmd=
+ return 1
+ pkg_not_installed=' virtualbox linux-headers-generic'
+ test -n ' virtualbox linux-headers-generic'
+ test '' = 1
+ log notice 'Installing package(s): '\'' virtualbox linux-headers-generic'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ root_cmd apt-get install --yes --no-install-recommends virtualbox linux-headers-generic
+ test -z apt-get
+ case "${sucmd}" in
+ log_run notice sudo -- apt-get install --yes --no-install-recommends virtualbox linux-headers-generic
+ level=notice
+ shift
++ echo sudo -- apt-get install --yes --no-install-recommends virtualbox linux-headers-generic
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- apt-get install --yes --no-install-recommends virtualbox linux-headers-generic'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- apt-get install --yes --no-install-recommends virtualbox linux-headers-generic'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- apt-get install --yes --no-install-recommends virtualbox linux-headers-generic
+ test_pkg ' virtualbox linux-headers-generic'
+ pkgs=' virtualbox linux-headers-generic'
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ has virtualbox
++ command -v virtualbox
+ _cmd=
+ return 1
+ check_installed_debian virtualbox
++ dpkg-query --show '--showformat=${db:Status-Status}' virtualbox
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ for pkg in ${pkgs}
+ has linux-headers-generic
++ command -v linux-headers-generic
+ _cmd=
+ return 1
+ check_installed_debian linux-headers-generic
++ dpkg-query --show '--showformat=${db:Status-Status}' linux-headers-generic
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ test -n ''
+ install_virtualbox_debian_common_end
+ has vboxmanage
++ command -v vboxmanage
+ _cmd=/usr/bin/vboxmanage
+ '[' -x /usr/bin/vboxmanage ']'
+ add_user_to_vbox_group
++ id --name --user
+ id_of_user=ubuntu
+ id -nG ubuntu
+ grep -qw 'vboxusers$'
+ test 1 = 1
+ root_cmd adduser ubuntu vboxusers
+ test -z adduser
+ case "${sucmd}" in
+ log_run notice sudo -- adduser ubuntu vboxusers
+ level=notice
+ shift
++ echo sudo -- adduser ubuntu vboxusers
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- adduser ubuntu vboxusers'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- adduser ubuntu vboxusers'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- adduser ubuntu vboxusers
+ get_independent_host_pkgs
+ has signify-openbsd
++ command -v signify-openbsd
+ _cmd=/usr/bin/signify-openbsd
+ '[' -x /usr/bin/signify-openbsd ']'
+ has timeout
++ command -v timeout
+ _cmd=/usr/bin/timeout
+ '[' -x /usr/bin/timeout ']'
+ has curl
++ command -v curl
+ _cmd=/usr/bin/curl
+ '[' -x /usr/bin/curl ']'
+ has rsync
++ command -v rsync
+ _cmd=/usr/bin/rsync
+ '[' -x /usr/bin/rsync ']'
+ has mokutil
++ command -v mokutil
+ _cmd=/usr/bin/mokutil
+ '[' -x /usr/bin/mokutil ']'
+ install_pkg openssl ca-certificates
+ pkgs='openssl ca-certificates'
+ pkg_not_installed=
+ for pkg in ${pkgs}
+ check_installed_debian openssl
++ dpkg-query --show '--showformat=${db:Status-Status}' openssl
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''openssl'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ for pkg in ${pkgs}
+ check_installed_debian ca-certificates
++ dpkg-query --show '--showformat=${db:Status-Status}' ca-certificates
+ status=installed
+ test 0 '!=' 0
+ test installed '!=' installed
+ return 0
+ log info 'Package already installed: '\''ca-certificates'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ continue
+ test -n ''
+ true
+ has systemd-detect-virt
++ command -v systemd-detect-virt
+ _cmd=/usr/bin/systemd-detect-virt
+ '[' -x /usr/bin/systemd-detect-virt ']'
+ nested_virt_tool=systemd-detect-virt
+ break
+ nested_virtualization_test
+ nested_virtualization_detected=
+ test -z systemd-detect-virt
+ test '' = 1
+ root_cmd systemd-detect-virt
+ test -z systemd-detect-virt
+ case "${sucmd}" in
+ log_run notice sudo -- systemd-detect-virt
+ level=notice
+ shift
++ echo sudo -- systemd-detect-virt
++ tr -s ' '
+ command_without_extrarenous_spaces='sudo -- systemd-detect-virt'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ sudo -- systemd-detect-virt'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ sudo -- systemd-detect-virt
+ return 1
+ test -f /usr/share/qubes/marker-vm
+ secure_boot_test
+ local mokutil_output
++ mokutil --sb-state
+ mokutil_output='This system doesn'\''t support Secure Boot'
+ log info '\033[4mSecure Boot Check Result:\033[24m '\''disabled'\'' (mokutil_output: '\''This system doesn'\''t support Secure Boot'\'') Ok.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case "${onion}" in
+ test -n ''
+ test '' = 1
+ get_virtualization
++ root_cmd grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
++ grep -wo -E '(vmx|svm)'
++ test -z grep
++ case "${sucmd}" in
++ log_run notice sudo -- grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
++ level=notice
++ shift
+++ echo sudo -- grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
+++ tr -s ' '
++ command_without_extrarenous_spaces='sudo -- grep -m1 -w ^flags[[:blank:]]*: /proc/cpuinfo'
++ test '' = 1
++ test '' = 1
++ log notice 'Running: $ sudo -- grep -m1 -w ^flags[[:blank:]]*: /proc/cpuinfo'
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace
++ sudo -- grep -m1 -w '^flags[[:blank:]]*:' /proc/cpuinfo
+ virt_flag=vmx
+ case "${virt_flag:=}" in
+ brand=intel
+ case "${virt_flag:=}" in
+ log notice '\033[4mVirtualization Support Test:\033[24m Your CPU supports virtualization: '\''intel'\'': '\''vmx'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ virt_detection_success=true
+ return 0
+ log_time
++ get_elapsed_time
+++ date +%s
++ printf '%s\n' 230
+ log info 'Elapsed time: 230s.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test '' '!=' 1
+ check_vm_exists
+ test '' = 1
+ log info 'Checking if Virtual Machine(s) have been already imported.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ case "${hypervisor}" in
+ check_vm_exists_virtualbox
+ test '' = 1
+ case "${guest}" in
+ workstation_exists=0
+ gateway_exists=0
+ vboxmanage showvminfo Whonix-Gateway-Xfce
+ vboxmanage showvminfo Whonix-Workstation-Xfce
+ test 0 = 0
+ test 0 = 1
+ test 0 = 1
+ test 0 = 1
+ test 0 = 1
+ test -n ''
+ should_download
+ test '' = 1
+ test '' = 1
+ test -f ''
+ return 0
+ test '' '!=' 1
+ log notice 'Testing internet connection...'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ cmd_check_internet='timeout --foreground 180  rsync-ssl  --dry-run --max-size 200K rsync://www.whonix.org'
+ log info 'Executing: $ timeout --foreground 180  rsync-ssl  --dry-run --max-size 200K rsync://www.whonix.org'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ timeout --foreground 180 rsync-ssl --dry-run --max-size 200K rsync://www.whonix.org
+ log notice 'Connection to rsync://www.whonix.org succeeded.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ get_version 'https://www.whonix.org/w/index.php?title=Template:VersionNew&stable=0&action=raw'
+ log notice 'Detecting guest version...'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ test -n ''
+ log info 'Acquiring guest version from API...'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log info 'API host: https://www.whonix.org/w/index.php?title=Template:VersionNew&stable=0&action=raw'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
++ get_proxy_cred version
++ test rsync-ssl '!=' curl
++ return 0
+ cmd_raw_version='curl         --tlsv1.3 --proto =https       --max-time 180       --max-filesize 2K       --url https://www.whonix.org/w/index.php?title=Template:VersionNew&stable=0&action=raw'
+ test '' = 1
++ curl --tlsv1.3 --proto =https --max-time 180 --max-filesize 2K --url 'https://www.whonix.org/w/index.php?title=Template:VersionNew&stable=0&action=raw'
+ raw_version='17.0.4.5<noinclude>[[Category:MultiWiki]]
{{mbox
| image   = [[File:Ambox_warning_pn.svg.png|40px|link=]]
| text    =
<span class="fontsize19>'\'''\'''\''NOTE FOR ADMIN: If you change this version, please make sure to also change [[Template:VersionTesters]]'\'''\'''\''</span>
}}
</noinclude>'
++ echo '17.0.4.5<noinclude>[[Category:MultiWiki]]
{{mbox
| image   = [[File:Ambox_warning_pn.svg.png|40px|link=]]
| text    =
<span class="fontsize19>'\'''\'''\''NOTE FOR ADMIN: If you change this version, please make sure to also change [[Template:VersionTesters]]'\'''\'''\''</span>
}}
</noinclude>'
++ head -n 1
+ guest_version='17.0.4.5<noinclude>[[Category:MultiWiki]]'
++ printf '%s\n' '17.0.4.5<noinclude>[[Category:MultiWiki]]'
++ sed 's/<.*//'
+ guest_version=17.0.4.5
+ '[' 17.0.4.5 ']'
+ '[' 8 -le 12 ']'
+ log notice 'Version: '\''17.0.4.5'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ guest_file=Whonix-Xfce-17.0.4.5
+ download_flag=/home/ubuntu/dist-installer-cli-download/Whonix-Xfce-17.0.4.5.ova.flag
+ url_domain=rsync://whonix.org/whonix/ova/17.0.4.5
+ url_guest_file=rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5
+ should_download
+ test '' = 1
+ test '' = 1
+ test -f /home/ubuntu/dist-installer-cli-download/Whonix-Xfce-17.0.4.5.ova.flag
+ return 0
+ download_files
+ log_time
++ get_elapsed_time
+++ date +%s
++ printf '%s\n' 233
+ log info 'Elapsed time: 233s.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log notice 'Downloads will be stored in the directory: '\''/home/ubuntu/dist-installer-cli-download'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ get_file large rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova
+ size=large
+ url=rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova
+ test -z ''
+ round=10
+ round=11
+ case "${size}" in
+ download_opt_prefix='timeout --foreground 2700'
+ download_opt='--compress --partial --max-size 3G'
++ get_proxy_cred 11
++ test rsync-ssl '!=' curl
++ return 0
+ download_opt_full='timeout --foreground 2700  rsync-ssl --no-motd --progress --verbose --verbose    --timeout 600 --compress --partial --max-size 3G  rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova  /home/ubuntu/dist-installer-cli-download'
+ log notice 'Downloading: '\''rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova'\'''
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ log_run notice timeout --foreground 2700 rsync-ssl --no-motd --progress --verbose --verbose --timeout 600 --compress --partial --max-size 3G rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova /home/ubuntu/dist-installer-cli-download
+ level=notice
+ shift
++ echo timeout --foreground 2700 rsync-ssl --no-motd --progress --verbose --verbose --timeout 600 --compress --partial --max-size 3G rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova /home/ubuntu/dist-installer-cli-download
++ tr -s ' '
+ command_without_extrarenous_spaces='timeout --foreground 2700 rsync-ssl --no-motd --progress --verbose --verbose --timeout 600 --compress --partial --max-size 3G rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova /home/ubuntu/dist-installer-cli-download'
+ test '' = 1
+ test '' = 1
+ log notice 'Running: $ timeout --foreground 2700 rsync-ssl --no-motd --progress --verbose --verbose --timeout 600 --compress --partial --max-size 3G rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova /home/ubuntu/dist-installer-cli-download'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
+ timeout --foreground 2700 rsync-ssl --no-motd --progress --verbose --verbose --timeout 600 --compress --partial --max-size 3G rsync://whonix.org/whonix/ova/17.0.4.5/Whonix-Xfce-17.0.4.5.ova /home/ubuntu/dist-installer-cli-download
++ handle_exit 20 1
++ true 'BEGIN handle_exit() with args: 20 1'
++ last_exit=20
++ line_number=1
++ log_time
+++ get_elapsed_time
++++ date +%s
+++ printf '%s\n' 765
++ log info 'Elapsed time: 765s.'
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace
++ test 20 = 0
++ test 20 = 106
++ test 20 = 107
++ test -n '"${@}"'
++ log notice 'Executed script, function, command: '\''./whonix-xfce-installer-cli'\'' '\''log_run'\'' '\''"${@}"'\'''
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace
++ test 1 -gt 2
++ '[' 20 -gt 128 ']'
++ log error 'Exit code: '\''20'\'''
++ test 1 = 1
++ true 'Removing xtrace for log() function.'
++ set +o xtrace

Please let me know if you need anything else.

1 Like

Also, if it helps, after receiving the error on the initial installation attempt of Whonix on a fresh Ubuntu install, I may have run some commands to try and install VirtualBox or troubleshoot.

1 Like

If I start Virtualbox manually, then everything works fine.

1 Like

I compared your and my output of vboxmanage showvminfo Whonix-Gateway-Xfce and I cannot see any significant difference. Looks all good.

What happens if you manually run the same command which the script was running to start the gateway…?

vboxmanage startvm Whonix-Gateway-Xfce

Does that start the gateway or show an error message?

If the gateway starts, does the installer now also manage to start the gateway?

Search results for:

“VBoxManage: error: Could not launch the VM process for the machine” “(VERR_FILE_NOT_FOUND)”

are not good.

Search results for:

“VBOX_E_IPRT_ERROR” “0x80bb0005”

are a bit better but still inconclusive.


Did you change any VM settings before?

Did you use VM clones or snapshots before?

All the commands seem to work now. I’m not sure what the difference was. I cannot recall all of the steps faithfully, but I do not believe I made any significant modifications.

I simply started Virtualbox manually. Maybe I restarted my computer or terminal in-between.

Here’s output:

$ vboxmanage startvm Whonix-Gateway-Xfce
Waiting for VM "Whonix-Gateway-Xfce" to power on...
VM "Whonix-Gateway-Xfce" has been successfully started.
$ bash ./whonix-xfce-installer-cli
whonix-xfce-installer-cli: [NOTICE]: Running: $ sudo -- echo test
[sudo] password for ubuntu: 
test
whonix-xfce-installer-cli: [NOTICE]: Saving user log to: '/home/ubuntu/dist-installer-cli-download/logs/4/user.log'
whonix-xfce-installer-cli: [NOTICE]: Saving debug log to: '/home/ubuntu/dist-installer-cli-download/logs/4/debug.log'
whonix-xfce-installer-cli: [NOTICE]: Installer: 'Whonix Xfce for VirtualBox Installer'
whonix-xfce-installer-cli: [NOTICE]: If you wish to cancel installation, press Ctrl+C.
whonix-xfce-installer-cli: [NOTICE]: The license will be shown in 5 seconds.
whonix-xfce-installer-cli: [NOTICE]: (Use -n or --non-interactive for non-interactive mode.)
whonix-xfce-installer-cli: [NOTICE]: License Check: 'success' - User has accepted the license.
whonix-xfce-installer-cli: [NOTICE]: Detected architecture: 'x86_64'
whonix-xfce-installer-cli: [NOTICE]: Detected system: 'Linux'
whonix-xfce-installer-cli: [NOTICE]: Detected distribution / derivative name: 'Ubuntu 22.04.3 LTS' / '(No derivative detected.)'
whonix-xfce-installer-cli: [NOTICE]: Detected distribution / derivative version: '22.04' / '(No derivative detected.)'
whonix-xfce-installer-cli: [NOTICE]: Preparing to install packages required for the hypervisor usage, this may take some time.
whonix-xfce-installer-cli: [NOTICE]: Updating package list.
whonix-xfce-installer-cli: [NOTICE]: Running: $ sudo -- apt-get update --yes --error-on=any
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43.2 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [101 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [55.0 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [305 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [4,924 B]
Get:12 http://us.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [17.7 kB]
Fetched 865 kB in 2s (517 kB/s)
Reading package lists...
whonix-xfce-installer-cli: [NOTICE]: Virtualization Support Test: Your CPU supports virtualization: 'intel': 'vmx'
whonix-xfce-installer-cli: [NOTICE]: Existing VM Check: Virtual Machine(s) have been imported previously.
whonix-xfce-installer-cli: [NOTICE]: VirtualBox Installation Result: 'SUCCESS'
whonix-xfce-installer-cli: [NOTICE]: Available guest: 'Whonix-Gateway-Xfce'
whonix-xfce-installer-cli: [NOTICE]: Available guest: 'Whonix-Workstation-Xfce'
whonix-xfce-installer-cli: [NOTICE]: Question: Do you want to start VirtualBox and the Whonix Virtual Machine(s) now? [y/n] (default: yes): 
Your answer: y
whonix-xfce-installer-cli: [NOTICE]: User replied: 'y'
whonix-xfce-installer-cli: [NOTICE]: VirtualBox Startup Check: User accepted to start VirtualBox.
whonix-xfce-installer-cli: [NOTICE]: If you would like to redownload the image, read about --redownload (safe).
whonix-xfce-installer-cli: [NOTICE]: If you would like to reimport the image, read about --reimport (danger).
whonix-xfce-installer-cli: [NOTICE]: VM Startup Check: User accepted to start Virtual Machine(s).
whonix-xfce-installer-cli: [NOTICE]: Starting Virtual Machine(s).
whonix-xfce-installer-cli: [NOTICE]: Running: $ vboxmanage startvm Whonix-Gateway-Xfce
Waiting for VM "Whonix-Gateway-Xfce" to power on...
VM "Whonix-Gateway-Xfce" has been successfully started.
whonix-xfce-installer-cli: [NOTICE]: Running: $ vboxmanage startvm Whonix-Workstation-Xfce
Waiting for VM "Whonix-Workstation-Xfce" to power on...
VM "Whonix-Workstation-Xfce" has been successfully started.
whonix-xfce-installer-cli: [NOTICE]: Virtual Machine Startup Result: 'SUCCESS'
whonix-xfce-installer-cli: [NOTICE]: Running: $ virtualbox &
whonix-xfce-installer-cli: [NOTICE]: VirtualBox Manager Startup Result: Launched into the background. (pid: '4138')
whonix-xfce-installer-cli: [NOTICE]: Installer Result: 'success'

Sorry that I do not have anything more helpful to report.

Thanks for the report!

Unfortunately in this case it remains mysterious and this cannot be resolved.

The same thing happened to me, thought I am not using Ubuntu but Debian. Is this cause for concern? It has never happened to me before when I have installed whonix. Could this mean that the installer is compromised? And should I remove whonix and install it anew?

You’d get the same answers. You’d have to go through the same debug steps.

Without detailed debugging attempts it is unlikely any progress can be made towards fixing this bug.

No indication at all. That’s an invalid compromise indicator.

See: Indicators versus Invalid Compromise Indicators in Kicksecure wiki

Hi, thank you for the reply. I am not an advanced user and I doubt that I will be able to give you anything that is more useful then ghost has already provided.
I copied the end of the report and it is pretty much what his said. I am a bit reluctant to provide a full report because I am not quite sure what identifying information or information that hackers would find useful that I might accidentally provide.

whonix-xfce-installer-cli: [#[1m#[35mWARN#[0m]: Debugging information:
Secure Boot Status: 'enabled' (mokutil_output: 'SecureBoot disabled')
Kernel module has been load: false
Kernel module can be load: true (modules can be load. (sysctl kernel.modules_disabled=0 is set.)
Only signed kernel modules can be load: false
Kernel module vboxdrv signer: 
kernel_module_modprobe_output (sudo modprobe vboxdrv): 
+ '[' true = true ']'
+ log error '\033[4mVirtualBox Installation Result:\033[24m \033[31m\033[1m'\''FAIL'\''\033[22m\033[0m - because kernel module load have not been load yet.
  - Kernel modules can be load in theory, should be loaded by now, but are not.
  - This is a VirtualBox installation issue.'
+ test 1 = 1
+ true 'Removing xtrace for log() function.'
+ set +o xtrace
whonix-xfce-installer-cli: [#[1m#[31mERROR#[0m]: #[4mVirtualBox Installation Result:#[24m #[31m#[1m'FAIL'#[22m#[0m - because kernel module load have not been load yet.
  - Kernel modules can be load in theory, should be loaded by now, but are not.
  - This is a VirtualBox installation issue.
whonix-xfce-installer-cli: [#[1m#[31mERROR#[0m]: #[4mVirtual Machine Startup Result:#[24m #[31m#[1mFAIL#[22m#[0m
  - The installer succeeded with download and import, but
  - failed to start the virtual machines (VMs).
  - The root cause for this issue is likely not the installer.
  - This issue would likely also happen if the user tried to manually start the VMs.
  - This is likely happening due to the virtualization related warnings that have been reported above.
  - Resolving these issues (as per documentation hyperlinks above) would likely resolve this issue.
  https://www.whonix.org/wiki/VirtualBox/Troubleshooting
+ test 106 = 0
+ test 106 = 106
+ end_exit
+ trap - EXIT HUP INT QUIT ABRT ALRM TERM
+ test -n ''
+ exit 106

You most likely have a much different issue.

The original thread were you posted was “Whonix imported, the Whonix installer couldn’t start the Whonix VMs but strangely the Whonix VMs could be manually started”.

The issue you’re experiencing is: “the VIrtualBox kernel modules should be load but aren’t load”.

Therefore the full user log would be useful. (Not sure yet the debug log would be required.)

There’s 1 issue the installer does not catch yet but will in the next version. That is if host operating system upgrades are missing such as kernel upgrades, the VirtualBox kernel module cannot be built for the outdated kernel version because kernel headers are missing. But even then all we can (and reasonably should) provide is the recommendation to upgrade the host operating system.

Two things you can do:

  1. Upgrade your host operating system. Then reboot.

This might fix this issue already. Otherwise proceed with the next suggested steps.

  1. Install VirtualBox manually.

You do not have a Whonix issue yet. You have a VirtualBox installation issue.

You might find the VirtualBox installation instructions here useful:

But these are optional. Whonix doesn’t produce VirtualBox but our Ubuntu specific installation instructions might be easier than upstream instructions from Ubuntu or virtualbox.org.

  1. VirtualBox Generic Bug Reproduction

(Whonix is based on Kicksecure.)

I tried this again, with everything as up to date as it can be. But the same thing happened, plus the “dist-installer-cli-download” and “VirtualBox Vms” folders ended up being placed in my home folder. There is also a file in the “dist-installer-cli-download” folder named “Whonix-Xfce-17.0.4.5.ova.flag” were I expected there to be a file named “Whonix-Xfce-17.0.4.5.ova.asc” maybe that is as it should?

Anyway I don’t know what I’m doing wrong, I place the “whonix-xfce-installer-cli” in the downloads folder and use the command “bash /home/my user name/Downloads/whonix-xfce-installer-cli” to start the installer, but that shouldn’t cause this right?

This is all unrelated.

I didn’t say you could re-run the Whonix for VirtualBox Linux installer. This won’t fix itself.

For next steps you can take now, please refer to my previous post.

A post was split to a new topic: /whonix-installer-xfce: line 1: html: No such file or directory