Closed lucamaraschi closed 2 years ago
Also ran into a similar issue:
Error: Could not stat device /dev/sda - No such file or directory.
Error: Could not stat device /dev/sda - No such file or directory.
Error: Could not stat device /dev/sda - No such file or directory.
Error: Could not stat device /dev/sda - No such file or directory.
Error: Could not stat device /dev/sda - No such file or directory.
mke2fs 1.46.4 (18-Aug-2021)
The file /dev/sda1 does not exist and no size was specified.
mkswap: cannot open /dev/sda2: No such file or directory
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.fat: unable to open /dev/sda3: No such file or directory
mount: /mnt: special device /dev/disk/by-label/nixos does not exist.
mount: /mnt/boot: special device /dev/disk/by-label/boot does not exist.
writing /mnt/etc/nixos/hardware-configuration.nix...
writing /mnt/etc/nixos/configuration.nix...
For more hardware-specific settings, see https://github.com/NixOS/nixos-hardware.
building the configuration in /mnt/etc/nixos/configuration.nix...
error:
Failed assertions:
- The ‘fileSystems’ option does not specify your root file system.
(use '--show-trace' to show detailed location information)
Connection to 172.16.95.128 closed by remote host.
make: *** [vm/bootstrap0] Error 255
Changing the HDD to SATA as you suggested resolved the issue
@VanceLongwill could get through vm/bootstrap
successfully?I got the latest version of the repository and I am still facing the same issue as described above.
I also changed NIXNAME ?= vm-aarch64
in Makefile
to set the platform to M1.
It took a bit of trial & error (I'm new to nix) but I got it working.
I had to:
Good catch @VanceLongwill! For everyone's reference, the SSH key and the password should be changed in users/{USERNAME}/nixos.nix
I can't reproduce this error, I just rebuilt my whole VM from scratch on a diff machine and it all worked.
Thanks @mitchellh ...I am gonna also test on a fresh macbook pro M1 Max machine
I tried to run the latest codebase on VMWare Professional Version e.x.p (18656771) and using as iso the latest generated by
make iso/nixos.iso
however, themake vm/bootstrap
throws in the terminal with:and in the VM with
unknown ioctl 1976
.In order to set up NixOS, I changed the HDD to SATA in the VM configuration (instead of SCSI).