Unattended Guest Installation Error debian_preseed.cfg' (VERR_FILE_NOT_FOUND)

Discussions related to using VirtualBox on Linux hosts.
Post Reply
freddieventura
Posts: 3
Joined: 28. Oct 2020, 13:36

Unattended Guest Installation Error debian_preseed.cfg' (VERR_FILE_NOT_FOUND)

Post by freddieventura »

Hi there community

I'm trying to get started with Virtual Box using the CLI as a super-power user that I always liked to be.
For that I'm following the excellent tutorial written on the UserGuide.pdf for 6.1 version and trying to replicate it on my system

In *Chapter 3.2.1 An Example of Unattended Guest Installation* the guide performs an installation of a brand new VM using the CLI `VBoxManage`
For that I'm trying to set up a local machine called kali (which is Debian 64 based) , allocating 10GBs of HDD . 4 GB of RAM and 128 MB of VRAM.
This is how I replicated the commands
```

Code: Select all

VBoxManage createvm --name "kali-ac" --ostype "Debian_64" --register  

VBoxManage createhd --filename /home/fakuve/VirtualBox\ VMs\ /kali-ac/kali-ac.vdi --size 1000000
VBoxManage storagectl kali-ac --name "SATA Controller" --add sata --controller IntelAHCI
VBoxManage storageattach kali-ac --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium /home/fakuve/VirtualBox\  VMs\ /kali-ac/kali-ac.vdi 
VBoxManage storagectl kali-ac --name "IDE Controller" --add ide
VBoxManage storageattach kali-ac --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium downloads/system-images/kali-linux-2020.3-installer-amd64.iso

VBoxManage modifyvm kali-ac --ioapic on
VBoxManage modifyvm kali-ac --boot1 dvd --boot2 disk --boot3 none --boot4 none
VBoxManage modifyvm kali-ac --memory 4000 --vram 128

VBoxManage unattended install kali-ac --iso=downloads/system-images/kali-linux-2020.3-installer-amd64.iso --user=fakuve --full-user-name=fakuve --password 123456 --install-additions --time-zone=CET
```
And I get the following error
```

Code: Select all

VBoxManage: info: Preparing unattended installation of Debian_64 in machine 'kali-ac' (d88356fc-439b-43f5-ac46-6f5e3c9a01ba).
VBoxManage: error: Failed to open '/usr/share/virtualbox/UnattendedTemplates/debian_preseed.cfg' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component UnattendedWrap, interface IUnattended, callee nsISupp`
```
Well I don't know If I missed some kind of a preset or something , that is not explained on the .pdf , also the last error is a bit undecryptable for me

If anyone can guide me on troubleshooting this I would much appreciate it


Thank you
Post Reply