-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libvirtd] Unable to deploy to libvirtd - "error: cannot figure out user name" #1216
Comments
Could be related to: |
I'm experiencing the same issue on 19.09 |
This package should be marked as broken in NixOS, I think. I will open an issue on nixpkgs and crosslink this one. |
Workaround is to install nixops from git:
|
I made an overlay from @mmilata's answer: self: super:
let
nixopsLibvirtdSrc = self.fetchFromGitHub {
owner = "nix-community";
repo = "nixops-libvirtd";
sha256 = "0g2ag4mhgrxws3h4q8cvfh4ks1chgpjm018ayqd48lagyvi32l8m";
rev = "1c29f6c716dad9ad58aa863ebc9575422459bf95";
};
nixopsLibvirtdPlugin = self.callPackage "${nixopsLibvirtdSrc}/release.nix" {};
nixopsSrc = self.fetchFromGitHub {
owner = "NixOS";
repo = "nixops";
sha256 = "0irf9wha2rxla6z7mywj5z29bvjbpwlxqj2s29ygsbhp6hnlbzzz";
rev = "4cfb70513bad149183adc3ac741c176d83b0e9d5";
};
nixopsPlugins = _: [ nixopsLibvirtdPlugin ];
in
{
nixops = (self.callPackage "${nixopsSrc}/release.nix" { p = nixopsPlugins; }).build.x86_64-linux;
} |
Having the overlay to install a more recent version of the libvirt plugin helped, though there are still a couple other problems (for me at least) preventing a trivial libvirt deployment. Opened some issues in the nix-community repo: nix-community/nixops-libvirtd#7 |
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * NixOS#71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * #71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5 (cherry picked from commit 687e219)
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * #71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5 (cherry picked from commit 687e219)
It did not fix this particular issue. This is because there is a chroot involved. |
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * NixOS#71157 * NixOS/nixops#1216 * nix-community/nixops-libvirtd#5
This overlay broke NixOps ec2 for me. In case anyone is wondering why ec2 isn't working after trying this overlay. |
You probably also need to include the AWS plugin in |
I think that's it. I just wanted to mention it, because the current stable release does not require you to specify extra plugins for AWS. |
Any idea how to override plugins with the new flakes build system? |
Describe the bug
When I try to deploy a vm via nixops to libvrtd on nixos, it fails with the error:
during the step
To Reproduce
Steps to reproduce the behavior:
testvm.nix:
testvm.libvirtd.nix:
nixops create -d netsample testvm.nix testvm.libvirtd.nix
nixops deploy -d netsample
Expected behavior
VM is setup successfully
Screenshots
Console log:
Additional context
Add any other context about the problem here.
Metadata
The text was updated successfully, but these errors were encountered: