```$ fleetctl package --type=pkg --fleet-url=<h...
# fleet
r
Copy code
$ fleetctl package --type=pkg --fleet-url=<https://X> --enroll-secret=X
Generating your osquery installer...
Unable to find path: /root/root
Error: build pkg: mkbom: exit status 1
Same goes for msi:
Copy code
$ fleetctl package --type=msi --fleet-url=<https://X> --enroll-secret=X
Generating your osquery installer...
Windows Installer XML Toolset Toolset Harvester version 
Copyright (c) .NET Foundation and contributors. All rights reserved.

heat.exe : error HEAT5052 : The directory 'Z:\wix\root' could not be found.
Error: package root files: heat failed: exit status 188
j
If memory serves me correctly to build the client agent using a different OS than the type you are setting you need to have Docker engine installed. Fleetctl uses Docker to emulate the target OS type as part of the build. I had found some documentation around that at one point, but Google fu is failing me now to find it again.
r
I have docker installed
Linux building works perfectly
not osx/msi
j
Got me then. Hopefully someone more knowledgeable else chimes in.
r
Thanks
b
can you run
fleetctl --version
? and
docker --version
Copy code
āžœ  Downloads docker --version
Docker version 20.10.21, build baeda1f
āžœ  Downloads fleetctl --version
fleetctl - version 4.23.0
  branch: 	HEAD
  revision: 	af0c75e08bc37d1c81f38fd24dfaf0d473d8a499
  build date: 	2022-11-14
  build user: 	runner
  go version: 	go1.19.3
running package yields:
Copy code
Downloads fleetctl package --type=msi --fleet-desktop --fleet-url=<http://localhost:8080> --enroll-secret=<omitted>
Generating your osquery installer...
Unable to find image 'fleetdm/wix:latest' locally
latest: Pulling from fleetdm/wix
7d63c13d9b9b: Pull complete 
d6b3bca85310: Pull complete 
26a41d401cc6: Pull complete 
1a28001a7315: Pull complete 
86ad66875459: Pull complete 
4f4fb700ef54: Pull complete 
Digest: sha256:3183e1a702efe74cef600b73c193605bed5aeff53f09cf858b86fe66efdd8e3e
Status: Downloaded newer image for fleetdm/wix:latest
Windows Installer XML Toolset Toolset Harvester version 
Copyright (c) .NET Foundation and contributors. All rights reserved.

Windows Installer XML Toolset Compiler version 
Copyright (c) .NET Foundation and contributors. All rights reserved.

heat.wxs
main.wxs
Windows Installer XML Toolset Linker version 
Copyright (c) .NET Foundation and contributors. All rights reserved.


Success! You generated an osquery installer at /home/ben/Downloads/fleet-osquery.msi
are you on WSL?
z
I think we've seen errors like this when there are issues sharing a volume with the container trying to do the build. If you are on Linux you might need to install a different Docker distribution and/or run with
sudo
for the appropriate permissions.
r
sorry for the late reply here:
Copy code
$ fleetctl --version
fleetctl - version 4.23.0
  branch: 	HEAD
  revision: 	af0c75e08bc37d1c81f38fd24dfaf0d473d8a499
  build date: 	2022-11-14
  build user: 	runner
  go version: 	go1.19.3
Copy code
$ docker --version
Docker version 20.10.17, build 100c70180f
Running as root didnt help either
This is Ubuntu 22.04 btw
t
My experience with this is that you need to run the create the MSI using a windows machine & .PKG using a mac. I have VMs setup just for it.