Jump to content
We're Hiring! Full Stack Developer ×

Can't launch from graphics card Black Screen


frankgore77

Recommended Posts

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

  <name>nhghg</name>

  <uuid>885ecffb-ece8-1fbe-b305-889099d99183</uuid>

  <metadata>

    <vmtemplate name="Custom" icon="windows.png" os="windows"/>

  </metadata>

  <memory unit='KiB'>6291456</memory>

  <currentMemory unit='KiB'>6291456</currentMemory>

  <memoryBacking>

    <nosharepages/>

    <locked/>

  </memoryBacking>

  <vcpu placement='static'>3</vcpu>

  <cputune>

    <vcpupin vcpu='0' cpuset='0'/>

    <vcpupin vcpu='1' cpuset='1'/>

    <vcpupin vcpu='2' cpuset='2'/>

  </cputune>

  <os>

    <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type>

  </os>

  <features>

    <acpi/>

    <apic/>

  </features>

  <cpu mode='host-passthrough'>

    <topology sockets='1' cores='3' threads='1'/>

  </cpu>

  <clock offset='localtime'>

    <timer name='rtc' tickpolicy='catchup'/>

    <timer name='pit' tickpolicy='delay'/>

    <timer name='hpet' present='no'/>

  </clock>

  <on_poweroff>destroy</on_poweroff>

  <on_reboot>restart</on_reboot>

  <on_crash>restart</on_crash>

  <devices>

    <emulator>/usr/bin/qemu-system-x86_64</emulator>

    <disk type='file' device='disk'>

      <driver name='qemu' type='raw' cache='writeback'/>

      <source file='/mnt/user/vidisks/nhghg/vdisk1.img'/>

      <target dev='hdc' bus='virtio'/>

      <boot order='1'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>

    </disk>

    <disk type='file' device='disk'>

      <driver name='qemu' type='raw' cache='writeback'/>

      <source file='/mnt/user/ArrayVdisks/nhghg/vdisk2.img'/>

      <target dev='hdd' bus='virtio'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>

    </disk>

    <disk type='file' device='cdrom'>

      <driver name='qemu' type='raw'/>

      <source file='/mnt/user/ISOs/Microsoft Windows 10 6in1 FULL (x64) Jan 2016 [TechTools].ISO'/>

      <target dev='hda' bus='ide'/>

      <readonly/>

      <boot order='2'/>

      <address type='drive' controller='0' bus='0' target='0' unit='0'/>

    </disk>

    <disk type='file' device='cdrom'>

      <driver name='qemu' type='raw'/>

      <source file='/mnt/user/ISOs/virtio-win-0.1.112.iso'/>

      <target dev='hdb' bus='ide'/>

      <readonly/>

      <address type='drive' controller='0' bus='0' target='0' unit='1'/>

    </disk>

    <controller type='usb' index='0'>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>

    </controller>

    <controller type='pci' index='0' model='pci-root'/>

    <controller type='ide' index='0'>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>

    </controller>

    <controller type='virtio-serial' index='0'>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

    </controller>

    <interface type='bridge'>

      <mac address='52:54:00:cc:5c:08'/>

      <source bridge='br0'/>

      <model type='virtio'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>

    </interface>

    <serial type='pty'>

      <target port='0'/>

    </serial>

    <console type='pty'>

      <target type='serial' port='0'/>

    </console>

    <channel type='unix'>

      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/nhghg.org.qemu.guest_agent.0'/>

      <target type='virtio' name='org.qemu.guest_agent.0'/>

      <address type='virtio-serial' controller='0' bus='0' port='1'/>

    </channel>

    <hostdev mode='subsystem' type='usb' managed='yes'>

      <source>

        <vendor id='0x1bcf'/>

        <product id='0x0005'/>

      </source>

    </hostdev>

    <hostdev mode='subsystem' type='usb' managed='yes'>

      <source>

        <vendor id='0x0c45'/>

        <product id='0x7603'/>

      </source>

    </hostdev>

    <memballoon model='virtio'>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>

    </memballoon>

  </devices>

  <qemu:commandline>

    <qemu:arg value='-device'/>

    <qemu:arg value='ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=2,chassis=1,id=root.1'/>

    <qemu:arg value='-device'/>

    <qemu:arg value='vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>

    <qemu:arg value='-device'/>

    <qemu:arg value='vfio-pci,host=01:00.1,bus=root.1,addr=01.0'/>

  </qemu:commandline>

