PCI Passthrough Error

I am using this article to do a PCI passthrough, but I get the following error message…

tacchino@tacchino-MS-7B79:~$ VBoxManage modifyvm ‘Windows 10 VM’ –pciattach 1d:00.0 VBoxManage: error: Host PCI attachment only supported with ICH9 chipset VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component SessionMachine, interface IMachine, callee nsISupports VBoxManage: error: Context: “AttachHostPCIDevice(iHostAddr, iGuestAddr, TRUE)” at line 3142 of file VBoxManageModifyVM.cpp

So, I changed my virtualbox chipset to ICH9, but now when I try to start my VM it gives me an error (screenshot “Image 1”). Any ideas?!

Image 1

How to “passthrough” a file from PC to Android and back using exec-in and exec-out directives?

I can do this:

adb exec-in "gzip > sdcard/test.gz" < C:\test.txt adb exec-out cat sdcard/test.gz > C:\test.gz 

The question is how to do something like this:

adb exec-in "gzip > C:\test.gz" < C:\test.txt 

I mean, how can I use a file on my PC as an input for some android (linux) program and use another file on my PC as an output WITHOUT saving any data on android’s internal memory (flash, microSD etc)?

qemu gpu passthrough black screen

previously at may 2017 I have configured a virtual qemu machine with a gpu passthrought of a radeon 5450, it works fine except a kernel panic (on VM) after the 2nd boot of the VM…

Now I am trying to remake this machine with the same configuration ( just 1-2 things different) formerly :

  • Gigabyte GA-990-FXA-ud3
  • AMD FX6300
  • 1st graphic card : NVidia GT210
  • 2nd graphic card : AMD Radeon HD5450
  • debian 8

changes since :

  • AMD FX8350
  • 1st graphic card : NVidia GT710

(I know its a little bit outdated configuration but I am not a gamer so I do not need more)

I have written this startup script :

#/bin/sh  echo '0000:02:00.1' | tee /sys/bus/pci/devices/0000:02:00.1/driver/unbind  modprobe vfio modprobe vfio_pci  echo 1002 68f9 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id echo 1002 aa68 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id   qemu-system-x86_64 -M q35 -m 2048 -enable-kvm \ -bios OVMF.fd \ -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ -soundhw ac97 \ -hda virtualrawdrive -cdrom ubuntuinstall.iso \ -device piix4-ide,bus=pcie.0,id=piix4-ide  -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on -device vfio-pci,host=02:00.1,bus=pcie.0 \ -vnc :0 

but Its not working, when I launch the script, 2nd graphic card VGA screen lights up, displays ubuntu plymouth screen, and after nothing, the screen stays on, but displays a black screen.

My lspci -nnk :

[...] 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)     Subsystem: Gigabyte Technology Co., Ltd GK208B [GeForce GT 710] [1458:36f7]     Kernel driver in use: nvidia     Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia 01:00.1 Audio device [0403]: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0e0f] (rev a1)     Subsystem: Gigabyte Technology Co., Ltd GK208 HDMI/DP Audio Controller [1458:36f7]     Kernel driver in use: snd_hda_intel     Kernel modules: snd_hda_intel 02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] [1002:68f9]     Subsystem: Micro-Star International Co., Ltd. [MSI] Cedar [Radeon HD 5000/6000/7350/8350 Series] [1462:2127]     Kernel driver in use: vfio-pci     Kernel modules: radeon 02:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] [1002:aa68]     Subsystem: Micro-Star International Co., Ltd. [MSI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] [1462:aa68]     Kernel driver in use: vfio-pci     Kernel modules: snd_hda_intel [...] 

My former 2017 script :

echo '0000:02:00.1' | sudo tee /sys/bus/pci/devices/0000:02:00.1/driver/unbind  modprobe vfio modprobe vfio_pci  echo 1002 68f9 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id echo 1002 aa68 | sudo tee /sys/bus/pci/drivers/vfio-pci/new_id  qemu-system-x86_64 -enable-kvm -M q35 -m 2048 -cpu host -smp 2,sockets=1,cores=2,threads=1 \ -bios /usr/share/qemu/bios.bin \ -vga none -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ -device piix4-ide,bus=pcie.0,id=piix4-ide  -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on -device vfio-pci,host=02:00.1,bus=pcie.0 \ -soundhw ac97 \ -drive file=/home/user/ubuntuimage,id=disk,format=raw,if=none -device ide-hd,bus=piix4-ide.0,drive=disk 

