Comments (3)
virtfs expects a directory because it does filesharing with the host through 9p I would say. You can add your own flags by setting the QEMU_OPTS
environment variable or by using config.virtualisation.qemu.options
in your vm.nix
.
from nixos-shell.
Ohh so simple! Thank you! Hope you have a great weekend!
The final command I used was:
QEMU_OPTS="-hdc /dev/disk/by-uuid/836d83ab-cba5-4eb4-a7c8-09911cd67403" nixos-shell
from nixos-shell.
Sometimes I feel that all I am doing with nixos-shell
is documenting how our qemu abstractions works.
from nixos-shell.
Related Issues (20)
- Add option to create guest home directory HOT 1
- Example vm script does not work HOT 2
- Cannot override default net device HOT 3
- virtualisation.msize error HOT 9
- Run one-off command
- How to use nixos-shell modules from a flake.nix file HOT 2
- Easiest way to make an ephemeral VM (reboot to restore)? HOT 3
- Any chance to get the latest version added to nixpkgs? HOT 1
- Failing with current unstable HOT 3
- vm_forward.nix example passes net option twice HOT 1
- Graphical log-in not working HOT 2
- Can't access custom nixos configuration attr
- Odd file permissions? HOT 1
- jq impurity in flake mode
- unset `NIX_PATH` causes nixos-shell to not work
- The option virtualisation.* does not exist HOT 4
- nixos-shell broken with `auto-allocate-uids = true` HOT 3
- How to configure uid/gid with `extraMounts` option? HOT 6
- Broken shell..cant install! HOT 3
- Mounting host dirs when running Nixos-Shell with Flake HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-shell.