qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Qemu ovmf libvirt grub nvidia and pci passthrough


From: Aleksei
Subject: Re: [Qemu-discuss] Qemu ovmf libvirt grub nvidia and pci passthrough
Date: Tue, 27 Sep 2016 12:24:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

> ubuntu 14.04

> GeForce GTX 1060

Maybe this Ubuntu doesn't have recent enough nouveau/nvidia drivers to support this card?

--Regards, Aleksei



From: Rémi Laisné
Sent: Monday, September 26, 2016 10:11PM
To: Qemu-discuss
Subject: [Qemu-discuss] Qemu ovmf libvirt grub nvidia and pci passthrough
Hi,


i'm trying to virtualize ubuntu 14.04, here's the command i'm using : (i'm also using virt-manager leading to the same result)

sudo qemu-system-x86_64 -serial none -parallel none -vga none -nodefaults -nodefconfig -no-user-config -enable-kvm -name Ubuntu -cpu host,kvm=off,hv_vapic,hv_time,hv_relaxed -smp sockets=1,cores=2,threads=4 -m 6142 -mem-prealloc -machine pc,accel=kvm,kernel_irqchip=on,mem-merge=off -boot d -cdrom ubuntu-14.04.5-desktop-amd64.iso -drive if=pflash,format=raw,file=/usr/share/ovmf/x64/ovmf_x64.bin -rtc base=localtime,clock=host,driftfix=none -boot order=c  -nographic -device vfio-pci,host=03:00.0,multifunction=on -usbdevice host:1532:0200


I've got two graphics card in my setup, one for arch, another for qemu :


02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060] [10de:1c03] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3283]
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060] [10de:1c03] (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3281]
    Kernel driver in use: vfio-pci
    Kernel modules: nouveau, nvidia_drm, nvidia


This command launchs qemu with ubuntu iso, so the other display shows GRUB from that Ubuntu iso
After selecting the "Trying ubuntu live cd" thing my screen keeps staying BLACK  (but i can see through cpu/io graphs that ubuntu is loading/booting)

Display problem after launching GRUB ? so i tried using nomodeset, nvidia.modeset=0, nouveau.modeset=0, or grub_gfxmode=1280x1024x24 options, with many resolutions but it keeps staying black (i tried each options one by one, mixing them together but resulting in that same BLACK screen)

I tried to launch that ubuntu iso without pci passthrough, but only using my "archlinux" display with spice and qxl video mode and... it works (i can even detect the nvidia gpu when doing an "lspci" from it)
i've also tried Fedora iso, leading to same result.

Now i'm running out of ideas, displays works until GRUB.. any problem from ovmf_x64.bin ? graphics card ? resolution ? (it's a new card, it should support pci passthrough feature)
i can boot until GRUB, what's wrong i am doing ?

Thanks for your help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]