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

Easiest way to make an ephemeral VM (reboot to restore)? #55

Open
PAI5REECHO opened this issue May 6, 2022 · 3 comments
Open

Easiest way to make an ephemeral VM (reboot to restore)? #55

PAI5REECHO opened this issue May 6, 2022 · 3 comments

Comments

@PAI5REECHO
Copy link

I'd like to be able to launch my VMs to use an in-memory disk or run in some way as to not commit any changes to my real drive

@Mic92
Copy link
Owner

Mic92 commented May 7, 2022

Maybe you can use this? https://github.com/nix-community/impermanence

@Mic92
Copy link
Owner

Mic92 commented May 7, 2022

Otherwise just delete nixos.qcow2 after each run.

@chrissound
Copy link

I'd like to be able to launch my VMs to use an in-memory disk or run in some way as to not commit any changes to my real drive

I think you can just run this from within a directory that is in a tmpfs/ramfs, so the file being written to is literally in ram. Maybe there would still be some overhead from needing to serialize the file though, but still would give you ephemeral functionality + likely fast IO performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants