-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nixos/azure: improve azure module, add new maintainer scripts/examples/demo #78827
Conversation
how can i test this? hard to find documentation for building images |
from a pm with @colemickens (hopefully you dont mind me posting it) |
not sure if this is right, but:
|
looks like I had CPU virtualization turned off on my BIOS..... |
Thanks for testing @jonringer. Seems like you're maybe unblocked, I had meant to reply earlier... Indeed, @dali99 shared the best instructions I have right now; that's what I use anyway. Once this change is in, I was going to extract another piece from my nixcfg and replace what is in nixos/scripts/maintainers/azure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM
For those subscribed, I've updated this significantly. To summarize, I'll just copy the new PR body text. It now includes:
And the demo! https://asciinema.org/a/euXb9dIeUybE3VkstLWLbvhmp |
We may want to update this page as well, but that can be done outside of this PR https://nixos.org/nixos/download.html#microsoft-azure |
0ea7e88
to
7cf76d9
Compare
I left the fixes as separate commits for reviewers. LMK what you think and I can squash. |
do you have issues with azcopy? Yesterday it was murdering my network, but overall using very little bandwidth |
I run from my local network where I have symmetric gigabit, or from Azure, so I tend not to notice. I've only ever monitored it from an "eye ball the status bar / percentage" standpoint and it's done what I've expected. How were you observing this? Was it starving other things? Were you monitoring its network usage? |
I was trying to join a conference call, and I couldn't. And my network usage utility was showing me <100KB/s , when azcopy was showing 1MB/s+. |
Hm, yeah, I'm not sure, I don't think I've seen that. It's possible that |
I don't see any options to use the disk command for upload, however, you can upload to blob then use blob url to create disk
|
I spent considerable time figuring out how to avoid Azure storage accounts so, I'm unlikely to write any code that deals with storage accounts unless there's literally no other way. |
Do you mind if I write it? then we can also remove the |
Here's my take. I've written the storage account management code many times and worked relatively hard to figure out the undocumented-yet-publicly-available APIs in order to remove that goop from this version of this PR - storage accounts are slow, take multiple steps to create, have annoying, asinine naming requirements, and, in this scenario, are only necessary because ... well... it's Azure. I know this works and would prefer to merge as-is. If you want to revise it and remove |
Agreed |
That's fair, I'll open a new PR with a |
Thanks Jon. I'll update docs now. |
Motivation for this change
This is the result of various attempts to improve the Azure support in nixpkgs.
In particular:
diskSize
optionboot.growPartition
so that/
is expanded when it boots in AzureCompared to previous attempts, I do not try to change any of the in-tree references to existing Azure images. In my opinion, they're all old enough and unsupported or non-functional that they should be removed. I don't think we have the necessary maintainership to try to have "release"-quality Azure images. Instead, NixOS and NixOps users should build their own (bootstrap) images.
Demo:

Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)