nix-community / nixops-vbox

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

Virtualbox in virtualbox broken #8

Open danbst opened 7 years ago

danbst commented 7 years ago

I have a simple deploy config:

{

  bugged_server = { config, pkgs, lib, nodes, ...}:
  {
     deployment.targetEnv = "virtualbox";
     deployment.virtualbox.headless = true;

     virtualisation.virtualbox.host.enable = true;
     virtualisation.virtualbox.host.headless = true;

  };

}

I can deploy the system, but multiple problems occur: 1) System cannot start after reboot 2) Lots of errors in logs:

# journalctl -p err
-- Logs begin at Fri 2016-10-28 12:48:48 UTC, end at Fri 2016-10-28 12:51:07 UTC. --
Oct 28 12:48:49 nixos kernel: piix4_smbus 0000:00:07.0: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
Oct 28 12:49:10 bugged_server systemd-modules-load[1406]: Failed to find module 'vboxdrv'
Oct 28 12:49:10 bugged_server systemd-modules-load[1406]: Failed to find module 'vboxnetadp'
Oct 28 12:49:10 bugged_server systemd-modules-load[1406]: Failed to find module 'vboxnetflt'
Oct 28 12:50:40 bugged_server systemd[1]: Timed out waiting for device sys-subsystem-net-devices-vboxnet0.device.
Oct 28 12:50:40 bugged_server systemd[1]: Timed out waiting for device dev-vboxnetctl.device.

And yes, those modules are absent

$ du -a /run/current-system/kernel-modules/lib/modules/4.4.27/ | grep vboxdrv

$

cc @aszlig

My nixpkgs is https://github.com/NixOS/nixpkgs/archive/8c6ee842007f884b28f6461300906e1505b7d3f9.tar.gz, some recent commit from release-16.09

domenkozar commented 7 years ago

Is that even supported by upstream out of the box?

danbst commented 7 years ago

I don't know for sure (but I guess - yes, it should work). The current problem with kernel modules is show-stopping from further test. Perhaps it isn't nixops related, if so, I can move issue to nixpkgs.