Run qcow2 image created with virt-manager using qemu-system-x86_64
0
votes
1
answer
1794
views
My qemu version is
QEMU emulator version 9.0.2 (Debian 1:9.0.2+ds-2+b1)
.
I created a FreeBSD 14 VM using virt-manager
. It's drive is a qcow2 image:
-rwxr-xr-x 1 libvirt-qemu libvirt-qemu 8.1G 20240916 20:26:09.201 bsdie.qcow2
I am a member of the appropriate group:
groups
localuser cdrom floppy sudo audio dip video plugdev kvm netdev bluetooth scanner lpadmin libvirt libvirt-qemu
However, I get a permissions error when trying to run this machine using CLI:
qemu-system-x86_64 -cpu host -enable-kvm -m 1G -drive file=bsdie.qcow2 -net nic,vlan=0,macaddr=52:54:00:81:b6:cc -net user
qemu-system-x86_64: -drive file=bsdie.qcow2: Could not open 'bsdie.qcow2': Permission denied
What am I missing?
More generally, I'd like to know if there is a way of running machines defined via virt-manager
using Qemu cmd. line; since the XML config files can be found in /etc/libvirt/qemu
, I'd like to know if there is a way of "translating" the XML parameters into Qemu command-line args.
Thanks!
Asked by mathbekunkus
(359 rep)
Sep 21, 2024, 10:41 PM
Last activity: Sep 21, 2024, 11:47 PM
Last activity: Sep 21, 2024, 11:47 PM