Re: [Nix-dev] Nixops on headless server
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.verm...@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 magg...@math.unifi.it wrote: I started from scratch. This is the interaction. Thanks a lot, M. [maggesi@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@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@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@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.verm...@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.verm...@gmail.com -- Patrick Wheeler patrick.john.whee...@gmail.com patrick.j.whee...@rice.edu patrick.whee...@colorado.edu ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops deploy to vbox waiting for ip address indefinitely
waiting for IP address I got this response when trying to boot a virtualbox machine, through nixops, on vmware fusion and at one point on an ec2 instance. Though I can not longer reproduce this on ec2, now gets stuck attaching the disk. The first time I tried it on a dedicated server with linux running on the metal it worked the first time. the virtualbox gui pops up and a machine is started, I can see the grub menu appear briefly, but then the command hangs at I also got this when trying it on vmware, but never have been able to take the time to find out exactly where things go wrong. I am currently running nixops 1.2, but I believe the behavior existed back when nixops was charon. So if by chance you have not tried it on the metal yet it might be worth a shot. Hope that helps. Patrick On Mon, Dec 23, 2013 at 11:28 PM, Sönke Hahn soenkeh...@gmail.com wrote: A colleague of mine told me that in the vm there should at least be a system booting up to a text based console. This is not happening for me. So the problem does not seem to stem from a network misconfiguration, but from a more general issue with the disk image... Sönke Hahn wrote: Hi all, I am trying to get the trivial example from the nixops manual to work ([1]) on a spawned virtualbox machine. I tried to do everything according to the manual. When issuing the command # nixops deploy -d trivial the virtualbox gui pops up and a machine is started, I can see the grub menu appear briefly, but then the command hangs at webserver waiting for IP address and just continues to output dots. I did some investigating and found that the python code that is nixops executes another command: # VBoxManage guestproperty get # nixops-36f68870-6be3-11e3-9b1e-f0def1f76f2d- webserver /VirtualBox/GuestInfo/Net/1/V4/IP which (both when executed through python or manually) results in No value set! This seems to be some problem with my virtualbox setup, but I wasn't able to find help on this searching the web. I guess that there are a lot people here on this list who do similar stuff so that's why I am asking here: Any advice? Did I miss something obvious? Here's some additional info: OS: Ubuntu 13.10 virtualbox: 4.2.16-dfsg-3 (installed from the ubuntu repos) nixops: 1.1.1 Running nixops as root. Thanks for any input, Sönkee [1] https://headcounter.org/hydra/build/47732/download/1/manual/manual.html#chap-overview ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev -- Patrick Wheeler patrick.john.whee...@gmail.com patrick.j.whee...@rice.edu patrick.whee...@colorado.edu ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Nixops on headless server
On 23/12/13 20:06, Marco Maggesi wrote: I started from scratch. This is the interaction. Thanks a lot, M. [maggesi@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@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@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@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 I think I had similar behaviour with VirtualBox, and it turned out the internal DHCP server for VirtualBox wasn't running. I forget the specific details, but if you Google around you should be able to find the instructions. Could be a red herring - but worth looking into! - ocharles signature.asc Description: OpenPGP digital signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Hydra is stuck
Kicked. Cheers, Rob On Tue, Dec 24, 2013 at 10:48 AM, Vladimír Čunát vcu...@gmail.com wrote: Hi, Hydra seems stuck. It does no jobs (e.g. no builds in nixpkgs since yesterday evening), and I don't see any evaluation for even longer (late afternoon). When you have time, kick it, please. (I understand that most people are busy with other things these days, and only a few have permissions for this.) Vlada ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev -- Rob Vermaas [email] rob.verm...@gmail.com ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev