I'm trying to setup vyos in xen vm to route my traffic with it, but i have an issue doing this.
I configured ubuntu server 16.04.2, after this i installed xen from repos and configured vyos vm, but then i found, that i can't forward pci network card to it.
I'm doing this like this:
finding BDF of pci devices
after this i googled for IOMMU and after some searches i tried to check my cpu for virtualization:
lscpu said that Virtualization type: none
but intel says that my processor have vt-x and vt-d here
And i don't understand, what did i missed or did wrong?
additional info:
I configured ubuntu server 16.04.2, after this i installed xen from repos and configured vyos vm, but then i found, that i can't forward pci network card to it.
I'm doing this like this:
finding BDF of pci devices
lspci |grep Ethernet 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 05) 01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01) 01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01) 01:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01) 01:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)(i need to forward 01:00.2 and 01:00.3 to vm)
lsmod | grep pcibackreturns nothing, then i do
modprobe pciback modprobe: FATAL: Module pciback not found in directory /lib/modules/4.4.0-87-genericthen i tried
modprobe xen-pciback, and after this
lsmod | grep pciback xen_pciback 61440 0then i'm doing
xl pci-assignable-add 01:00.2 xl pci-assignable-add 01:00.3 xl pci-assignable-list 0000:01:00.2 0000:01:00.3then i add
pci=['01:00.2','01:00.3']to vm config file and trying to launch it:
xl create /vyos/vyos.cfg Parsing config from /vyos/vyos.cfg libxl: error: libxl_pci.c:1098:libxl__device_pci_add: PCI device 0000:01:00.2 cannot be assigned - no IOMMU? libxl: error: libxl_create.c:1427:domcreate_attach_pci: libxl_device_pci_add failed: -1 libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 2 libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy guest with domid 2 libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 2 failed
after this i googled for IOMMU and after some searches i tried to check my cpu for virtualization:
grep --color vmx /proc/cpuinforeturned nothing
lscpu said that Virtualization type: none
but intel says that my processor have vt-x and vt-d here
And i don't understand, what did i missed or did wrong?
additional info:
xl info |grep version version : #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 xen_version : 4.6.5vm config file at the end:
builder = "hvm" vcpus = 2 memory = 2048 disk=['phy:/vyos/vyos.img,xvda,w'] #disk=['phy:/vyos/vyos.img,xvda,w','file:/hdd/vyos-1.1.7-i586-virt.iso,ioemu:hdc:cdrom,r'] name = 'vyos2' #vif = ['script=vif-bridge, bridge=br-eth0','script=vif-bridge, bridge=br-eth1'] pci=['01:00.2','01:00.3'] on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' #vnc config vnc=1 vnclisten = '0.0.0.0' vncpasswd="mypasswd" vncconsole=1 vncunused=0 #vnc port, if vncdisplay=35, then port= 5935 vncdisplay=35 #boot from cdrom(d) or hdd(c) boot='c'