You are not logged in.

#1 2014-07-08 18:05:22

tritron4
Member
Registered: 2012-04-14
Posts: 153

xen vga passthrough

There is excellent post for kvm and I had been using xen 4.5 for long time and I had passed R9 270 to guest running windows 8.1 . I can reboot and shutdown my guest without having to unplug vga cards first. The first step is to compile xen there are xen https://aur.archlinux.org/packages/xen/stable aur and xen-githttps://aur.archlinux.org/packages/xen-git/ aur package. Once the xen is installed and enabled your favorite boot loader manager needs to configured to boot into xen. Using lspci we can obtain tat we want to assign to our guest.I create pciback.conf in /etc//etc/modprobe.d/

options xen-pciback hide="(01:00.0)(01:00.1)(02:00.0)(02:00.1)"

this hides couple of ati vga cards and allows me to assign them to win 8.1/
I buy cheap usb 3.0 card and pass them to guest
There is my config file

builder = 'hvm'
#device_model_version= 'qemu-xen-traditional'
device_model_version= 'qemu-xen'
bios = 'seabios'
viridian = 1
memory = 8192
localtime = 1
vcpus=4

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
vnc=1
sdl=0
#vga='none'
stdvga = 1
videoram = 32
shadow_memory = 32
name = "win8"

acpi = 1
apic = 1
pae = 1
hpet = 1
hap = 1
tsc_mode='native_paravirt'
xen_extended_power_mgmt=1
xen_platform_pci=1
pci_power_mgmt=1
pci_msitranslate= 1
pci_power_mgmt = 1
acpi_s3 = 1
acpi_s4 = 1

vif = ['type=ioemu,mac=00:16:3e:bc:6e:25,bridge=xenbr0,model=e1000,script=vif-bridge']

disk = [ 'format=raw, vdev=xvda, access=rw, target=/dev/volxen/win8',
         'format=raw, vdev=xvdc, access=ro, devtype=cdrom, target=/home/xen/iso/en_windows_8_1.iso']
#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="cd"
serial          = 'pty'


on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
monitor = 1
usb = 1
usbtablet = 1
usbdevice=['tablet']
seize=1

#gfx_passthru=1
pci=['01:00.0','01:00.1','02:00.0','02:00.1','04:00.0','00:14.2' ]

spice=1
spicehost='0.0.0.0'
spicedisable_ticketing=1

Last edited by tritron4 (2014-07-08 18:05:58)

Offline

Board footer

Powered by FluxBB