Skip to content
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

virtualisation.azureImage does not exist #86005

Closed
idontgetoutmuch opened this issue Apr 25, 2020 · 6 comments
Closed

virtualisation.azureImage does not exist #86005

idontgetoutmuch opened this issue Apr 25, 2020 · 6 comments
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@idontgetoutmuch
Copy link
Contributor

Describe the bug

sundials@sundials:~/nixpkgs/nixos/maintainers/scripts/azure-new$ ./upload-image.sh ./examples/basic/image.nix
+ image_nix=./examples/basic/image.nix
+ nix-build ./examples/basic/image.nix --out-link azure
error: The option `virtualisation.azureImage' defined in `/home/sundials/nixpkgs/nixos/maintainers/scripts/azure-new/examples/basic/system.nix' does not exist.
(use '--show-trace' to show detailed location information)

To Reproduce
See above

Expected behavior
I think I expected to have a azure host provisioned.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I was using an azure vanilla ubuntu machine on which to run the script.

Notify maintainers

Metadata
Ah sorry too late - I have torn down the machine

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@colemickens
Copy link
Member

The only way this could happen is if your environment <nixpkgs> is older than what you have at ~/nixpkgs/ (which would be likely if you just install nix on ubuntu quickly and happened to clone newer nixpkgs into ~/nixpkgs.

This PR will fix this by using the parent nixpkgs to build the example image by default, rather than reaching into whatever <nixpkgs> might be. I've sent it as a standalone PR so we can get it in ASAP. It's here: #86113

BTW: if you run a certain-sized VM and add yourself to the kvm group, you will be able to use kvm to build the image. It will greatly speed up the process of creating the image.

@colemickens
Copy link
Member

This should be fixed. Can you confirm @idontgetoutmuch

@idontgetoutmuch
Copy link
Contributor Author

I can try tomorrow

@toraritte
Copy link
Contributor

toraritte commented Aug 10, 2020

PR #86113 definitely fixed this issue for me, thanks.
For more context someone else finding this issue, I messed things up by changing the pkgs import to import <nixpkgs> {} in image.nix but my current channel (20.03) didn't have the virtualisation.azureImage attribute yet.

@stale
Copy link

stale bot commented Feb 6, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Feb 6, 2021
@idontgetoutmuch
Copy link
Contributor Author

I am closing this as the world has moved on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

3 participants