I think the problem comes from the “x-vga=on” option, but it not works on the new versions, I have got this error :

qemu-system-x86_64: -device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio 0000:02:00.0: failed getting region info for VGA region index 8: Invalid argument device does not support requested feature x-vga 

I have try use a “fresh” version of qemu (4.0.0) and OVMF (compiled from the GIT sources) but It does not changes anything…

So thanks by advance for your aswers

PS : sorry for my bad english, I am french

QEMU USB passthrough -device usb-host: drive exists

I am using Qemu, running on an Arch Host to use a Windows VM, and I need to passthrough the webcam. It is an integrated webcam using USB>=2.

lsusb yields for this device
Bus 001 Device 002: ID 0c45:6723 Microdia

Here is the script I am using (win-start.sh):

#! /bin/bash sudo qemu-system-x86_64 \      -m 8G \      -enable-kvm -cpu host -smp cores=4 \      -vga virtio -display sdl,gl=on \      -drive file=win,format=raw \      -device nec-usb-xhci\      -device usb-host,hostbus=1,hostaddr=2\      2>&1 win.log 

But this stops with:
qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=2: drive with bus=0, unit=0 (index=0) exists
And I cannot find where the error is. The VM boots without a problem when I remove the 2 -device lines.

This script is based on what I could find there : https://superuser.com/a/1077369/1021190

And the folder is setup as such:

ls -lh win* -rw-r--r-- 1 soulthym users 128G Apr 13 19:34 win -rw-r--r-- 1 soulthym users 4.4G Apr 11 20:28 win.iso -rw-r--r-- 1 soulthym users    0 Apr 13 18:57 win.log -rwxr-xr-x 2 soulthym users  297 Apr 13 19:57 win-start.sh 

VMware ESXi 6.0 – How can I pass-through (add) my Mac Pro’s optical drive to a VM (running OS X Mountain Lion)?

Bit unconventional I know, but I am running VMware ESXi 6.0 on my old Mac Pro 1.1. If you don’t know what that is then (no offense, but) you won’t be able to help me. The Mac Pro host has a “super drive” as its optical drive for CDs & DVDs.

I am trying to use VM pass-through to get my physical optical drive passed-through to the virtual machine. However, I have added the device to the VM and enabled pass-through, but still do not see it in the VM. What could I be doing wrong here? Thanks.

enter image description here

Pass-through SSL with HAProxy and vhosts on same IP

Can i pass-through SSL with HAProxy to a vhost that shares ip with other vhosts?

I try

frontend https bind *:443 #ssl mode tcp default_backend port_443  backend port_443 mode tcp server web42 www.example.com 

But i see the default webserver, not www.example.com

I could do SNI on frontend, but how to say to backend – this is for domain www.example.com?

Nvidia on the host + Nvidia on the guest: GPU passthrough on KVM problem

I’ll try to better explain my question:
I’ve successfully configured a VM with win10 that recognize my second GPU, an nvidia 1050ti while the host uses an nvidia 1060. Everything is working decently. I only have 1 problem:
loading vfio in /etc/initramfs-tools/modules like this

softdep nouveau pre: vfio vfio_pci softdep nvidia pre: vfio vfio_pci softdep nvidia_drm pre: vfio vfio_pci softdep nvidia-* pre: vfio vfio_pci 

along with other configurations I made in order to make all things work properly, leds my host card to not be able to use cuda core on blender anymore. Nvidia control panel on the host sees correctly my 1060, I can use it on steam and general purpose HW accelerated 3D stuffs, but I can’t use Cuda on Blender no more.
I’m well aware that I’m pretending maybe too much from my hyper-raped PC, but, you know, I’d like to have all I can from it.

thanks in advance to whoever decided to take a deep dive into this uncharted path (for me at least).