Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine
New Posts  All Forums:Forum Nav:

{Guide} Create a Gaming Virtual Machine - Page 30

post #291 of 825
Hm. Looks like I spoke a little too soon.
Rebooted, and tried to dettach my card again so I could give it to the Vm.
When i dettach 1:00.0 it's fine, but on 1:00.1 it hangs.

Code:
[nyxcharon@dom0 ~]$ sudo xm pci-list-assignable-devices 
[sudo] password for nyxcharon: 
[nyxcharon@dom0 ~]$ sudo virsh nodedev-dettach pci_0000_01_00_0
Device pci_0000_01_00_0 detached

[nyxcharon@dom0 ~]$ sudo virsh nodedev-dettach pci_0000_01_00_1


Code:
[nyxcharon@dom0 ~]$ sudo xm dmesg
[sudo] password for nyxcharon: 
 __  __            _  _    _   _____   ____    __      _ _____ 
 \ \/ /___ _ __   | || |  / | |___ /  | ___|  / _| ___/ |___  |
  \  // _ \ '_ \  | || |_ | |   |_ \ _|___ \ | |_ / __| |  / / 
  /  \  __/ | | | |__   _|| |_ ___) |__|__) ||  _| (__| | / /  
 /_/\_\___|_| |_|    |_|(_)_(_)____/  |____(_)_|  \___|_|/_/   
                                                               
(XEN) Xen version 4.1.3 (mockbuild@[unknown]) (gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC) ) Sun Oct 28 23:08:22 UTC 2012
(XEN) Latest ChangeSet: unavailable
(XEN) Bootloader: GRUB 2.00~beta4
(XEN) Command line: placeholder iommu=1 dom0_mem=1138M xen-pciback.hide=(01:00.0) (01:00.1)
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 3 MBR signatures
(XEN)  Found 3 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009d800 (usable)
(XEN)  000000000009d800 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 0000000020000000 (usable)
(XEN)  0000000020000000 - 0000000020200000 (reserved)
(XEN)  0000000020200000 - 0000000040004000 (usable)
(XEN)  0000000040004000 - 0000000040005000 (reserved)
(XEN)  0000000040005000 - 00000000ad8c9000 (usable)
(XEN)  00000000ad8c9000 - 00000000ade41000 (reserved)
(XEN)  00000000ade41000 - 00000000ae0c1000 (ACPI NVS)
(XEN)  00000000ae0c1000 - 00000000ae0c6000 (ACPI data)
(XEN)  00000000ae0c6000 - 00000000ae109000 (ACPI NVS)
(XEN)  00000000ae109000 - 00000000aeb99000 (usable)
(XEN)  00000000aeb99000 - 00000000aeff2000 (reserved)
(XEN)  00000000aeff2000 - 00000000af000000 (usable)
(XEN)  00000000af800000 - 00000000bfa00000 (reserved)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fed00000 - 00000000fed04000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ff000000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 000000023f600000 (usable)
(XEN) ACPI: RSDP 000F0450, 0024 (r2 ALASKA)
(XEN) ACPI: XSDT AE0A8080, 0084 (r1 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI: FACP AE0B1A50, 00F4 (r4 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI: DSDT AE0A81A0, 98AA (r2 ALASKA    A M I       14 INTL 20051117)
(XEN) ACPI: FACS AE0BFF80, 0040
(XEN) ACPI: APIC AE0B1B48, 0072 (r3 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI: ASF! AE0B1BC0, 00A5 (r32 INTEL       HCG        1 TFSM    F4240)
(XEN) ACPI: MCFG AE0B1C68, 003C (r1 ALASKA    A M I  1072009 MSFT       97)
(XEN) ACPI: SSDT AE0B1CA8, 04A6 (r1 Intel_ AoacTabl     1000 INTL 20091112)
(XEN) ACPI: AAFT AE0B2150, 00C2 (r1 ALASKA OEMAAFT   1072009 MSFT       97)
(XEN) ACPI: HPET AE0B2218, 0038 (r1 ALASKA    A M I  1072009 AMI.        5)
(XEN) ACPI: SSDT AE0B2250, 036D (r1 SataRe SataTabl     1000 INTL 20091112)
(XEN) ACPI: SSDT AE0B25C0, 09AA (r1  PmRef  Cpu0Ist     3000 INTL 20051117)
(XEN) ACPI: SSDT AE0B2F70, 0A92 (r1  PmRef    CpuPm     3000 INTL 20051117)
(XEN) ACPI: DMAR AE0B3A08, 00B8 (r1 INTEL      SNB         1 INTL        1)
(XEN) ACPI: BGRT AE0B3AC0, 003C (r0 ALASKA    A M I  1072009 AMI     10013)
(XEN) System RAM: 7895MB (8084492kB)
(XEN) Domain heap initialised
(XEN) ACPI: 32/64X FACS address mismatch in FADT - ae0bff80/0000000000000000, using 32
(XEN) Processor #0 7:10 APIC version 21
(XEN) Processor #2 7:10 APIC version 21
(XEN) Processor #4 7:10 APIC version 21
(XEN) Processor #6 7:10 APIC version 21
(XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) Table is not found!
(XEN) Switched to APIC driver x2apic_cluster.
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 3400.094 MHz processor.
(XEN) Initing memory sharing.
(XEN) Intel VT-d supported page sizes: 4kB.
(XEN) Intel VT-d supported page sizes: 4kB.
(XEN) Intel VT-d Snoop Control not enabled.
(XEN) Intel VT-d Dom0 DMA Passthrough not enabled.
(XEN) Intel VT-d Queued Invalidation enabled.
(XEN) Intel VT-d Interrupt Remapping enabled.
(XEN) Intel VT-d Shared EPT tables not enabled.
(XEN) I/O virtualisation enabled
(XEN)  - Dom0 mode: Relaxed
(XEN) Enabled directed EOI with ioapic_ack_old on!
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using old ACK method
(XEN) Platform timer appears to have unexpectedly wrapped 1 times.
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) VMX: Supported advanced features:
(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Extended Page Tables (EPT)
(XEN)  - Virtual-Processor Identifiers (VPID)
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap
(XEN)  - Unrestricted Guest
(XEN) HVM: ASIDs enabled.
(XEN) HVM: VMX enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected
(XEN) HVM: HAP page sizes: 4kB, 2MB
(XEN) Brought up 4 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x21ac000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000230000000->0000000234000000 (263580 pages to be allocated)
(XEN)  Init. ramdisk: 000000023c99c000->000000023f5ff800
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff821ac000
(XEN)  Init. ramdisk: ffffffff821ac000->ffffffff84e0f800
(XEN)  Phys-Mach map: ffffffff84e10000->ffffffff85049000
(XEN)  Start info:    ffffffff85049000->ffffffff850494b4
(XEN)  Page tables:   ffffffff8504a000->ffffffff85077000
(XEN)  Boot stack:    ffffffff85077000->ffffffff85078000
(XEN)  TOTAL:         ffffffff80000000->ffffffff85400000
(XEN)  ENTRY ADDRESS: ffffffff81aed200
(XEN) Dom0 has maximum 4 VCPUs
(XEN) Scrubbing Free RAM: ..................................................................done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 220kB init memory.
(XEN) physdev.c:171: dom0: wrong map_pirq type 3
[nyxcharon@dom0 ~]$ 

Tried adding to the grub entry to no avail.:
Code:
[nyxcharon@dom0 ~]$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.dm=0 rd.lvm.lv=vg_dom0/dom0  KEYTABLE=us rd.luks=0 SYSFONT=True LANG=en_US.UTF-8 rhgb quiet"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"
GRUB_CMDLINE_XEN="iommu=1 dom0_mem=1138M xen-pciback.hide=(01:00.0) (01:00.1)"

Suggestions? Not sure why the audio portion of my card is refusing to work with me now...
The only thing that changed is I switched the DE to xfce, but I can't see how that matters...
Edited by nyxcharon - 11/12/12 at 6:01am
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #292 of 825
Quote:
Originally Posted by nyxcharon View Post

Hm. Looks like I spoke a little too soon.
Rebooted, and tried to dettach my card again so I could give it to the Vm.
When i dettach 1:00.0 it's fine, but on 1:00.1 it hangs.
Code:
[nyxcharon@dom0 ~]$ sudo xm pci-list-assignable-devices 
[sudo] password for nyxcharon: 
[nyxcharon@dom0 ~]$ sudo virsh nodedev-dettach pci_0000_01_00_0
Device pci_0000_01_00_0 detached
[nyxcharon@dom0 ~]$ sudo virsh nodedev-dettach pci_0000_01_00_1



Tried adding to the grub entry to no avail.:
Code:
[nyxcharon@dom0 ~]$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md=0 rd.dm=0 rd.lvm.lv=vg_dom0/dom0  KEYTABLE=us rd.luks=0 SYSFONT=True LANG=en_US.UTF-8 rhgb quiet"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"
GRUB_CMDLINE_XEN="iommu=1 dom0_mem=1138M xen-pciback.hide=(01:00.0) (01:00.1)"
Suggestions? Not sure why the audio portion of my card is refusing to work with me now...
The only thing that changed is I switched the DE to xfce, but I can't see how that matters...

For the changes in /etc/default/grub to become effective, you need to run update-grub in Ubuntu/Mint, dizzy4 uses this for Fedora:
Code:
grub2-mkconfig > /boot/grub2/grub.cfg

EDIT: Actually, you SHOULD be able to detach the pci devices 01.00.0 and 01.00.1 within grub, since Fedora should have pciback compiled into the kernel. See here http://wiki.xen.org/wiki/Xen_PCI_Passthrough#Static_assignment_for_built-in_xen-pciback for instructions.

If you can't detach the graphics card (audio) with virsh or via grub, you may want to try the pciback script here:
Code:
#!/bin/sh
    #
    ### BEGIN INIT INFO
    # Provides: pciback
    # Required-Start: $local_fs
    # Required-Stop: $local_fs
    # Should-Start:
    # Should-Stop:
    # X-Start-Before: xend
    # X-Stop-After:
    # Default-Start: 2 3 4 5
    # Default-Stop:
    ### END INIT INFO

    . /lib/lsb/init-functions
    scriptname=/etc/init.d/pciback
    configfile=/etc/xen/pciback.conf

    unbind() {
    # Unbind a PCI function from its driver as necessary
    [ ! -e /sys/bus/pci/devices/$1/driver/unbind ] || \
    echo -n $1 > /sys/bus/pci/devices/$1/driver/unbind
    }

    bind() {
    # Add a new slot to the PCI Backend’s list
    echo -n $1 > /sys/bus/pci/drivers/pciback/new_slot
    # Now that the backend is watching for the slot, bind to it
    echo -n $1 > /sys/bus/pci/drivers/pciback/bind
    }

    case $1 in

    start)
    cat $configfile | while read line;do
    echo $line | grep ^# >/dev/null 2>&1 && continue
    unbind $line
    bind $line
    done
    ;;

    stop|status|restart|force-reload)
    # As we don’t know which driver was bound before, there is not much we can do here
    ;;

    *)
    echo “Usage: $scriptname start” >&2
    exit 3
    ;;

    esac
