-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Vagrant virtualbox image #101120
Vagrant virtualbox image #101120
Conversation
Introduce a new vagrant profile
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
Format from Open Virtualization Format Specification, sec 5.1: OVF Package Structure
…udio/usb disabling
99629d0
to
b9ad54d
Compare
@zimbatm I think this does the trick. Now, thinking ahead... would it be possible for the project CI/CD system to release these images to Vagrant Cloud with a new NixOS release? |
Thanks for taking this to the finish line. I can see a few potential improvements but since this is working, let's get it merged first. @garbas was talking of releasing cloud images automatically in his talk at NixCon and this could be part of it once the setup is in place. |
Another thing that could be done is to add the target format to the nixos-generators project. See nix-community/nixos-generators#50 |
This will ultimately replace the nix-community/nixbox project. See nix-community/nixbox#38 Depends on NixOS/nixpkgs#101120
This will ultimately replace the nix-community/nixbox project. See nix-community/nixbox#38 Depends on NixOS/nixpkgs#101120
@joseph-long 💯 to get it into the state where we can publish this on nixos.org I'm collecting the ideas what needs to be done here: NixOS/nixos-homepage#447 If you have some time to push this forward I would really appreciate it. |
@@ -8,6 +8,12 @@ | |||
./virtualbox-image.nix | |||
]; | |||
|
|||
virtualbox.vmHasAudio = false; | |||
virtualbox.vmHasUSB = false; | |||
sound.enable = false; |
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.
I am trying to reuse my nixos configuration for the vagrant box. I had the error
error: The option `sound.enable' has conflicting definition values:
- In `/nix/store/p53cz6rh27q40g9i0q98k3vfrz6lm12w-source/nixos/modules/virtualisation/vagrant-virtualbox-image.nix': false
- In `/nix/store/p53cz6rh27q40g9i0q98k3vfrz6lm12w-source/nixos/modules/config/pulseaudio.nix': true
(use '--show-trace' to show detailed location information)
Is there any particular reason why we must disable audio, usb?
Motivation for this change
Make it possible for NixOS to build VirtualBox VM images compatible with Vagrant and vagrant-nixos-plugin.
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)