| | 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 | {{{ |
| | 328 | builder='hvm' |
| | 329 | memory = 4096 |
| | 330 | name = 'win7' |
| | 331 | vcpus=4 |
| | 332 | #pae=1 |
| | 333 | acpi=1 |
| | 334 | apic=1 |
| | 335 | on_xend_stop='shutdown' |
| | 336 | vif = [ 'mac=00:16:3e:68:e1:01,bridge=xenbr0' ] |
| | 337 | disk = [ 'file:/data/libvirt/images/win7-xen.img,hda,w' , 'file:/data/samba/iso/virtio-win-0.1.104.iso,hdc:cdrom,r' ] |
| | 338 | boot='dc' |
| | 339 | sdl=0 |
| | 340 | spice=1 |
| | 341 | spiceport=5900 |
| | 342 | spicepasswd='password' |
| | 343 | stdvga=0 |
| | 344 | serial='pty' |
| | 345 | viridian=1 |
| | 346 | usb=1 |
| | 347 | usbdevice='tablet' |
| | 348 | gfx_passthru=0 |
| | 349 | pci=[ '00:02.0' ] |
| | 350 | localtime=1 |
| | 351 | pci_power_mgmt=1 |
| | 352 | }}} |
| | 353 | 1. mitty@xen:~$ lspci -nn |
| | 354 | {{{ |
| | 355 | 00: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 | {{{ |
| | 362 | 0000: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 | {{{ |
| | 370 | gfx_passthru=1 |
| | 371 | }}} |
| | 372 | * mitty@xen:~$ sudo xl create win7-xen.cfg |
| | 373 | {{{ |
| | 374 | Parsing config from win7-xen.cfg |
| | 375 | libxl: error: libxl_dm.c:1388:device_model_spawn_outcome: domain 5 device model: spawn failed (rc=-3) |
| | 376 | libxl: error: libxl_create.c:1186:domcreate_devmodel_started: device model did not start: -3 |
| | 377 | libxl: 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 | {{{ |
| | 383 | device_model_version="qemu-xen-traditional" |
| | 384 | gfx_passthru=1 |
| | 385 | }}} |
| | 386 | |
| | 387 | * [[Image(xen-intelgpu-4.jpg,33%)]] |