GithubHelp home page GithubHelp logo

emergency mode about nixos-config HOT 5 CLOSED

mitchellh avatar mitchellh commented on June 18, 2024
emergency mode

from nixos-config.

Comments (5)

indiv0 avatar indiv0 commented on June 18, 2024

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.

mitchellh avatar mitchellh commented on June 18, 2024

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.

obi12341 avatar obi12341 commented on June 18, 2024

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.

joshrosso avatar joshrosso commented on June 18, 2024

@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.

joshrosso avatar joshrosso commented on June 18, 2024

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.

# Share our host filesystem
fileSystems."/host" = {
fsType = "fuse./run/current-system/sw/bin/vmhgfs-fuse";
device = ".host:/";
options = [
"umask=22"
"uid=1000"
"gid=1000"
"allow_other"
"auto_unmount"
"defaults"
];
};

from nixos-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.