Windows host path to linux guest path translation error initiating build of `qtbase`
When starting an ubuntu2004 qtbase build job from a Windows 10 host, I encountered an issue where Minicoin is using a Windows host path to locate the qtbase
repository.
kekyziva@QT-L-PF11883P MINGW64 ~/Build/qt-git/qt5-qt6/qtbase ((6652bf2353d...))
$ minicoin run build ubuntu2004
==> ubuntu2004: Machine not ready, trying to bring it up
Bringing machine 'ubuntu2004' up with 'virtualbox' provider...
==> ubuntu2004: Importing base box 'generic/ubuntu2004'...
[...]
ubuntu2004: -bash: cmake: command not found
ubuntu2004: Installing cmake 3.21.2
ubuntu2004: E: Version '3.21' for 'cmake' was not found
ubuntu2004: ... Downloading cmake
[...]
ubuntu2004: cmake version installed:
ubuntu2004: cmake version 3.21.2
ubuntu2004:
ubuntu2004: CMake suite maintained and supported by Kitware (kitware.com/cmake).
==> ubuntu2004: Uploading 'C:/Users/kekyziva/Build/minicoin/minicoin/jobs/build'
==> ubuntu2004: The host path 'C:/Users/kekyziva/Build/qt-git/qt5-qt6/qtbase' doesn't map to any location on th
e guest:
==> ubuntu2004: C:/Users/kekyziva/Build/minicoin/minicoin => /minicoin
==> ubuntu2004: C:\Users\kekyziva => /home/kekyziva
==> ubuntu2004: Running 'build' with arguments C:/Users/kekyziva/Build/qt-git/qt5-qt6/qtbase C:/Users/kekyziva/
Build/qt-git/qt5-qt6/qtbase
Folder 'C:/Users/kekyziva/Build/qt-git/qt5-qt6/qtbase' does not exist on this guest - couldn't map to a shared
folder
Building 'qtbase' from 'C:/Users/kekyziva/Build/qt-git/qt5-qt6/qtbase' into 'qtbase-build'
No CMake or qmake build system found
No build system generated, aborting
==> ubuntu2004: Job finished with non-zero exit code 1
I'm not clear what minicoin is doing here, but it appears that it's not translating windows paths into *nix paths, and is using those verbatim in the guest environment. I wonder if this has something to do with me invoking minicoin from a bash shell on Windows.
Output of minicoin describe ubuntu2004
:
$ minicoin describe ubuntu2004
---
machine:
name: ubuntu2004
box: generic/ubuntu2004
roles:
- role: linux-desktop
- role: linux-builder
shared_folders:
- "$PWD": "/minicoin"
- "$HOME_SHARE": "$GUEST_HOMES/$USER"
os: linux
fs_mappings:
".": "/minicoin"
C:\Users\kekyziva: "/home/kekyziva"
actual_shared_folders:
".": "/minicoin"
C:\Users\kekyziva: "/home/kekyziva"
hash: 76
guest_homes: "/home"
UPDATE: Vagrant VMware Utility issue is fixed (just install Vagrant VMware Utility as it mentions). The primary issue still occurs.
minicoin ssh
fails to ssh into the guest. In order to access the guest, I had to bring up the VirtualBox guest display.
minicoin ssh failure:
kekyziva@QT-L-PF11883P MINGW64 ~/Build/qt-git/qt5-qt6/qtbase ((6652bf2353d...))
$ minicoin ssh
Vagrant encountered an error while attempting to load the utility
service key file. This error can occur if the Vagrant VMware Utility
has not yet been installed, or if it was installed incorrectly. If
this error persists after running the Vagrant VMware Utility installer
again, please contact support at: support@hashicorp.com
Information about the Vagrant VMware Utility, including installation
instruction, can be found here:
https://www.vagrantup.com/docs/vmware/vagrant-vmware-utility.html
Path: C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
Error: No such file or directory @ rb_sysopen - C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/
vagrant-utility.client.crt
/home/vagrant
shows the standard set of files and directories from the skeleton for a newly created user, plus an empty qtbase-build
directory, .minicoin
dir with only a jobs
subdir, which is empty.
I'm unclear what to look for next to solve this issue.