Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to setup pci-passthrough to my domU. I am able to pass through of my USB controller, but I cannot pass through my RAID bus controllers. Here are the pci devices in question:
Code:
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
...
00:0d.0 RAID bus controller: Silicon Image, Inc. SiI 3124 PCI-X Serial ATA Controller (rev 01)
00:0e.0 RAID bus controller: Silicon Image, Inc. SiI 3124 PCI-X Serial ATA Controller (rev 01)
I believe that I have pci-passthrough setup correctly because I am able to pass the USB controller through. However, if I try to add one or both of the RAID controllers, my domU fails to boot. Here is what I think is relevant xend.log output on a failure:
Code:
[2011-09-27 06:12:48 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:261) XendDomainInfo.create(['vm', ['name', 'burns'], ['memory', '512'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['bootloader', '/usr/bin/pygrub'], ['image', ['linux', ['ramdisk', '/var/lib/xen/boot_ramdisk.PEX2J0'], ['kernel', '/var/lib/xen/boot_kernel.bDNxcp'], ['args', 'ro root=/dev/VolGroup_xvda2/LogVol_root console=xvc0 swiotlb=force pcifront 1']]], ['device', ['vbd', ['uname', 'phy:/dev/VolGroup_hda3/LogVol_burns'], ['dev', 'xvda'], ['mode', 'w']]], ['device', ['pci', ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x07'], ['func', '0x2']], ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0d'], ['func', '0x0']], ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0e'], ['func', '0x0']]]], ['device', ['vif', ['bridge', 'virtbr1'], ['mac', '00:16:3E:06:44:6C']]]])
[2011-09-27 06:12:48 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:383) parseConfig: config is ['vm', ['name', 'burns'], ['memory', '512'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['bootloader', '/usr/bin/pygrub'], ['image', ['linux', ['ramdisk', '/var/lib/xen/boot_ramdisk.PEX2J0'], ['kernel', '/var/lib/xen/boot_kernel.bDNxcp'], ['args', 'ro root=/dev/VolGroup_xvda2/LogVol_root console=xvc0 swiotlb=force pcifront 1']]], ['device', ['vbd', ['uname', 'phy:/dev/VolGroup_hda3/LogVol_burns'], ['dev', 'xvda'], ['mode', 'w']]], ['device', ['pci', ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x07'], ['func', '0x2']], ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0d'], ['func', '0x0']], ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0e'], ['func', '0x0']]]], ['device', ['vif', ['bridge', 'virtbr1'], ['mac', '00:16:3E:06:44:6C']]]]
[2011-09-27 06:12:48 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:507) parseConfig: result is {'features': None, 'hpet': None, 'image': ['linux', ['ramdisk', '/var/lib/xen/boot_ramdisk.PEX2J0'], ['kernel', '/var/lib/xen/boot_kernel.bDNxcp'], ['args', 'ro root=/dev/VolGroup_xvda2/LogVol_root console=xvc0 swiotlb=force pcifront 1']], 'cpus': None, 'vcpu_avail': None, 'backend': [], 'uuid': None, 'on_reboot': 'restart', 'cpu_weight': None, 'memory': 512, 'cpu_cap': None, 'localtime': None, 'timer_mode': None, 'start_time': None, 'on_poweroff': None, 'on_crash': 'restart', 'device': [('vbd', ['vbd', ['uname', 'phy:/dev/VolGroup_hda3/LogVol_burns'], ['dev', 'xvda'], ['mode', 'w']]), ('pci', ['pci', ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x07'], ['func', '0x2']], ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0d'], ['func', '0x0']], ['dev', ['domain', '0x0'], ['bus', '0x00'], ['slot', '0x0e'], ['func', '0x0']]]), ('vif', ['vif', ['bridge', 'virtbr1'], ['mac', '00:16:3E:06:44:6C']])], 'bootloader': '/usr/bin/pygrub', 'maxmem': None, 'shadow_memory': None, 'name': 'burns', 'bootloader_args': None, 'vcpus': 1, 'cpu': None}
[2011-09-27 06:12:48 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:1976) XendDomainInfo.construct: None
[2011-09-27 06:12:48 xend 4808] DEBUG (balloon:146) Balloon: 524532 KiB free; need 4096; done.
[2011-09-27 06:12:48 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2151) XendDomainInfo.initDomain: 11 256
[2011-09-27 06:12:48 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2192) _initDomain:shadow_memory=0x0, maxmem=0x200, memory=0x200.
[2011-09-27 06:12:48 xend 4808] DEBUG (balloon:146) Balloon: 524532 KiB free; need 524288; done.
[2011-09-27 06:12:48 xend 4808] INFO (image:139) buildDomain os=linux dom=11 vcpus=1
[2011-09-27 06:12:48 xend 4808] DEBUG (image:208) domid = 11
[2011-09-27 06:12:48 xend 4808] DEBUG (image:209) memsize = 512
[2011-09-27 06:12:48 xend 4808] DEBUG (image:210) image = /var/lib/xen/boot_kernel.bDNxcp
[2011-09-27 06:12:48 xend 4808] DEBUG (image:211) store_evtchn = 1
[2011-09-27 06:12:48 xend 4808] DEBUG (image:212) console_evtchn = 2
[2011-09-27 06:12:48 xend 4808] DEBUG (image:213) cmdline = ro root=/dev/VolGroup_xvda2/LogVol_root console=xvc0 swiotlb=force pcifront 1
[2011-09-27 06:12:48 xend 4808] DEBUG (image:214) ramdisk = /var/lib/xen/boot_ramdisk.PEX2J0
[2011-09-27 06:12:48 xend 4808] DEBUG (image:215) vcpus = 1
[2011-09-27 06:12:48 xend 4808] DEBUG (image:216) features =
[2011-09-27 06:12:49 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:677) Checking for duplicate for uname: /dev/VolGroup_hda3/LogVol_burns [phy:/dev/VolGroup_hda3/LogVol_burns], dev: xvda, mode: w
[2011-09-27 06:12:49 xend 4808] DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
[2011-09-27 06:12:49 xend 4808] DEBUG (blkif:27) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'
[2011-09-27 06:12:49 xend 4808] DEBUG (DevController:133) DevController: writing {'virtual-device': '51712', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/11/51712'} to /local/domain/11/device/vbd/51712.
[2011-09-27 06:12:49 xend 4808] DEBUG (DevController:135) DevController: writing {'domain': 'burns', 'frontend': '/local/domain/11/device/vbd/51712', 'format': 'raw', 'dev': 'xvda', 'state': '1', 'params': '/dev/VolGroup_hda3/LogVol_burns', 'mode': 'w', 'online': '1', 'frontend-id': '11', 'type': 'phy'} to /local/domain/0/backend/vbd/11/51712.
[2011-09-27 06:12:49 xend 4808] WARNING (pciif:175) pci: 0000:00:07.2: it is on bus 0, but has no PCI Advanced Capabilities for FLR. Will try the Dstate transition method or some vendor specific methods if available.
[2011-09-27 06:12:49 xend 4808] WARNING (pciif:175) pci: 0000:00:0d.0: it is on bus 0, but has no PCI Advanced Capabilities for FLR. Will try the Dstate transition method or some vendor specific methods if available.
[2011-09-27 06:12:49 xend 4808] WARNING (pciif:175) pci: 0000:00:0e.0: it is on bus 0, but has no PCI Advanced Capabilities for FLR. Will try the Dstate transition method or some vendor specific methods if available.
[2011-09-27 06:12:49 xend 4808] INFO (pciquirk:91) NO quirks found for PCI device [8086:7112:0000:0000]
[2011-09-27 06:12:49 xend 4808] DEBUG (pciquirk:131) Permissive mode NOT enabled for PCI device [8086:7112:0000:0000]
[2011-09-27 06:12:49 xend 4808] DEBUG (pciif:365) pci: enabling ioport 0x1020/0x20
[2011-09-27 06:12:49 xend 4808] DEBUG (pciif:408) pci: enabling irq 9
[2011-09-27 06:12:49 xend 4808] INFO (pciquirk:91) NO quirks found for PCI device [1095:3124:1095:7124]
[2011-09-27 06:12:49 xend 4808] DEBUG (pciquirk:129) Permissive mode enabled for PCI device [1095:3124:1095:7124]
[2011-09-27 06:12:49 xend 4808] DEBUG (pciquirk:136) Unconstrained device: 0000:00:0d.0
[2011-09-27 06:12:49 xend 4808] DEBUG (pciif:365) pci: enabling ioport 0x1010/0x10
[2011-09-27 06:12:49 xend 4808] DEBUG (pciif:378) pci: enabling iomem 0xf4008000/0x80 pfn 0xf4008/0x1
[2011-09-27 06:12:49 xend.XendDomainInfo 4808] ERROR (XendDomainInfo:273) Domain construction failed
[2011-09-27 06:12:49 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2387) XendDomainInfo.destroy: domid=11
[2011-09-27 06:12:53 xend.XendDomainInfo 4808] INFO (XendDomainInfo:2528) Dev 51712 still active, looping...
[2011-09-27 06:12:53 xend.XendDomainInfo 4808] INFO (XendDomainInfo:2528) Dev 51712 still active, looping...
[2011-09-27 06:12:53 xend.XendDomainInfo 4808] INFO (XendDomainInfo:2528) Dev 51712 still active, looping...
....
...
...
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] INFO (XendDomainInfo:2528) Dev 51712 still active, looping...
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] INFO (XendDomainInfo:2528) Dev 51712 still active, looping...
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] INFO (XendDomainInfo:2534) Dev still active but hit max loop timeout
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2312) UUID Created: False
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2313) Devices to release: [], domid = 11
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2317) Releasing PVFB front-end devices (uuid not created)...
[2011-09-27 06:13:23 xend.XendDomainInfo 4808] DEBUG (XendDomainInfo:2325) Releasing PVFB backend devices
If anyone has thoughts or if I can provide more info, please let me know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.