Scripting creation of new vm
Posted: 7. Jul 2012, 21:25
I've been playing around with using various vboxmanage commands to script the creation of a vm. I think I'm almost there (a *lot* of trial and error) but have - hopefully only - two remaining issues.
First, once the vm is created, I go back to the GUI to launch it for installation of the guest OS. When it first powers up, it returns a pop-up saying "Failed to open session .... Nonexistent host networking interface '' (VERR_INTERNAL_ERROR). Looking at the 'details' pane in the GUI, and comparing to a machine I created usng the GUI, I see that Adapter 2 is shown as (Host only adapter, '') while the machine created with the GUI is shown as (Host only adapter,'VirtualBox Host-only Ethernet Adapter').
Opening the network details for the new machine the "Name" drop-list is pre-filled with 'VirtualBox Host-only Ethernet Adapter' - and there are no other options. I simply click OK and that name has been populated on the 'Detail' pane.
So, I try to power up again. This time I actually get the VBox welcome logo, but then drop to a console with the message "FATAL: No bootable medium found! System halted" If I launch a machine created with the GUI, I get a 'first run wizard' allowing me to point to an ISO file for installing the guest OS.
First, once the vm is created, I go back to the GUI to launch it for installation of the guest OS. When it first powers up, it returns a pop-up saying "Failed to open session .... Nonexistent host networking interface '' (VERR_INTERNAL_ERROR). Looking at the 'details' pane in the GUI, and comparing to a machine I created usng the GUI, I see that Adapter 2 is shown as (Host only adapter, '') while the machine created with the GUI is shown as (Host only adapter,'VirtualBox Host-only Ethernet Adapter').
Opening the network details for the new machine the "Name" drop-list is pre-filled with 'VirtualBox Host-only Ethernet Adapter' - and there are no other options. I simply click OK and that name has been populated on the 'Detail' pane.
So, I try to power up again. This time I actually get the VBox welcome logo, but then drop to a console with the message "FATAL: No bootable medium found! System halted" If I launch a machine created with the GUI, I get a 'first run wizard' allowing me to point to an ISO file for installing the guest OS.