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

Windows 10 VM issue


lee34234

Recommended Posts

I've try different config on vm but still can't get it work

6Y4N6Nz.jpg

 

 

 

In this case, I install windows 10 with vnc and I can get into desktop, but went I changed the gpu to gtx760 it stops at windows loading screen

 

1
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2
<name>4</name>
3
<uuid>8dd62052-722f-cb10-f50c-f9a56edee436</uuid>
4
<metadata>
5
<vmtemplate name="Custom" icon="windows.png" os="windows"/>
6
</metadata>
7
<memory unit='KiB'>4194304</memory>
8
<currentMemory unit='KiB'>4194304</currentMemory>
9
<memoryBacking>
10
<nosharepages/>
11
<locked/>
12
</memoryBacking>
13
<vcpu placement='static'>4</vcpu>
14
<cputune>
15
<vcpupin vcpu='0' cpuset='1'/>
16
<vcpupin vcpu='1' cpuset='2'/>
17
<vcpupin vcpu='2' cpuset='5'/>
18
<vcpupin vcpu='3' cpuset='6'/>
19
</cputune>
20
<os>
21
<type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type>
22
</os>
23
<features>
24
<acpi/>
25
<apic/>
26
</features>
27
<cpu mode='host-passthrough'>
28
<topology sockets='1' cores='4' threads='1'/>
29
</cpu>
30
<clock offset='localtime'>
31
<timer name='rtc' tickpolicy='catchup'/>
32
<timer name='pit' tickpolicy='delay'/>
33
<timer name='hpet' present='no'/>
34
</clock>
35
<on_poweroff>destroy</on_poweroff>
46
    </disk>
47
    <disk type='file' device='cdrom'>
48
      <driver name='qemu' type='raw'/>
49
      <source file='/mnt/user/Isos/tw_windows_10_enterprise_version_1511_x64_dvd_7224826.iso'/>
50
      <target dev='hda' bus='ide'/>
51
      <readonly/>
52
      <boot order='2'/>
53
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
54
    </disk>
55
    <disk type='file' device='cdrom'>
56
      <driver name='qemu' type='raw'/>
57
      <source file='/mnt/user/Isos/virtio-win-0.1.112.iso'/>
58
      <target dev='hdb' bus='ide'/>
59
      <readonly/>
60
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
61
    </disk>
62
    <controller type='usb' index='0'>
63
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
64
    </controller>
65
    <controller type='pci' index='0' model='pci-root'/>
66
    <controller type='ide' index='0'>
67
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
68
    </controller>
69
    <controller type='virtio-serial' index='0'>
70
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
71
    </controller>
72
    <interface type='bridge'>
73
      <mac address='52:54:00:b0:3a:a1'/>
74
      <source bridge='br0'/>
75
      <model type='virtio'/>
76
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
77
    </interface>
78
    <serial type='pty'>
79
      <target port='0'/>
80
    </serial>
81
    <console type='pty'>
82
      <target type='serial' port='0'/>
83
    </console>
84
    <channel type='unix'>
85
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/4.org.qemu.guest_agent.0'/>
86
      <target type='virtio' name='org.qemu.guest_agent.0'/>
87
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
88
    </channel>
89
    <memballoon model='virtio'>
90
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
91
    </memballoon>
92
  </devices>
93
  <qemu:commandline>
94
    <qemu:arg value='-device'/>
95
    <qemu:arg value='ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=2,chassis=1,id=root.1'/>
96
    <qemu:arg value='-device'/>
97
    <qemu:arg value='vfio-pci,host=06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
98
  </qemu:commandline>
99
</domain>

 

 

 

Then I tried to use ovmf as the bios and install with gtx760 as the gpu and it stuck at "please wait"screen and keep looping for few hours.

25

  </os>

26

  <features>

27

    <acpi/>

28

    <apic/>

29

    <hyperv>

30

      <relaxed state='on'/>

31

      <vapic state='on'/>

32

      <spinlocks state='on' retries='8191'/>

33

    </hyperv>

34

  </features>

35

  <cpu mode='host-passthrough'>

36

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

37

  </cpu>

38

  <clock offset='localtime'>

39

    <timer name='hypervclock' present='yes'/>

40

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

41

  </clock>

42

  <on_poweroff>destroy</on_poweroff>

43

  <on_reboot>restart</on_reboot>

44

  <on_crash>restart</on_crash>

45

  <devices>

46

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

47

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

48

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

49

      <source file='/mnt/user/vidsks/5/vdisk1.img'/>

50

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

51

      <boot order='1'/>

52

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

53

    </disk>

54

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

55

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

56

      <source file='/mnt/user/Isos/tw_windows_10_enterprise_version_1511_x64_dvd_7224826.iso'/>

57

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

58

      <readonly/>

59

      <boot order='2'/>

60

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

61

    </disk>

62

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

63

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

64

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

65

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

66

      <readonly/>

67

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

68

</disk>

69

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

70

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

71

</controller>

72

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

73

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

74

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

75

</controller>

76

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

77

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

78

</controller>

79

<interface type='bridge'>

80

<mac address='52:54:00:53:e2:d9'/>

81

<source bridge='br0'/>

82

<model type='virtio'/>

83

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

84

</interface>

85

<serial type='pty'>

86

<target port='0'/>

87

</serial>

88

<console type='pty'>

89

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

90

</console>

91

<channel type='unix'>

92

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

93

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

94

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

95

</channel>

96

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

97

<driver name='vfio'/>

98

<source>

99

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

100

</source>

101

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

102

</hostdev>

103

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

104

<driver name='vfio'/>

105

<source>

106

<address domain='0x0000' bus='0x06' slot='0x00' function='0x1'/>

107

</source>

108

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

109

</hostdev>

110

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

111

<source>

112

<vendor id='0x04f3'/>

113

<product id='0x0103'/>

114

</source>

115

</hostdev>

116

<memballoon model='virtio'>

117

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

118

</memballoon>

119

</devices>

120

</domain>

 

Link to comment

A few things, it looks like your xml is setup correctly, just browsing through it for a sec, it is pointed to your correct PCI slot for video card. It looks like your a not passing through sound as well using the Nvidia?

 

 

2nd I would try turning off Hyper-V, that can cause some issues.

 

 

Last, if you are getting to a windows load screen, then it most likely isnt a unRaid pass-through issue, it may be a driver or windows problem. If you are still having issues I would recommend re-installing your VM and using your nvidia right off the bat, don't install with VNC. I have seen several issue switching back and forth between VNC and Nvidia.

Link to comment

A few things, it looks like your xml is setup correctly, just browsing through it for a sec, it is pointed to your correct PCI slot for video card. It looks like your a not passing through sound as well using the Nvidia?

 

 

2nd I would try turning off Hyper-V, that can cause some issues.

 

 

Last, if you are getting to a windows load screen, then it most likely isnt a unRaid pass-through issue, it may be a driver or windows problem. If you are still having issues I would recommend re-installing your VM and using your nvidia right off the bat, don't install with VNC. I have seen several issue switching back and forth between VNC and Nvidia.

Its working now but went I passthrough my mouse there is an error showing up in the log file, but it's working without problem only passthrough the keyboard

libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=28
qemu-system-x86_64: hw/usb/core.c:551: usb_packet_check_state: Assertion `!"usb packet state check failed"' failed.
2016-02-25 20:24:15.972+0000: shutting down

Link to comment

It is very weird. When I passthrough the usb mouse it error message shows up. Then I tried to install a software called remote mouse which allow me to remote my PC through wifi with my phone. Every time I connect my phone to my PC using that app the screen turns black and Unraid also crashes just the same as passingthrough the use mouse.

Link to comment

For what it's worth, I solved a multitude of issues purchasing a pcie USB3 controller from amazon and passing that through to Windows 10. Now hot plugging works, usb audio isn't garbage, I don't have to manually browse to bootx64 after every server reboot, and Windows Updates no longer fail. Something about usb device passthrough and my hardware combination just didn't get along well.

Link to comment

What goober said is great advice. Passing through multiple USB devices in the GUI often doesn't work. You need to passthrough the pci controller with the USB ports that unraid is not on. Sometimes you can do this with onboard USB depending on your motherboard.

But if you have the pci slot available and like 15$ it is easy to do.

Link to comment

Archived

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

×
×
  • Create New...