save it in /etc/init.d and make it executable. Run
Code:
update-rc.d pciback defaults 21 19
for Ubuntu/Mint or "chkconfig" (check for exact syntax) for Fedora to edit the Sys V runlevel.

Then create the config file for the script:
Code:
# This file contains the list of pci(e) devices the pciback driver should bind
    # to at system startup.
    # Please provide the devices in long BDF notation.
    # Example:
    # 0000:08:00.0
    # NO EMPTY LINES!
    #
    0000:01:00.0
    0000:01:00.1
and save it as pciback.conf under /etc/xen/.

Finally edit the /etc/modules file and add on a separate line:
Code:
xen-pciback passthrough=1

After you reboot the PC the graphics card should be detached and available for the Windows domU. Check with xm pci-list-assignable-devices.

The script and /etc/modules entry make it permanent, that is each time you boot your graphics card 01.00.0 / 01.00.1 will be available for Windows (or another domU).

I don't know if and how the procedure described by dizzy4 using virt-manager detaches the PCI devices after the next reboot?

Good luck! I'm sure you will eventually iron out these things and get a rock-solid Windows virtual gaming (or whatever) machine, with all the goodies of Linux and Xen.
Edited by powerhouse - 11/12/12 at 8:38am
post #293 of 825
Actually, you should be able to detach the pci devices 01.00.0 and 01.00.1 within grub, since Fedora should have pciback compiled into the kernel.

