Disable serial port in VM template to avoid Black screen on Big Sur


Zvaniel4o
Go to solution Solved by Zvaniel4o,

Recommended Posts

Hello all, I have the following issue: I am trying to boot a Big Sur Macinabox Hackintosh with FirePro W7000 hosted on a SuperMicro X10DRH-CT.  Once I map the audio to the same bus as the GPU as shown below - I get a black screen:

 <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x85' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x85' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
    </hostdev>


The monitor is on, however, I receive no image (no mouse pointer, nothing). The only sign on life is switching the CAPS lock. I even cannot remote to the VM. I tried to isolate the device path of the GFX and the HDE - no luck:

image.png.1f955367d1b79a2042e3a5e39754dcdd.png

Somewhere I read that a person from this Reddit Post had related issues, and the fix was to disable Serial port in BIOS. How do I disable Serial port in XML? I can see below that they are detected in Hackintool:

image.thumb.png.c4cde140cb82d945ab6ebcadd0734811.png

and with gfxutil:

image.png.3d4afc4a867804f7cfa48c3fe2d3149a.png

Every time I remove the Serial entry in XML it is being reinserted after safe. Here is my XML snippet with serial port entries:

 

    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:b6:02:d5'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='vmxnet3'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>


Also - I have a macinabox Mojave hackintosh image which I booted with the same EFI partition and used the same XML VM setup. The HDMI audio worked until I updated Mohave to Big Sur. Thank you in advance!

 

Edited by Zvaniel4o
Additional information
Link to comment
  • Zvaniel4o changed the title to Disable serial port in VM template to avoid Black screen on Big Sur

Hi, that things you were highlighting have nothing to do with serial ports, they are isa bridge and smbus, which are mandatory for every pc/vm.

Virtio-serial was never an issue with mac os vm.

Your issue is somewhere else, maybe it's only a matter of outdated bootloader files, I would suggest to use 2 different efi partitions and update the opencore files, including kexts, to the latest release.

Which audio doesn't work?

Because you have HDEF from onboard audio and you should have HDAU for hdmi audio coming from the gpu: in both cases you need lilu+whatevergreen+applealc; for HDEF you need to find also your audio layout-id.

Edited by ghost82
Link to comment
  • Solution

Hey, thank you for reaching out. After disabling the serial and isa bus from the config.plist file - I determined that they are indeed necessary. More important - I cannot turn off the VM from UnRaid's dashboard if I have them disabled. After many trial and error my only solution was to use an RX580 or GTX 645 instead of w7000 so I can utilize the audio from DP.

Edited by Zvaniel4o
Link to comment

Unfortunately yes. I attempted creating DSDT/SSDT, tried importing the device path to config.plist, updating kexts, sorting them by specific order, trying patches, playing with drivers, breaking everything, start over multiple times, etc. Everything that I was able to find instructions for - I attempted. The reason why I was insisting on w7000 is because it is a single slot GPU, (I am already utilizing bifurcation card on my x10drh-ct so PCIe slots are scarce) way more powerful than GTX 645 and way less expensive than WX 4100/5100 even though not as powerful.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.