Unattended CentOS virtualbox creation

Discussions about using Linux guests in VirtualBox.
Post Reply
son365
Posts: 1
Joined: 20. Feb 2018, 02:55

Unattended CentOS virtualbox creation

Post by son365 »

I am trying to use the new 'VBoxManage unattended install' feature to create a CentOS VM with some installed applications without requiring any user interaction. It seems like I will need to use --post-install-template to install my application RPMs but the 'unattended install' seems to ignore any file name I pass in the --post-install-template argument. I cannot find any documentation on this feature other than 'The post installation script template'. How can I can my application RPMs installed as a part of the VM creation?

After running 'VBoxManage unattended install' which points to the CentOS iso, I am running startvm --type headless which causes the OS to be installed onto the VM. However, when starting headless, I don't know how to get the VM to shutdown after the install. Is there a way to get the VM to shutdown after the install or an alternate way to accomplish the unattended install?
Post Reply