title: How to solve "Permission denied" error for qemu:commandline in libvirt?
body: <p>Please find below a sample of my dom xml. I am running the command virsh create  and I get this error:</p>
  
  <pre><code>Unable to open file &lt;json file located inside install_dir&gt;
  </code></pre>
  
  <p>The permissions for this file are all good. </p>
  
  <p>Are there any special permissions needed for parameters under the <code>qemu:commandline</code> tag?  Regardless of the parameter and file I mention within this section, I get the error. </p>
  
  <pre><code> &lt;domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'&gt;
    &lt;name&gt;my_instance&lt;/name&gt;
    &lt;uuid&gt;35615c44-b004-4b3f-9f42-da182b9662ee&lt;/uuid&gt;
    &lt;memory unit='KiB'&gt;786432&lt;/memory&gt;
    &lt;currentMemory unit='KiB'&gt;786432&lt;/currentMemory&gt;
    &lt;vcpu placement='static'&gt;1&lt;/vcpu&gt;
    &lt;os&gt;
      &lt;type arch='armv7l' machine='my_machine'&gt;hvm&lt;/type&gt;
      &lt;kernel&gt;/home/user/KernelPath/zImage&lt;/kernel&gt;
      &lt;dtb&gt;/home/user/DTPPath/emmc.dtb&lt;/dtb&gt;
    &lt;/os&gt;
    &lt;clock offset='utc'/&gt;
    &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;
    &lt;on_reboot&gt;restart&lt;/on_reboot&gt;
    &lt;on_crash&gt;destroy&lt;/on_crash&gt;
    &lt;devices&gt;
      &lt;emulator&gt;/usr/bin/qemu-system-arm&lt;/emulator&gt;
      &lt;disk type='file' device='disk'&gt;
        &lt;driver name='qemu' type='raw'/&gt;
        &lt;source file='/home/user/Install_Dir/emmc.dat'/&gt;
        &lt;target dev='sd' bus='scsi'/&gt;
        &lt;address type='drive' controller='0' bus='0' target='0' unit='0'/&gt;
      &lt;/disk&gt;
      &lt;controller type='usb' index='0'/&gt;
      &lt;controller type='scsi' index='0'/&gt;
      &lt;serial type='pty'&gt;
        &lt;target port='0'/&gt;
      &lt;/serial&gt;
      &lt;serial type='pty'&gt;
        &lt;target port='1'/&gt;
      &lt;/serial&gt;
      &lt;serial type='pty'&gt;
        &lt;target port='2'/&gt;
      &lt;/serial&gt;
      &lt;serial type='pty'&gt;
        &lt;target port='3'/&gt;
      &lt;/serial&gt;
      &lt;console type='pty'&gt;
        &lt;target type='serial' port='0'/&gt;
      &lt;/console&gt;
      &lt;input type='mouse' bus='ps2'/&gt;
      &lt;input type='keyboard' bus='ps2'/&gt;
      &lt;graphics type='vnc' port='60316' autoport='no' websocket='60381' listen=''&gt;
        &lt;listen type='address' address=''/&gt;
      &lt;/graphics&gt;
      &lt;graphics type='sdl'/&gt;
      &lt;video&gt;
        &lt;model type='qxl'/&gt;
      &lt;/video&gt;
      &lt;memballoon model='none'/&gt;
    &lt;/devices&gt;
    &lt;qemu:commandline&gt;
      &lt;qemu:arg value='-spdir'/&gt;
      &lt;qemu:arg value='/home/user/Install_Dir'/&gt;
      &lt;qemu:arg value='-show-cursor'/&gt;
    &lt;/qemu:commandline&gt;
  &lt;/domain&gt;
  </code></pre>