<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><font size="3"><span style="font-size: 16px;">I am trying to pass-through the parallel port of the host to the guest.</span></font></div><div><font size="3"><span style="font-size: 16px;">When I just used qemu-system-x86_64 with option '-chardev pty,id=charparallel0,path=/dev/parport0 </span></font><span style="font-size: 16px;">-device isa-parallel,chardev=charparallel0,id=parallel0', it worked perfect. </span></div><div><span style="font-size: 16px;">But when I tried to pass these option by adding lines below to the domain xml,</span></div><div><span style="font-size: 16px;">...</span></div><div><span style="font-size: 16px;"></device></span></div><div><span style="font-size: 16px;"><qemu:commandline></span></div><div><span style="font-size: 16px;">  <qemu:args value='</span><font size="3"><span style="font-size: 16px;">-chardev'/></span></font></div><div><font size="3"><span style="font-size: 16px;">  </span></font><span style="font-size: 16px;"><qemu:args value='</span><font size="3"><span style="font-size: 16px;">pty,id=charparallel0,path=/dev/parport0'/></span></font></div><div><span style="font-size: 16px;">  <qemu:args value='-device'/></span></div><div><span style="font-size: 16px;">  <qemu:args value='isa-parallel,chardev=charparallel0,id=parallel0'/></span></div><div><span style="font-size: 16px;"></qemu:commandline></span></div><div><span style="font-size: 16px;">...</span></div><div><span style="font-size: 16px;">it failed and showed:</span></div><div><div style=""><font size="3"><span style="font-size: 16px;">[root@localhost local]# virsh start test02</span></font></div><div style=""><font size="3"><span style="font-size: 16px;">error: Failed to start domain test02</span></font></div><div style=""><font size="3"><span style="font-size: 16px;">error: internal error: process exited while connecting to monitor: 2019-03-27 02:28:12.507+0000: Domain id=32 is  tainted: custom-argv</span></font></div><div style=""><font size="3"><span style="font-size: 16px;">2019-03-27T02:28:12.599326Z qemu-system-x86_64: -chardev parallel,id=charparallel0,path=/dev/parport0: Could not  open '/dev/parport0': No such file or directory</span></font></div></div><div style=""><br></div><div style=""><span style="font-size: 16px;">I dont know why it showed a 'No such file or directory'. The /dev/parport0 is actually here. I have tried setting chmod 666 to /dev/parport0 and shutdown the selinux, but it always show the same thing.</span></div><div style=""><span style="font-size: 16px;">Please give me some help, thanks.</span></div></div><br><br><span title="neteasefooter"><p> </p></span>