I'm trying to setup Xen and I'm having some problems with passthrough of my graphics card. I'm hoping there are some people here who might have had similar problems and or know what to do next. I am trying to run windows 7 enterprise in DomU. I have posted already here: http://forums.linuxmint.com/viewtopic.p ... 80#p837253 My hardware:
MB: DX58SO
CPU: Core i7 920
Dom0: AMD R7 250
DomU: Diamond AMD 6450 http://www.amazon.com/Diamond-Multimedi ... B00519BEG4
Dom0: 4 GB RAM
DomU: 4 GB RAM
The problem is that when I do xm create /etc/xen/win7.cfg I get 'Error: (22, 'Invalid argument')' Does anybody know what this means and how I can fix it? It is related to the graphics passthrough since I can remove graphics passthrough from my win7.conf and then I can start the vm, in this case, my USB ports are still being passed through, so that at least is working. Here is some other information which might help to figure out what is wrong:
Code: Select all
uname -a
Linux jonathan-desktop 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
domid: 1
-c config qemu network with xen bridge for
tap1.0 xenbr0
Using file /dev/mapper/guest-win7 in read-write mode
Using file /media/install/Win7.iso in read-only mode
Watching /local/domain/0/device-model/1/logdirty/cmd
Watching /local/domain/0/device-model/1/command
Watching /local/domain/1/cpu
char device redirected to /dev/pts/1
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 0d5f4132-37e5-59a4-0510-1a14ccc4cb99
Time offset set 0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error. /vm/0d5f4132-37e5-59a4-0510-1a14ccc4cb99/vncpas$
medium change watch on `hdc' (index: 1): /media/install/Win7.iso
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
vcpu-set: watch node error.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
xs_read(/local/domain/1/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/1/log-throttling'
medium change watch on `/local/domain/1/log-throttling' - unknown device, ignor$
dm-command: hot insert pass-through pci dev
register_real_device: Assigning real physical device 03:00.0 ...
register_real_device: Enable MSI translation via per device option
register_real_device: Enable power management
pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No such$
pt_register_regions: IO region registered (size=0x10000000 base_addr=0xe000000c)
pt_register_regions: IO region registered (size=0x00020000 base_addr=0xc0200004)
pt_register_regions: IO region registered (size=0x00000100 base_addr=0x00004001)
pt_register_regions: Expansion ROM registered (size=0x00020000 base_addr=0xc024$
pt_msgctrl_reg_init: MSI enabled already, disable first
register_real_device: Error: Mapping irq failed, rc = -1
pt_msi_setup: msi mapped with pirq 37
pci_intx: intx=1
register_real_device: Real physical device 03:00.0 registered successfuly!
IRQ type = MSI-INTx
Code: Select all
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
# GRUB_HIDDEN_TIMEOUT=0
# GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_XEN="iommu=1 dom0_mem=4096M"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Code: Select all
kernel = '/usr/lib/xen-default/boot/hvmloader'
builder='hvm'
memory = 4096
name = 'win7'
vcpus=4
acpi=1
apic=1
on_xend_stop='shutdown'
vif = [ 'mac=00:16:3e:68:e1:01,bridge=xenbr0' ]
disk = [ 'phy:/dev/mapper/guest-win7,hda,w' , 'file:/media/install/Win7.iso,hdc$
device_model = '/usr/lib/xen-default/bin/qemu-dm'
boot='dc'
sdl=0
vnc=1
vncpasswd=''
stdvga=0
serial='pty'
tsc_mode=0
viridian=1
usb=0
usbdevice='tablet'
gfx_passthru=0
pci=[ '03:00.0', '03:00.1', '00:1a.2' ]
localtime=1
pci_power_mgmt=1
Code: Select all
System: Host: jonathan-desktop Kernel: 3.2.0-60-generic x86_64 (64 bit) Desktop: Gnome Distro: Linux Mint 13 Maya
Machine: Mobo: Intel model: DX58SO version: AAE29331-701
Bios: Intel version: SOX5810J.86A.5600.2013.0729.2250 date: 07/29/2013
CPU: Quad core Intel Core i7 CPU 920 (-HT-MCP-) cache: 8192 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3)
Clock Speeds: 1: 2702.586 MHz 2: 2702.586 MHz 3: 2702.586 MHz 4: 2702.586 MHz 5: 2702.586 MHz 6: 2702.586 MHz 7: 2702.586 MHz 8: 2702.586 MHz
Graphics: Card-1: Advanced Micro Devices [AMD/ATI] Oland [Radeon HD 8600 Series]
Card-2: Advanced Micro Devices [AMD/ATI] Caicos [Radeon HD 6450/7450/8450]
X.Org: 1.11.3 drivers: ati,fglrx (unloaded: vesa,fbdev,radeon) Resolution: 1920x1080@60.0hz
GLX Renderer: AMD Radeon R7 200 Series GLX Version: 4.3.12682 - CPC 13.251
Audio: Card-1: Advanced Micro Devices [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series] driver: pciback
Card-2: C-Media CMI8738/CMI8768 PCI Audio driver: snd_cmipci
Card-3: Advanced Micro Devices [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series] driver: snd_hda_intel
Card-4: Logitech driver: USB Audio
Sound: Advanced Linux Sound Architecture ver: 1.0.24
Network: Card: Intel 82574L Gigabit Network Connection driver: e1000e
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 68:05:ca:12:09:c4
Drives: HDD Total Size: 8201.7GB (13.3% used) 1: /dev/sda WDC_WD20EARS 2000.4GB
2: /dev/sdb INTEL_SSDSA2CW12 120.0GB 3: /dev/sdc INTEL_SSDSA2M080 80.0GB
4: /dev/sdd WDC_WD20EARS 2000.4GB 5: /dev/sde WDC_WD20EARS 2000.4GB
6: /dev/sdf Hitachi_HDS72101 1000.2GB 7: /dev/sdg Hitachi_HDS72101 1000.2GB
Partition: ID: / size: 103G used: 15G (16%) fs: ext4 ID: swap-1 size: 8.58GB used: 0.00GB (0%) fs: swap
Sensors: Error: You do not have the sensors app installed.
Info: Processes: 226 Uptime: 17 min Memory: 915.3/2831.2MB Client: Shell inxi: 1.7.33
Code: Select all
(XEN) Xen version 4.1.2 (Ubuntu 4.1.2-2ubuntu2) (stefan.bader@canonical.com) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu2) ) Thu Mar 8 14:31:11 UTC 2012
(XEN) Bootloader: GRUB 1.99-21ubuntu3.14
(XEN) Command line: placeholder iommu=1 dom0_mem=4096M xen-pciback.hide=(03.00.0)(03.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 7 MBR signatures
(XEN) Found 6 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 - 000000000008f000 (usable)
(XEN) 000000000008f000 - 0000000000090000 (reserved)
(XEN) 0000000000090000 - 000000000009a800 (usable)
(XEN) 000000000009a800 - 00000000000a0000 (reserved)
(XEN) 00000000000e0000 - 0000000000100000 (reserved)
(XEN) 0000000000100000 - 00000000bf49d000 (usable)
(XEN) 00000000bf49d000 - 00000000bf4bf000 (reserved)
(XEN) 00000000bf4bf000 - 00000000bf622000 (usable)
(XEN) 00000000bf622000 - 00000000bf7bf000 (ACPI NVS)
(XEN) 00000000bf7bf000 - 00000000bf7db000 (usable)
(XEN) 00000000bf7db000 - 00000000bf7ff000 (ACPI data)
(XEN) 00000000bf7ff000 - 00000000bf800000 (usable)
(XEN) 00000000bf800000 - 00000000c0000000 (reserved)
(XEN) 00000000f8000000 - 00000000fd000000 (reserved)
(XEN) 00000000ffe00000 - 0000000100000000 (reserved)
(XEN) 0000000100000000 - 0000000240000000 (usable)
(XEN) ACPI: RSDP 000FE020, 0024 (r2 INTEL )
(XEN) ACPI: XSDT BF7FE120, 0074 (r1 INTEL DX58SO 15E0 1000013)
(XEN) ACPI: FACP BF7FD000, 00F4 (r3 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI Warning (tbfadt-0444): Optional field "Pm2ControlBlock" has zero address or length: 0000000000000450/0 [20070126]
(XEN) ACPI: DSDT BF7F8000, 4622 (r2 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: FACS BF725000, 0040
(XEN) ACPI: APIC BF7F7000, 0138 (r2 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: WDDT BF7F6000, 0040 (r1 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: MCFG BF7F5000, 003C (r1 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: ASF! BF7F4000, 00AC (r32 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: HPET BF7F3000, 0038 (r1 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: SSDT BF7DE000, 12A04 (r1 INTEL SSDT PM 15E0 MSFT 100000D)
(XEN) ACPI: DMAR BF7DB000, 0168 (r1 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: WDTT BF7F1000, 020C (r2 INTEL DX58SO 15E0 MSFT 100000D)
(XEN) ACPI: ASPT BF7F2000, 0034 (r4 INTEL PerfTune 15E0 MSFT 100000D)
(XEN) System RAM: 8181MB (8378072kB)
(XEN) Domain heap initialised
(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) Processor #1 7:10 APIC version 21
(XEN) Processor #3 7:10 APIC version 21
(XEN) Processor #5 7:10 APIC version 21
(XEN) Processor #7 7:10 APIC version 21
(XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode: Flat. Using 1 I/O APICs
(XEN) Table is not found!
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2702.586 MHz processor.
(XEN) Initing memory sharing.
(XEN) Intel VT-d Snoop Control 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) ENABLING IO-APIC IRQs
(XEN) -> Using new ACK method
(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) EPT supports 2MB super page.
(XEN) HVM: ASIDs enabled.
(XEN) HVM: VMX enabled
(XEN) HVM: Hardware Assisted Paging detected.
(XEN) Brought up 8 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x2060000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000230000000->0000000234000000 (1022083 pages to be allocated)
(XEN) Init. ramdisk: 000000023d883000->0000000240000000
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: ffffffff81000000->ffffffff82060000
(XEN) Init. ramdisk: ffffffff82060000->ffffffff847dd000
(XEN) Phys-Mach map: ffffffff847dd000->ffffffff84fdd000
(XEN) Start info: ffffffff84fdd000->ffffffff84fdd4b4
(XEN) Page tables: ffffffff84fde000->ffffffff8500b000
(XEN) Boot stack: ffffffff8500b000->ffffffff8500c000
(XEN) TOTAL: ffffffff80000000->ffffffff85400000
(XEN) ENTRY ADDRESS: ffffffff81cfc200
(XEN) Dom0 has maximum 8 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 \047CTRL-a\047 three times to switch input to Xen)
(XEN) Freed 220kB init memory.
(XEN) physdev.c:155: dom0: wrong map_pirq type 3
Code: Select all
[2014-03-24 21:32:41 1760] DEBUG (XendDomainInfo:103) XendDomainInfo.create(['vm', ['name', 'win7'], ['memory', 4096], ['on_xend_start', 'ignore'], ['on_xend_stop', 'shutdown'], ['vcpus', 4], ['localtime', 1], ['oos', 1], ['image', ['hvm', ['kernel', '/usr/lib/xen-default/boot/hvmloader'], ['videoram', 4], ['serial', 'pty'], ['acpi', 1], ['apic', 1], ['boot', 'dc'], ['cpuid', []], ['cpuid_check', []], ['display', ':0'], ['fda', ''], ['fdb', ''], ['gfx_passthru', 0], ['guest_os_type', 'default'], ['hap', 1], ['hpet', 0], ['isa', 0], ['keymap', ''], ['localtime', 1], ['nographic', 0], ['oos', 1], ['pae', 1], ['pci', [['0x0000', '0x03', '0x00', '0x0', '0x100', [], '03:00.0'], ['0x0000', '0x03', '0x00', '0x1', '0x100', [], '03:00.1'], ['0x0000', '0x00', '0x1a', '0x2', '0x100', [], '00:1a.2']]], ['pci_msitranslate', 1], ['pci_power_mgmt', 1], ['rtc_timeoffset', 0], ['sdl', 0], ['soundhw', ''], ['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice', 'tablet'], ['vcpus', 4], ['vnc', 1], ['vncunused', 1], ['viridian', 1], ['vpt_align', 1], ['xauthority', '/home/jonathan/.Xauthority'], ['xen_platform_pci', 1], ['memory_sharing', 0], ['device_model', '/usr/lib/xen-default/bin/qemu-dm'], ['vncpasswd', 'XXXXXXXX'], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'phy:/dev/mapper/guest-win7'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/media/install/Win7.iso'], ['dev', 'hdc:cdrom'], ['mode', 'r']]], ['device', ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '03:00.0'], ['bus', '0x03'], ['vdevfn', '0x100'], ['func', '0x0']], ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '03:00.1'], ['bus', '0x03'], ['vdevfn', '0x100'], ['func', '0x1']], ['dev', ['slot', '0x1a'], ['domain', '0x0000'], ['key', '00:1a.2'], ['bus', '0x00'], ['vdevfn', '0x100'], ['func', '0x2']]]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:68:e1:01']]]])
[2014-03-24 21:32:41 1760] DEBUG (XendDomainInfo:2498) XendDomainInfo.constructDomain
[2014-03-24 21:32:41 1760] DEBUG (balloon:187) Balloon: 5127156 KiB free; need 16384; done.
[2014-03-24 21:32:41 1760] DEBUG (XendDomain:476) Adding Domain: 1
[2014-03-24 21:32:41 1760] DEBUG (XendDomainInfo:2836) XendDomainInfo.initDomain: 1 256
[2014-03-24 21:32:41 1760] DEBUG (image:339) No VNC passwd configured for vfb access
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: boot, val: dc
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: fda, val: None
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: fdb, val: None
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: soundhw, val: None
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: localtime, val: 1
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: serial, val: ['pty']
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: std-vga, val: 0
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: isa, val: 0
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: acpi, val: 1
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: usb, val: 0
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: usbdevice, val: tablet
[2014-03-24 21:32:41 1760] DEBUG (image:891) args: gfx_passthru, val: 0
[2014-03-24 21:32:41 1760] INFO (image:822) Need to create platform device.[domid:1]
[2014-03-24 21:32:41 1760] DEBUG (XendDomainInfo:2863) _initDomain:shadow_memory=0x0, memory_static_max=0x100000000, memory_static_min=0x0.
[2014-03-24 21:32:41 1760] INFO (image:182) buildDomain os=hvm dom=1 vcpus=4
[2014-03-24 21:32:41 1760] DEBUG (image:949) domid = 1
[2014-03-24 21:32:41 1760] DEBUG (image:950) image = /usr/lib/xen-default/boot/hvmloader
[2014-03-24 21:32:41 1760] DEBUG (image:951) store_evtchn = 5
[2014-03-24 21:32:41 1760] DEBUG (image:952) memsize = 4096
[2014-03-24 21:32:41 1760] DEBUG (image:953) target = 4096
[2014-03-24 21:32:41 1760] DEBUG (image:954) vcpus = 4
[2014-03-24 21:32:41 1760] DEBUG (image:955) vcpu_avail = 15
[2014-03-24 21:32:41 1760] DEBUG (image:956) acpi = 1
[2014-03-24 21:32:41 1760] DEBUG (image:957) apic = 1
[2014-03-24 21:32:41 1760] INFO (XendDomainInfo:2357) createDevice: vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1'}, 'vnc': '1', 'uuid': '5275279a-8a65-00f6-b8d9-b214cc326516'}
[2014-03-24 21:32:41 1760] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/1/0'} to /local/domain/1/device/vfb/0.
[2014-03-24 21:32:41 1760] DEBUG (DevController:97) DevController: writing {'vncunused': '1', 'domain': 'win7', 'frontend': '/local/domain/1/device/vfb/0', 'uuid': '5275279a-8a65-00f6-b8d9-b214cc326516', 'frontend-id': '1', 'state': '1', 'online': '1', 'vnc': '1'} to /local/domain/0/backend/vfb/1/0.
[2014-03-24 21:32:41 1760] INFO (XendDomainInfo:2357) createDevice: vbd : {'uuid': 'b5c08b1c-9453-c227-5d03-93c5913a1a04', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'hda', 'uname': 'phy:/dev/mapper/guest-win7', 'mode': 'w'}
[2014-03-24 21:32:41 1760] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/768'} to /local/domain/1/device/vbd/768.
[2014-03-24 21:32:41 1760] DEBUG (DevController:97) DevController: writing {'domain': 'win7', 'frontend': '/local/domain/1/device/vbd/768', 'uuid': 'b5c08b1c-9453-c227-5d03-93c5913a1a04', 'bootable': '1', 'dev': 'hda', 'state': '1', 'params': '/dev/mapper/guest-win7', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'phy'} to /local/domain/0/backend/vbd/1/768.
[2014-03-24 21:32:41 1760] INFO (XendDomainInfo:2357) createDevice: vbd : {'uuid': 'd3daee78-9c63-d837-5da3-8ddb00628a82', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'hdc:cdrom', 'uname': 'file:/media/install/Win7.iso', 'mode': 'r'}
[2014-03-24 21:32:41 1760] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/5632'} to /local/domain/1/device/vbd/5632.
[2014-03-24 21:32:41 1760] DEBUG (DevController:97) DevController: writing {'domain': 'win7', 'frontend': '/local/domain/1/device/vbd/5632', 'uuid': 'd3daee78-9c63-d837-5da3-8ddb00628a82', 'bootable': '0', 'dev': 'hdc', 'state': '1', 'params': '/media/install/Win7.iso', 'mode': 'r', 'online': '1', 'frontend-id': '1', 'type': 'file'} to /local/domain/0/backend/vbd/1/5632.
[2014-03-24 21:32:41 1760] INFO (XendDomainInfo:2357) createDevice: vif : {'bridge': 'xenbr0', 'mac': '00:16:3e:68:e1:01', 'uuid': '08632ff1-5c6b-a34f-aeb1-0189214d0858'}
[2014-03-24 21:32:41 1760] DEBUG (DevController:95) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:68:e1:01', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'} to /local/domain/1/device/vif/0.
[2014-03-24 21:32:41 1760] DEBUG (DevController:97) DevController: writing {'bridge': 'xenbr0', 'domain': 'win7', 'handle': '0', 'uuid': '08632ff1-5c6b-a34f-aeb1-0189214d0858', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:68:e1:01', 'frontend-id': '1', 'state': '1', 'online': '1', 'frontend': '/local/domain/1/device/vif/0'} to /local/domain/0/backend/vif/1/0.
[2014-03-24 21:32:41 1760] INFO (XendDomainInfo:2357) createDevice: pci : {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '03:00.0', 'bus': '0x03', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'bc34d0ee-b4fb-fa7e-9f9a-b87db2aceb95'}, {'slot': '0x00', 'domain': '0x0000', 'key': '03:00.1', 'bus': '0x03', 'vdevfn': '0x100', 'func': '0x1', 'uuid': 'd0f451b8-c4b1-7d07-49ea-6c743c4a249b'}, {'slot': '0x1a', 'domain': '0x0000', 'key': '00:1a.2', 'bus': '0x00', 'vdevfn': '0x100', 'func': '0x2', 'uuid': '0cbd1e10-6ece-8af3-d90f-8fd08a25fcd9'}], 'uuid': 'ad2f7425-a604-b4d1-b0a6-cd819f9ceae3'}
[2014-03-24 21:32:45 1760] INFO (image:418) spawning device models: /usr/lib/xen-default/bin/qemu-dm ['/usr/lib/xen-default/bin/qemu-dm', '-d', '1', '-domain-name', 'win7', '-videoram', '4', '-vnc', '127.0.0.1:0', '-vncunused', '-vcpus', '4', '-vcpu_avail', '0xf', '-boot', 'dc', '-localtime', '-serial', 'pty', '-acpi', '-usbdevice', 'tablet', '-net', 'nic,vlan=1,macaddr=00:16:3e:68:e1:01,model=rtl8139', '-net', 'tap,vlan=1,ifname=tap1.0,bridge=xenbr0', '-M', 'xenfv']
[2014-03-24 21:32:45 1760] INFO (image:467) device model pid: 3837
[2014-03-24 21:32:45 1760] INFO (image:590) waiting for sentinel_fifo
[2014-03-24 21:32:45 1760] DEBUG (XendDomainInfo:893) XendDomainInfo.pci_device_configure: ['pci', ['dev', ['slot', '0x00'], ['domain', '0x0000'], ['key', '03:00.0'], ['bus', '0x03'], ['vdevfn', '0x100'], ['func', '0x0'], ['uuid', 'bc34d0ee-b4fb-fa7e-9f9a-b87db2aceb95']], ['state', 'Initialising'], ['sub_state', 'Booting']]
[2014-03-24 21:32:45 1760] DEBUG (XendDomainInfo:779) XendDomainInfo.hvm_pci_device_insert: {'devs': [{'slot': '0x00', 'domain': '0x0000', 'key': '03:00.0', 'bus': '0x03', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'bc34d0ee-b4fb-fa7e-9f9a-b87db2aceb95'}], 'states': ['Initialising']}
[2014-03-24 21:32:45 1760] DEBUG (XendDomainInfo:790) XendDomainInfo.hvm_pci_device_insert_dev: {'slot': '0x00', 'domain': '0x0000', 'key': '03:00.0', 'bus': '0x03', 'vdevfn': '0x100', 'func': '0x0', 'uuid': 'bc34d0ee-b4fb-fa7e-9f9a-b87db2aceb95'}
[2014-03-24 21:32:45 1760] DEBUG (XendDomainInfo:811) XendDomainInfo.hvm_pci_device_insert_dev: 0000:03:00.0@100,msitranslate=1,power_mgmt=1
[2014-03-24 21:32:45 1760] DEBUG (XendDomainInfo:815) pci: assign device 0000:03:00.0@100,msitranslate=1,power_mgmt=1
[2014-03-24 21:32:45 1760] DEBUG (image:508) signalDeviceModel: orig_state is None, retrying
[2014-03-24 21:32:46 1760] INFO (image:538) signalDeviceModel:restore dm state to running
[2014-03-24 21:32:46 1760] INFO (pciquirk:92) NO quirks found for PCI device [1002:6779:1092:6450]
[2014-03-24 21:32:46 1760] DEBUG (pciquirk:135) Permissive mode NOT enabled for PCI device [1002:6779:1092:6450]
[2014-03-24 21:32:46 1760] DEBUG (pciif:320) pci: enabling ioport 0x4000/0x100
[2014-03-24 21:32:46 1760] DEBUG (pciif:334) pci: enabling iomem 0xe0000000/0x10000000 pfn 0xe0000/0x10000
[2014-03-24 21:32:46 1760] DEBUG (pciif:334) pci: enabling iomem 0xc0200000/0x20000 pfn 0xc0200/0x20
[2014-03-24 21:32:46 1760] DEBUG (pciif:334) pci: enabling iomem 0xc0240000/0x20000 pfn 0xc0240/0x20
[2014-03-24 21:32:46 1760] DEBUG (pciif:351) pci: enabling irq 336
[2014-03-24 21:32:46 1760] ERROR (XendDomainInfo:2927) XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2914, in _initDomain
self._createDevices()
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2395, in _createDevices
self.pci_device_configure_boot()
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 627, in pci_device_configure_boot
self.pci_device_configure(dev_sxp, first_dev = first)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 970, in pci_device_configure
devid = self._createDevice('pci', existing_pci_conf)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2326, in _createDevice
return self.getDeviceController(deviceClass).createDevice(devConfig)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/server/DevController.py", line 67, in createDevice
self.setupDevice(config)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/server/pciif.py", line 453, in setupDevice
self.setupOneDevice(d)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/server/pciif.py", line 353, in setupOneDevice
allow_access = True)
Error: (22, 'Invalid argument')
[2014-03-24 21:32:46 1760] ERROR (XendDomainInfo:488) VM start failed
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 474, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2930, in _initDomain
raise VmError(str(exn))
VmError: (22, 'Invalid argument')
[2014-03-24 21:32:46 1760] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy: domid=1
[2014-03-24 21:32:46 1760] DEBUG (XendDomainInfo:2401) Destroying device model
[2014-03-24 21:32:47 1760] INFO (image:615) win7 device model terminated
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2408) Releasing devices
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vif/0
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vbd/768
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vbd/5632
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vfb/0
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2406) No device model
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2408) Releasing devices
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vif/0
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vbd/768
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/768
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:2414) Removing vbd/5632
[2014-03-24 21:32:47 1760] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632
[2014-03-24 21:32:47 1760] ERROR (XendDomainInfo:108) Domain construction failed
Traceback (most recent call last):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 106, in create
vm.start()
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 474, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2930, in _initDomain
raise VmError(str(exn))
VmError: (22, 'Invalid argument')