Closed kgibm closed 10 months ago
The mount is still in the JSON file:
$ grep -A 8 Mounts ~/.config/containers/podman/machine/qemu/podman-machine-default.json
"Mounts": [
{
"ReadOnly": false,
"Source": "/Users/kevin",
"Tag": "vol0",
"Target": "/mnt/host",
"Type": "9p"
}
],
I found this in journalctl
from the first run of the machine:
Nov 28 11:09:37 localhost.localdomain sudo[2307]: core : PWD=/var/home/core ; USER=root ; COMMAND=/usr/bin/mount -t 9p -o trans=virtio vol0 /mnt/host -o version=9p2000.L,msize=131072
So I just manually re-ran that and it worked:
$ podman machine ssh "sudo /usr/bin/mount -t 9p -o trans=virtio vol0 /mnt/host -o version=9p2000.L,msize=131072"
$ podman machine ssh "ls /mnt/host | wc -l"
20
Then I stopped and started the machine, and the mount was still there. So this seems to be a permanent workaround.
If you reboot from with the VM it will clear the volume mount, you must use podman machine stop and podman machine start instead.
Duplicate of https://github.com/containers/podman/issues/15976
Issue Description
Create a podman machine with a volume mount and it's there. Then install qemu-user-static for cross-compilation, and the volume mount is gone.
Steps to reproduce the issue
Steps to reproduce the issue
podman machine init --cpus 4 --memory 10240 --disk-size 100 -v $HOME:/mnt/host
podman machine start
podman machine ssh "sudo rpm-ostree install qemu-user-static | grep -v 'Changes queued for next boot'; sudo systemctl reboot"
Describe the results you received
Volume mount is gone
Describe the results you expected
Volume mount persists after installing qemu-user-static
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Running latest podman from brew
Additional information
No response