pci passthrough

jorge_jvm

Renowned Member
May 1, 2014
16
0
66
Hello everyone, hope can guide me a little about it, I want to achieve the pci passthrough on my hp microserver g8, but when I add the lines manual virtual machine does not want to start :


kvm : -device pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 : No IOMMU found. Unable to assign device " hostpci0 "
kvm : -device pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 : Device initialization failed .
kvm : -device pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 : Device ' kvm- pci- assign ' could not be initialized
TASK ERROR : start failed: command ' / usr / bin / kvm -id 100 - chardev ' socket , id = QMP , path = / var/run/qemu-server/100.qmp , server , nowait '- mon ' chardev = qMP , mode = control " -vnc unix :/ var/run/qemu-server/100.vnc , x509 , password - pidfile / var/run/qemu-server/100.pid - daemonize -name WindowsServer2012R2 -smp ' sockets = 1 cores = 2 ' - nodefaults - boot' menu = on ' -vga vmware -no- HPET -cpu ' kvm64 , hv_spinlocks = 0xffff , hv_relaxed , + lahf_lm , x2apic + + Sep -k - is -m 4096 cpuunits 1000 -device ' PIIX3 - usb-uhci , uhci id = , = pci.0 bus , addr = 0x1.0x2 ' -device 'usb -tablet , id = tablet, bus = uhci.0 , port = 1' -device ' pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 ' -device ' virtio -balloon -pci , id = balloon0 , bus = pci.0 , addr = 0x3 ' -drive 'file=/var/lib/vz/template/iso/Windows_Server_2012_R2.ISO,if=none,id=drive-ide2,media=cdrom,aio=native' -device ' ide -cd , bus = ide.1 , unit = 0 , drive = drive- ide2 , id = ide2 , bootindex = 200' -device ' ahci , id = ahci0 , multifunction = on, bus = pci.0 , addr = 0x7 ' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.qcow2,if=none,id=drive-sata0,format=qcow2,aio=native,cache=none' -device ' ide -drive, bus = ahci0.0 , drive = drive- SATA0 , id = SATA0 , bootindex = 100' - netdev ' type = tap, id = net0 , ifname = tap100i0 , script = / var / lib / qemu -server/pve-bridge ' -device ' e1000 , mac = 22:2 F: 25:32 : B8 : 78, netdev = net0 , bus = pci.0 , addr = 0x12 , id = net0 , bootindex = 300 ' - rtc - overall ' ' driftfix = slew , base = localtime ' kvm- pit.lost_tick_policy = discard'' failed : exit code 1




any idea ?

best regards
 
which CPU?

I found some threads on google which show that HP did something with his BIOS-firmware (maybe it isn`t supported any more?)
 
Hello jorge_jvm,

the following


kvm : -device pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 : No IOMMU found. Unable to assign device " hostpci0 "
kvm : -device pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 : Device initialization failed .
kvm : -device pci -assign , host = 06:04.0 , id = hostpci0 , bus = pci.0 , addr = 0x10 : Device ' kvm- pci- assign ' could not be initialized

indicates that your HW does not support IOMMU - this is necessary for directed I/O of PCI HW. It´s implemented for intel processors with VT-d technology (see http://en.wikipedia.org/wiki/List_of_IOMMU-supporting_hardware) and must not be mixed up with VT-x which offers direct access to CPU HW and can be controlled by "KVM HW virtualization" in the "option" tab.

Kind regards

Mr. Holmes
 
Hello everyone thanks for answering, the Processor is Intel® Pentium® G2020T (2 core, 2.5 GHz, 3MB, 35W) , and the bios has options enabled virtualization (VT-D and Intel virtualization).


appears on IOMMU enabled me as when I run the following command:


"dmesg | grep-e DMAR-e IOMMU"


so I read the prosesador if it supports this feature but am new to Proxmox, there is another thing that you can review??


follow this tutorial:


https://pve.proxmox.com/wiki/Pci_passthrough


best regards
 
Hello everyone thanks for answering, the Processor is Intel® Pentium® G2020T (2 core, 2.5 GHz, 3MB, 35W) , and the bios has options enabled virtualization (VT-D and Intel virtualization).

Hello jorge_jvm,

unfortunately, this processor does not have VT-d capability, see http://ark.intel.com/products/71069

Fact that BIOS offers it is an indication that your motherboard supports, but the processor must support it too - Here http://ark.intel.com/search/advanced?s=t&SocketsSupported=FCLGA1155&MarketSegment=DT&VTD=true you can search for an alternative processor which supports VT-d and has the same socket.

Kind regards

Mr.Holmes
 
Mr.Holmes, it is very sad to read this, but I thanks much for your time, thanks


best regards
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!