Skip to content

Commit 8c00b73

Browse files
committed
Storage troubleshooting for slicer mac
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent b386b7f commit 8c00b73

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

docs/mac/linux-vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ slicer vm shutdown slicer-1
6464
slicer vm exec slicer-1 -- sudo shutdown -h 0
6565
```
6666

67-
If your VM crashes or you kill slicer-mac without letting it shut down the VMs gracefully, you may need to check the disk image, which you can do via the [Troubleshooting](/mac/troubleshooting) page.
67+
If your VM crashes or you kill slicer-mac without letting it shut down the VMs gracefully, you may need to check the disk image. See [Check or repair a VM disk image](/mac/troubleshooting/#check-or-repair-a-vm-disk-image).
6868

6969
If you ever want to "reset" your `slicer-1` VM, you can delete it and then relaunch it.
7070

docs/mac/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ In a similar way, a sandbox such as `sbox-1` may have K3s installed, exposing po
7070

7171
Slicer for Mac uses Apple's [VZNATNetworkDeviceAttachment](https://developer.apple.com/documentation/virtualization/vznatnetworkdeviceattachment). Guests access the Internet through your host.
7272

73+
If you also run Docker Desktop on the same Mac, configure it to use `Docker VMM` mode to avoid networking conflicts with Slicer. See [Use Docker from macOS with the Slicer VM socket](/mac/docker).
74+
7375
* The host can ingress to guests using their IP or `slicer vm forward`
7476
* Guests can talk to the host to access things like HTTP proxies, or a Docker pull-through cache, etc.
7577
* Unlike Slicer for Linux, which supports bridged mode networking, guests on Slicer for Mac cannot talk to each other, unless you install an overlay network using something like Wireguard, routing through the host.

docs/mac/storage.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,4 @@ rm -f ./slicer-1.img
5656

5757
## Troubleshooting
5858

59-
If your VM crashes for some reason, or the Mac's sleep mode causes an issue with the VM, you may find the `.img` file needs to be checked or repaired with the `e2fsck` utility.
60-
61-
Check the filesystem (read-only, no changes):
62-
63-
```bash
64-
e2fsck -v -n ./slicer-1.img
65-
```
66-
67-
If errors are found, repair them:
68-
69-
```bash
70-
e2fsck -f ./slicer-1.img
71-
```
72-
73-
You can obtain `e2fsck` by installing the `e2fsprogs` package via `brew install e2fsprogs`. Brew is available separately at: [https://brew.sh/](https://brew.sh/).
59+
If a VM disk image needs checking or repair, see [Check or repair a VM disk image](/mac/troubleshooting/#check-or-repair-a-vm-disk-image).

docs/mac/troubleshooting.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
# Troubleshooting Slicer for Mac
22

3+
## Check or repair a VM disk image
4+
5+
If your VM crashes, the Mac sleeps at the wrong time, or `slicer-mac` is killed before the guest shuts down cleanly, the VM disk image may need a filesystem check.
6+
7+
Check the filesystem first in read-only mode:
8+
9+
```bash
10+
e2fsck -v -n ./slicer-1.img
11+
```
12+
13+
If errors are found, repair them:
14+
15+
```bash
16+
e2fsck -f ./slicer-1.img
17+
```
18+
19+
You can install `e2fsck` on macOS via Homebrew:
20+
21+
```bash
22+
brew install e2fsprogs
23+
```
24+
325
## No Internet or LAN access from the VM
426

527
One failure mode on macOS is that the VM networking gets stuck on the wrong subnet because the host-side vmnet state becomes stale.
28+
29+
If you also run Docker Desktop, first check that it is using `Docker VMM` mode. That is the supported way to run Docker and Slicer together without subnet conflicts. See [Use Docker from macOS with the Slicer VM socket](/mac/docker).
30+
631
You may notice one or more of the following:
732

833
- `slicer vm list` shows `slicer-1` on `192.168.64.2`, but the VM cannot reach `192.168.64.1`

0 commit comments

Comments
 (0)