containers/podman

podman machine: image override files need user-write access

開放

#27,576 建立於 2025年11月20日

 (7 則留言) (0 個反應) (1 位負責人)Go (3,107 個分叉)batch import
Good First Issuekind/bugmachinetriaged

倉庫指標

星標
 (31,686 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南