Comments (5)
I get dropped into emergency mode when I have the filesystem sharing enabled (not sure why yet) so maybe try turning that off for now.
Also, double check that the interface being configured (in machines/*.nix
) is the same as the one in the VM (check with ifconfig
).
from nixos-config.
Other folks have ran into this by not carefully setting up the VM settings as I show in my youtube video. I personally can't see this happening on my local systems (recently I rebootsrapped), so I'm going to close. If anyone figures it out please let me know and I'd be happy to incorporate any changes.
from nixos-config.
i encoutered this problem when only giving the machine 4Gig of memory as some tests failed on installing, so probably make sure to give the vm enough memory.
from nixos-config.
@obi12341 do you recall what amount of memory worked for you?
I'm currently allocating 12GB and also end up in emergency mode.
building '/nix/store/lq2a66ldpyj2qd412cwyaf3l73h0b2jl-etc.drv'...
building '/nix/store/wd35px6rr2c0g6rqy0rr0pwaicq08997-nixos-system-dev-22.05.20220811.aafac0d.drv'...
leaving systemd-boot 251.3 in place (250.4 is not newer)
stopping the following units: -.mount, audit.service, boot.mount, firewall.service, kmod-static-nodes.service, logrotate-checkconf.service, mount-pstore.service, network-local-commands.service, network-setup.service, nscd.service, resolvconf.service, systemd-modules-load.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd.service, systemd-update-done.service
Failed to stop -.mount: Job type stop is not applicable for unit -.mount.
NOT restarting the following changed units: [email protected], systemd-fsck@dev-disk-by\x2duuid-08AE\x2d6174.service, systemd-journal-flush.service, systemd-logind.service, systemd-random-seed.service, systemd-remount-fs.service, systemd-update-utmp.service, systemd-user-sessions.service, [email protected], [email protected]
activating the configuration...
removing group ‘nscd’
removing user ‘nscd’
setting up /etc...
restarting systemd...
reloading user units for root...
setting up tmpfiles
reloading the following units: dbus.service, reload-systemd-vconsole-setup.service
restarting the following units: dhcpcd.service, sshd.service, systemd-journald.service
starting the following units: -.mount, audit.service, boot.mount, kmod-static-nodes.service, logrotate-checkconf.service, mount-pstore.service, network-local-commands.service, network-setup.service, nscd.service, resolvconf.service, systemd-modules-load.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-update-done.service
Thanks!
from nixos-config.
It was resolved for me by removing the configuration for sharing the FS.
Which is OK for me since I don't need them shared.
nixos-config/machines/vm-aarch64.nix
Lines 21 to 33 in 79cd770
from nixos-config.
Related Issues (20)
- Bootstrap on intel throws an error during vm/switch HOT 3
- Running setup on vm-aarch64 throws error HOT 6
- Missing `/dev/sda` in Nixos VM HOT 1
- make vm/switch failing on bootctl update HOT 1
- `digga` for nixos on flakes HOT 1
- Better resolution management HOT 1
- nix-shell FHS interop throws cryptic error HOT 1
- Stuck trying to boot HOT 27
- Multiple monitors HOT 1
- Missing conditional
- What obstacles did you encounter when using nix on macOS? HOT 2
- Run a Linux builder in the background
- bootstrap stalls and a restart login says root password is incorrect HOT 14
- Stuck at restart dhcpd.service and sshd.service? HOT 2
- Some notes for UTM/QEMU HOT 9
- Root account locked HOT 2
- build-vm fails
- konsole not starting HOT 2
- running it on Windows 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-config.