Is there a way to change the defaults for unattended installs wizard?
Things like the user and password etc.
when I am testing new builds/setups I sometimes use the UA wizard but often forget to change things like the user and pass to what I use as defaults. Then other scripts I have to configure the guest (add apps for example I always want) fail.
It's a minor thing but would be great if there was a way to set these defaults.
Thanks
Altering the defaults for unattended installs
Altering the defaults for unattended installs
"Those who don not learn from Dilbert are doomed to repeat it"
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: Altering the defaults for unattended installs
The only thing I can think of to try tweaking is the scripts in the default installation folder Oracle\VirtualBox\UnattendedTemplates.
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Altering the defaults for unattended installs
In the unattended installation templates, look for strings beginning with "@@VBOX_INSERT_" and ending with "@@", containing "USER_LOGIN", "USER_PASSWORD" and "USER_FULL_NAME" in between (and sometimes more).
Re: Altering the defaults for unattended installs
Many thanks.
Would an upgrade to VB over write these though?
Would an upgrade to VB over write these though?
"Those who don not learn from Dilbert are doomed to repeat it"
Re: Altering the defaults for unattended installs
Where on a linux host are these please?
"Those who don not learn from Dilbert are doomed to repeat it"
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: Altering the defaults for unattended installs
I'm not certain. Find where Virtualbox is installed. "UnattendedTemplates" will be inside that folder.
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Altering the defaults for unattended installs
The package manager of your Linux distribution would tell you.
On Debian/Ubuntu hosts: /usr/share/virtualbox/UnattendedTemplates.
Yes.
Re: Altering the defaults for unattended installs
Thanks I had already found them there but looking at the scripts, I was a bit confused.
I could see the variables but not where they were defined i.e. initial values which is what I assume I would change to the defaults I want to use.
"Those who don not learn from Dilbert are doomed to repeat it"
Re: Altering the defaults for unattended installs
This may or may not be of some use:
https://kifarunix.com/how-to-automate-v ... virtualbox
I have used it to create install bath file on Windows to install a bunch of Linux & !Intel ISO's.
https://kifarunix.com/how-to-automate-v ... virtualbox
I have used it to create install bath file on Windows to install a bunch of Linux & !Intel ISO's.
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Altering the defaults for unattended installs
The scripts are what the corresponding guest OSes expect as a parameter file, so their structure is defined by the respective guest OS. VirtualBox "only" replaces the variable names with the contents given in the VirtualBox Manager, and provides the scripts to the guest OS installer.
Simply replace the variable names with your intended username and password inside the templates, for example replace "@@VBOX_INSERT_USER_LOGIN@@" by "myusername", and VirtualBox won't insert the username and password you forget to change in the VirtualBox Manager (defaults: "vboxuser", "changeme").
Simply replace the variable names with your intended username and password inside the templates, for example replace "@@VBOX_INSERT_USER_LOGIN@@" by "myusername", and VirtualBox won't insert the username and password you forget to change in the VirtualBox Manager (defaults: "vboxuser", "changeme").