Re: [Nix-dev] Nixops on headless server

2014-04-03 Thread Colin Putney
On Wed, Apr 2, 2014 at 6:40 AM, Marco Maggesi magg...@math.unifi.it wrote:

 Hi, there seems to be again a problem with nixops with virtualbox headless
 nodes.

 $ nixops deploy -d minicloud
 webserver creating VirtualBox VM...
 webserver Virtual machine
 'nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver' is created and
 registered.
 webserver UUID: d6ea884c-3173-4e12-bada-aeff1112c39c
 webserver Settings file: '/home/maggesi/VirtualBox
 VMs/nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver/nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-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:
 ad027933-92f8-4655-8f63-a3bf582122b8
 webserver attaching disk 'disk1'...
 webserver VBoxManage: error: The virtual machine
 'nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-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-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver to power on...
 webserver waiting for IP address...

 Can you test and confirm the problem.


Works fine for me. This looks like a problem with VirtualBox, not nix.

According to https://www.virtualbox.org/ticket/7367,

it's that you don't have a GUI available, so VirtualBox can't open a window
for the console.

Colin
___
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

2014-04-03 Thread Marco Maggesi
Yes, but...
Isn't the option

  deployment.virtualbox.headless = true;

for
nodes
 without GUI?

M.



2014-04-03 15:09 GMT+02:00 Colin Putney co...@wiresong.com:




 On Wed, Apr 2, 2014 at 6:40 AM, Marco Maggesi magg...@math.unifi.itwrote:

 Hi, there seems to be again a problem with nixops with virtualbox
 headless nodes.

 $ nixops deploy -d minicloud
 webserver creating VirtualBox VM...
 webserver Virtual machine
 'nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver' is created and
 registered.
 webserver UUID: d6ea884c-3173-4e12-bada-aeff1112c39c
 webserver Settings file: '/home/maggesi/VirtualBox
 VMs/nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver/nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-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:
 ad027933-92f8-4655-8f63-a3bf582122b8
 webserver attaching disk 'disk1'...
 webserver VBoxManage: error: The virtual machine
 'nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-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-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver to power on...
 webserver waiting for IP address...

 Can you test and confirm the problem.


 Works fine for me. This looks like a problem with VirtualBox, not nix.

 According to https://www.virtualbox.org/ticket/7367,

 it's that you don't have a GUI available, so VirtualBox can't open a
 window for the console.

 Colin

 ___
 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


Re: [Nix-dev] Nixops on headless server

2014-04-02 Thread Marco Maggesi
Hi, there seems to be again a problem with nixops with virtualbox headless
nodes.

$ nixops deploy -d minicloud
webserver creating VirtualBox VM...
webserver Virtual machine
'nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver' is created and
registered.
webserver UUID: d6ea884c-3173-4e12-bada-aeff1112c39c
webserver Settings file: '/home/maggesi/VirtualBox
VMs/nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver/nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-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:
ad027933-92f8-4655-8f63-a3bf582122b8
webserver attaching disk 'disk1'...
webserver VBoxManage: error: The virtual machine
'nixops-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-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-24856f59-ba5b-11e3-a2e6-2d15dd5fa0ff-webserver to power on...
webserver waiting for IP address...

Can you test and confirm the problem.

My setup:

# nix-channel --list
nixops http://hydra.nixos.org/project/nixops/channel/latest
nixos http://nixos.org/channels/nixos-unstable
hydra http://hydra.nixos.org/project/hydra/channel/latest

Thank you in advance,
M.



2014-01-16 21:13 GMT+01:00 Patrick Wheeler patrick.john.whee...@gmail.com:

 @Marco Good to hear thanks for let everyone know.


 On Tue, Jan 14, 2014 at 12:08 PM, Marco Maggesi magg...@math.unifi.itwrote:

 Hi,

 just a quick note to let you know that I gave an other try to nixops
 today and now everything works as expected!
 (I deleted the old attempt and I updated nixops to version 1.2, no
 modification of my configuration).

 Thank you for your support,
 Marco


 2013/12/25 Oliver Charles ol...@ocharles.org.uk

  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



 ___
 nix-dev mailing list
 

Re: [Nix-dev] Nixops on headless server

2014-01-16 Thread Patrick Wheeler
@Marco Good to hear thanks for let everyone know.


On Tue, Jan 14, 2014 at 12:08 PM, Marco Maggesi magg...@math.unifi.itwrote:

 Hi,

 just a quick note to let you know that I gave an other try to nixops today
 and now everything works as expected!
 (I deleted the old attempt and I updated nixops to version 1.2, no
 modification of my configuration).

 Thank you for your support,
 Marco


 2013/12/25 Oliver Charles ol...@ocharles.org.uk

  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



 ___
 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

2014-01-14 Thread Marco Maggesi
Hi,

just a quick note to let you know that I gave an other try to nixops today
and now everything works as expected!
(I deleted the old attempt and I updated nixops to version 1.2, no
modification of my configuration).

Thank you for your support,
Marco


2013/12/25 Oliver Charles ol...@ocharles.org.uk

  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

___
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

2013-12-24 Thread Patrick Wheeler
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 on headless server

2013-12-24 Thread Oliver Charles
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] Nixops on headless server

