You are not logged in.

#1 2021-08-22 17:52:43

thomasbb
Member
Registered: 2020-05-22
Posts: 52

[SOLVED] qemu - authorization required

When I run sudo qemu-img create -f qcow2 ./myimg.qcow2 24M, it gives

Formatting './myimg.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=25165824 lazy_refcounts=off refcount_bits=16

and then sudo qemu-system-x86_64 -hda ./myimg.qcow2 -cdrom ./image.iso -usbdevice tablet, it says

Authorization required, but no authorization protocol specified
Unable to init server: Could not connect: Connection refused
gtk initialization failed

Would you see were the mistake is? The -usbdevice tablet option seems to be to emulate the mouse, if I understood well.

Last edited by thomasbb (2021-08-22 20:23:14)

Offline

#2 2021-08-22 18:05:46

thomasbb
Member
Registered: 2020-05-22
Posts: 52

Re: [SOLVED] qemu - authorization required

Just sudo qemu-system-x86_64 -hda ./myimg.qcow2 doesn't work already. The libvirtd service is running without error.

Last edited by thomasbb (2021-08-22 18:07:51)

Offline

#3 2021-08-22 20:13:39

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: [SOLVED] qemu - authorization required

You don't need sudo to use 'qemu-img create' or ' qemu-system-x86_64'

Offline

#4 2021-08-22 20:22:48

thomasbb
Member
Registered: 2020-05-22
Posts: 52

Re: [SOLVED] qemu - authorization required

Damn... Many thanks

Offline

Board footer

Powered by FluxBB