</domain>

 

 

So ive had this problem for a long time and i am so sick of fighting with it. Whenever i launch from one of my graphics cards from my vm i get a black screen. Nothing is showing. ive tried both my graphics cards. Ive done everything that i can think of and i cannot seem to get much help.

System is amdfx6300

gtx670

gtx 750ti

m5a97 mobo

12 gb ram

If anyone has any suggestions at all please help

Link to comment

Your forgot all the information I requested BUT let's see what we can do based on what you have provided.

 

Do you have virtualisation enabled in your BIOS?

 

Enter your bios setup, set it to Advanced Mode if you haven’t done so already.

 

Based on some quick Google research:

 

The setting is located at: Advanced > CPU Configuration > SVM

 

Upon saving, the PC may turn off completely and turn back on again.

 

Link to comment

yes i have done both of those

 

I am running out of ideas here. I have noticed however that users have reported that problems have occurred with audio and/or video when switching Video Cards for the same VM as if the VM won't release the old drivers / update to the current or required drivers, but a "clean/fresh" install will insert the proper drivers and do OK.

 

Try this. Recreate a NEW VM (don't activate windows just install it) using OVMF with ONE Video Card so that from install of the OS the correct drivers are selected and see if it works?

Link to comment

i cant launch from a graphics card tho i can only launch from vnc it wont let me use a video card so therefore i cannot install the drivers correct me if i am wrong

 

OK I am running out of things to advise here. This is not really my area. I have just found this in the unRAID manual:

 

Help! I can start my VM with a GPU assigned by all I get is a black screen on my monitor!

 

If you aren't receiving an error message, but the display doesn't "light up" when your VM is started, it means that while the device is being assigned properly, you may have an issue with your motherboard or GPU preventing proper VGA arbitration from occurring. There are a few things you can attempt to fix this:

- Ensure your motherboard BIOS and video card BIOS are up to date.

- Try adjusting the BIOS under Advanced View when adding a new VM from SeaBIOS to OVMF (existing VMs cannot have this setting changed once created).

- Try adjusting the Machine Type from i440fx to Q35 under Advanced View when editing or adding a VM.

- As a last resort, you can attempt to manually provide the ROM file for your video card by editing the XML for your VM (see below procedure).

 

If none of this is helping it might be time for someone else to chime in. Sorry I don't seem to be able to help, I am sure someone will be able to.

Link to comment

/config

 

copy all *.cfg files, go file and the super.dat file. These are configuration files.

 

/config/shares

 

copy all *.cfg files. These are user share settings files.

 

Syslog file(s)

 

copy the current syslog file and any previous existing syslog files.

 

System

 

save output of the following commands:

 

lsscsi, lspci, free, lsof, ps, ethtool & ifconfig.

 

display of iommu groups.

 

display of command line parameters (e.g. pcie acs override, pci stubbing, etc).

 

save system variables.

 

SMART reports

 

save a SMART report of each individual disk present in your system.

 

Docker

 

save files docker.log, libvirtd.log and libvirt/qemu/*.log.

 

 

 

I dont think this is what you wanted but when i click download it doesnt download or do anything

 

Link to comment

Its not doing anything when I click download that's what I'm trying to say

 

More issues. Well, with a bit of patience we will get there.

 

When you Click "Download" does the button change to "Downloading" as shown below:

 

Screen_Shot_2016_02_29_at_4_55_44_PM.jpg

 

It takes about 10 seconds for the file to be created and then it "should" start to download automatically. If it doesn't work you can try a different browser, however I have never heard of this not working before. If it works then great, find it in your default browser download location and upload to the forum. On the off chance that even grabbing this file is truly broken for you there is another option for obtaining it. The command line.

 

Telnet to unRAID and perform this command: "diagnostics". The zip file will be created and then placed in "'/boot/logs/". You can grab it by accessing the flash share from your computer or by moving it to an Array Share via the command line. An example of the command line options I have noted here is shown below:

 

In this example I create the diagnostics file (which unRAID then indicates where it has put it) and I then copy it to the Array so it can be easily found and uploaded (good if you don't share your flash drive) to the forum.

 

Screen_Shot_2016_02_29_at_5_04_12_PM.jpg

 

Hopefully one of these instructions will help you grab the diagnostics zip file. If not then we have bigger issues than creating a VM. Best I can do so far. :)

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...