containers/podman

podman machine: image override files need user-write access

Open

#27,576 创建于 2025年11月20日

在 GitHub 查看
 (7 评论) (0 反应) (1 负责人)Go (31,686 star) (3,107 fork)batch import
Good First Issuekind/bugmachinetriaged

描述

Issue Description

While doing some testing today, I learned that at least for qemu machines, qemu-img requires user write access or we get an error. This is probably true for all providers but we need to check that.

❯ podman machine init --image builds/latest/x86_64/rhcos-10.1.20251017-0-qemu.x86_64.qcow2 test
Extracting compressed file: test-amd64.qcow2: done  
qemu-img: Could not open '/home/baude/.local/share/containers/podman/machine/qemu/test-amd64.qcow2': Could not open '/home/baude/.local/share/containers/podman/machine/qemu/test-amd64.qcow2': Permission denied
Error: resizing image: "exit status 1"

and

❯ ls -l builds/latest/x86_64/rhcos-10.1.20251017-0-qemu.x86_64.qcow2
-r--r--r--. 1 baude baude 1950744576 Nov 20 15:21 builds/latest/x86_64/rhcos-10.1.20251017-0-qemu.x86_64.qcow2

Steps to reproduce the issue

Steps to reproduce the issue 1. 2. 3.

Describe the results you received

Describe the results you received

Describe the results you expected

Describe the results you expected

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

贡献者指南

podman machine: image override files need user-write access · containers/podman#27576 | Good First Issue