2013-12-23 Thread Marco Maggesi
Hi,

would you post a minimal working example?
I made several attempts but no one worked so far.
Here is my present configuration:

# logical.nix
{
  network.description = Web server;

  webserver =
{ config, pkgs, ... }:
{
  #require = [ nixos/modules/programs/virtualbox.nix ];
  services.openssh.enable = true;
  #services.virtualbox.enable = true;
  #services.httpd.enable = true;
  #services.httpd.adminAddr = al...@example.org;
  #services.httpd.documentRoot = ${pkgs.valgrind}/share/doc/valgrind/html;
};
}

# physical.nix
{
  webserver =
{ config, pkgs, ... }:
{
  deployment.targetEnv = virtualbox;
  deployment.virtualbox.memorySize = 1024; # megabytes
  deployment.virtualbox.headless = true;
};
}

And I get the following error:

webserver VBoxManage: error: The virtual machine
'nixops-9a9af89c-6bc6-11e3-9d50-23ed2c71331d-webserver' has terminated
unexpectedly during startup with exit code 1
webserver VBoxManage: error: Details: code NS_ERROR_FAILURE
(0x80004005), component Machine, interface IMachine


2013/12/23 Patrick Wheeler patrick.john.whee...@gmail.com:
 I found my problem.

 I remembered I needed to include something like:

 require = [ nixos/modules/programs/virtualbox.nix ];

 in the configuration.nix, or in my nixops expression.

 Patrick


 On Sun, Dec 22, 2013 at 2:04 PM, Patrick Wheeler
 patrick.john.whee...@gmail.com wrote:

 I am having the same problem currently if anyone has any insight.

 Patrick


 On Fri, Nov 1, 2013 at 3:01 PM, Marco Maggesi magg...@math.unifi.it
 wrote:

 Hello,

 I'm trying to install nixops on a headless server and I get the following
 error which seems to be related to the lack of X environment.
 I set the option
 deployment.virtualbox.headless = true;
 and completely destroyed and recreated the cloud but it doesn't seem to
 have affect.
 Any idea?

 Thanks,
 Marco

 [...]
 webserver VBoxManage: error: The virtual machine
 'nixops-f289aeae-432e-11e3-9e21-5f0f061205c9-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-f289aeae-432e-11e3-9e21-5f0f061205c9-webserver to power on...
 webserver waiting for IP
 address...

 ___
 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




 --
 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

___
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

2013-12-23 Thread Rob Vermaas
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
___
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

2013-12-23 Thread Marco Maggesi
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

___
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

2013-12-23 Thread Rob Vermaas
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
___
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

2013-12-22 Thread Patrick Wheeler
I am having the same problem currently if anyone has any insight.

Patrick


On Fri, Nov 1, 2013 at 3:01 PM, Marco Maggesi magg...@math.unifi.it wrote:

 Hello,

 I'm trying to install nixops on a headless server and I get the following
 error which seems to be related to the lack of X environment.
 I set the option
 deployment.virtualbox.headless = true;
 and completely destroyed and recreated the cloud but it doesn't seem to
 have affect.
 Any idea?

 Thanks,
 Marco

  [...]
 webserver VBoxManage: error: The virtual machine
 'nixops-f289aeae-432e-11e3-9e21-5f0f061205c9-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-f289aeae-432e-11e3-9e21-5f0f061205c9-webserver to power on...
 webserver waiting for IP
 address...

 ___
 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

2013-12-22 Thread Patrick Wheeler
I found my problem.

I remembered I needed to include something like:

require = [ nixos/modules/programs/virtualbox.nix ];

in the configuration.nix, or in my nixops expression.

Patrick


On Sun, Dec 22, 2013 at 2:04 PM, Patrick Wheeler 
patrick.john.whee...@gmail.com wrote:

 I am having the same problem currently if anyone has any insight.

 Patrick


 On Fri, Nov 1, 2013 at 3:01 PM, Marco Maggesi magg...@math.unifi.itwrote:

  Hello,

 I'm trying to install nixops on a headless server and I get the following
 error which seems to be related to the lack of X environment.
 I set the option
 deployment.virtualbox.headless = true;
 and completely destroyed and recreated the cloud but it doesn't seem to
 have affect.
 Any idea?

 Thanks,
 Marco

  [...]
 webserver VBoxManage: error: The virtual machine
 'nixops-f289aeae-432e-11e3-9e21-5f0f061205c9-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-f289aeae-432e-11e3-9e21-5f0f061205c9-webserver to power on...
 webserver waiting for IP
 address...

 ___
 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




-- 
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


[Nix-dev] Nixops on headless server

2013-11-01 Thread Marco Maggesi
Hello,

I'm trying to install nixops on a headless server and I get the following
error which seems to be related to the lack of X environment.
I set the option
deployment.virtualbox.headless = true;
and completely destroyed and recreated the cloud but it doesn't seem to
have affect.
Any idea?

Thanks,
Marco

[...]
webserver VBoxManage: error: The virtual machine
'nixops-f289aeae-432e-11e3-9e21-5f0f061205c9-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-f289aeae-432e-11e3-9e21-5f0f061205c9-webserver to power on...
webserver waiting for IP
address...
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev