1
# Debugging nix-rosetta-builder
2
3
Rough debugging notes and suggestions.
4
If you think of something that's missing or have something to add please
5
[open an issue](https://github.com/cpick/nix-rosetta-builder/issues/new).
6
7
## Gather information
8
9
### General
10
11
Test whether VM is running:
12
```sh
13
sudo ssh rosetta-builder
14
```
15
16
### Launchd
17
18
See the VM daemon's status in `launchd`:
19
```sh
20
launchctl print system/org.nixos.rosetta-builderd
21
```
22
Some fields in that output that deserve attention (see also "launchd.log" below):
23
* state
24
* pid
25
* sockets."Listener".error
26
27
Unload/stop the VM daemon:
28
```sh
29
sudo launchctl bootout system/org.nixos.rosetta-builderd
30
```
31
(Possibly followed by `sudo rm /Library/LaunchDaemons/org.nixos.rosetta-builderd.plist` to force a
32
subsequent `darwin-rebuild` to reload it, or else...)
33
34
(Re)load the VM daemon:
35
```sh
36
sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.rosetta-builderd.plist
37
```
38
39
## Logs
40
41
* /private/var/log/com.apple.xpc.launchd/launchd.log
42
* /var/lib/rosetta-builder/.lima/rosetta-builder-vm/ha.stderr.log
43
* /var/lib/rosetta-builder/.lima/rosetta-builder-vm/ha.stdout.log
44
45
When module.nix's `debugInsecurely = true`:
46
* /tmp/rosetta-builderd.err.log
47
* /tmp/rosetta-builderd.out.log
48
49
## Uninstall
50
51
See [README.md#Uninstall].
52