You are not logged in.

#1 2016-09-26 12:14:32

memesrlife
Member
Registered: 2016-09-26
Posts: 2

[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  :D (and excuse my average English)

Last edited by memesrlife (2016-09-26 12:15:42)

Offline

Board footer

Powered by FluxBB