Divide by zero error during virtual machine boot

Description

System

Motherboard: Asus Prime x570-p
CPU: Ryzen 2700x
GPU: AMD RX 580 8gb dual OC
GPU: Nvidia GeForce 1030
RAM: 64GB
Truenas Scale version: TrueNAS-SCALE-22.02-RC.1-1

VM setup:

Windows10 latest .iso download
UEFI
CPU-passthrough 1vcpu, 8 core, 2 thread
16GB ram
100gb ZVol
VirtIO NIC
GPU: AMD RX 580 8gb dual OC
VNC Display

When I try to boot either a Windows or Linux VM I get this output code from the serial console:

!!!! X64 Exception Type - 00(#DE - Divide Error) CPU Apic ID - 00000000 !!!!
RIP - 00000000BE84C2E0, CS - 0000000000000038, RFLAGS - 0000000000010246
RAX - 000000000000EA60, RCX - 0000000000000000, RDX - 0000000000000000
RBX - 0000000000000006, RSP - 00000000BFE265B8, RBP - 00000000BEA33CD4
RSI - 0000000000000000, RDI - 00000000BEA33D48
R8 - 0000000000000000, R9 - 0000000000000000, R10 - 0000000000000001
R11 - 0000000000000000, R12 - 00000000BEA33C00, R13 - 0000000000000100
R14 - 00000000BEA33B8C, R15 - 0000000000000000
DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030
GS - 0000000000000030, SS - 0000000000000030
CR0 - 0000000080010033, CR2 - 0000000000000000, CR3 - 00000000BFC01000
CR4 - 0000000000000668, CR8 - 0000000000000000
DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 00000000BF9EE698 0000000000000047, LDTR - 0000000000000000
IDTR - 00000000BF4AD018 0000000000000FFF, TR - 0000000000000000
FXSAVE_STATE - 00000000BFE26210
!!!! Find image based on IP(0xBE84C2E0) (No PDB) (ImageBase=00000000BE842000, EntryPoint=00000000BE8469E4) !!!!

I found that if I remove the GPU from the VM then it boots normally so something is going on with the GPU (i think). I wanted to try to pass the rom and see if that fixed the issue but I cannot seem to do so.

Problem/Justification

None

Impact

None

Activity

Show:

Waqar 
March 19, 2022 at 2:59 PM

Feedback timeout

Waqar 
March 12, 2022 at 6:06 AM

ping  

Waqar 
March 6, 2022 at 9:49 AM

can you please share the output of the following commands ? Thanks!

Ryan Moeller 
November 29, 2021 at 5:30 PM

To clarify, you see this error on the VM's console or on the host's console? Does the system crash?

BirdBare 
November 22, 2021 at 3:22 AM

Hi ,

 

Sorry for the delay. Please find the attached debug file.

 

Thanks,

Bradley

Third Party to Resolve

Details

Assignee

Reporter

Labels

Impact

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created November 7, 2021 at 12:45 AM
Updated July 6, 2022 at 8:57 PM
Resolved March 19, 2022 at 2:59 PM