You are not logged in.

#1 2018-09-23 14:53:29

HepoH
Member
Registered: 2018-08-02
Posts: 2

Error 43 while passing through an NVIDIA GPU to a virtual machine

Hello everyone.
I'm trying to pass through an nvidia gpu to a VM, but I am stuck with an error 43.
I know that I need to pass the '-cpu host,kvm=off' parameter, but I run the VM via virt manager, not qemu, so I don't understand how to set this parameters in my .xml file.
I tried:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

...

  </devices>
  <qemu:commandline>
          <qemu:arg value='-cpu host,kvm=off'/>
  </qemu:commandline>
</domain>

but when I start the VM, I get this error:

process exited while connecting to monitor: 2018-09-23 14:44:46.629+0000: Domain id=18 is tainted: custom-argv
2018-09-23 14:44:46.629+0000: Domain id=18 is tainted: host-cpu
qemu-system-x86_64: -cpu host,kvm=off: invalid option

I will appreciate any help in this.

My QEMU version is 3.0.0-1, libvirt version is 4.7.0-1.

Offline

Board footer

Powered by FluxBB