Changes between Version 16 and Version 17 of TipAndDoc/VM/Xen


Ignore:
Timestamp:
Jun 8, 2015 1:20:21 AM (9 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/VM/Xen

    v16 v17  
    309309 * [http://wiki.xen.org/wiki/XenVGAPassthrough Xen VGA Passthrough - Xen] 
    310310 
     311 == primary VGA controller == 
    311312 * [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776742 #776742 - xen-utils-common: no support for VGA Passthrough - Debian Bug report logs] 
    312313  * [http://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html xl.cfg - XL Domain Configuration File Syntax] 
     
    314315  >            gfx_passthru is currently only supported with the qemu-xen-traditional device-model. Upstream qemu-xen device-model currently does not have support for 
    315316  >            gfx_passthru. 
     317 
     318 * spec 
     319  * H/W -> wiki:TipAndDoc/VM/KVM#Windows7x64withvirtio と同じ 
     320  * Ubuntu 14.04.2 LTS 
     321  * Linux xen 3.13.0-53-generic #89-Ubuntu SMP Wed May 20 10:34:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 
     322  * Package: xen-hypervisor-4.4-amd64 
     323  * Version: 4.4.1-0ubuntu0.14.04.6 
     324 
     325 === gfx_passthru=0 === 
     326 * guest {{{win7-xen.cfg}}} 
     327{{{ 
     328builder='hvm' 
     329memory = 4096 
     330name = 'win7' 
     331vcpus=4 
     332#pae=1 
     333acpi=1 
     334apic=1 
     335on_xend_stop='shutdown' 
     336vif = [ 'mac=00:16:3e:68:e1:01,bridge=xenbr0' ] 
     337disk = [ 'file:/data/libvirt/images/win7-xen.img,hda,w' , 'file:/data/samba/iso/virtio-win-0.1.104.iso,hdc:cdrom,r' ] 
     338boot='dc' 
     339sdl=0 
     340spice=1 
     341spiceport=5900 
     342spicepasswd='password' 
     343stdvga=0 
     344serial='pty' 
     345viridian=1 
     346usb=1 
     347usbdevice='tablet' 
     348gfx_passthru=0 
     349pci=[ '00:02.0' ] 
     350localtime=1 
     351pci_power_mgmt=1 
     352}}} 
     353  1. mitty@xen:~$ lspci -nn 
     354{{{ 
     35500:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06) 
     356}}} 
     357  1. mitty@xen:~$ sudo modprobe xen-pciback 
     358  1. mitty@xen:~$ sudo xl pci-assignable-list 
     359  1. mitty@xen:~$ sudo xl pci-assignable-add 00:02.0 
     360  1. mitty@xen:~$ sudo xl pci-assignable-list 
     361{{{ 
     3620000:00:02.0 
     363}}} 
     364 
     365 * [[Image(xen-intelgpu-1.png,33%)]] [[Image(xen-intelgpu-2.png,33%)]] [[Image(xen-intelgpu-3.png,33%)]] 
     366 
     367 === gfx_passthru=1 === 
     368 * mitty@xen:~$ vim win7-xen.cfg 
     369{{{ 
     370gfx_passthru=1 
     371}}} 
     372 * mitty@xen:~$ sudo xl create win7-xen.cfg 
     373{{{ 
     374Parsing config from win7-xen.cfg 
     375libxl: error: libxl_dm.c:1388:device_model_spawn_outcome: domain 5 device model: spawn failed (rc=-3) 
     376libxl: error: libxl_create.c:1186:domcreate_devmodel_started: device model did not start: -3 
     377libxl: error: libxl_dm.c:1492:kill_device_model: Device Model already exited 
     378}}} 
     379 
     380 === qemu-xen-traditional === 
     381 * mitty@xen:~$ vim win7-xen.cfg 
     382{{{ 
     383device_model_version="qemu-xen-traditional" 
     384gfx_passthru=1 
     385}}} 
     386 
     387 * [[Image(xen-intelgpu-4.jpg,33%)]]