See here http://wiki.xen.org/wiki/Xen_PCI_Passthrough#Static_assignment_for_built-in_xen-pciback for instructions.

Please try this first!
post #294 of 825
So i tried both to no avail.

I attempted to modprobe pciback, can't find it.
Code:
[nyxcharon@dom0 ~]$ sudo modprobe pciback
FATAL: Module pciback not found.

After trying that script, I noticed in the startup it failed, told me to check this:
Code:
[nyxcharon@dom0 ~]$ systemctl status pciback.service
pciback.service
          Loaded: loaded (/etc/rc.d/init.d/pciback)
          Active: failed (Result: exit-code) since Tue, 13 Nov 2012 07:17:58 -0500
         Process: 801 ExecStart=/etc/rc.d/init.d/pciback start (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/pciback.service

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Running it myself, I get this:
Code:
[nyxcharon@dom0 ~]$ sudo /etc/rc.d/init.d/pciback start
[sudo] password for nyxcharon: 
/etc/rc.d/init.d/pciback: line 15: /lib/lsb/init-functions: No such file or directory

Being curious, I just commented it out to see what happened.
I get this:
Code:
[nyxcharon@dom0 ~]$ sudo /etc/rc.d/init.d/pciback start
/etc/rc.d/init.d/pciback: line 27: /sys/bus/pci/drivers/pciback/new_slot: No such file or directory
/etc/rc.d/init.d/pciback: line 29: /sys/bus/pci/drivers/pciback/bind: No such file or directory

At which point it just hangs. So, I'm having a couple issues now. tongue.gif
I still can't figure out why It just stopped working for no reason.

Not sure what is the best approach to take at this point.

Edit: Also noticed this:
Code:
[nyxcharon@dom0 ~]$ systemctl status systemd-modules-load.service 
systemd-modules-load.service - Load Kernel Modules
          Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
          Active: failed (Result: exit-code) since Tue, 13 Nov 2012 07:33:16 -0500
            Docs: man:systemd-modules-load.service(8)
                  man:modules-load.d(5)
         Process: 404 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/systemd-modules-load.service

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[nyxcharon@dom0 ~]$ sudo /usr/lib/systemd/systemd-modules-load 
[sudo] password for nyxcharon: 
Failed to find module 'xen-pciback passthrough=1'

I have a file named pciback.conf in /etc/modules-load.d/

One final thing I found weird.
Code:
[nyxcharon@dom0 ~]$ sudo xm pci-attach win7a 01:00.0
Error: pci: improper device assignment specified: pci: 0000:01:00.1 must be co-assigned to the same guest with 0000:01:00.0, but it is not owned by pciback or pci-stub.
Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func> [virtual slot]

Insert a new pass-through pci device.
[nyxcharon@dom0 ~]$ sudo xm pci-attach win7a 01:00.1
Error: pci: PCI Backend and pci-stub don't own device 0000:01:00.1
Usage: xm pci-attach [-o|--options=<opt>] <Domain> <domain:bus:slot.func> [virtual slot]

Insert a new pass-through pci device.
Am I missing something here?
Edited by nyxcharon - 11/12/12 at 9:41am
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #295 of 825
Woah...this thread is cool.
Desktop
(17 items)
 
HTPC/LAN
(17 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3770K @ 4GHz ASUS P8Z77-V-LK EVGA GeForce GTX770 w/EVGA ACX Cooler EVGA GeForce GTX480 with H60 cooler 
RAMHard DriveOptical DriveCooling
Crucial DDR3 1600 OCZ Vertex Plus 120GB LG DVD+/-RW Noctua D14 
OSMonitorMonitorKeyboard
Windows 8 Q-Nix 27" 1440p Matte Gateway 22" Logitech G15 
PowerCaseMouseMouse Pad
Corsair HX850 NZXT Switch 810 White Zowie EC Evo SK Gaming logo mousepad 
CPUMotherboardGraphicsGraphics
Intel i5 4670K ASUS Z87-A LGA MSI 280x Gaming 3D Saphire 7750 
RAMHard DriveHard DriveHard Drive
G.SKILL Ripjaws X Series Kingston 120gb SSD Western Digital Raptor Western Digital Blue 
Hard DriveHard DriveHard DriveOptical Drive
Western Digital Blue Western Digital Blue Western Digital Blue LG Blu-Ray 
CoolingOSMonitorKeyboard
Corsair A70 Windows 8 40" Dynex TV Silverstone 600W 
Case
NZXT Source 210 
  hide details  
Reply
Desktop
(17 items)
 
HTPC/LAN
(17 items)
 
 
CPUMotherboardGraphicsGraphics
Intel i7 3770K @ 4GHz ASUS P8Z77-V-LK EVGA GeForce GTX770 w/EVGA ACX Cooler EVGA GeForce GTX480 with H60 cooler 
RAMHard DriveOptical DriveCooling
Crucial DDR3 1600 OCZ Vertex Plus 120GB LG DVD+/-RW Noctua D14 
OSMonitorMonitorKeyboard
Windows 8 Q-Nix 27" 1440p Matte Gateway 22" Logitech G15 
PowerCaseMouseMouse Pad
Corsair HX850 NZXT Switch 810 White Zowie EC Evo SK Gaming logo mousepad 
CPUMotherboardGraphicsGraphics
Intel i5 4670K ASUS Z87-A LGA MSI 280x Gaming 3D Saphire 7750 
RAMHard DriveHard DriveHard Drive
G.SKILL Ripjaws X Series Kingston 120gb SSD Western Digital Raptor Western Digital Blue 
Hard DriveHard DriveHard DriveOptical Drive
Western Digital Blue Western Digital Blue Western Digital Blue LG Blu-Ray 
CoolingOSMonitorKeyboard
Corsair A70 Windows 8 40" Dynex TV Silverstone 600W 
Case
NZXT Source 210 
  hide details  
Reply
post #296 of 825
About "sudo modprobe pciback" - module not found:

I edited my reply above (and posted another one). If I'm not mistaken, Fedora has pciback in the kernel, so you don't need to load the module. Just in case, the command to load the pciback module is "sudo modprobe xen-pciback". To check if it's loaded as a module, run "lsmod | grep pciback" , the output should be "xen_pciback".

About: $ systemctl status pciback.service
pciback.service
Loaded: loaded (/etc/rc.d/init.d/pciback)
Active: failed (Result: exit-code) since Tue, 13 Nov 2012 07:17:58 -0500
Process: 801 ExecStart=/etc/rc.d/init.d/pciback start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/pciback.service

and

sudo /etc/rc.d/init.d/pciback start
[sudo] password for nyxcharon:
/etc/rc.d/init.d/pciback: line 15: /lib/lsb/init-functions: No such file or directory


My mistake. I totally forgot that Fedora might use different paths etc., so the script must be adapted to Fedora. Unfortunately I'm not familiar with Fedora, sorry.

In addition, if Fedora uses pciback compiled into the kernel there is no need for editing the /etc/modules file to add xen-pciback... I believe this error:

Failed to find module 'xen-pciback passthrough=1'

points to it.

Error: pci: improper device assignment specified: pci: 0000:01:00.1 must be co-assigned to the same guest with 0000:01:00.0, but it is not owned by pciback or pci-stub.

This means it (0000:01:00.1 - the audio part) hasn't been detached. The Xen wiki explains it much better than I can: http://wiki.xen.org/wiki/Xen_PCI_Passthrough#Preparing_a_device_for_passthrough

Yes, it is confusing sometimes, and I apologize for having caused more confusion. Here are some links that might be useful:

https://fedoraproject.org/wiki/How_to_debug_Virtualization_problems#PCI_device_assignmen
http://tavi-tech.blogspot.co.il/2012/03/vga-passthrough-with-kvm-on-fedora-16.html - see 7.1. for some hints, though this one is for KVM.
http://xen.1045712.n5.nabble.com/PCI-Passthrough-td5711612.html - talks about problems with newest Fedora release / kernel and your graphics card, but not sure it's very helpful.
http://wiki.xen.org/wiki/Comprehensive_Xen_Debian_Wheezy_PCI_Passthrough_Tutorial - yeah, it's Debian, but very detailed.

By the way, did you blacklist the ATI driver? It might be the ATI graphics card driver under Linux that gets in the way with detaching your card.
post #297 of 825
What does
Code:
lspci -k

give you? Any driver assigned to the graphics card you try to pass through?
post #298 of 825
Quote:
Originally Posted by powerhouse View Post

What does
Code:
lspci -k
give you? Any driver assigned to the graphics card you try to pass through?
Quote:
[nyxcharon@dom0 ~]$ sudo lspci -k
00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
Subsystem: ASRock Incorporation Device 0150
Kernel driver in use: agpgart-intel
00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)
Subsystem: ASRock Incorporation Device 0152
Kernel driver in use: i915
00:14.0 USB Controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04)
Subsystem: ASRock Incorporation Device 1e31
Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)
Subsystem: ASRock Incorporation Device 1e3a
00:1a.0 USB Controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)
Subsystem: ASRock Incorporation Device 1e2d
Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04)
Subsystem: ASRock Incorporation Device 7892
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4)
Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1c.5 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 6 (rev c4)
Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 7 (rev c4)
Kernel driver in use: pcieport
00:1d.0 USB Controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)
Subsystem: ASRock Incorporation Device 1e26
Kernel driver in use: ehci_hcd
00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)
Subsystem: ASRock Incorporation Device 1e44
00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA AHCI Controller (rev 04)
Subsystem: ASRock Incorporation Device 1e02
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04)
Subsystem: ASRock Incorporation Device 1e22
01:00.0 VGA compatible controller: ATI Technologies Inc Device 6819
Subsystem: ASUSTeK Computer Inc. Device 042c
Kernel driver in use: pci-stub
01:00.1 Audio device: ATI Technologies Inc Device aab0
Subsystem: ASUSTeK Computer Inc. Device aab0

02:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400 GS] (rev a1)
Subsystem: Jaton Corp Device 0422
Kernel driver in use: nouveau
03:00.0 PCI bridge: ASMedia Technology Inc. Device 1080 (rev 03)
04:01.0 RAID bus controller: VIA Technologies, Inc. VT6421 IDE RAID Controller (rev 50)
Subsystem: VIA Technologies, Inc. VT6421 IDE RAID Controller
Kernel driver in use: sata_via
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: ASRock Incorporation Motherboard (one of many)
Kernel driver in use: r8169
06:00.0 Multimedia video controller: Conexant Systems, Inc. CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb (rev 04)
Subsystem: Hauppauge computer works Inc. Device 2259
Kernel driver in use: cx23885

What's the next step boss? tongue.gif
Thanks for all the help so far. thumb.gif


EDIT:
So, found a "workaround"
Boot into gnome3, dettach the card (both 01:00.0 and 01:00.1)
Log out, log into xfce. Dettach the card again. Re-assgn to the VM.
Boot VM

No idea of why this works. I thought it might have something to do with gnome services, so I checked that startup box for them in Xfce, but that didn't help at all. But hey, if it works it works tongue.gif

Sidenote: Is it possible to passthrough my motherboard audio? If not, i'll just go the cheap soundcard route as mentioned before.
Nevermind. Passed through my audio from my motherboard with no problems, just had to do it from gnome3. tongue.gif

