Failed to run preseeded command

Discussions about using Linux guests in VirtualBox.
Post Reply
HealisticEngineer
Posts: 2
Joined: 10. Feb 2018, 11:12

Failed to run preseeded command

Post by HealisticEngineer »

Hi all,

I'm getting an error message at the end of my unattended install for Ubuntu 17.04
Failed to run preseeded command
Execution of preseeded command "cp /cdrom/vboxpostinstall.sh /target/root/vboxpostinstall.sh && chmod +x /target/root/vboxpostinstall.sh && /bin/bash/root/vboxpostinstall.sh --preseed-late-command" failed with exit code 127
The script I used to create my unattended install is as follows

Code: Select all

VBoxManage createvm --name "LabServer" --register
VBoxManage modifyvm "LabServer" --memory 1024 --ioapic on --acpi on --boot1 dvd --cpus 2 --vram 64
VBoxManage modifyvm "LabServer" --nic1 natnetwork --nat-network1 LabNetwork
VBoxManage modifyvm "LabServer" --ostype Ubuntu_64
VBoxManage createhd --filename D:\VM\LabServer\LabServer.vdi --size 51200 --format VDI
VBoxManage storagectl "LabServer" --add sata --controller IntelAHCI --name "SATA Controller"
VBoxManage storageattach "LabServer" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium D:\VM\LabServer\LabServer.vdi
VBoxManage unattended install "LabServer" --iso=D:\Software\ISO\ubuntu-17.04-server-amd64.iso --user=john --password=johan007 --full-user-name="john edward hall" --country=SK --time-zone=UTC --hostname=LabServer.lab.local
VBoxManage startvm "LabServer"
If anyone knows what is going wrong I'd appreciate the help.

Also while this doesn't stop the install from working after the user that is created can't sudo so have to login as root, but I'm unclear if that's expected or not.
WildSAR
Posts: 9
Joined: 2. Mar 2018, 11:38

Re: Failed to run preseeded command

Post by WildSAR »

Almost a year later, but here it goes ...

This sounds like the same bug I filed. There is a workaround provided in the ticket.

https://www.virtualbox.org/ticket/18411
Post Reply