xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Xen PCI/VGA passthrough failing on Ubuntu 12.04 (64-bit)
@ 2012-07-21  0:26 CalcProgrammer1
  2012-07-31 23:11 ` Konrad Rzeszutek Wilk
  2012-11-27 17:32 ` eieiguy
  0 siblings, 2 replies; 3+ messages in thread
From: CalcProgrammer1 @ 2012-07-21  0:26 UTC (permalink / raw)
  To: xen-devel

I've been trying to set up a VGA-passthrough on my Ubuntu 12.04 box to run
Windows (for gaming) while leaving my RAID-5 array available (managed by
Linux).  First, here are the machine specs:

CPU:  AMD A8-3870K 3.4GHz Quad-Core APU
GPU:  APU-integrated AMD Radeon 6550 (shared memory)
Mobo:  ASUS F1A75-V EVO with AMD-virtualization enabled in UEFI-BIOS
RAM:  8GB DDR3 1866 G-Skill Sniper (2x4GB)

OS:  Ubuntu 12.04 64-bit (Desktop Edition) with Xen packages installed (no
custom kernel or modules, everything from repos).  I'm running GNOME 3
fallback with the open-source Radeon driver, but want to write a script that
shuts down X, disables the radeon driver, and boots the VM.

I've been messing around with Xen and have the hvm working (boots Win7 ISO
with VNC interface fine).  However, when I try to attach a VGA device (or
any PCI device, as I just retried with my sound card) I get this:

root@Adam-Server:~# xl create /etc/xen/xenwin.cfg
Parsing config file /etc/xen/xenwin.cfg
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017c510
  TOTAL:         0000000000000000->00000000ff800000
  ENTRY ADDRESS: 00000000001015a0
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000005fb
  1GB PAGES: 0x0000000000000001
libxl: error: libxl_pci.c:712:do_pci_add xc_assign_device failed
Daemon running with PID 11389

Leading up to this error, I have done the following to put the device into
what is supposedly an assignable state:

# stop lightdm
# echo 0000:00:01.0 > /sys/bus/pci/drivers/radeon/unbind
# modprobe xen-pciback
# echo 0000:00:01.0 > /sys/bus/pci/drivers/pciback/new_slot
# echo 0000:00:01.0 > /sys/bus/pci/drivers/pciback/bind
# xl pci-list-assignable-devices
0000:00:01.0

where 0000:00:01.0 is the location of the graphics card.  I'm not sure what
else there is to try at this point.  Is this a bug, a problem with Ubuntu's
repository version, or something I'm doing wrong?  Here is my xenwin.cfg:

kernel = "/usr/lib/xen-4.1/boot/hvmloader"
builder='hvm'
memory = 4096 

# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8
name = "xenwin7"
vif = [ 'type=ioemu, bridge=xenbr0' ]
acpi = 1
apic = 1
disk = [ 'file:/etc/xen/xenwin.img,hda,w',
'file:/media/RAID5/Software/Operating Systems/Windows/Windows 7 64
(Universal).iso,hdc:cdrom,r' ]

device_model = '/usr/lib/xen-4.1/bin/qemu-dm'

boot="dc"

#vnc=1
#vncconsole=1

xen_platform_pci=1
gfx_passthrough
#pci=['00:14.2']
pci=['00:01.0']

serial='pty'
usbdevice='tablet'
#extra='xencons=tty'
#extra="console=hvc0"



--
View this message in context: http://xen.1045712.n5.nabble.com/Xen-PCI-VGA-passthrough-failing-on-Ubuntu-12-04-64-bit-tp5710273.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-27 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-21  0:26 Xen PCI/VGA passthrough failing on Ubuntu 12.04 (64-bit) CalcProgrammer1
2012-07-31 23:11 ` Konrad Rzeszutek Wilk
2012-11-27 17:32 ` eieiguy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).