For those curious, it's
00:1B:0 Panther Point High Definition Audio Controller
Looks like I made a good choice of motherboard.
Edited by nyxcharon - 11/12/12 at 6:39pm
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
post #299 of 825
Quote:
Originally Posted by nyxcharon View Post

What's the next step boss? tongue.gif
Thanks for all the help so far. thumb.gif
EDIT:
So, found a "workaround"
Boot into gnome3, dettach the card (both 01:00.0 and 01:00.1)
Log out, log into xfce. Dettach the card again. Re-assgn to the VM.
Boot VM
No idea of why this works. I thought it might have something to do with gnome services, so I checked that startup box for them in Xfce, but that didn't help at all. But hey, if it works it works tongue.gif
Sidenote: Is it possible to passthrough my motherboard audio? If not, i'll just go the cheap soundcard route as mentioned before.
Nevermind. Passed through my audio from my motherboard with no problems, just had to do it from gnome3. tongue.gif
For those curious, it's
00:1B:0 Panther Point High Definition Audio Controller
Looks like I made a good choice of motherboard.

Wow, I love the creativity you are showing here! Seriously, I'd never tried booting into gnome3, detach graphic card, logout/login to xfce etc.

Your lspci -k shows that somethings not working with assigning 01.00.1 (audio) to pci-stub. Can you check that there is no mistake in the command that detaches 01:00.1 ?

