qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Facing permission denied issue when adding QEMU command line argumen


From: Wang, Lei
Subject: Re: Facing permission denied issue when adding QEMU command line arguments into the VM xml file
Date: Wed, 6 Jul 2022 22:21:38 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0

Found a similar question here, you can check if it can solve your problem:


https://stackoverflow.com/questions/48657281/how-to-solve-permission-denied-error-for-qemucommandline-in-libvirt

BR,
Lei

On 7/6/2022 6:57 PM, Bilal Zahoor wrote:
Dear Qemu Community,

Hope you are fine. We are facing permission issues when we have added the qemu command line arguments in the vm xml file. Please find the attached vm xml file and the snap of permission issue.For quick reference please see below qemu command line arguments used in attached xml file.

<qemu:commandline>
    <qemu:arg value='-chardev'/>
    <qemu:arg value='socket,id=charnet1,path=/tmp/sock-virtio0'/>
    <qemu:arg value='-netdev'/>
    <qemu:arg value='vhost-user,chardev=charnet1,queues=16,id=hostnet1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='virtio-net-pci,mq=on,vectors=6,netdev=hostnet1,id=net1,mac=e4:11: c6:d3:45:f2,bus=pci.0,addr=0x6, page-per-vq=on,rx_queue_size=1024,tx_queue_size=1024'/>
  </qemu:commandline>



if we dont pass these qemu command line arguments then VM is successfully launched but we dont get the virtio interface. Note here that we have tried this setup on multiple machines but getting same issue. All these configurations are done through super user. Please advise what we are missing and how to resolve this permission denied issue. Thanks.


With Regards,
Bilal.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]