Closed geneoes closed 1 year ago
The relevant error is:
losetup: cannot find an unused loop device
Can you list the loop devices inside your vm ?
sudo losetup -a
If there is none, can you ensure the kernel module is enabled ?
sudo modprobe loop
Ah... you have to use sudo to build the image...
Ah... you have to use sudo to build the image...
Ahh right!
I didn't because when using sudo: sudo: d2vm: command not found
I installed it through brew install linka-cloud/tap/d2vm
I always forget... since ubuntu 20.04 the user's $PATH
is not preserved by sudo
, so you need to run with the -E
flag:
sudo -E d2vm ...
hey yeah I tried but same message
sudo: d2vm: command not found
what is the output of which d2vm
?
what is the output of
which d2vm
?
/home/linuxbrew/.linuxbrew/bin/d2vm
can you show me your $PATH
?
echo $PATH
/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
Can you try sudo env "PATH=$PATH" d2vm ...
?
That worked and the build finished successfully, thank you!
You're welcome !
When running :
I am running this inside an Ubuntu VirtualBox with a Windows host