For reference, here is my lspci -k output:
Code:
02:00.0 VGA compatible controller: NVIDIA Corporation GF106GL [Quadro 2000] (rev a1)
        Subsystem: NVIDIA Corporation Device 084a
        Kernel driver in use: pciback
        Kernel modules: nouveau, nvidiafb
02:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
        Subsystem: NVIDIA Corporation Device 084a
        Kernel driver in use: pciback
        Kernel modules: snd-hda-intel
My graphics card for passthrough to Windows is 02:00.0/1.
As you can see, I use pciback whereas you use pci-stub.

Have you blacklisted your ATI driver under Linux dom0?
Edited by powerhouse - 11/13/12 at 1:48am
post #300 of 825
Quote:
Originally Posted by powerhouse View Post

Wow, I love the creativity you are showing here! Seriously, I'd never tried booting into gnome3, detach graphic card, logout/login to xfce etc.
Your lspci -k shows that somethings not working with assigning 01.00.1 (audio) to pci-stub. Can you check that there is no mistake in the command that detaches 01:00.1 ?
For reference, here is my lspci -k output:
Code:
02:00.0 VGA compatible controller: NVIDIA Corporation GF106GL [Quadro 2000] (rev a1)
        Subsystem: NVIDIA Corporation Device 084a
        Kernel driver in use: pciback
        Kernel modules: nouveau, nvidiafb
