[Nix-dev] Nixops on headless server

Patrick Wheeler patrick.john.wheeler at gmail.com
Tue Dec 24 21:25:53 CET 2013


One reason I received:
> VBoxManage: error: Details: code NS_ERROR_FAILURE
(0x80004005)

was when vboxnet0 was not set up yet.  Use `ip link` to see up the vboxnet0
interface is up and running.  I had to restart my server once before it
showed up after installing everything needed for virtualbox.

Is the server you are running this set up by nixops as well? If so you many
need to include:
require = [ <nixos/modules/programs/virtualbox.nix> ];

In the expression.

I had to include:
deployment.virtualbox.headless = true;

in the virtualbox's nix expression, your logical.nix.

Are you running your server on amazon's or possible another
cloud environment? There are numerous complaints online that running
virtualbox on many of the cloud environments is harder or impossible.

Patrick



On Tue, Dec 24, 2013 at 1:21 AM, Rob Vermaas <rob.vermaas at gmail.com> wrote:

> Hi Marco,
>
> sorry if I am asking an obvious question, but have you managed to
> start a VM in your VirtualBox installation?
>
> Could you please add the output of:
> $ VBoxManage  showvminfo --details
> nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver
>
> Cheers,
> Rob
>
> On Mon, Dec 23, 2013 at 9:06 PM, Marco Maggesi <maggesi at math.unifi.it>
> wrote:
> > I started from scratch.  This is the interaction.
> > Thanks a lot,
> > M.
> >
> > [maggesi at o0dom0:~/Devel/nixconfs/minicloud]$ nixops create ./logical.nix
> > ./physical-vbox.nix --name minicloud
> > created deployment ‘aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb’
> > aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb
> >
> > [maggesi at o0dom0:~/Devel/nixconfs/minicloud]$ nixops deploy -d minicloud
> > webserver> creating VirtualBox VM...
> > webserver> Virtual machine
> > 'nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver' is created and
> > registered.
> > webserver> UUID: eda5fa7f-8141-40df-a9cf-9e13265d7e1f
> > webserver> Settings file: '/home/maggesi/VirtualBox
> >
> VMs/nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver/nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver.vbox'
> > webserver> creating disk ‘disk1’...
> > webserver>
> 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
> > webserver> Clone hard disk created in format 'VDI'. UUID:
> > d9b38107-e2fe-440c-86e4-335711704dbf
> > webserver> attaching disk ‘disk1’...
> > webserver> VBoxManage: error: The virtual machine
> > 'nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver' has terminated
> > unexpectedly during startup with exit code 1
> > webserver> VBoxManage: error: Details: code NS_ERROR_FAILURE
> (0x80004005),
> > component Machine, interface IMachine
> > webserver> Waiting for VM
> > "nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver" to power on...
> > webserver> waiting for IP
> >
> address.....................................................................................................................................................................................................................................................................................^Cerror:
> > interrupted
> >
> > [maggesi at o0dom0:~/Devel/nixconfs/minicloud]$ VBoxManage startvm
> > nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver --type headless
> > Waiting for VM "nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver" to
> > power on...
> > VBoxManage: error: The virtual machine
> > 'nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver' has terminated
> > unexpectedly during startup with exit code 1
> > VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component
> > Machine, interface IMachine
> >
> > [maggesi at o0dom0:~/Devel/nixconfs/minicloud]$ VBoxManage startvm
> > nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver
> > Waiting for VM "nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver" to
> > power on...
> > VBoxManage: error: The virtual machine
> > 'nixops-aa84379e-6c0c-11e3-8dd5-bfd6a9bb84eb-webserver' has terminated
> > unexpectedly during startup with exit code 1
> > VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component
> > Machine, interface IMachine
> >
> >
> >
> > 2013/12/23 Rob Vermaas <rob.vermaas at gmail.com>
> >>
> >> Hi,
> >>
> >> > would you post a minimal working example?
> >> > I made several attempts but no one worked so far.
> >>
> >> The example you shared should work.
> >>
> >> Could you try to run: VBoxManage startvm
> >> nixops-9a9af89c-6bc6-11e3-9d50-23ed2c71331d-webserver --type headless
> >> And provide us with the output? This is the command that nixops runs
> >> when starting the VM.
> >>
> >> Cheers,
> >> Rob
> >
> >
>
>
>
> --
> Rob Vermaas
>
> [email] rob.vermaas at gmail.com
>



-- 
Patrick Wheeler
Patrick.John.Wheeler at gmail.com
Patrick.J.Wheeler at rice.edu
Patrick.Wheeler at colorado.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131224/c680eb9b/attachment.html 


More information about the nix-dev mailing list