Skip to content

/etc/fstab: Read-only file system when starting a NixOS machine with Vagrant v2.4.7 (regression from v2.4.6) #13688

@amezin

Description

@amezin

Debug output

https://gist.github.com/amezin/fcd5612f13e2aff765b9f0349131c239

Expected behavior

Machine should start successfully, without errors, like on the previous v2.4.6

Actual behavior

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

echo '#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
#VAGRANT-END' >> /etc/fstab

Stdout from the command:



Stderr from the command:

bash: line 6: /etc/fstab: Read-only file system

vagrant up exits with code 1

Reproduction information

Vagrant version

v2.4.7

Host operating system

Arch Linux

Guest operating system

NixOS 24.11

Steps to reproduce

  1. vagrant up with the provided Vagrantfile

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "gnome-shell-box/nixos"
  config.vm.provider :libvirt do |libvirt|
    libvirt.qemu_use_session = true
  end
end

You can find box's base Vagrantfile here: https://github.com/ddterm/gnome-shell-box/blob/0.0.11/Vagrantfile

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions