When creating a new virtual machine, VirtualBox will set the hostname to the name of the virtual machine the user selected. However, in the "Unattended Guest OS Install Setup" screen, VirtualBox does nothing to get rid of the spaces before setting the hostname leading to a Hostname should be at least 2 characters long. Allowed characters are alphanumerics, "-" and "." warning. This issue occurs only with spaces, no other forbidden characters.

