Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-17 15:33 UTC
Cannot start Fedora 19 HVM domU
Hi, I can start Windows 8 Enterprise and Windows 8.1 Pro HVM domUs but I cannot start Fedora 19 HVM domU. The domU configuration files between Windows 8 HVM domUs and Fedora 19 HVM domU are very similar, basically Fedora 19 HVM domU configuration file is copied from Windows 8 HVM domU. When I tried to start Fedora 19 HVM domU, the LCD monitor remains blank screen permanently. I have attached Fedora 19 HVM domU configuration file and the relevant log files. Please advise. Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-17 15:33 UTC
Cannot start Fedora 19 HVM domU
Hi, I can start Windows 8 Enterprise and Windows 8.1 Pro HVM domUs but I cannot start Fedora 19 HVM domU. The domU configuration files between Windows 8 HVM domUs and Fedora 19 HVM domU are very similar, basically Fedora 19 HVM domU configuration file is copied from Windows 8 HVM domU. When I tried to start Fedora 19 HVM domU, the LCD monitor remains blank screen permanently. I have attached Fedora 19 HVM domU configuration file and the relevant log files. Please advise. Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Pasi Kärkkäinen
2013-Jul-17 21:56 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On Wed, Jul 17, 2013 at 11:33:50PM +0800, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > I can start Windows 8 Enterprise and Windows 8.1 Pro HVM domUs but I > cannot start Fedora 19 HVM domU. The domU configuration files > between Windows 8 HVM domUs and Fedora 19 HVM domU are very similar, > basically Fedora 19 HVM domU configuration file is copied from > Windows 8 HVM domU. When I tried to start Fedora 19 HVM domU, the > LCD monitor remains blank screen permanently. > > I have attached Fedora 19 HVM domU configuration file and the > relevant log files. > > Please advise. > > Thank you very much. >You forgot to mention this issue is related to VGA passthru in the subject. Does the F19 HVM guest start if you disable gfx_passthru, and remove the GPU from the pci = [] list, so only passthru the USB stuff etc ?> device_model_version="qemu-xen-traditional" > name="Fedora19" > builder="hvm" > vcpus=4 > memory=2048 > on_poweroff="destroy" > on_reboot="restart" > on_crash="destroy" > disk=[ ''format=raw, vdev=hda, access=rw, target=/etc/xen/images/fedora19.img'', ''format=raw, vdev=hdc, access=ro, devtype=cdrom, target=/home/teo-en-ming/Fedora-19-x86_64-DVD.iso'' ] > vif=[ ''bridge=virbr0,type=ioemu,model=e1000'' ] > #boot=[c|d|n] > #Selects the emulated virtual device to boot from. Options are hard disk (c), cd-rom (d) or network/PXE (n). > #Multiple options can be given and will be attempted in the order they are given. e.g. to boot from cd-rom > #but fallback to the hard disk you can give dc. The default is cd. > #boot="dc" > boot="c" > acpi=1 > #xen_platform_pci=1 > #viridian=1 > #stdvga=1 > vnc=1 > vnclisten="0.0.0.0" > vncdisplay=0 > vncunused=1 > vncpasswd="" > sdl=0 > usb=1 > usbdevice="tablet" > # Enable Xen VGA Passthrough > gfx_passthru=1 > # VGA Passthrough Gigabyte Geforce GTX 560 1 GB GDDR5 PCI Express x16 VGA card. > #pci = [ ''01:00.0'',''01:00.1'',''00:1b.0'',''00:1a.0'',''00:1a.1'',''00:1a.2'',''00:1a.7'',''00:1d.0'',''00:1d.1'',''00:1d.2'',''00:1d.7'' ] > # PCI Passthrough Intel HD Audio Controller. > #pci = [ ''00:1b.0'' ] > # PCI Passthrough all the USB Controllers. > # pci = [ ''00:1a.0'',''00:1a.1'',''00:1a.2'',''00:1a.7'',''00:1d.0'',''00:1d.1'',''00:1d.2'',''00:1d.7'' ] > # Passthrough Intel HD Graphics 4600, audio controllers and USB controllers > pci = [ ''00:02.0'',''00:03.0'',''00:14.0'',''00:1a.0'',''00:1b.0'',''00:1d.0'' ] > #pci = [ ''00:02.0'' ]> dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:02.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x2.0x0I wonder what these /dev/xen/pci_iomul errors are ..> pt_register_regions: IO region registered (size=0x00400000 base_addr=0xee400004) > pt_register_regions: IO region registered (size=0x10000000 base_addr=0xd000000c) > pt_register_regions: IO region registered (size=0x00000040 base_addr=0x0000f001) > pci_intx: intx=1 > register_real_device: Real physical device 00:02.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:03.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x3.0x0 > pt_register_regions: IO region registered (size=0x00004000 base_addr=0xee834004) > pci_intx: intx=1 > register_real_device: Real physical device 00:03.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:14.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x14.0x0 > pt_register_regions: IO region registered (size=0x00010000 base_addr=0xee820004) > pci_intx: intx=1 > register_real_device: Real physical device 00:14.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:1a.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1a.0x0 > pt_register_regions: IO region registered (size=0x00000400 base_addr=0xee83c000) > pci_intx: intx=1 > register_real_device: Real physical device 00:1a.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:1b.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1b.0x0And here..> pt_register_regions: IO region registered (size=0x00004000 base_addr=0xee830004) > pci_intx: intx=1 > register_real_device: Real physical device 00:1b.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:1d.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1d.0x0And here aswell.> pt_register_regions: IO region registered (size=0x00000400 base_addr=0xee83b000) > pci_intx: intx=1 > register_real_device: Real physical device 00:1d.0 registered successfuly! > IRQ type = INTx > igd_write_opregion: Map OpRegion: bcaec018 -> fdffc018 > pt_iomem_map: e_phys=e0000000 maddr=d0000000 type=8 len=268435456 index=2 first_map=1 > pt_iomem_map: e_phys=f1000000 maddr=ee400000 type=0 len=4194304 index=0 first_map=1 > pt_iomem_map: e_phys=f1620000 maddr=ee820000 type=0 len=65536 index=0 first_map=1 > pt_iomem_map: e_phys=f1630000 maddr=ee834000 type=0 len=16384 index=0 first_map=1 > pt_iomem_map: e_phys=f1634000 maddr=ee830000 type=0 len=16384 index=0 first_map=1 > pt_iomem_map: e_phys=f1638000 maddr=ee83c000 type=0 len=4096 index=0 first_map=1 > pt_iomem_map: e_phys=f1639000 maddr=ee83b000 type=0 len=4096 index=0 first_map=1 > pt_ioport_map: e_phys=c100 pio_base=f000 len=64 index=4 first_map=1> Waiting for domain Fedora19 (domid 3) to die [pid 3747] > Domain 3 has been destroyed.-- Pasi
Pasi Kärkkäinen
2013-Jul-17 21:56 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On Wed, Jul 17, 2013 at 11:33:50PM +0800, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> Hi, > > I can start Windows 8 Enterprise and Windows 8.1 Pro HVM domUs but I > cannot start Fedora 19 HVM domU. The domU configuration files > between Windows 8 HVM domUs and Fedora 19 HVM domU are very similar, > basically Fedora 19 HVM domU configuration file is copied from > Windows 8 HVM domU. When I tried to start Fedora 19 HVM domU, the > LCD monitor remains blank screen permanently. > > I have attached Fedora 19 HVM domU configuration file and the > relevant log files. > > Please advise. > > Thank you very much. >You forgot to mention this issue is related to VGA passthru in the subject. Does the F19 HVM guest start if you disable gfx_passthru, and remove the GPU from the pci = [] list, so only passthru the USB stuff etc ?> device_model_version="qemu-xen-traditional" > name="Fedora19" > builder="hvm" > vcpus=4 > memory=2048 > on_poweroff="destroy" > on_reboot="restart" > on_crash="destroy" > disk=[ ''format=raw, vdev=hda, access=rw, target=/etc/xen/images/fedora19.img'', ''format=raw, vdev=hdc, access=ro, devtype=cdrom, target=/home/teo-en-ming/Fedora-19-x86_64-DVD.iso'' ] > vif=[ ''bridge=virbr0,type=ioemu,model=e1000'' ] > #boot=[c|d|n] > #Selects the emulated virtual device to boot from. Options are hard disk (c), cd-rom (d) or network/PXE (n). > #Multiple options can be given and will be attempted in the order they are given. e.g. to boot from cd-rom > #but fallback to the hard disk you can give dc. The default is cd. > #boot="dc" > boot="c" > acpi=1 > #xen_platform_pci=1 > #viridian=1 > #stdvga=1 > vnc=1 > vnclisten="0.0.0.0" > vncdisplay=0 > vncunused=1 > vncpasswd="" > sdl=0 > usb=1 > usbdevice="tablet" > # Enable Xen VGA Passthrough > gfx_passthru=1 > # VGA Passthrough Gigabyte Geforce GTX 560 1 GB GDDR5 PCI Express x16 VGA card. > #pci = [ ''01:00.0'',''01:00.1'',''00:1b.0'',''00:1a.0'',''00:1a.1'',''00:1a.2'',''00:1a.7'',''00:1d.0'',''00:1d.1'',''00:1d.2'',''00:1d.7'' ] > # PCI Passthrough Intel HD Audio Controller. > #pci = [ ''00:1b.0'' ] > # PCI Passthrough all the USB Controllers. > # pci = [ ''00:1a.0'',''00:1a.1'',''00:1a.2'',''00:1a.7'',''00:1d.0'',''00:1d.1'',''00:1d.2'',''00:1d.7'' ] > # Passthrough Intel HD Graphics 4600, audio controllers and USB controllers > pci = [ ''00:02.0'',''00:03.0'',''00:14.0'',''00:1a.0'',''00:1b.0'',''00:1d.0'' ] > #pci = [ ''00:02.0'' ]> dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:02.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x2.0x0I wonder what these /dev/xen/pci_iomul errors are ..> pt_register_regions: IO region registered (size=0x00400000 base_addr=0xee400004) > pt_register_regions: IO region registered (size=0x10000000 base_addr=0xd000000c) > pt_register_regions: IO region registered (size=0x00000040 base_addr=0x0000f001) > pci_intx: intx=1 > register_real_device: Real physical device 00:02.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:03.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x3.0x0 > pt_register_regions: IO region registered (size=0x00004000 base_addr=0xee834004) > pci_intx: intx=1 > register_real_device: Real physical device 00:03.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:14.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x14.0x0 > pt_register_regions: IO region registered (size=0x00010000 base_addr=0xee820004) > pci_intx: intx=1 > register_real_device: Real physical device 00:14.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:1a.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1a.0x0 > pt_register_regions: IO region registered (size=0x00000400 base_addr=0xee83c000) > pci_intx: intx=1 > register_real_device: Real physical device 00:1a.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:1b.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1b.0x0And here..> pt_register_regions: IO region registered (size=0x00004000 base_addr=0xee830004) > pci_intx: intx=1 > register_real_device: Real physical device 00:1b.0 registered successfuly! > IRQ type = INTx > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 00:1d.0 ... > register_real_device: Disable MSI translation via per device option > register_real_device: Disable power management > pt_iomul_init: Error: pt_iomul_init can''t open file /dev/xen/pci_iomul: No such file or directory: 0x0:0x1d.0x0And here aswell.> pt_register_regions: IO region registered (size=0x00000400 base_addr=0xee83b000) > pci_intx: intx=1 > register_real_device: Real physical device 00:1d.0 registered successfuly! > IRQ type = INTx > igd_write_opregion: Map OpRegion: bcaec018 -> fdffc018 > pt_iomem_map: e_phys=e0000000 maddr=d0000000 type=8 len=268435456 index=2 first_map=1 > pt_iomem_map: e_phys=f1000000 maddr=ee400000 type=0 len=4194304 index=0 first_map=1 > pt_iomem_map: e_phys=f1620000 maddr=ee820000 type=0 len=65536 index=0 first_map=1 > pt_iomem_map: e_phys=f1630000 maddr=ee834000 type=0 len=16384 index=0 first_map=1 > pt_iomem_map: e_phys=f1634000 maddr=ee830000 type=0 len=16384 index=0 first_map=1 > pt_iomem_map: e_phys=f1638000 maddr=ee83c000 type=0 len=4096 index=0 first_map=1 > pt_iomem_map: e_phys=f1639000 maddr=ee83b000 type=0 len=4096 index=0 first_map=1 > pt_ioport_map: e_phys=c100 pio_base=f000 len=64 index=4 first_map=1> Waiting for domain Fedora19 (domid 3) to die [pid 3747] > Domain 3 has been destroyed.-- Pasi
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 08:37 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 08:37 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian > 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 > amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed > in lspci -vvv. Please refer to lspci.txt. It is strange that no > kernel > module is being loaded for Intel HD Graphics 4600. There is no > "Kernel > driver in use" statement after VGA compatible controller: Intel > Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if > 00 [VGA controller]). > > No kernel driver is seen in lsmod. Please refer to lsmod.txt > > When I tried to load the kernel module by executing "modprobe i915", > it complains "no such device". > > ERROR: could not insert ''i915'': No such device > > So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 > HVM domU considered successful since the i915 driver cannot be > loaded? > > Thank you very much.If you have a driver in dom0 claiming the device (other than the xen-pciback driver), you cannot pass through that device. If you do lspci -ccc on F19 and you see the driver in use for that device being something other than xen-pciback, that would explain why you can''t pass it through. Also, did you first do xl pci-assignable-add for that device? This attempts to detach the device from it''s current driver but doesn''t always work especially for GPUs. The only solution is blacklist the driver for the device in dom0. The downside is that you cannot run a GUI in dom0 on that device. Gordan
Gordan Bobic
2013-Jul-18 08:46 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian > 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 > amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed > in lspci -vvv. Please refer to lspci.txt. It is strange that no > kernel > module is being loaded for Intel HD Graphics 4600. There is no > "Kernel > driver in use" statement after VGA compatible controller: Intel > Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if > 00 [VGA controller]). > > No kernel driver is seen in lsmod. Please refer to lsmod.txt > > When I tried to load the kernel module by executing "modprobe i915", > it complains "no such device". > > ERROR: could not insert ''i915'': No such device > > So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 > HVM domU considered successful since the i915 driver cannot be > loaded? > > Thank you very much.If you have a driver in dom0 claiming the device (other than the xen-pciback driver), you cannot pass through that device. If you do lspci -ccc on F19 and you see the driver in use for that device being something other than xen-pciback, that would explain why you can''t pass it through. Also, did you first do xl pci-assignable-add for that device? This attempts to detach the device from it''s current driver but doesn''t always work especially for GPUs. The only solution is blacklist the driver for the device in dom0. The downside is that you cannot run a GUI in dom0 on that device. Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:07 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 16:46, Gordan Bobic wrote:> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: > >> Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian >> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 >> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed >> in lspci -vvv. Please refer to lspci.txt. It is strange that no kernel >> module is being loaded for Intel HD Graphics 4600. There is no "Kernel >> driver in use" statement after VGA compatible controller: Intel >> Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if >> 00 [VGA controller]). >> >> No kernel driver is seen in lsmod. Please refer to lsmod.txt >> >> When I tried to load the kernel module by executing "modprobe i915", >> it complains "no such device". >> >> ERROR: could not insert ''i915'': No such device >> >> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 >> HVM domU considered successful since the i915 driver cannot be loaded? >> >> Thank you very much. > > If you have a driver in dom0 claiming the device (other than the > xen-pciback > driver), you cannot pass through that device. If you do lspci -ccc on F19 > and you see the driver in use for that device being something other than > xen-pciback, that would explain why you can''t pass it through. > > Also, did you first do xl pci-assignable-add for that device? This > attempts > to detach the device from it''s current driver but doesn''t always work > especially for GPUs. The only solution is blacklist the driver for the > device in dom0. The downside is that you cannot run a GUI in dom0 on that > device. > > Gordan >Dear Gordan, I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could you advise me on the workaround? As for the Intel HD Graphics (i915) driver, I have it blacklisted in /etc/modprobe.d/blacklist.conf already. Please refer to attached blacklist.conf. Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:07 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 16:46, Gordan Bobic wrote:> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: > >> Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian >> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 >> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed >> in lspci -vvv. Please refer to lspci.txt. It is strange that no kernel >> module is being loaded for Intel HD Graphics 4600. There is no "Kernel >> driver in use" statement after VGA compatible controller: Intel >> Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if >> 00 [VGA controller]). >> >> No kernel driver is seen in lsmod. Please refer to lsmod.txt >> >> When I tried to load the kernel module by executing "modprobe i915", >> it complains "no such device". >> >> ERROR: could not insert ''i915'': No such device >> >> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 >> HVM domU considered successful since the i915 driver cannot be loaded? >> >> Thank you very much. > > If you have a driver in dom0 claiming the device (other than the > xen-pciback > driver), you cannot pass through that device. If you do lspci -ccc on F19 > and you see the driver in use for that device being something other than > xen-pciback, that would explain why you can''t pass it through. > > Also, did you first do xl pci-assignable-add for that device? This > attempts > to detach the device from it''s current driver but doesn''t always work > especially for GPUs. The only solution is blacklist the driver for the > device in dom0. The downside is that you cannot run a GUI in dom0 on that > device. > > Gordan >Dear Gordan, I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could you advise me on the workaround? As for the Intel HD Graphics (i915) driver, I have it blacklisted in /etc/modprobe.d/blacklist.conf already. Please refer to attached blacklist.conf. Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 16:46, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> >>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>> Debian >>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>> 7.1.0 >>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>> listed >>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>> kernel >>> module is being loaded for Intel HD Graphics 4600. There is no >>> "Kernel >>> driver in use" statement after VGA compatible controller: Intel >>> Corporation Haswell Integrated Graphics Controller (rev 06) >>> (prog-if >>> 00 [VGA controller]). >>> >>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>> >>> When I tried to load the kernel module by executing "modprobe >>> i915", >>> it complains "no such device". >>> >>> ERROR: could not insert ''i915'': No such device >>> >>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>> amd64 >>> HVM domU considered successful since the i915 driver cannot be >>> loaded? >>> >>> Thank you very much. >> >> If you have a driver in dom0 claiming the device (other than the >> xen-pciback >> driver), you cannot pass through that device. If you do lspci -ccc >> on F19 >> and you see the driver in use for that device being something other >> than >> xen-pciback, that would explain why you can''t pass it through. >> >> Also, did you first do xl pci-assignable-add for that device? This >> attempts >> to detach the device from it''s current driver but doesn''t always >> work >> especially for GPUs. The only solution is blacklist the driver for >> the >> device in dom0. The downside is that you cannot run a GUI in dom0 on >> that >> device. >> >> Gordan >> > Dear Gordan, > > I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could > you advise me on the workaround? > > As for the Intel HD Graphics (i915) driver, I have it blacklisted in > /etc/modprobe.d/blacklist.conf already. Please refer to attached > blacklist.conf.Have you confirm that no other driver is bound to the device in lspci -vvv? Also what version of Xen are you running on each of the distros, and which dom0 kernel? Gordan
Gordan Bobic
2013-Jul-18 10:09 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 16:46, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> >>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>> Debian >>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>> 7.1.0 >>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>> listed >>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>> kernel >>> module is being loaded for Intel HD Graphics 4600. There is no >>> "Kernel >>> driver in use" statement after VGA compatible controller: Intel >>> Corporation Haswell Integrated Graphics Controller (rev 06) >>> (prog-if >>> 00 [VGA controller]). >>> >>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>> >>> When I tried to load the kernel module by executing "modprobe >>> i915", >>> it complains "no such device". >>> >>> ERROR: could not insert ''i915'': No such device >>> >>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>> amd64 >>> HVM domU considered successful since the i915 driver cannot be >>> loaded? >>> >>> Thank you very much. >> >> If you have a driver in dom0 claiming the device (other than the >> xen-pciback >> driver), you cannot pass through that device. If you do lspci -ccc >> on F19 >> and you see the driver in use for that device being something other >> than >> xen-pciback, that would explain why you can''t pass it through. >> >> Also, did you first do xl pci-assignable-add for that device? This >> attempts >> to detach the device from it''s current driver but doesn''t always >> work >> especially for GPUs. The only solution is blacklist the driver for >> the >> device in dom0. The downside is that you cannot run a GUI in dom0 on >> that >> device. >> >> Gordan >> > Dear Gordan, > > I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could > you advise me on the workaround? > > As for the Intel HD Graphics (i915) driver, I have it blacklisted in > /etc/modprobe.d/blacklist.conf already. Please refer to attached > blacklist.conf.Have you confirm that no other driver is bound to the device in lspci -vvv? Also what version of Xen are you running on each of the distros, and which dom0 kernel? Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:20 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 18:09, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 16:46, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> >>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian >>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 >>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed >>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no kernel >>>> module is being loaded for Intel HD Graphics 4600. There is no "Kernel >>>> driver in use" statement after VGA compatible controller: Intel >>>> Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if >>>> 00 [VGA controller]). >>>> >>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>> >>>> When I tried to load the kernel module by executing "modprobe i915", >>>> it complains "no such device". >>>> >>>> ERROR: could not insert ''i915'': No such device >>>> >>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 >>>> HVM domU considered successful since the i915 driver cannot be loaded? >>>> >>>> Thank you very much. >>> >>> If you have a driver in dom0 claiming the device (other than the >>> xen-pciback >>> driver), you cannot pass through that device. If you do lspci -ccc >>> on F19 >>> and you see the driver in use for that device being something other >>> than >>> xen-pciback, that would explain why you can''t pass it through. >>> >>> Also, did you first do xl pci-assignable-add for that device? This >>> attempts >>> to detach the device from it''s current driver but doesn''t always work >>> especially for GPUs. The only solution is blacklist the driver for the >>> device in dom0. The downside is that you cannot run a GUI in dom0 on >>> that >>> device. >>> >>> Gordan >>> >> Dear Gordan, >> >> I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could >> you advise me on the workaround? >> >> As for the Intel HD Graphics (i915) driver, I have it blacklisted in >> /etc/modprobe.d/blacklist.conf already. Please refer to attached >> blacklist.conf. > > Have you confirm that no other driver is bound to the device in lspci > -vvv? > Also what version of Xen are you running on each of the distros, and > which > dom0 kernel? > > Gordan >Dear Gordan, I have checked "lsmod | grep i915" and the command doesn''t return anything, which means the kernel module i915 is not loaded in dom0. I am running Xen 4.4-unstable changeset 27238 with Linux kernel 3.11.0-rc1 on a Ubuntu 13.04 host. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:20 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 18:09, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 16:46, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> >>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, Debian >>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 >>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is listed >>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no kernel >>>> module is being loaded for Intel HD Graphics 4600. There is no "Kernel >>>> driver in use" statement after VGA compatible controller: Intel >>>> Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if >>>> 00 [VGA controller]). >>>> >>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>> >>>> When I tried to load the kernel module by executing "modprobe i915", >>>> it complains "no such device". >>>> >>>> ERROR: could not insert ''i915'': No such device >>>> >>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 amd64 >>>> HVM domU considered successful since the i915 driver cannot be loaded? >>>> >>>> Thank you very much. >>> >>> If you have a driver in dom0 claiming the device (other than the >>> xen-pciback >>> driver), you cannot pass through that device. If you do lspci -ccc >>> on F19 >>> and you see the driver in use for that device being something other >>> than >>> xen-pciback, that would explain why you can''t pass it through. >>> >>> Also, did you first do xl pci-assignable-add for that device? This >>> attempts >>> to detach the device from it''s current driver but doesn''t always work >>> especially for GPUs. The only solution is blacklist the driver for the >>> device in dom0. The downside is that you cannot run a GUI in dom0 on >>> that >>> device. >>> >>> Gordan >>> >> Dear Gordan, >> >> I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could >> you advise me on the workaround? >> >> As for the Intel HD Graphics (i915) driver, I have it blacklisted in >> /etc/modprobe.d/blacklist.conf already. Please refer to attached >> blacklist.conf. > > Have you confirm that no other driver is bound to the device in lspci > -vvv? > Also what version of Xen are you running on each of the distros, and > which > dom0 kernel? > > Gordan >Dear Gordan, I have checked "lsmod | grep i915" and the command doesn''t return anything, which means the kernel module i915 is not loaded in dom0. I am running Xen 4.4-unstable changeset 27238 with Linux kernel 3.11.0-rc1 on a Ubuntu 13.04 host. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 18:09, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> >>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>> Debian >>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>>>> 7.1.0 >>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>> listed >>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>> kernel >>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>> "Kernel >>>>> driver in use" statement after VGA compatible controller: Intel >>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>> (prog-if >>>>> 00 [VGA controller]). >>>>> >>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>> >>>>> When I tried to load the kernel module by executing "modprobe >>>>> i915", >>>>> it complains "no such device". >>>>> >>>>> ERROR: could not insert ''i915'': No such device >>>>> >>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>> amd64 >>>>> HVM domU considered successful since the i915 driver cannot be >>>>> loaded? >>>>> >>>>> Thank you very much. >>>> >>>> If you have a driver in dom0 claiming the device (other than the >>>> xen-pciback >>>> driver), you cannot pass through that device. If you do lspci -ccc >>>> on F19 >>>> and you see the driver in use for that device being something >>>> other than >>>> xen-pciback, that would explain why you can''t pass it through. >>>> >>>> Also, did you first do xl pci-assignable-add for that device? This >>>> attempts >>>> to detach the device from it''s current driver but doesn''t always >>>> work >>>> especially for GPUs. The only solution is blacklist the driver for >>>> the >>>> device in dom0. The downside is that you cannot run a GUI in dom0 >>>> on that >>>> device. >>> >>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>> Could >>> you advise me on the workaround? >>> >>> As for the Intel HD Graphics (i915) driver, I have it blacklisted >>> in >>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>> blacklist.conf. >> >> Have you confirm that no other driver is bound to the device in >> lspci -vvv? >> Also what version of Xen are you running on each of the distros, and >> which >> dom0 kernel? > > I have checked "lsmod | grep i915" and the command doesn''t return > anything, which means the kernel module i915 is not loaded in dom0.Check lspci -vvv,find the device in the output and look for the lines that say: Kernel driver in use: Kernel modules: The kernel driver might not be called the same thing in both kernels.> I am running Xen 4.4-unstable changeset 27238 with Linux kernel > 3.11.0-rc1 on a Ubuntu 13.04 host.And on F19? Gordan
Gordan Bobic
2013-Jul-18 10:29 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 18:09, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> >>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>> Debian >>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>>>> 7.1.0 >>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>> listed >>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>> kernel >>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>> "Kernel >>>>> driver in use" statement after VGA compatible controller: Intel >>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>> (prog-if >>>>> 00 [VGA controller]). >>>>> >>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>> >>>>> When I tried to load the kernel module by executing "modprobe >>>>> i915", >>>>> it complains "no such device". >>>>> >>>>> ERROR: could not insert ''i915'': No such device >>>>> >>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>> amd64 >>>>> HVM domU considered successful since the i915 driver cannot be >>>>> loaded? >>>>> >>>>> Thank you very much. >>>> >>>> If you have a driver in dom0 claiming the device (other than the >>>> xen-pciback >>>> driver), you cannot pass through that device. If you do lspci -ccc >>>> on F19 >>>> and you see the driver in use for that device being something >>>> other than >>>> xen-pciback, that would explain why you can''t pass it through. >>>> >>>> Also, did you first do xl pci-assignable-add for that device? This >>>> attempts >>>> to detach the device from it''s current driver but doesn''t always >>>> work >>>> especially for GPUs. The only solution is blacklist the driver for >>>> the >>>> device in dom0. The downside is that you cannot run a GUI in dom0 >>>> on that >>>> device. >>> >>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>> Could >>> you advise me on the workaround? >>> >>> As for the Intel HD Graphics (i915) driver, I have it blacklisted >>> in >>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>> blacklist.conf. >> >> Have you confirm that no other driver is bound to the device in >> lspci -vvv? >> Also what version of Xen are you running on each of the distros, and >> which >> dom0 kernel? > > I have checked "lsmod | grep i915" and the command doesn''t return > anything, which means the kernel module i915 is not loaded in dom0.Check lspci -vvv,find the device in the output and look for the lines that say: Kernel driver in use: Kernel modules: The kernel driver might not be called the same thing in both kernels.> I am running Xen 4.4-unstable changeset 27238 with Linux kernel > 3.11.0-rc1 on a Ubuntu 13.04 host.And on F19? Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:40 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 18:29, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 18:09, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> >>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>>> Debian >>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 >>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>>> listed >>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>>> kernel >>>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>>> "Kernel >>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if >>>>>> 00 [VGA controller]). >>>>>> >>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>> >>>>>> When I tried to load the kernel module by executing "modprobe i915", >>>>>> it complains "no such device". >>>>>> >>>>>> ERROR: could not insert ''i915'': No such device >>>>>> >>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>>> amd64 >>>>>> HVM domU considered successful since the i915 driver cannot be >>>>>> loaded? >>>>>> >>>>>> Thank you very much. >>>>> >>>>> If you have a driver in dom0 claiming the device (other than the >>>>> xen-pciback >>>>> driver), you cannot pass through that device. If you do lspci -ccc >>>>> on F19 >>>>> and you see the driver in use for that device being something >>>>> other than >>>>> xen-pciback, that would explain why you can''t pass it through. >>>>> >>>>> Also, did you first do xl pci-assignable-add for that device? This >>>>> attempts >>>>> to detach the device from it''s current driver but doesn''t always work >>>>> especially for GPUs. The only solution is blacklist the driver for >>>>> the >>>>> device in dom0. The downside is that you cannot run a GUI in dom0 >>>>> on that >>>>> device. >>>> >>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could >>>> you advise me on the workaround? >>>> >>>> As for the Intel HD Graphics (i915) driver, I have it blacklisted in >>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>> blacklist.conf. >>> >>> Have you confirm that no other driver is bound to the device in >>> lspci -vvv? >>> Also what version of Xen are you running on each of the distros, and >>> which >>> dom0 kernel? >> >> I have checked "lsmod | grep i915" and the command doesn''t return >> anything, which means the kernel module i915 is not loaded in dom0. > > Check lspci -vvv,find the device in the output and look for the lines > that say: > Kernel driver in use: > Kernel modules: > > The kernel driver might not be called the same thing in both kernels. > >> I am running Xen 4.4-unstable changeset 27238 with Linux kernel >> 3.11.0-rc1 on a Ubuntu 13.04 host. > > And on F19? > > Gordan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >Dear Gordan, I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver in use is pciback for Intel HD Graphics 4600 IGD. As for Fedora 19 HVM domU, I don''t know because I cannot start it. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:40 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 18:29, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 18:09, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> >>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>>> Debian >>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian 7.1.0 >>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>>> listed >>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>>> kernel >>>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>>> "Kernel >>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) (prog-if >>>>>> 00 [VGA controller]). >>>>>> >>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>> >>>>>> When I tried to load the kernel module by executing "modprobe i915", >>>>>> it complains "no such device". >>>>>> >>>>>> ERROR: could not insert ''i915'': No such device >>>>>> >>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>>> amd64 >>>>>> HVM domU considered successful since the i915 driver cannot be >>>>>> loaded? >>>>>> >>>>>> Thank you very much. >>>>> >>>>> If you have a driver in dom0 claiming the device (other than the >>>>> xen-pciback >>>>> driver), you cannot pass through that device. If you do lspci -ccc >>>>> on F19 >>>>> and you see the driver in use for that device being something >>>>> other than >>>>> xen-pciback, that would explain why you can''t pass it through. >>>>> >>>>> Also, did you first do xl pci-assignable-add for that device? This >>>>> attempts >>>>> to detach the device from it''s current driver but doesn''t always work >>>>> especially for GPUs. The only solution is blacklist the driver for >>>>> the >>>>> device in dom0. The downside is that you cannot run a GUI in dom0 >>>>> on that >>>>> device. >>>> >>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could >>>> you advise me on the workaround? >>>> >>>> As for the Intel HD Graphics (i915) driver, I have it blacklisted in >>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>> blacklist.conf. >>> >>> Have you confirm that no other driver is bound to the device in >>> lspci -vvv? >>> Also what version of Xen are you running on each of the distros, and >>> which >>> dom0 kernel? >> >> I have checked "lsmod | grep i915" and the command doesn''t return >> anything, which means the kernel module i915 is not loaded in dom0. > > Check lspci -vvv,find the device in the output and look for the lines > that say: > Kernel driver in use: > Kernel modules: > > The kernel driver might not be called the same thing in both kernels. > >> I am running Xen 4.4-unstable changeset 27238 with Linux kernel >> 3.11.0-rc1 on a Ubuntu 13.04 host. > > And on F19? > > Gordan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >Dear Gordan, I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver in use is pciback for Intel HD Graphics 4600 IGD. As for Fedora 19 HVM domU, I don''t know because I cannot start it. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Gordan Bobic
2013-Jul-18 10:44 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 18:29, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>>>> Debian >>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>>>>>> 7.1.0 >>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>>>> listed >>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>>>> kernel >>>>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>>>> "Kernel >>>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>> (prog-if >>>>>>> 00 [VGA controller]). >>>>>>> >>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>> >>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>> i915", >>>>>>> it complains "no such device". >>>>>>> >>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>> >>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>>>> amd64 >>>>>>> HVM domU considered successful since the i915 driver cannot be >>>>>>> loaded? >>>>>>> >>>>>>> Thank you very much. >>>>>> >>>>>> If you have a driver in dom0 claiming the device (other than the >>>>>> xen-pciback >>>>>> driver), you cannot pass through that device. If you do lspci >>>>>> -ccc on F19 >>>>>> and you see the driver in use for that device being something >>>>>> other than >>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>> >>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>> This attempts >>>>>> to detach the device from it''s current driver but doesn''t always >>>>>> work >>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>> for the >>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>> dom0 on that >>>>>> device. >>>>> >>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>>>> Could >>>>> you advise me on the workaround? >>>>> >>>>> As for the Intel HD Graphics (i915) driver, I have it blacklisted >>>>> in >>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>> blacklist.conf. >>>> >>>> Have you confirm that no other driver is bound to the device in >>>> lspci -vvv? >>>> Also what version of Xen are you running on each of the distros, >>>> and which >>>> dom0 kernel? >>> >>> I have checked "lsmod | grep i915" and the command doesn''t return >>> anything, which means the kernel module i915 is not loaded in dom0. >> >> Check lspci -vvv,find the device in the output and look for the >> lines that say: >> Kernel driver in use: >> Kernel modules: >> >> The kernel driver might not be called the same thing in both >> kernels. >> >>> I am running Xen 4.4-unstable changeset 27238 with Linux kernel >>> 3.11.0-rc1 on a Ubuntu 13.04 host. >> >> And on F19? >> >> Gordan >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> http://lists.xen.org/xen-devel >> > > Dear Gordan, > > I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver > in use is pciback for Intel HD Graphics 4600 IGD. > > As for Fedora 19 HVM domU, I don''t know because I cannot start it.Starting is not required to do this. Do it before starting the domU. Gordan
On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 18:29, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>>>> Debian >>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>>>>>> 7.1.0 >>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>>>> listed >>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>>>> kernel >>>>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>>>> "Kernel >>>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>> (prog-if >>>>>>> 00 [VGA controller]). >>>>>>> >>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>> >>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>> i915", >>>>>>> it complains "no such device". >>>>>>> >>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>> >>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>>>> amd64 >>>>>>> HVM domU considered successful since the i915 driver cannot be >>>>>>> loaded? >>>>>>> >>>>>>> Thank you very much. >>>>>> >>>>>> If you have a driver in dom0 claiming the device (other than the >>>>>> xen-pciback >>>>>> driver), you cannot pass through that device. If you do lspci >>>>>> -ccc on F19 >>>>>> and you see the driver in use for that device being something >>>>>> other than >>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>> >>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>> This attempts >>>>>> to detach the device from it''s current driver but doesn''t always >>>>>> work >>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>> for the >>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>> dom0 on that >>>>>> device. >>>>> >>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>>>> Could >>>>> you advise me on the workaround? >>>>> >>>>> As for the Intel HD Graphics (i915) driver, I have it blacklisted >>>>> in >>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>> blacklist.conf. >>>> >>>> Have you confirm that no other driver is bound to the device in >>>> lspci -vvv? >>>> Also what version of Xen are you running on each of the distros, >>>> and which >>>> dom0 kernel? >>> >>> I have checked "lsmod | grep i915" and the command doesn''t return >>> anything, which means the kernel module i915 is not loaded in dom0. >> >> Check lspci -vvv,find the device in the output and look for the >> lines that say: >> Kernel driver in use: >> Kernel modules: >> >> The kernel driver might not be called the same thing in both >> kernels. >> >>> I am running Xen 4.4-unstable changeset 27238 with Linux kernel >>> 3.11.0-rc1 on a Ubuntu 13.04 host. >> >> And on F19? >> >> Gordan >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> http://lists.xen.org/xen-devel >> > > Dear Gordan, > > I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver > in use is pciback for Intel HD Graphics 4600 IGD. > > As for Fedora 19 HVM domU, I don''t know because I cannot start it.Starting is not required to do this. Do it before starting the domU. Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:55 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 18:44, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 18:29, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>> >>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>>>>> Debian >>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>>>>>>> 7.1.0 >>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>>>>> listed >>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>>>>> kernel >>>>>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>>>>> "Kernel >>>>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>> (prog-if >>>>>>>> 00 [VGA controller]). >>>>>>>> >>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>> >>>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>>> i915", >>>>>>>> it complains "no such device". >>>>>>>> >>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>> >>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>>>>> amd64 >>>>>>>> HVM domU considered successful since the i915 driver cannot be >>>>>>>> loaded? >>>>>>>> >>>>>>>> Thank you very much. >>>>>>> >>>>>>> If you have a driver in dom0 claiming the device (other than the >>>>>>> xen-pciback >>>>>>> driver), you cannot pass through that device. If you do lspci >>>>>>> -ccc on F19 >>>>>>> and you see the driver in use for that device being something >>>>>>> other than >>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>> >>>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>>> This attempts >>>>>>> to detach the device from it''s current driver but doesn''t always >>>>>>> work >>>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>>> for the >>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>> dom0 on that >>>>>>> device. >>>>>> >>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could >>>>>> you advise me on the workaround? >>>>>> >>>>>> As for the Intel HD Graphics (i915) driver, I have it blacklisted in >>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>>> blacklist.conf. >>>>> >>>>> Have you confirm that no other driver is bound to the device in >>>>> lspci -vvv? >>>>> Also what version of Xen are you running on each of the distros, >>>>> and which >>>>> dom0 kernel? >>>> >>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>> anything, which means the kernel module i915 is not loaded in dom0. >>> >>> Check lspci -vvv,find the device in the output and look for the >>> lines that say: >>> Kernel driver in use: >>> Kernel modules: >>> >>> The kernel driver might not be called the same thing in both kernels. >>> >>>> I am running Xen 4.4-unstable changeset 27238 with Linux kernel >>>> 3.11.0-rc1 on a Ubuntu 13.04 host. >>> >>> And on F19? >>> >>> Gordan >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xen.org >>> http://lists.xen.org/xen-devel >>> >> >> Dear Gordan, >> >> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver >> in use is pciback for Intel HD Graphics 4600 IGD. >> >> As for Fedora 19 HVM domU, I don''t know because I cannot start it. > > Starting is not required to do this. Do it before starting the domU. > > Gordan >Sorry, I don''t understand what you''re trying to say. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 10:55 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 18:44, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 18:29, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>> >>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot start, >>>>>>>> Debian >>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In Debian >>>>>>>> 7.1.0 >>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 is >>>>>>>> listed >>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that no >>>>>>>> kernel >>>>>>>> module is being loaded for Intel HD Graphics 4600. There is no >>>>>>>> "Kernel >>>>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>> (prog-if >>>>>>>> 00 [VGA controller]). >>>>>>>> >>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>> >>>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>>> i915", >>>>>>>> it complains "no such device". >>>>>>>> >>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>> >>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian 7.1.0 >>>>>>>> amd64 >>>>>>>> HVM domU considered successful since the i915 driver cannot be >>>>>>>> loaded? >>>>>>>> >>>>>>>> Thank you very much. >>>>>>> >>>>>>> If you have a driver in dom0 claiming the device (other than the >>>>>>> xen-pciback >>>>>>> driver), you cannot pass through that device. If you do lspci >>>>>>> -ccc on F19 >>>>>>> and you see the driver in use for that device being something >>>>>>> other than >>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>> >>>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>>> This attempts >>>>>>> to detach the device from it''s current driver but doesn''t always >>>>>>> work >>>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>>> for the >>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>> dom0 on that >>>>>>> device. >>>>>> >>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. Could >>>>>> you advise me on the workaround? >>>>>> >>>>>> As for the Intel HD Graphics (i915) driver, I have it blacklisted in >>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>>> blacklist.conf. >>>>> >>>>> Have you confirm that no other driver is bound to the device in >>>>> lspci -vvv? >>>>> Also what version of Xen are you running on each of the distros, >>>>> and which >>>>> dom0 kernel? >>>> >>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>> anything, which means the kernel module i915 is not loaded in dom0. >>> >>> Check lspci -vvv,find the device in the output and look for the >>> lines that say: >>> Kernel driver in use: >>> Kernel modules: >>> >>> The kernel driver might not be called the same thing in both kernels. >>> >>>> I am running Xen 4.4-unstable changeset 27238 with Linux kernel >>>> 3.11.0-rc1 on a Ubuntu 13.04 host. >>> >>> And on F19? >>> >>> Gordan >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xen.org >>> http://lists.xen.org/xen-devel >>> >> >> Dear Gordan, >> >> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver >> in use is pciback for Intel HD Graphics 4600 IGD. >> >> As for Fedora 19 HVM domU, I don''t know because I cannot start it. > > Starting is not required to do this. Do it before starting the domU. > > Gordan >Sorry, I don''t understand what you''re trying to say. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 18:44, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>> start, Debian >>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>> Debian 7.1.0 >>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>> is listed >>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that >>>>>>>>> no kernel >>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>> no "Kernel >>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>> Intel >>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>> (prog-if >>>>>>>>> 00 [VGA controller]). >>>>>>>>> >>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>> >>>>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>>>> i915", >>>>>>>>> it complains "no such device". >>>>>>>>> >>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>> >>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>> 7.1.0 amd64 >>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>> be loaded? >>>>>>>>> >>>>>>>>> Thank you very much. >>>>>>>> >>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>> the xen-pciback >>>>>>>> driver), you cannot pass through that device. If you do lspci >>>>>>>> -ccc on F19 >>>>>>>> and you see the driver in use for that device being something >>>>>>>> other than >>>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>>> >>>>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>>>> This attempts >>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>> always work >>>>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>>>> for the >>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>> dom0 on that >>>>>>>> device. >>>>>>> >>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>>>>>> Could >>>>>>> you advise me on the workaround? >>>>>>> >>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>> blacklisted in >>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>> attached >>>>>>> blacklist.conf. >>>>>> >>>>>> Have you confirm that no other driver is bound to the device in >>>>>> lspci -vvv? >>>>>> Also what version of Xen are you running on each of the distros, >>>>>> and which >>>>>> dom0 kernel? >>>>> >>>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>>> anything, which means the kernel module i915 is not loaded in >>>>> dom0. >>>> >>>> Check lspci -vvv,find the device in the output and look for the >>>> lines that say: >>>> Kernel driver in use: >>>> Kernel modules:[...]>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>> driver >>> in use is pciback for Intel HD Graphics 4600 IGD. >>> >>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >> >> Starting is not required to do this. Do it before starting the domU. > > Sorry, I don''t understand what you''re trying to say.On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, find the Intel graphics device in the output and find what kernel driver / module are bound to it, if any. You can only pass through a PCI device that is connected to the xen pciback driver, and even then often only if no other driver had connected to the device first since that might leave it in an unknown state. Gordan
Gordan Bobic
2013-Jul-18 11:02 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 18:44, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>> start, Debian >>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>> Debian 7.1.0 >>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>> is listed >>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that >>>>>>>>> no kernel >>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>> no "Kernel >>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>> Intel >>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>> (prog-if >>>>>>>>> 00 [VGA controller]). >>>>>>>>> >>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>> >>>>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>>>> i915", >>>>>>>>> it complains "no such device". >>>>>>>>> >>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>> >>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>> 7.1.0 amd64 >>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>> be loaded? >>>>>>>>> >>>>>>>>> Thank you very much. >>>>>>>> >>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>> the xen-pciback >>>>>>>> driver), you cannot pass through that device. If you do lspci >>>>>>>> -ccc on F19 >>>>>>>> and you see the driver in use for that device being something >>>>>>>> other than >>>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>>> >>>>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>>>> This attempts >>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>> always work >>>>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>>>> for the >>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>> dom0 on that >>>>>>>> device. >>>>>>> >>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>>>>>> Could >>>>>>> you advise me on the workaround? >>>>>>> >>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>> blacklisted in >>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>> attached >>>>>>> blacklist.conf. >>>>>> >>>>>> Have you confirm that no other driver is bound to the device in >>>>>> lspci -vvv? >>>>>> Also what version of Xen are you running on each of the distros, >>>>>> and which >>>>>> dom0 kernel? >>>>> >>>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>>> anything, which means the kernel module i915 is not loaded in >>>>> dom0. >>>> >>>> Check lspci -vvv,find the device in the output and look for the >>>> lines that say: >>>> Kernel driver in use: >>>> Kernel modules:[...]>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>> driver >>> in use is pciback for Intel HD Graphics 4600 IGD. >>> >>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >> >> Starting is not required to do this. Do it before starting the domU. > > Sorry, I don''t understand what you''re trying to say.On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, find the Intel graphics device in the output and find what kernel driver / module are bound to it, if any. You can only pass through a PCI device that is connected to the xen pciback driver, and even then often only if no other driver had connected to the device first since that might leave it in an unknown state. Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 11:23 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 19:02, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 18:44, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>> start, Debian >>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>> Debian 7.1.0 >>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>>> is listed >>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that >>>>>>>>>> no kernel >>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>>> no "Kernel >>>>>>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>>> (prog-if >>>>>>>>>> 00 [VGA controller]). >>>>>>>>>> >>>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>>> >>>>>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>>>>> i915", >>>>>>>>>> it complains "no such device". >>>>>>>>>> >>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>> >>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>> 7.1.0 amd64 >>>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>>> be loaded? >>>>>>>>>> >>>>>>>>>> Thank you very much. >>>>>>>>> >>>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>>> the xen-pciback >>>>>>>>> driver), you cannot pass through that device. If you do lspci >>>>>>>>> -ccc on F19 >>>>>>>>> and you see the driver in use for that device being something >>>>>>>>> other than >>>>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>>>> >>>>>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>>>>> This attempts >>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>> always work >>>>>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>>>>> for the >>>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>>> dom0 on that >>>>>>>>> device. >>>>>>>> >>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>>>>>>> Could >>>>>>>> you advise me on the workaround? >>>>>>>> >>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>> blacklisted in >>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>>>>> blacklist.conf. >>>>>>> >>>>>>> Have you confirm that no other driver is bound to the device in >>>>>>> lspci -vvv? >>>>>>> Also what version of Xen are you running on each of the distros, >>>>>>> and which >>>>>>> dom0 kernel? >>>>>> >>>>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>>>> anything, which means the kernel module i915 is not loaded in dom0. >>>>> >>>>> Check lspci -vvv,find the device in the output and look for the >>>>> lines that say: >>>>> Kernel driver in use: >>>>> Kernel modules: > > [...] > >>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver >>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>> >>>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >>> >>> Starting is not required to do this. Do it before starting the domU. >> >> Sorry, I don''t understand what you''re trying to say. > > On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, > find the Intel graphics device in the output and find what kernel > driver / module are bound to it, if any. You can only pass through > a PCI device that is connected to the xen pciback driver, and even > then often only if no other driver had connected to the device first > since that might leave it in an unknown state. > > Gordan >But I can only start Fedora 19 HVM domU with-out vga passthrough. I want to be able to start Fedora 19 HVM domU with vga passthrough. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 11:23 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 19:02, Gordan Bobic wrote:> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 18:44, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>> start, Debian >>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>> Debian 7.1.0 >>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>>> is listed >>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange that >>>>>>>>>> no kernel >>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>>> no "Kernel >>>>>>>>>> driver in use" statement after VGA compatible controller: Intel >>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>>> (prog-if >>>>>>>>>> 00 [VGA controller]). >>>>>>>>>> >>>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>>> >>>>>>>>>> When I tried to load the kernel module by executing "modprobe >>>>>>>>>> i915", >>>>>>>>>> it complains "no such device". >>>>>>>>>> >>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>> >>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>> 7.1.0 amd64 >>>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>>> be loaded? >>>>>>>>>> >>>>>>>>>> Thank you very much. >>>>>>>>> >>>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>>> the xen-pciback >>>>>>>>> driver), you cannot pass through that device. If you do lspci >>>>>>>>> -ccc on F19 >>>>>>>>> and you see the driver in use for that device being something >>>>>>>>> other than >>>>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>>>> >>>>>>>>> Also, did you first do xl pci-assignable-add for that device? >>>>>>>>> This attempts >>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>> always work >>>>>>>>> especially for GPUs. The only solution is blacklist the driver >>>>>>>>> for the >>>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>>> dom0 on that >>>>>>>>> device. >>>>>>>> >>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at all. >>>>>>>> Could >>>>>>>> you advise me on the workaround? >>>>>>>> >>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>> blacklisted in >>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>>>>> blacklist.conf. >>>>>>> >>>>>>> Have you confirm that no other driver is bound to the device in >>>>>>> lspci -vvv? >>>>>>> Also what version of Xen are you running on each of the distros, >>>>>>> and which >>>>>>> dom0 kernel? >>>>>> >>>>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>>>> anything, which means the kernel module i915 is not loaded in dom0. >>>>> >>>>> Check lspci -vvv,find the device in the output and look for the >>>>> lines that say: >>>>> Kernel driver in use: >>>>> Kernel modules: > > [...] > >>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver >>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>> >>>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >>> >>> Starting is not required to do this. Do it before starting the domU. >> >> Sorry, I don''t understand what you''re trying to say. > > On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, > find the Intel graphics device in the output and find what kernel > driver / module are bound to it, if any. You can only pass through > a PCI device that is connected to the xen pciback driver, and even > then often only if no other driver had connected to the device first > since that might leave it in an unknown state. > > Gordan >But I can only start Fedora 19 HVM domU with-out vga passthrough. I want to be able to start Fedora 19 HVM domU with vga passthrough. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Gordan Bobic
2013-Jul-18 12:03 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 19:02, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>> start, Debian >>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>>>> is listed >>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>> that no kernel >>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>>>> no "Kernel >>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>> Intel >>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>>>> (prog-if >>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>> >>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>> lsmod.txt >>>>>>>>>>> >>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>> "modprobe i915", >>>>>>>>>>> it complains "no such device". >>>>>>>>>>> >>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>> >>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>>>> be loaded? >>>>>>>>>>> >>>>>>>>>>> Thank you very much. >>>>>>>>>> >>>>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>>>> the xen-pciback >>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>> lspci -ccc on F19 >>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>> something other than >>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>> through. >>>>>>>>>> >>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>> device? This attempts >>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>> always work >>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>> driver for the >>>>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>>>> dom0 on that >>>>>>>>>> device. >>>>>>>>> >>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>> all. Could >>>>>>>>> you advise me on the workaround? >>>>>>>>> >>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>> blacklisted in >>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>> attached >>>>>>>>> blacklist.conf. >>>>>>>> >>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>> in lspci -vvv? >>>>>>>> Also what version of Xen are you running on each of the >>>>>>>> distros, and which >>>>>>>> dom0 kernel? >>>>>>> >>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>> return >>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>> dom0. >>>>>> >>>>>> Check lspci -vvv,find the device in the output and look for the >>>>>> lines that say: >>>>>> Kernel driver in use: >>>>>> Kernel modules: >> >> [...] >> >>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>> driver >>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>> >>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start >>>>> it. >>>> >>>> Starting is not required to do this. Do it before starting the >>>> domU. >>> >>> Sorry, I don''t understand what you''re trying to say. >> >> On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, >> find the Intel graphics device in the output and find what kernel >> driver / module are bound to it, if any. You can only pass through >> a PCI device that is connected to the xen pciback driver, and even >> then often only if no other driver had connected to the device first >> since that might leave it in an unknown state. >> > > But I can only start Fedora 19 HVM domU with-out vga passthrough. I > want to be able to start Fedora 19 HVM domU with vga passthrough.You are trying to get one step ahead of what I am talking about. Forget domU for the moment. Before you can even begin thinking about the domU you have to make sure the device is available for assigning in dom0. If you have a driver bound to the device in dom0 you cannot pass it through to domU. So forget domU until you have actually confirmed there is no driver bound to the device in dom0. What do the following two lines say for the device in lspci -vvv in _dom0_ on Fedora: Kernel driver in use: Kernel modules: Gordan
On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 19:02, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>> start, Debian >>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>>>> is listed >>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>> that no kernel >>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>>>> no "Kernel >>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>> Intel >>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>>>> (prog-if >>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>> >>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>> lsmod.txt >>>>>>>>>>> >>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>> "modprobe i915", >>>>>>>>>>> it complains "no such device". >>>>>>>>>>> >>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>> >>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>>>> be loaded? >>>>>>>>>>> >>>>>>>>>>> Thank you very much. >>>>>>>>>> >>>>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>>>> the xen-pciback >>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>> lspci -ccc on F19 >>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>> something other than >>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>> through. >>>>>>>>>> >>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>> device? This attempts >>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>> always work >>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>> driver for the >>>>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>>>> dom0 on that >>>>>>>>>> device. >>>>>>>>> >>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>> all. Could >>>>>>>>> you advise me on the workaround? >>>>>>>>> >>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>> blacklisted in >>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>> attached >>>>>>>>> blacklist.conf. >>>>>>>> >>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>> in lspci -vvv? >>>>>>>> Also what version of Xen are you running on each of the >>>>>>>> distros, and which >>>>>>>> dom0 kernel? >>>>>>> >>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>> return >>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>> dom0. >>>>>> >>>>>> Check lspci -vvv,find the device in the output and look for the >>>>>> lines that say: >>>>>> Kernel driver in use: >>>>>> Kernel modules: >> >> [...] >> >>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>> driver >>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>> >>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start >>>>> it. >>>> >>>> Starting is not required to do this. Do it before starting the >>>> domU. >>> >>> Sorry, I don''t understand what you''re trying to say. >> >> On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, >> find the Intel graphics device in the output and find what kernel >> driver / module are bound to it, if any. You can only pass through >> a PCI device that is connected to the xen pciback driver, and even >> then often only if no other driver had connected to the device first >> since that might leave it in an unknown state. >> > > But I can only start Fedora 19 HVM domU with-out vga passthrough. I > want to be able to start Fedora 19 HVM domU with vga passthrough.You are trying to get one step ahead of what I am talking about. Forget domU for the moment. Before you can even begin thinking about the domU you have to make sure the device is available for assigning in dom0. If you have a driver bound to the device in dom0 you cannot pass it through to domU. So forget domU until you have actually confirmed there is no driver bound to the device in dom0. What do the following two lines say for the device in lspci -vvv in _dom0_ on Fedora: Kernel driver in use: Kernel modules: Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 12:29 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 20:03, Gordan Bobic wrote:> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 19:02, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>> start, Debian >>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>>>>> is listed >>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>> that no kernel >>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>>>>> no "Kernel >>>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>>> Intel >>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>>>>> (prog-if >>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>> >>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>>>>> >>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>> >>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>> >>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>>>>> be loaded? >>>>>>>>>>>> >>>>>>>>>>>> Thank you very much. >>>>>>>>>>> >>>>>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>>>>> the xen-pciback >>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>> something other than >>>>>>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>>>>>> >>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>> device? This attempts >>>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>>> always work >>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>> driver for the >>>>>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>>>>> dom0 on that >>>>>>>>>>> device. >>>>>>>>>> >>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>> all. Could >>>>>>>>>> you advise me on the workaround? >>>>>>>>>> >>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>> blacklisted in >>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>>>>>>> blacklist.conf. >>>>>>>>> >>>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>>> in lspci -vvv? >>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>> distros, and which >>>>>>>>> dom0 kernel? >>>>>>>> >>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>>> dom0. >>>>>>> >>>>>>> Check lspci -vvv,find the device in the output and look for the >>>>>>> lines that say: >>>>>>> Kernel driver in use: >>>>>>> Kernel modules: >>> >>> [...] >>> >>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver >>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>> >>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >>>>> >>>>> Starting is not required to do this. Do it before starting the domU. >>>> >>>> Sorry, I don''t understand what you''re trying to say. >>> >>> On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, >>> find the Intel graphics device in the output and find what kernel >>> driver / module are bound to it, if any. You can only pass through >>> a PCI device that is connected to the xen pciback driver, and even >>> then often only if no other driver had connected to the device first >>> since that might leave it in an unknown state. >>> >> >> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >> want to be able to start Fedora 19 HVM domU with vga passthrough. > > You are trying to get one step ahead of what I am talking about. > Forget domU for the moment. Before you can even begin thinking > about the domU you have to make sure the device is available > for assigning in dom0. If you have a driver bound to the device > in dom0 you cannot pass it through to domU. So forget domU until > you have actually confirmed there is no driver bound to the > device in dom0. > > What do the following two lines say for the device in lspci -vvv > in _dom0_ on Fedora: > Kernel driver in use: > Kernel modules: > > Gordan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >Dear Gordan, I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The filename of the attachment is dom0-lspci.txt. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 12:29 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 20:03, Gordan Bobic wrote:> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 19:02, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>> start, Debian >>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics 4600 >>>>>>>>>>>> is listed >>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>> that no kernel >>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There is >>>>>>>>>>>> no "Kernel >>>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>>> Intel >>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev 06) >>>>>>>>>>>> (prog-if >>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>> >>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>>>>> >>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>> >>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>> >>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>>> HVM domU considered successful since the i915 driver cannot >>>>>>>>>>>> be loaded? >>>>>>>>>>>> >>>>>>>>>>>> Thank you very much. >>>>>>>>>>> >>>>>>>>>>> If you have a driver in dom0 claiming the device (other than >>>>>>>>>>> the xen-pciback >>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>> something other than >>>>>>>>>>> xen-pciback, that would explain why you can''t pass it through. >>>>>>>>>>> >>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>> device? This attempts >>>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>>> always work >>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>> driver for the >>>>>>>>>>> device in dom0. The downside is that you cannot run a GUI in >>>>>>>>>>> dom0 on that >>>>>>>>>>> device. >>>>>>>>>> >>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>> all. Could >>>>>>>>>> you advise me on the workaround? >>>>>>>>>> >>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>> blacklisted in >>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to attached >>>>>>>>>> blacklist.conf. >>>>>>>>> >>>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>>> in lspci -vvv? >>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>> distros, and which >>>>>>>>> dom0 kernel? >>>>>>>> >>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t return >>>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>>> dom0. >>>>>>> >>>>>>> Check lspci -vvv,find the device in the output and look for the >>>>>>> lines that say: >>>>>>> Kernel driver in use: >>>>>>> Kernel modules: >>> >>> [...] >>> >>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel driver >>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>> >>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >>>>> >>>>> Starting is not required to do this. Do it before starting the domU. >>>> >>>> Sorry, I don''t understand what you''re trying to say. >>> >>> On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, >>> find the Intel graphics device in the output and find what kernel >>> driver / module are bound to it, if any. You can only pass through >>> a PCI device that is connected to the xen pciback driver, and even >>> then often only if no other driver had connected to the device first >>> since that might leave it in an unknown state. >>> >> >> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >> want to be able to start Fedora 19 HVM domU with vga passthrough. > > You are trying to get one step ahead of what I am talking about. > Forget domU for the moment. Before you can even begin thinking > about the domU you have to make sure the device is available > for assigning in dom0. If you have a driver bound to the device > in dom0 you cannot pass it through to domU. So forget domU until > you have actually confirmed there is no driver bound to the > device in dom0. > > What do the following two lines say for the device in lspci -vvv > in _dom0_ on Fedora: > Kernel driver in use: > Kernel modules: > > Gordan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >Dear Gordan, I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The filename of the attachment is dom0-lspci.txt. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Gordan Bobic
2013-Jul-18 12:35 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 20:03, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>> start, Debian >>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>> that no kernel >>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There >>>>>>>>>>>>> is no "Kernel >>>>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>>>> Intel >>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>> >>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>> >>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>> >>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>> >>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>> >>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>> >>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>> something other than >>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>> through. >>>>>>>>>>>> >>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>> device? This attempts >>>>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>>>> always work >>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>> driver for the >>>>>>>>>>>> device in dom0. The downside is that you cannot run a GUI >>>>>>>>>>>> in dom0 on that >>>>>>>>>>>> device. >>>>>>>>>>> >>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>> all. Could >>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>> >>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>> blacklisted in >>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>> attached >>>>>>>>>>> blacklist.conf. >>>>>>>>>> >>>>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>>>> in lspci -vvv? >>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>> distros, and which >>>>>>>>>> dom0 kernel? >>>>>>>>> >>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>> return >>>>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>>>> dom0. >>>>>>>> >>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>> the lines that say: >>>>>>>> Kernel driver in use: >>>>>>>> Kernel modules: >>>> >>>> [...] >>>> >>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>> driver >>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>> >>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start >>>>>>> it. >>>>>> >>>>>> Starting is not required to do this. Do it before starting the >>>>>> domU. >>>>> >>>>> Sorry, I don''t understand what you''re trying to say. >>>> >>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>> -vvv, >>>> find the Intel graphics device in the output and find what kernel >>>> driver / module are bound to it, if any. You can only pass through >>>> a PCI device that is connected to the xen pciback driver, and even >>>> then often only if no other driver had connected to the device >>>> first >>>> since that might leave it in an unknown state. >>>> >>> >>> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >>> want to be able to start Fedora 19 HVM domU with vga passthrough. >> >> You are trying to get one step ahead of what I am talking about. >> Forget domU for the moment. Before you can even begin thinking >> about the domU you have to make sure the device is available >> for assigning in dom0. If you have a driver bound to the device >> in dom0 you cannot pass it through to domU. So forget domU until >> you have actually confirmed there is no driver bound to the >> device in dom0. >> >> What do the following two lines say for the device in lspci -vvv >> in _dom0_ on Fedora: >> Kernel driver in use: >> Kernel modules: >> > I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The > filename of the attachment is dom0-lspci.txt.You need to do this as root, otherwise some of the output is missing. And the dump from the machine where you have domU working isn''t useful, you need to post the same lspci dump from the system where it _doesn''t_ work. Gordan
On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 20:03, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>> start, Debian >>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>> that no kernel >>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There >>>>>>>>>>>>> is no "Kernel >>>>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>>>> Intel >>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>> >>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>> >>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>> >>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>> >>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>> >>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>> >>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>> something other than >>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>> through. >>>>>>>>>>>> >>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>> device? This attempts >>>>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>>>> always work >>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>> driver for the >>>>>>>>>>>> device in dom0. The downside is that you cannot run a GUI >>>>>>>>>>>> in dom0 on that >>>>>>>>>>>> device. >>>>>>>>>>> >>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>> all. Could >>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>> >>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>> blacklisted in >>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>> attached >>>>>>>>>>> blacklist.conf. >>>>>>>>>> >>>>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>>>> in lspci -vvv? >>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>> distros, and which >>>>>>>>>> dom0 kernel? >>>>>>>>> >>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>> return >>>>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>>>> dom0. >>>>>>>> >>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>> the lines that say: >>>>>>>> Kernel driver in use: >>>>>>>> Kernel modules: >>>> >>>> [...] >>>> >>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>> driver >>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>> >>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start >>>>>>> it. >>>>>> >>>>>> Starting is not required to do this. Do it before starting the >>>>>> domU. >>>>> >>>>> Sorry, I don''t understand what you''re trying to say. >>>> >>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>> -vvv, >>>> find the Intel graphics device in the output and find what kernel >>>> driver / module are bound to it, if any. You can only pass through >>>> a PCI device that is connected to the xen pciback driver, and even >>>> then often only if no other driver had connected to the device >>>> first >>>> since that might leave it in an unknown state. >>>> >>> >>> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >>> want to be able to start Fedora 19 HVM domU with vga passthrough. >> >> You are trying to get one step ahead of what I am talking about. >> Forget domU for the moment. Before you can even begin thinking >> about the domU you have to make sure the device is available >> for assigning in dom0. If you have a driver bound to the device >> in dom0 you cannot pass it through to domU. So forget domU until >> you have actually confirmed there is no driver bound to the >> device in dom0. >> >> What do the following two lines say for the device in lspci -vvv >> in _dom0_ on Fedora: >> Kernel driver in use: >> Kernel modules: >> > I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The > filename of the attachment is dom0-lspci.txt.You need to do this as root, otherwise some of the output is missing. And the dump from the machine where you have domU working isn''t useful, you need to post the same lspci dump from the system where it _doesn''t_ work. Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 12:57 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 20:35, Gordan Bobic wrote:> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 20:03, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>>> start, Debian >>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>>> that no kernel >>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There >>>>>>>>>>>>>> is no "Kernel >>>>>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>>>>> Intel >>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>> >>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>>>>>>> >>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>> >>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>> >>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>> >>>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>> something other than >>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>> through. >>>>>>>>>>>>> >>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>>>>> always work >>>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>>> driver for the >>>>>>>>>>>>> device in dom0. The downside is that you cannot run a GUI >>>>>>>>>>>>> in dom0 on that >>>>>>>>>>>>> device. >>>>>>>>>>>> >>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>>> all. Could >>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>> >>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>> blacklisted in >>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>> attached >>>>>>>>>>>> blacklist.conf. >>>>>>>>>>> >>>>>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>>>>> in lspci -vvv? >>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>> distros, and which >>>>>>>>>>> dom0 kernel? >>>>>>>>>> >>>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>>> return >>>>>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>>>>> dom0. >>>>>>>>> >>>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>>> the lines that say: >>>>>>>>> Kernel driver in use: >>>>>>>>> Kernel modules: >>>>> >>>>> [...] >>>>> >>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>>> driver >>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>> >>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >>>>>>> >>>>>>> Starting is not required to do this. Do it before starting the >>>>>>> domU. >>>>>> >>>>>> Sorry, I don''t understand what you''re trying to say. >>>>> >>>>> On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, >>>>> find the Intel graphics device in the output and find what kernel >>>>> driver / module are bound to it, if any. You can only pass through >>>>> a PCI device that is connected to the xen pciback driver, and even >>>>> then often only if no other driver had connected to the device first >>>>> since that might leave it in an unknown state. >>>>> >>>> >>>> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>> >>> You are trying to get one step ahead of what I am talking about. >>> Forget domU for the moment. Before you can even begin thinking >>> about the domU you have to make sure the device is available >>> for assigning in dom0. If you have a driver bound to the device >>> in dom0 you cannot pass it through to domU. So forget domU until >>> you have actually confirmed there is no driver bound to the >>> device in dom0. >>> >>> What do the following two lines say for the device in lspci -vvv >>> in _dom0_ on Fedora: >>> Kernel driver in use: >>> Kernel modules: >>> >> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >> filename of the attachment is dom0-lspci.txt. > > You need to do this as root, otherwise some of the output is missing. > > And the dump from the machine where you have domU working isn''t > useful, you need to post the same lspci dump from the system > where it _doesn''t_ work. > > Gordan >I have attached the output of lspci -vvv as root in Ubuntu 13.04 dom0. The filename of the attachment is root-dom0-lspci.txt. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 12:57 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 20:35, Gordan Bobic wrote:> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 20:03, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen Mr. >>>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>>> start, Debian >>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>>> that no kernel >>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. There >>>>>>>>>>>>>> is no "Kernel >>>>>>>>>>>>>> driver in use" statement after VGA compatible controller: >>>>>>>>>>>>>> Intel >>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>> >>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to lsmod.txt >>>>>>>>>>>>>> >>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>> >>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>> >>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to Debian >>>>>>>>>>>>>> 7.1.0 amd64 >>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>> >>>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>> something other than >>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>> through. >>>>>>>>>>>>> >>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>> to detach the device from it''s current driver but doesn''t >>>>>>>>>>>>> always work >>>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>>> driver for the >>>>>>>>>>>>> device in dom0. The downside is that you cannot run a GUI >>>>>>>>>>>>> in dom0 on that >>>>>>>>>>>>> device. >>>>>>>>>>>> >>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>>> all. Could >>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>> >>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>> blacklisted in >>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>> attached >>>>>>>>>>>> blacklist.conf. >>>>>>>>>>> >>>>>>>>>>> Have you confirm that no other driver is bound to the device >>>>>>>>>>> in lspci -vvv? >>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>> distros, and which >>>>>>>>>>> dom0 kernel? >>>>>>>>>> >>>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>>> return >>>>>>>>>> anything, which means the kernel module i915 is not loaded in >>>>>>>>>> dom0. >>>>>>>>> >>>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>>> the lines that say: >>>>>>>>> Kernel driver in use: >>>>>>>>> Kernel modules: >>>>> >>>>> [...] >>>>> >>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>>> driver >>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>> >>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot start it. >>>>>>> >>>>>>> Starting is not required to do this. Do it before starting the >>>>>>> domU. >>>>>> >>>>>> Sorry, I don''t understand what you''re trying to say. >>>>> >>>>> On F19, don''t worry about starting the domU. In dom0, do lspci -vvv, >>>>> find the Intel graphics device in the output and find what kernel >>>>> driver / module are bound to it, if any. You can only pass through >>>>> a PCI device that is connected to the xen pciback driver, and even >>>>> then often only if no other driver had connected to the device first >>>>> since that might leave it in an unknown state. >>>>> >>>> >>>> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>> >>> You are trying to get one step ahead of what I am talking about. >>> Forget domU for the moment. Before you can even begin thinking >>> about the domU you have to make sure the device is available >>> for assigning in dom0. If you have a driver bound to the device >>> in dom0 you cannot pass it through to domU. So forget domU until >>> you have actually confirmed there is no driver bound to the >>> device in dom0. >>> >>> What do the following two lines say for the device in lspci -vvv >>> in _dom0_ on Fedora: >>> Kernel driver in use: >>> Kernel modules: >>> >> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >> filename of the attachment is dom0-lspci.txt. > > You need to do this as root, otherwise some of the output is missing. > > And the dump from the machine where you have domU working isn''t > useful, you need to post the same lspci dump from the system > where it _doesn''t_ work. > > Gordan >I have attached the output of lspci -vvv as root in Ubuntu 13.04 dom0. The filename of the attachment is root-dom0-lspci.txt. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Gordan Bobic
2013-Jul-18 13:04 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 20:35, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>>>> start, Debian >>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>>>> that no kernel >>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>> >>>>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>> something other than >>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>> through. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>>>> driver for the >>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>> device. >>>>>>>>>>>>> >>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>>>> all. Could >>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>> >>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>> attached >>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>> >>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>> distros, and which >>>>>>>>>>>> dom0 kernel? >>>>>>>>>>> >>>>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>>>> return >>>>>>>>>>> anything, which means the kernel module i915 is not loaded >>>>>>>>>>> in dom0. >>>>>>>>>> >>>>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>>>> the lines that say: >>>>>>>>>> Kernel driver in use: >>>>>>>>>> Kernel modules: >>>>>> >>>>>> [...] >>>>>> >>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>>>> driver >>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>> >>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>> start it. >>>>>>>> >>>>>>>> Starting is not required to do this. Do it before starting the >>>>>>>> domU. >>>>>>> >>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>> >>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>> -vvv, >>>>>> find the Intel graphics device in the output and find what >>>>>> kernel >>>>>> driver / module are bound to it, if any. You can only pass >>>>>> through >>>>>> a PCI device that is connected to the xen pciback driver, and >>>>>> even >>>>>> then often only if no other driver had connected to the device >>>>>> first >>>>>> since that might leave it in an unknown state. >>>>>> >>>>> >>>>> But I can only start Fedora 19 HVM domU with-out vga passthrough. >>>>> I >>>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>>> >>>> You are trying to get one step ahead of what I am talking about. >>>> Forget domU for the moment. Before you can even begin thinking >>>> about the domU you have to make sure the device is available >>>> for assigning in dom0. If you have a driver bound to the device >>>> in dom0 you cannot pass it through to domU. So forget domU until >>>> you have actually confirmed there is no driver bound to the >>>> device in dom0. >>>> >>>> What do the following two lines say for the device in lspci -vvv >>>> in _dom0_ on Fedora: >>>> Kernel driver in use: >>>> Kernel modules: >>>> >>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >>> filename of the attachment is dom0-lspci.txt. >> >> You need to do this as root, otherwise some of the output is >> missing. >> >> And the dump from the machine where you have domU working isn''t >> useful, you need to post the same lspci dump from the system >> where it _doesn''t_ work. >> >> Gordan >> > > I have attached the output of lspci -vvv as root in Ubuntu 13.04 > dom0. The filename of the attachment is root-dom0-lspci.txt.Right, that is showing Kernel driver in use: pciback for the Intel VGA device. But that is expected, you said you have it working on Ubuntu. You now need to make sure you have the same lspci output on Fedora dom0 before you start the domU. Gordan
On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 20:35, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>>>> start, Debian >>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>>>> that no kernel >>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>> >>>>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>> something other than >>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>> through. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>>>> driver for the >>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>> device. >>>>>>>>>>>>> >>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>>>> all. Could >>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>> >>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>> attached >>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>> >>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>> distros, and which >>>>>>>>>>>> dom0 kernel? >>>>>>>>>>> >>>>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>>>> return >>>>>>>>>>> anything, which means the kernel module i915 is not loaded >>>>>>>>>>> in dom0. >>>>>>>>>> >>>>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>>>> the lines that say: >>>>>>>>>> Kernel driver in use: >>>>>>>>>> Kernel modules: >>>>>> >>>>>> [...] >>>>>> >>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>>>> driver >>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>> >>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>> start it. >>>>>>>> >>>>>>>> Starting is not required to do this. Do it before starting the >>>>>>>> domU. >>>>>>> >>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>> >>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>> -vvv, >>>>>> find the Intel graphics device in the output and find what >>>>>> kernel >>>>>> driver / module are bound to it, if any. You can only pass >>>>>> through >>>>>> a PCI device that is connected to the xen pciback driver, and >>>>>> even >>>>>> then often only if no other driver had connected to the device >>>>>> first >>>>>> since that might leave it in an unknown state. >>>>>> >>>>> >>>>> But I can only start Fedora 19 HVM domU with-out vga passthrough. >>>>> I >>>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>>> >>>> You are trying to get one step ahead of what I am talking about. >>>> Forget domU for the moment. Before you can even begin thinking >>>> about the domU you have to make sure the device is available >>>> for assigning in dom0. If you have a driver bound to the device >>>> in dom0 you cannot pass it through to domU. So forget domU until >>>> you have actually confirmed there is no driver bound to the >>>> device in dom0. >>>> >>>> What do the following two lines say for the device in lspci -vvv >>>> in _dom0_ on Fedora: >>>> Kernel driver in use: >>>> Kernel modules: >>>> >>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >>> filename of the attachment is dom0-lspci.txt. >> >> You need to do this as root, otherwise some of the output is >> missing. >> >> And the dump from the machine where you have domU working isn''t >> useful, you need to post the same lspci dump from the system >> where it _doesn''t_ work. >> >> Gordan >> > > I have attached the output of lspci -vvv as root in Ubuntu 13.04 > dom0. The filename of the attachment is root-dom0-lspci.txt.Right, that is showing Kernel driver in use: pciback for the Intel VGA device. But that is expected, you said you have it working on Ubuntu. You now need to make sure you have the same lspci output on Fedora dom0 before you start the domU. Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 13:13 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 21:04, Gordan Bobic wrote:> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 20:35, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>>>>> start, Debian >>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>>>>> that no kernel >>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>>> through. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>>>>> driver for the >>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>>> device. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>>>>> all. Could >>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>> >>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>>> attached >>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>> >>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>>> distros, and which >>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>> >>>>>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>>>>> return >>>>>>>>>>>> anything, which means the kernel module i915 is not loaded >>>>>>>>>>>> in dom0. >>>>>>>>>>> >>>>>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>>>>> the lines that say: >>>>>>>>>>> Kernel driver in use: >>>>>>>>>>> Kernel modules: >>>>>>> >>>>>>> [...] >>>>>>> >>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>>>>> driver >>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>> >>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>> start it. >>>>>>>>> >>>>>>>>> Starting is not required to do this. Do it before starting the >>>>>>>>> domU. >>>>>>>> >>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>> >>>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>>> -vvv, >>>>>>> find the Intel graphics device in the output and find what kernel >>>>>>> driver / module are bound to it, if any. You can only pass through >>>>>>> a PCI device that is connected to the xen pciback driver, and even >>>>>>> then often only if no other driver had connected to the device >>>>>>> first >>>>>>> since that might leave it in an unknown state. >>>>>>> >>>>>> >>>>>> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >>>>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>>>> >>>>> You are trying to get one step ahead of what I am talking about. >>>>> Forget domU for the moment. Before you can even begin thinking >>>>> about the domU you have to make sure the device is available >>>>> for assigning in dom0. If you have a driver bound to the device >>>>> in dom0 you cannot pass it through to domU. So forget domU until >>>>> you have actually confirmed there is no driver bound to the >>>>> device in dom0. >>>>> >>>>> What do the following two lines say for the device in lspci -vvv >>>>> in _dom0_ on Fedora: >>>>> Kernel driver in use: >>>>> Kernel modules: >>>>> >>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >>>> filename of the attachment is dom0-lspci.txt. >>> >>> You need to do this as root, otherwise some of the output is missing. >>> >>> And the dump from the machine where you have domU working isn''t >>> useful, you need to post the same lspci dump from the system >>> where it _doesn''t_ work. >>> >>> Gordan >>> >> >> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >> dom0. The filename of the attachment is root-dom0-lspci.txt. > > Right, that is showing > Kernel driver in use: pciback > for the Intel VGA device. > > But that is expected, you said you have it working on Ubuntu. > You now need to make sure you have the same lspci output on > Fedora dom0 before you start the domU. > > Gordan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >Dear Gordan, I think you are confused. I only have *one* dom0, which is the Ubuntu 13.04 dom0. I don''t have any other dom0. What I am trying to do is to start Fedora 19 HVM domU in Ubuntu 13.04 dom0, but am unable to. Hope this clears everything. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 13:13 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 21:04, Gordan Bobic wrote:> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 20:35, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen Mr. >>>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough cannot >>>>>>>>>>>>>>>> start, Debian >>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. In >>>>>>>>>>>>>>>> Debian 7.1.0 >>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD Graphics >>>>>>>>>>>>>>>> 4600 is listed >>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is strange >>>>>>>>>>>>>>>> that no kernel >>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller (rev >>>>>>>>>>>>>>>> 06) (prog-if >>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device (other >>>>>>>>>>>>>>> than the xen-pciback >>>>>>>>>>>>>>> driver), you cannot pass through that device. If you do >>>>>>>>>>>>>>> lspci -ccc on F19 >>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>>> through. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist the >>>>>>>>>>>>>>> driver for the >>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>>> device. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough at >>>>>>>>>>>>>> all. Could >>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>> >>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>>> attached >>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>> >>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>>> distros, and which >>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>> >>>>>>>>>>>> I have checked "lsmod | grep i915" and the command doesn''t >>>>>>>>>>>> return >>>>>>>>>>>> anything, which means the kernel module i915 is not loaded >>>>>>>>>>>> in dom0. >>>>>>>>>>> >>>>>>>>>>> Check lspci -vvv,find the device in the output and look for >>>>>>>>>>> the lines that say: >>>>>>>>>>> Kernel driver in use: >>>>>>>>>>> Kernel modules: >>>>>>> >>>>>>> [...] >>>>>>> >>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the Kernel >>>>>>>>>> driver >>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>> >>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>> start it. >>>>>>>>> >>>>>>>>> Starting is not required to do this. Do it before starting the >>>>>>>>> domU. >>>>>>>> >>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>> >>>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>>> -vvv, >>>>>>> find the Intel graphics device in the output and find what kernel >>>>>>> driver / module are bound to it, if any. You can only pass through >>>>>>> a PCI device that is connected to the xen pciback driver, and even >>>>>>> then often only if no other driver had connected to the device >>>>>>> first >>>>>>> since that might leave it in an unknown state. >>>>>>> >>>>>> >>>>>> But I can only start Fedora 19 HVM domU with-out vga passthrough. I >>>>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>>>> >>>>> You are trying to get one step ahead of what I am talking about. >>>>> Forget domU for the moment. Before you can even begin thinking >>>>> about the domU you have to make sure the device is available >>>>> for assigning in dom0. If you have a driver bound to the device >>>>> in dom0 you cannot pass it through to domU. So forget domU until >>>>> you have actually confirmed there is no driver bound to the >>>>> device in dom0. >>>>> >>>>> What do the following two lines say for the device in lspci -vvv >>>>> in _dom0_ on Fedora: >>>>> Kernel driver in use: >>>>> Kernel modules: >>>>> >>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >>>> filename of the attachment is dom0-lspci.txt. >>> >>> You need to do this as root, otherwise some of the output is missing. >>> >>> And the dump from the machine where you have domU working isn''t >>> useful, you need to post the same lspci dump from the system >>> where it _doesn''t_ work. >>> >>> Gordan >>> >> >> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >> dom0. The filename of the attachment is root-dom0-lspci.txt. > > Right, that is showing > Kernel driver in use: pciback > for the Intel VGA device. > > But that is expected, you said you have it working on Ubuntu. > You now need to make sure you have the same lspci output on > Fedora dom0 before you start the domU. > > Gordan > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >Dear Gordan, I think you are confused. I only have *one* dom0, which is the Ubuntu 13.04 dom0. I don''t have any other dom0. What I am trying to do is to start Fedora 19 HVM domU in Ubuntu 13.04 dom0, but am unable to. Hope this clears everything. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Gordan Bobic
2013-Jul-18 13:55 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 21:13:54 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 21:04, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 20:35, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen >>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>>> cannot start, Debian >>>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. >>>>>>>>>>>>>>>>> In Debian 7.1.0 >>>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD >>>>>>>>>>>>>>>>> Graphics 4600 is listed >>>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is >>>>>>>>>>>>>>>>> strange that no kernel >>>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller >>>>>>>>>>>>>>>>> (rev 06) (prog-if >>>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device >>>>>>>>>>>>>>>> (other than the xen-pciback >>>>>>>>>>>>>>>> driver), you cannot pass through that device. If you >>>>>>>>>>>>>>>> do lspci -ccc on F19 >>>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>>>> through. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist >>>>>>>>>>>>>>>> the driver for the >>>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>>>> device. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>> at all. Could >>>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>>>> attached >>>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>>>> distros, and which >>>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>>> >>>>>>>>>>>>> I have checked "lsmod | grep i915" and the command >>>>>>>>>>>>> doesn''t return >>>>>>>>>>>>> anything, which means the kernel module i915 is not >>>>>>>>>>>>> loaded in dom0. >>>>>>>>>>>> >>>>>>>>>>>> Check lspci -vvv,find the device in the output and look >>>>>>>>>>>> for the lines that say: >>>>>>>>>>>> Kernel driver in use: >>>>>>>>>>>> Kernel modules: >>>>>>>> >>>>>>>> [...] >>>>>>>> >>>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the >>>>>>>>>>> Kernel driver >>>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>>> >>>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>>> start it. >>>>>>>>>> >>>>>>>>>> Starting is not required to do this. Do it before starting >>>>>>>>>> the domU. >>>>>>>>> >>>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>>> >>>>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>>>> -vvv, >>>>>>>> find the Intel graphics device in the output and find what >>>>>>>> kernel >>>>>>>> driver / module are bound to it, if any. You can only pass >>>>>>>> through >>>>>>>> a PCI device that is connected to the xen pciback driver, and >>>>>>>> even >>>>>>>> then often only if no other driver had connected to the device >>>>>>>> first >>>>>>>> since that might leave it in an unknown state. >>>>>>>> >>>>>>> >>>>>>> But I can only start Fedora 19 HVM domU with-out vga >>>>>>> passthrough. I >>>>>>> want to be able to start Fedora 19 HVM domU with vga >>>>>>> passthrough. >>>>>> >>>>>> You are trying to get one step ahead of what I am talking about. >>>>>> Forget domU for the moment. Before you can even begin thinking >>>>>> about the domU you have to make sure the device is available >>>>>> for assigning in dom0. If you have a driver bound to the device >>>>>> in dom0 you cannot pass it through to domU. So forget domU until >>>>>> you have actually confirmed there is no driver bound to the >>>>>> device in dom0. >>>>>> >>>>>> What do the following two lines say for the device in lspci -vvv >>>>>> in _dom0_ on Fedora: >>>>>> Kernel driver in use: >>>>>> Kernel modules: >>>>>> >>>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. >>>>> The >>>>> filename of the attachment is dom0-lspci.txt. >>>> >>>> You need to do this as root, otherwise some of the output is >>>> missing. >>>> >>>> And the dump from the machine where you have domU working isn''t >>>> useful, you need to post the same lspci dump from the system >>>> where it _doesn''t_ work. >>>> >>> >>> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >>> dom0. The filename of the attachment is root-dom0-lspci.txt. >> >> Right, that is showing >> Kernel driver in use: pciback >> for the Intel VGA device. >> >> But that is expected, you said you have it working on Ubuntu. >> You now need to make sure you have the same lspci output on >> Fedora dom0 before you start the domU. >> > I think you are confused. I only have *one* dom0, which is the Ubuntu > 13.04 dom0. I don''t have any other dom0. > > What I am trying to do is to start Fedora 19 HVM domU in Ubuntu 13.04 > dom0, but am unable to. > > Hope this clears everything.It does, thanks. I was under the impression you were dual booting dom0s and one was letting you boot domU and the other wasn''t. Apologies. Gordan
On Thu, 18 Jul 2013 21:13:54 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 21:04, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 20:35, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen >>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>>> cannot start, Debian >>>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. >>>>>>>>>>>>>>>>> In Debian 7.1.0 >>>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD >>>>>>>>>>>>>>>>> Graphics 4600 is listed >>>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is >>>>>>>>>>>>>>>>> strange that no kernel >>>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller >>>>>>>>>>>>>>>>> (rev 06) (prog-if >>>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device >>>>>>>>>>>>>>>> (other than the xen-pciback >>>>>>>>>>>>>>>> driver), you cannot pass through that device. If you >>>>>>>>>>>>>>>> do lspci -ccc on F19 >>>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>>>> through. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist >>>>>>>>>>>>>>>> the driver for the >>>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>>>> device. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>> at all. Could >>>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>>>> attached >>>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>>>> distros, and which >>>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>>> >>>>>>>>>>>>> I have checked "lsmod | grep i915" and the command >>>>>>>>>>>>> doesn''t return >>>>>>>>>>>>> anything, which means the kernel module i915 is not >>>>>>>>>>>>> loaded in dom0. >>>>>>>>>>>> >>>>>>>>>>>> Check lspci -vvv,find the device in the output and look >>>>>>>>>>>> for the lines that say: >>>>>>>>>>>> Kernel driver in use: >>>>>>>>>>>> Kernel modules: >>>>>>>> >>>>>>>> [...] >>>>>>>> >>>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the >>>>>>>>>>> Kernel driver >>>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>>> >>>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>>> start it. >>>>>>>>>> >>>>>>>>>> Starting is not required to do this. Do it before starting >>>>>>>>>> the domU. >>>>>>>>> >>>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>>> >>>>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>>>> -vvv, >>>>>>>> find the Intel graphics device in the output and find what >>>>>>>> kernel >>>>>>>> driver / module are bound to it, if any. You can only pass >>>>>>>> through >>>>>>>> a PCI device that is connected to the xen pciback driver, and >>>>>>>> even >>>>>>>> then often only if no other driver had connected to the device >>>>>>>> first >>>>>>>> since that might leave it in an unknown state. >>>>>>>> >>>>>>> >>>>>>> But I can only start Fedora 19 HVM domU with-out vga >>>>>>> passthrough. I >>>>>>> want to be able to start Fedora 19 HVM domU with vga >>>>>>> passthrough. >>>>>> >>>>>> You are trying to get one step ahead of what I am talking about. >>>>>> Forget domU for the moment. Before you can even begin thinking >>>>>> about the domU you have to make sure the device is available >>>>>> for assigning in dom0. If you have a driver bound to the device >>>>>> in dom0 you cannot pass it through to domU. So forget domU until >>>>>> you have actually confirmed there is no driver bound to the >>>>>> device in dom0. >>>>>> >>>>>> What do the following two lines say for the device in lspci -vvv >>>>>> in _dom0_ on Fedora: >>>>>> Kernel driver in use: >>>>>> Kernel modules: >>>>>> >>>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. >>>>> The >>>>> filename of the attachment is dom0-lspci.txt. >>>> >>>> You need to do this as root, otherwise some of the output is >>>> missing. >>>> >>>> And the dump from the machine where you have domU working isn''t >>>> useful, you need to post the same lspci dump from the system >>>> where it _doesn''t_ work. >>>> >>> >>> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >>> dom0. The filename of the attachment is root-dom0-lspci.txt. >> >> Right, that is showing >> Kernel driver in use: pciback >> for the Intel VGA device. >> >> But that is expected, you said you have it working on Ubuntu. >> You now need to make sure you have the same lspci output on >> Fedora dom0 before you start the domU. >> > I think you are confused. I only have *one* dom0, which is the Ubuntu > 13.04 dom0. I don''t have any other dom0. > > What I am trying to do is to start Fedora 19 HVM domU in Ubuntu 13.04 > dom0, but am unable to. > > Hope this clears everything.It does, thanks. I was under the impression you were dual booting dom0s and one was letting you boot domU and the other wasn''t. Apologies. Gordan
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 14:41 UTC
Re: Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 21:55, Gordan Bobic wrote:> On Thu, 18 Jul 2013 21:13:54 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 21:04, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 20:35, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen >>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>>>> cannot start, Debian >>>>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. >>>>>>>>>>>>>>>>>> In Debian 7.1.0 >>>>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD >>>>>>>>>>>>>>>>>> Graphics 4600 is listed >>>>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is >>>>>>>>>>>>>>>>>> strange that no kernel >>>>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller >>>>>>>>>>>>>>>>>> (rev 06) (prog-if >>>>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device >>>>>>>>>>>>>>>>> (other than the xen-pciback >>>>>>>>>>>>>>>>> driver), you cannot pass through that device. If you >>>>>>>>>>>>>>>>> do lspci -ccc on F19 >>>>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>>>>> through. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist >>>>>>>>>>>>>>>>> the driver for the >>>>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>>>>> device. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>> at all. Could >>>>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>>>>> attached >>>>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>>>>> distros, and which >>>>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have checked "lsmod | grep i915" and the command >>>>>>>>>>>>>> doesn''t return >>>>>>>>>>>>>> anything, which means the kernel module i915 is not >>>>>>>>>>>>>> loaded in dom0. >>>>>>>>>>>>> >>>>>>>>>>>>> Check lspci -vvv,find the device in the output and look >>>>>>>>>>>>> for the lines that say: >>>>>>>>>>>>> Kernel driver in use: >>>>>>>>>>>>> Kernel modules: >>>>>>>>> >>>>>>>>> [...] >>>>>>>>> >>>>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the >>>>>>>>>>>> Kernel driver >>>>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>>>> >>>>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>>>> start it. >>>>>>>>>>> >>>>>>>>>>> Starting is not required to do this. Do it before starting >>>>>>>>>>> the domU. >>>>>>>>>> >>>>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>>>> >>>>>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>>>>> -vvv, >>>>>>>>> find the Intel graphics device in the output and find what kernel >>>>>>>>> driver / module are bound to it, if any. You can only pass >>>>>>>>> through >>>>>>>>> a PCI device that is connected to the xen pciback driver, and >>>>>>>>> even >>>>>>>>> then often only if no other driver had connected to the device >>>>>>>>> first >>>>>>>>> since that might leave it in an unknown state. >>>>>>>>> >>>>>>>> >>>>>>>> But I can only start Fedora 19 HVM domU with-out vga >>>>>>>> passthrough. I >>>>>>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>>>>>> >>>>>>> You are trying to get one step ahead of what I am talking about. >>>>>>> Forget domU for the moment. Before you can even begin thinking >>>>>>> about the domU you have to make sure the device is available >>>>>>> for assigning in dom0. If you have a driver bound to the device >>>>>>> in dom0 you cannot pass it through to domU. So forget domU until >>>>>>> you have actually confirmed there is no driver bound to the >>>>>>> device in dom0. >>>>>>> >>>>>>> What do the following two lines say for the device in lspci -vvv >>>>>>> in _dom0_ on Fedora: >>>>>>> Kernel driver in use: >>>>>>> Kernel modules: >>>>>>> >>>>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >>>>>> filename of the attachment is dom0-lspci.txt. >>>>> >>>>> You need to do this as root, otherwise some of the output is missing. >>>>> >>>>> And the dump from the machine where you have domU working isn''t >>>>> useful, you need to post the same lspci dump from the system >>>>> where it _doesn''t_ work. >>>>> >>>> >>>> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >>>> dom0. The filename of the attachment is root-dom0-lspci.txt. >>> >>> Right, that is showing >>> Kernel driver in use: pciback >>> for the Intel VGA device. >>> >>> But that is expected, you said you have it working on Ubuntu. >>> You now need to make sure you have the same lspci output on >>> Fedora dom0 before you start the domU. >>> >> I think you are confused. I only have *one* dom0, which is the Ubuntu >> 13.04 dom0. I don''t have any other dom0. >> >> What I am trying to do is to start Fedora 19 HVM domU in Ubuntu 13.04 >> dom0, but am unable to. >> >> Hope this clears everything. > > It does, thanks. I was under the impression you were dual booting dom0s > and one was letting you boot domU and the other wasn''t. Apologies. > > Gordan >Dear Gordan, Do you know how to solve the problem of Fedora 19 HVM domU not starting up in Ubuntu 13.04 dom0 with Intel IGD VGA passthrough? -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-18 14:41 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On 18/07/2013 21:55, Gordan Bobic wrote:> On Thu, 18 Jul 2013 21:13:54 +0800, "Singapore Citizen Mr. Teo En Ming > (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >> On 18/07/2013 21:04, Gordan Bobic wrote: >>> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En >>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>> On 18/07/2013 20:35, Gordan Bobic wrote: >>>>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo En >>>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo >>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. Teo >>>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>>> wrote: >>>>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. >>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen Mr. >>>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen >>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore Citizen >>>>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>>>> cannot start, Debian >>>>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can start. >>>>>>>>>>>>>>>>>> In Debian 7.1.0 >>>>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD >>>>>>>>>>>>>>>>>> Graphics 4600 is listed >>>>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is >>>>>>>>>>>>>>>>>> strange that no kernel >>>>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller >>>>>>>>>>>>>>>>>> (rev 06) (prog-if >>>>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>>>> HVM domU considered successful since the i915 driver >>>>>>>>>>>>>>>>>> cannot be loaded? >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device >>>>>>>>>>>>>>>>> (other than the xen-pciback >>>>>>>>>>>>>>>>> driver), you cannot pass through that device. If you >>>>>>>>>>>>>>>>> do lspci -ccc on F19 >>>>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass it >>>>>>>>>>>>>>>>> through. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for that >>>>>>>>>>>>>>>>> device? This attempts >>>>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist >>>>>>>>>>>>>>>>> the driver for the >>>>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run a >>>>>>>>>>>>>>>>> GUI in dom0 on that >>>>>>>>>>>>>>>>> device. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>> at all. Could >>>>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer to >>>>>>>>>>>>>>>> attached >>>>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>>>> Also what version of Xen are you running on each of the >>>>>>>>>>>>>>> distros, and which >>>>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have checked "lsmod | grep i915" and the command >>>>>>>>>>>>>> doesn''t return >>>>>>>>>>>>>> anything, which means the kernel module i915 is not >>>>>>>>>>>>>> loaded in dom0. >>>>>>>>>>>>> >>>>>>>>>>>>> Check lspci -vvv,find the device in the output and look >>>>>>>>>>>>> for the lines that say: >>>>>>>>>>>>> Kernel driver in use: >>>>>>>>>>>>> Kernel modules: >>>>>>>>> >>>>>>>>> [...] >>>>>>>>> >>>>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the >>>>>>>>>>>> Kernel driver >>>>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>>>> >>>>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>>>> start it. >>>>>>>>>>> >>>>>>>>>>> Starting is not required to do this. Do it before starting >>>>>>>>>>> the domU. >>>>>>>>>> >>>>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>>>> >>>>>>>>> On F19, don''t worry about starting the domU. In dom0, do lspci >>>>>>>>> -vvv, >>>>>>>>> find the Intel graphics device in the output and find what kernel >>>>>>>>> driver / module are bound to it, if any. You can only pass >>>>>>>>> through >>>>>>>>> a PCI device that is connected to the xen pciback driver, and >>>>>>>>> even >>>>>>>>> then often only if no other driver had connected to the device >>>>>>>>> first >>>>>>>>> since that might leave it in an unknown state. >>>>>>>>> >>>>>>>> >>>>>>>> But I can only start Fedora 19 HVM domU with-out vga >>>>>>>> passthrough. I >>>>>>>> want to be able to start Fedora 19 HVM domU with vga passthrough. >>>>>>> >>>>>>> You are trying to get one step ahead of what I am talking about. >>>>>>> Forget domU for the moment. Before you can even begin thinking >>>>>>> about the domU you have to make sure the device is available >>>>>>> for assigning in dom0. If you have a driver bound to the device >>>>>>> in dom0 you cannot pass it through to domU. So forget domU until >>>>>>> you have actually confirmed there is no driver bound to the >>>>>>> device in dom0. >>>>>>> >>>>>>> What do the following two lines say for the device in lspci -vvv >>>>>>> in _dom0_ on Fedora: >>>>>>> Kernel driver in use: >>>>>>> Kernel modules: >>>>>>> >>>>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. The >>>>>> filename of the attachment is dom0-lspci.txt. >>>>> >>>>> You need to do this as root, otherwise some of the output is missing. >>>>> >>>>> And the dump from the machine where you have domU working isn''t >>>>> useful, you need to post the same lspci dump from the system >>>>> where it _doesn''t_ work. >>>>> >>>> >>>> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >>>> dom0. The filename of the attachment is root-dom0-lspci.txt. >>> >>> Right, that is showing >>> Kernel driver in use: pciback >>> for the Intel VGA device. >>> >>> But that is expected, you said you have it working on Ubuntu. >>> You now need to make sure you have the same lspci output on >>> Fedora dom0 before you start the domU. >>> >> I think you are confused. I only have *one* dom0, which is the Ubuntu >> 13.04 dom0. I don''t have any other dom0. >> >> What I am trying to do is to start Fedora 19 HVM domU in Ubuntu 13.04 >> dom0, but am unable to. >> >> Hope this clears everything. > > It does, thanks. I was under the impression you were dual booting dom0s > and one was letting you boot domU and the other wasn''t. Apologies. > > Gordan >Dear Gordan, Do you know how to solve the problem of Fedora 19 HVM domU not starting up in Ubuntu 13.04 dom0 with Intel IGD VGA passthrough? -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
On Thu, 18 Jul 2013 22:41:24 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 21:55, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 21:13:54 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 21:04, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 20:35, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen >>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen >>>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore >>>>>>>>>>>>>>>>>> Citizen Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>>>>> cannot start, Debian >>>>>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can >>>>>>>>>>>>>>>>>>> start. In Debian 7.1.0 >>>>>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD >>>>>>>>>>>>>>>>>>> Graphics 4600 is listed >>>>>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is >>>>>>>>>>>>>>>>>>> strange that no kernel >>>>>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller >>>>>>>>>>>>>>>>>>> (rev 06) (prog-if >>>>>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>>>>> HVM domU considered successful since the i915 >>>>>>>>>>>>>>>>>>> driver cannot be loaded? >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device >>>>>>>>>>>>>>>>>> (other than the xen-pciback >>>>>>>>>>>>>>>>>> driver), you cannot pass through that device. If you >>>>>>>>>>>>>>>>>> do lspci -ccc on F19 >>>>>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass >>>>>>>>>>>>>>>>>> it through. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for >>>>>>>>>>>>>>>>>> that device? This attempts >>>>>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist >>>>>>>>>>>>>>>>>> the driver for the >>>>>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run >>>>>>>>>>>>>>>>>> a GUI in dom0 on that >>>>>>>>>>>>>>>>>> device. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA >>>>>>>>>>>>>>>>> passthrough at all. Could >>>>>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer >>>>>>>>>>>>>>>>> to attached >>>>>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>>>>> Also what version of Xen are you running on each of >>>>>>>>>>>>>>>> the distros, and which >>>>>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I have checked "lsmod | grep i915" and the command >>>>>>>>>>>>>>> doesn''t return >>>>>>>>>>>>>>> anything, which means the kernel module i915 is not >>>>>>>>>>>>>>> loaded in dom0. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Check lspci -vvv,find the device in the output and look >>>>>>>>>>>>>> for the lines that say: >>>>>>>>>>>>>> Kernel driver in use: >>>>>>>>>>>>>> Kernel modules: >>>>>>>>>> >>>>>>>>>> [...] >>>>>>>>>> >>>>>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the >>>>>>>>>>>>> Kernel driver >>>>>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>>>>> >>>>>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>>>>> start it. >>>>>>>>>>>> >>>>>>>>>>>> Starting is not required to do this. Do it before starting >>>>>>>>>>>> the domU. >>>>>>>>>>> >>>>>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>>>>> >>>>>>>>>> On F19, don''t worry about starting the domU. In dom0, do >>>>>>>>>> lspci -vvv, >>>>>>>>>> find the Intel graphics device in the output and find what >>>>>>>>>> kernel >>>>>>>>>> driver / module are bound to it, if any. You can only pass >>>>>>>>>> through >>>>>>>>>> a PCI device that is connected to the xen pciback driver, >>>>>>>>>> and even >>>>>>>>>> then often only if no other driver had connected to the >>>>>>>>>> device first >>>>>>>>>> since that might leave it in an unknown state. >>>>>>>>>> >>>>>>>>> >>>>>>>>> But I can only start Fedora 19 HVM domU with-out vga >>>>>>>>> passthrough. I >>>>>>>>> want to be able to start Fedora 19 HVM domU with vga >>>>>>>>> passthrough. >>>>>>>> >>>>>>>> You are trying to get one step ahead of what I am talking >>>>>>>> about. >>>>>>>> Forget domU for the moment. Before you can even begin thinking >>>>>>>> about the domU you have to make sure the device is available >>>>>>>> for assigning in dom0. If you have a driver bound to the >>>>>>>> device >>>>>>>> in dom0 you cannot pass it through to domU. So forget domU >>>>>>>> until >>>>>>>> you have actually confirmed there is no driver bound to the >>>>>>>> device in dom0. >>>>>>>> >>>>>>>> What do the following two lines say for the device in lspci >>>>>>>> -vvv >>>>>>>> in _dom0_ on Fedora: >>>>>>>> Kernel driver in use: >>>>>>>> Kernel modules: >>>>>>>> >>>>>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. >>>>>>> The >>>>>>> filename of the attachment is dom0-lspci.txt. >>>>>> >>>>>> You need to do this as root, otherwise some of the output is >>>>>> missing. >>>>>> >>>>>> And the dump from the machine where you have domU working isn''t >>>>>> useful, you need to post the same lspci dump from the system >>>>>> where it _doesn''t_ work. >>>>>> >>>>> >>>>> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >>>>> dom0. The filename of the attachment is root-dom0-lspci.txt. >>>> >>>> Right, that is showing >>>> Kernel driver in use: pciback >>>> for the Intel VGA device. >>>> >>>> But that is expected, you said you have it working on Ubuntu. >>>> You now need to make sure you have the same lspci output on >>>> Fedora dom0 before you start the domU. >>>> >>> I think you are confused. I only have *one* dom0, which is the >>> Ubuntu >>> 13.04 dom0. I don''t have any other dom0. >>> >>> What I am trying to do is to start Fedora 19 HVM domU in Ubuntu >>> 13.04 >>> dom0, but am unable to. >>> >>> Hope this clears everything. >> >> It does, thanks. I was under the impression you were dual booting >> dom0s >> and one was letting you boot domU and the other wasn''t. Apologies. >> > > Do you know how to solve the problem of Fedora 19 HVM domU not > starting up in Ubuntu 13.04 dom0 with Intel IGD VGA passthrough?I never used Intel GPUs for this sort of thing. Did you try it with secondary passthrough (normal PCI device passthrough without gfx_passthru option set)?
Gordan Bobic
2013-Jul-18 14:44 UTC
Re: [Xen-devel] Cannot start Fedora 19 HVM domU with VGA passthru
On Thu, 18 Jul 2013 22:41:24 +0800, "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote:> On 18/07/2013 21:55, Gordan Bobic wrote: >> On Thu, 18 Jul 2013 21:13:54 +0800, "Singapore Citizen Mr. Teo En >> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>> On 18/07/2013 21:04, Gordan Bobic wrote: >>>> On Thu, 18 Jul 2013 20:57:55 +0800, "Singapore Citizen Mr. Teo En >>>> Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>> On 18/07/2013 20:35, Gordan Bobic wrote: >>>>>> On Thu, 18 Jul 2013 20:29:41 +0800, "Singapore Citizen Mr. Teo >>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>> wrote: >>>>>>> On 18/07/2013 20:03, Gordan Bobic wrote: >>>>>>>> On Thu, 18 Jul 2013 19:23:58 +0800, "Singapore Citizen Mr. Teo >>>>>>>> En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com> >>>>>>>> wrote: >>>>>>>>> On 18/07/2013 19:02, Gordan Bobic wrote: >>>>>>>>>> On Thu, 18 Jul 2013 18:55:55 +0800, "Singapore Citizen Mr. >>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>> On 18/07/2013 18:44, Gordan Bobic wrote: >>>>>>>>>>>> On Thu, 18 Jul 2013 18:40:51 +0800, "Singapore Citizen Mr. >>>>>>>>>>>> Teo En Ming (Zhang Enming)" >>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>> On 18/07/2013 18:29, Gordan Bobic wrote: >>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:20:08 +0800, "Singapore Citizen >>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>> On 18/07/2013 18:09, Gordan Bobic wrote: >>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 18:07:27 +0800, "Singapore Citizen >>>>>>>>>>>>>>>> Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>>> On 18/07/2013 16:46, Gordan Bobic wrote: >>>>>>>>>>>>>>>>>> On Thu, 18 Jul 2013 16:37:34 +0800, "Singapore >>>>>>>>>>>>>>>>>> Citizen Mr. Teo En Ming (Zhang Enming)" >>>>>>>>>>>>>>>>>> <singapore.mr.teo.en.ming@gmail.com> wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Although Fedora 19 HVM domU with VGA passthrough >>>>>>>>>>>>>>>>>>> cannot start, Debian >>>>>>>>>>>>>>>>>>> 7.1.0 amd64 HVM domU with VGA passthrough can >>>>>>>>>>>>>>>>>>> start. In Debian 7.1.0 >>>>>>>>>>>>>>>>>>> amd64 HVM domU with VGA passthrough, Intel HD >>>>>>>>>>>>>>>>>>> Graphics 4600 is listed >>>>>>>>>>>>>>>>>>> in lspci -vvv. Please refer to lspci.txt. It is >>>>>>>>>>>>>>>>>>> strange that no kernel >>>>>>>>>>>>>>>>>>> module is being loaded for Intel HD Graphics 4600. >>>>>>>>>>>>>>>>>>> There is no "Kernel >>>>>>>>>>>>>>>>>>> driver in use" statement after VGA compatible >>>>>>>>>>>>>>>>>>> controller: Intel >>>>>>>>>>>>>>>>>>> Corporation Haswell Integrated Graphics Controller >>>>>>>>>>>>>>>>>>> (rev 06) (prog-if >>>>>>>>>>>>>>>>>>> 00 [VGA controller]). >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> No kernel driver is seen in lsmod. Please refer to >>>>>>>>>>>>>>>>>>> lsmod.txt >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> When I tried to load the kernel module by executing >>>>>>>>>>>>>>>>>>> "modprobe i915", >>>>>>>>>>>>>>>>>>> it complains "no such device". >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> ERROR: could not insert ''i915'': No such device >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> So is my Intel HD Graphics 4600 VGA Passthrough to >>>>>>>>>>>>>>>>>>> Debian 7.1.0 amd64 >>>>>>>>>>>>>>>>>>> HVM domU considered successful since the i915 >>>>>>>>>>>>>>>>>>> driver cannot be loaded? >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Thank you very much. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> If you have a driver in dom0 claiming the device >>>>>>>>>>>>>>>>>> (other than the xen-pciback >>>>>>>>>>>>>>>>>> driver), you cannot pass through that device. If you >>>>>>>>>>>>>>>>>> do lspci -ccc on F19 >>>>>>>>>>>>>>>>>> and you see the driver in use for that device being >>>>>>>>>>>>>>>>>> something other than >>>>>>>>>>>>>>>>>> xen-pciback, that would explain why you can''t pass >>>>>>>>>>>>>>>>>> it through. >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Also, did you first do xl pci-assignable-add for >>>>>>>>>>>>>>>>>> that device? This attempts >>>>>>>>>>>>>>>>>> to detach the device from it''s current driver but >>>>>>>>>>>>>>>>>> doesn''t always work >>>>>>>>>>>>>>>>>> especially for GPUs. The only solution is blacklist >>>>>>>>>>>>>>>>>> the driver for the >>>>>>>>>>>>>>>>>> device in dom0. The downside is that you cannot run >>>>>>>>>>>>>>>>>> a GUI in dom0 on that >>>>>>>>>>>>>>>>>> device. >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> I cannot start Fedora 19 HVM domU with VGA >>>>>>>>>>>>>>>>> passthrough at all. Could >>>>>>>>>>>>>>>>> you advise me on the workaround? >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> As for the Intel HD Graphics (i915) driver, I have it >>>>>>>>>>>>>>>>> blacklisted in >>>>>>>>>>>>>>>>> /etc/modprobe.d/blacklist.conf already. Please refer >>>>>>>>>>>>>>>>> to attached >>>>>>>>>>>>>>>>> blacklist.conf. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Have you confirm that no other driver is bound to the >>>>>>>>>>>>>>>> device in lspci -vvv? >>>>>>>>>>>>>>>> Also what version of Xen are you running on each of >>>>>>>>>>>>>>>> the distros, and which >>>>>>>>>>>>>>>> dom0 kernel? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> I have checked "lsmod | grep i915" and the command >>>>>>>>>>>>>>> doesn''t return >>>>>>>>>>>>>>> anything, which means the kernel module i915 is not >>>>>>>>>>>>>>> loaded in dom0. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Check lspci -vvv,find the device in the output and look >>>>>>>>>>>>>> for the lines that say: >>>>>>>>>>>>>> Kernel driver in use: >>>>>>>>>>>>>> Kernel modules: >>>>>>>>>> >>>>>>>>>> [...] >>>>>>>>>> >>>>>>>>>>>>> I have checked lspci -vvv in Ubuntu 13.04 dom0 and the >>>>>>>>>>>>> Kernel driver >>>>>>>>>>>>> in use is pciback for Intel HD Graphics 4600 IGD. >>>>>>>>>>>>> >>>>>>>>>>>>> As for Fedora 19 HVM domU, I don''t know because I cannot >>>>>>>>>>>>> start it. >>>>>>>>>>>> >>>>>>>>>>>> Starting is not required to do this. Do it before starting >>>>>>>>>>>> the domU. >>>>>>>>>>> >>>>>>>>>>> Sorry, I don''t understand what you''re trying to say. >>>>>>>>>> >>>>>>>>>> On F19, don''t worry about starting the domU. In dom0, do >>>>>>>>>> lspci -vvv, >>>>>>>>>> find the Intel graphics device in the output and find what >>>>>>>>>> kernel >>>>>>>>>> driver / module are bound to it, if any. You can only pass >>>>>>>>>> through >>>>>>>>>> a PCI device that is connected to the xen pciback driver, >>>>>>>>>> and even >>>>>>>>>> then often only if no other driver had connected to the >>>>>>>>>> device first >>>>>>>>>> since that might leave it in an unknown state. >>>>>>>>>> >>>>>>>>> >>>>>>>>> But I can only start Fedora 19 HVM domU with-out vga >>>>>>>>> passthrough. I >>>>>>>>> want to be able to start Fedora 19 HVM domU with vga >>>>>>>>> passthrough. >>>>>>>> >>>>>>>> You are trying to get one step ahead of what I am talking >>>>>>>> about. >>>>>>>> Forget domU for the moment. Before you can even begin thinking >>>>>>>> about the domU you have to make sure the device is available >>>>>>>> for assigning in dom0. If you have a driver bound to the >>>>>>>> device >>>>>>>> in dom0 you cannot pass it through to domU. So forget domU >>>>>>>> until >>>>>>>> you have actually confirmed there is no driver bound to the >>>>>>>> device in dom0. >>>>>>>> >>>>>>>> What do the following two lines say for the device in lspci >>>>>>>> -vvv >>>>>>>> in _dom0_ on Fedora: >>>>>>>> Kernel driver in use: >>>>>>>> Kernel modules: >>>>>>>> >>>>>>> I have attached the output of lspci -vvv in Ubuntu 13.04 dom0. >>>>>>> The >>>>>>> filename of the attachment is dom0-lspci.txt. >>>>>> >>>>>> You need to do this as root, otherwise some of the output is >>>>>> missing. >>>>>> >>>>>> And the dump from the machine where you have domU working isn''t >>>>>> useful, you need to post the same lspci dump from the system >>>>>> where it _doesn''t_ work. >>>>>> >>>>> >>>>> I have attached the output of lspci -vvv as root in Ubuntu 13.04 >>>>> dom0. The filename of the attachment is root-dom0-lspci.txt. >>>> >>>> Right, that is showing >>>> Kernel driver in use: pciback >>>> for the Intel VGA device. >>>> >>>> But that is expected, you said you have it working on Ubuntu. >>>> You now need to make sure you have the same lspci output on >>>> Fedora dom0 before you start the domU. >>>> >>> I think you are confused. I only have *one* dom0, which is the >>> Ubuntu >>> 13.04 dom0. I don''t have any other dom0. >>> >>> What I am trying to do is to start Fedora 19 HVM domU in Ubuntu >>> 13.04 >>> dom0, but am unable to. >>> >>> Hope this clears everything. >> >> It does, thanks. I was under the impression you were dual booting >> dom0s >> and one was letting you boot domU and the other wasn''t. Apologies. >> > > Do you know how to solve the problem of Fedora 19 HVM domU not > starting up in Ubuntu 13.04 dom0 with Intel IGD VGA passthrough?I never used Intel GPUs for this sort of thing. Did you try it with secondary passthrough (normal PCI device passthrough without gfx_passthru option set)?