02:00.1 Audio device: NVIDIA Corporation GF106 High Definition Audio Controller (rev a1)
        Subsystem: NVIDIA Corporation Device 084a
        Kernel driver in use: pciback
        Kernel modules: snd-hda-intel
My graphics card for passthrough to Windows is 02:00.0/1.
As you can see, I use pciback whereas you use pci-stub.
Have you blacklisted your ATI driver under Linux dom0?

I'm using the same command to dettach both, minus one having .0 and the other .1.
I'll try blacklisting the generic ati driver for fedora and see where that gets me.

Sidenote: So i can dettach my motherboard audio and pass it through to the vm. When I'm done with the vm, how can I re-attach it to my host again so I have sound?
I tried sudo xm pci-attach Domain-0 00:1b.0
The command attached it with no complaints, but i still have no sound

Tip: If you have some very bad mouse lag in your VM, I suggest chaging usb-device from mouse to tablet in your xen config. Worked wonders for me.
Edited by nyxcharon - 11/13/12 at 9:45am
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
Mini Build
(9 items)
 
   
CPUMotherboardGraphicsRAM
intel i7 4790k Asrock z97-e  Sapphire R9 290X G Skills 
Hard DriveCoolingOSOS
Samsung EVO  EK Water Blocks Windows 7 Debian  
Case
Bitfenix Mini Colossus  
CPUMotherboardGraphicsRAM
Intel i5-480M OEM Acer Nvidia GeForce GT 540M 4 GB DDR3 
Hard DriveOptical DriveOS
500 GB HDD DVD Drive Crunchbang Linux, Windows 7, BlackBuntu (triple... 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Operating Systems
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine