d2vm: MacOS: The file /dev/loop0p1 does not exist and no size was specified.
Running this command:
% sudo ~/go/bin/d2vm build -p 0 -f Dockerfile -o nutek-linux.vdi .
Leads to this error:
Building docker image from /in/Dockerfile
Inspecting image d2vm-cdc6670a-be2d-4db5-9d50-7d1414cad66b
No network manager specified, using distribution defaults: ifupdown
Docker image based on Kali GNU/Linux 2022.3
Building kernel enabled image
Creating vm image
Creating raw image
Mounting raw image
Creating raw image file system
Build failed
Unmounting raw image
Failed to unmount
Error: mkfs.ext4 /dev/loop0p1: stdout: stderr: mke2fs 1.45.5 (07-Jan-2020)
The file /dev/loop0p1 does not exist and no size was specified.
error: exit status 1
There is no mkfs.ext4 on MacOS
% which mkfs.ext4
mkfs.ext4 not found
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (25 by maintainers)
Thank you, great app 😃
This command worked for me
~/go/bin/d2vm build -p 0 -o nutek-linux.vdi .
withoutsudo
and without-f Dockerfile
I can build raw image
Output of your commands: