nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

Virtualbox error message is confusing if virtualization driver is busy #11

Open domenkozar opened 8 years ago

domenkozar commented 8 years ago

To reproduce:

buggy> creating VirtualBox VM...
buggy> Virtual machine 'nixops-8f06738f-234c-11e6-982e-54ee7542395c-buggy' is created and registered.
buggy> UUID: 68d37813-d26b-4bac-88c8-f8bd0faf6c1b
buggy> Settings file: '/home/ielectric/VirtualBox VMs/nixops-8f06738f-234c-11e6-982e-54ee7542395c-buggy/nixops-8f06738f-234c-11e6-982e-54ee7542395c-buggy.vbox'
buggy> creating disk ‘disk1’...
buggy> these derivations will be built:
buggy>   /nix/store/r6c9g5w9cswnwy90pxidaij6dx6i4cdm-virtualbox-nixops-15.09.495.4e18cdd.vdi.drv
buggy> building path(s) ‘/nix/store/jnwm4y72jyv5wqlprh10crkwvmv761g0-virtualbox-nixops-15.09.495.4e18cdd.vdi’

buggy> 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
buggy> Clone medium created in format 'VDI'. UUID: b0af8339-b406-4b38-aa3f-e12f1bd6e1a7
buggy> attaching disk ‘disk1’...
buggy> Waiting for VM "nixops-8f06738f-234c-11e6-982e-54ee7542395c-buggy" to power on...
buggy> VM "nixops-8f06738f-234c-11e6-982e-54ee7542395c-buggy" has been successfully started.
error: command ‘['VBoxManage', 'startvm', u'nixops-8f06738f-234c-11e6-982e-54ee7542395c-buggy', '--type', 'headless']’ failed on machine ‘buggy’ (exit code 1)
domenkozar commented 8 years ago

This is actually all that upstream returns. I wonder if we can somehow check if driver is usable.