[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Unable to add passthrough devices to my domu?


  • To: <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: "Marc Tousignant" <myrdhn@xxxxxxxxx>
  • Date: Thu, 14 Mar 2019 19:17:01 -0400
  • Delivery-date: Thu, 14 Mar 2019 23:18:02 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Thread-index: AQJ0YfCmd+yfKdqu+qGZ9Sd6NoGrh6TMovPw

I forgot to reenable VT-d support in the BIOS after updating, solved the original issue…

(XEN) Command line: loglvl=all guest_loglvl=all xsave=1 iommu=1 iommu_inclusive_mapping=1 ucode=scan

(XEN) Intel VT-d iommu 0 supported page sizes: 4kB.

 

I then ran in to another error

libxl: error: libxl_pci.c:1099:do_pci_add: Domain 1:xc_assign_device failed: Cannot allocate memory

libxl: error: libxl_pci.c:1295:libxl__add_pcidevs: Domain 1:libxl_device_pci_add failed: -3

libxl: error: libxl_create.c:1514:domcreate_attach_devices: Domain 1:unable to add pci devices

libxl: error: libxl_domain.c:1000:libxl__destroy_domid: Domain 1:Non-existant domain

libxl: error: libxl_domain.c:959:domain_destroy_callback: Domain 1:Unable to destroy guest

libxl: error: libxl_domain.c:886:domain_destroy_cb: Domain 1:Destruction of domain failed

 

And from xl dmesg

(XEN) XEN_DOMCTL_assign_device: assign 0000:04:00.3 to dom1 failed (-12)

 

If I didn’t attempt to passthrough the device the domu started up..

Going back through the config example I had not enabled the viridian setting as it was commented out on the example, and did not exist in my original settings. This was apparently a new feature that you need to enable for passthrough to work, even though I could not find any info on that being a requirement.

 

The things you miss when you leave a system alone for 2+ years because it was working perfectly fine.. LOL

 

 

From: Xen-users <xen-users-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of Marc Tousignant
Sent: Thursday, March 14, 2019 12:32 PM
To: xen-users@xxxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Unable to add passthrough devices to my domu?

 

I’m attempting to start my domu where I am passing through a network card for exclusive use. But I get an error that it cannot be assigned no IOMMU, but I do have it enabled in the grub config.

Ideas, recommendations?

 

xl create /etc/xen/MAIL.cfg

Parsing config from /etc/xen/MAIL.cfg

libxl: error: libxl_pci.c:1200:libxl__device_pci_add: Domain 1:PCI device 0000:04:00.3 cannot be assigned - no IOMMU?

libxl: error: libxl_pci.c:1295:libxl__add_pcidevs: Domain 1:libxl_device_pci_add failed: -1

libxl: error: libxl_create.c:1514:domcreate_attach_devices: Domain 1:unable to add pci devices

libxl: error: libxl_domain.c:1000:libxl__destroy_domid: Domain 1:Non-existant domain

libxl: error: libxl_domain.c:959:domain_destroy_callback: Domain 1:Unable to destroy guest

libxl: error: libxl_domain.c:886:domain_destroy_cb: Domain 1:Destruction of domain failed

 

menuentry "Gentoo on Xen - kernel-genkernel-x86_64-4.20.7-aufs" {

  insmod diskfilter

  insmod mdraid09

  insmod part_msdos

  insmod part_msdos

  insmod ext2

  set root=(mduuid/39334be1a4d2eb58c44c77eb7ee19756)

  search --no-floppy --fs-uuid --set 4bf29820-58b2-48e2-a782-95ba04ec348f

  multiboot /xen.gz loglvl=all guest_loglvl=all xsave=1 iommu=1 iommu_inclusive_mapping=1 ucode=auto

  module /kernel-genkernel-x86_64-4.20.7-aufs domdadm xen-pciback.permissive xen-pciback.passthrough=1 xen-pciback.hide=(0000:04:00.0)(0000:04:00.1)(0000:04:00.2)(0000:04:00.3) real_ root=/dev/md1 rootfstype=ext4 rand_id=P0UJKUSZ

  module /initramfs-genkernel-x86_64-4.20.7-aufs

  set gfxpayload=keep

}

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.