I'm getting an error message at the end of my unattended install for Ubuntu 17.04
The script I used to create my unattended install is as followsFailed 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
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"
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.