[Nix-dev] virtualbox fails to start

Germ Steel germsteel at gmail.com
Tue May 17 00:47:27 CEST 2011


Hello,

I am running nixos on virtualbox v.4.0.6.

I was finally able to get kde4 working.  As an aside life would be so
much simpler if there was an install option from the live cd that
installed the working live cd environment not less.

However it looks like virtualbox services inside nixos don't launch I
get this error:
[root at nixos:~]# VBoxClient-all
Failed to connect to the VirtualBox kernel service

I have attached my configuration.nix and virtualbox log file.

Also my KDE desktop window is stuck to 800 x 600; even after I
allocated 64MB to videa in VirtualBox on the host.

Thanks for any help in advance.

  --G. Steel
-------------- next part --------------
# Edit this configuration file which defines what would be installed on the
# system.  To Help while choosing option value, you can watch at the manual
# page of configuration.nix or at the last chapter of the manual available
# on the virtual console 8 (Alt+F8).

{config, pkgs, ...}:

{
  require = [
    # Include the configuration for part of your system which have been
    # detected automatically.  In addition, it includes the same
    # configuration as the installation device that you used.
    ./hardware-configuration.nix
     /etc/nixos/nixos/modules/profiles/graphical.nix
#    /etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-graphical.nix

  ];

  boot.initrd.kernelModules = [
    # Specify all kernel modules that are necessary for mounting the root
    # file system.
    #
    # "ext4" "ata_piix"
  ];

  boot.loader.grub = {
    # Use grub 2 as boot loader.
    enable = true;
    version = 2;

    # Define on which hard drive you want to install Grub.
    device = "/dev/sda";
  };

  networking = {
    # hostName = "nixos"; # Define your hostname.
    interfaceMonitor.enable = true; # Watch for plugged cable.
    enableWLAN = true;  # Enables Wireless.
  };

  # Add file system entries for each partition that you want to see mounted
  # at boot time.  You can add filesystems which are not mounted at boot by
  # adding the noauto option.
  fileSystems = [
    # Mount the root file system
    #
    { mountPoint = "/";
       device = "/dev/sda1";
     }

    # Copy & Paste & Uncomment & Modify to add any other file system.
    #
    { mountPoint = "/data"; # where you want to mount the device
      device = "/dev/sdb1"; # the device or the label of the device
       label = "scratch";
       fsType = "ext3";      # the type of the partition.
    #   options = "data=journal";
     }
  ];

  swapDevices = [
    # List swap partitions that are mounted at boot time.
    #
     { device = "/dev/sda2"; }
  ];

  # Select internationalisation properties.
   i18n = {
     consoleFont = "lat9w-16";
     consoleKeyMap = "us";
    defaultLocale = "en_US.UTF-8";
   };

  # List services that you want to enable:

  # Add an OpenSSH daemon.
  # services.openssh.enable = true;

  # Add CUPS to print documents.
  # services.printing.enable = true;

# Virtualbox guest?
     services.virtualbox.enable = true;
     services.xserver.videoDriver = "virtualbox";
  environment.kdePackages = [
     config.boot.kernelPackages.virtualboxGuestAdditions
   ];

  # Add XServer (default if you have used a graphical iso)
  # services.xserver = {
  #   enable = true;
  #   layout = "us";
  #   xkbOptions = "eurosign:e";
  # };

  # Add the NixOS Manual on virtual console 8
  services.nixosManual.showManual = true;

}
-------------- next part --------------
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND.


More information about the nix-dev mailing list