- Ubuntu 20.04 / 21.10: Works
- Debian 10 / 11: Problem: Unattended installation starts the default Install menu from the original ISO, not the unattended install menu patched by VirtualBox.
Code: Select all
$VM_NAME="Debian 10 Unattended"
$USERNAME_FULL="Username"
$USERNAME="username"
$PASSWORD="password"
$HOSTNAME_FQDN="debian.domain.nl"
# ISO: https://cdimage.debian.org/cdimage/archive/10.11.0/amd64/iso-cd/debian-10.11.0-amd64-netinst.iso
$BOOTABLE_ISO="debian-10.11.0-amd64-netinst.iso"
# Source: C:\Program Files\Oracle\VirtualBox\UnattendedTemplates\
$PRESEED_FILE="debian_preseed.cfg"
$POSTINSTALL_FILE="debian_postinstall.sh"
# Create VM before running unattended installation
# Create unattended installation ISO
VBoxManage unattended install "$VM_NAME" `
--iso="$BOOTABLE_ISO" `
--full-user-name=$USERNAME_FULL `
--user=$USERNAME `
--password=$PASSWORD `
--hostname=$HOSTNAME_FQDN `
--country=NL `
--language=en-US `
--time-zone=$TIMEZONE `
--install-additions `
--script-template=$PRESEED_FILE `
--post-install-template=$POSTINSTALL_FILE
# Start VM
VBoxManage startvm "$VM_NAME" --type gui
Code: Select all
# D-I config version 2.0
# search path for the c32 support libraries (libcom32, libutil etc.)
path
include menu.cfg
default vesamenu.c32
prompt 10
timeout 10
Can someone confirm this, or do I something wrong? Thanks!