<div dir="ltr">Hi,<div><br></div><div>I'm trying to get kvm working inside a container but not much luck so far.</div><div><br></div><div>I've added /dev/kvm to the container and kvm-ok returns all good, but then I'm trying to use libvirt and virt-install to create a kvm instances and getting all kinds of fail.</div><div><br></div><div>Libvirtd is running, however trying to connect to it from my desktop fails so reasons I ignore, I'm seeing these errors tho:</div><div><br></div><div>Failed to open config space file '/sys/bus/pci/devices/0000:00:1f.2/c<br></div><div><div>internal error: Child process (/usr/sbin/dmidecode -q -t 0,1,2,4,17) unexpected exit status 1: /sys/firmware/dmi/tables/smbios_entry_point: Permission denied</div></div><div>/dev/mem: No such file or directory<br></div><div><br></div><div>that said locally virsh works, so I'm not sure why virt-manager, which is basically just wrapping the virsh call over ssh is failing.<br></div><div><br></div><div>In any case, I then tried to install an ubuntu instance on kvm with virt-install and ran into issues with pty devices:</div><div><div>Apr  4 03:31:42 lxc-testlab libvirtd[276]: Unable to write to '/sys/fs/cgroup/cpu,cpuacct/machine/template.libvirt-qemu/tasks': Permission denied</div></div><div>Apr  4 03:31:42 lxc-testlab libvirtd[276]: internal error: process exited while connecting to monitor: 2017-04-04T03:31:42.338111Z qemu-system-x86_64: -chardev pty,id=charserial0: Failed to create PTY: No such file or directory</div><div><br></div><div>I'm also seeing network related errors I guess since I got this:</div><div><br></div><div><div>Apr  4 03:29:31 lxc-testlab libvirtd[276]: Failed to open config space file '/sys/bus/pci/devices/0000:00:1f.2/config': Permission denied</div></div><div><br></div><div>and that device matches to eth0 I guess:</div><div><br></div><div><div>P: /devices/pci0000:00/0000:00:19.0</div><div>E: DEVPATH=/devices/pci0000:00/0000:00:19.0</div><div>E: DRIVER=e1000e</div><div>E: MODALIAS=pci:v00008086d000010DEsv0000103Csd00003048bc02sc00i00</div><div>E: PCI_CLASS=20000</div><div>E: PCI_ID=8086:10DE</div><div>E: PCI_SLOT_NAME=0000:00:19.0</div><div>E: PCI_SUBSYS_ID=103C:3048</div><div>E: SUBSYSTEM=pci</div></div><div><br></div><div>any pointer would be much appreciated.</div><div><br></div><div>this is on ubuntu xenial stock with lxd 2.12 from ppa-stable.</div><div><br></div><div>thanks,</div><div><br></div><div>Spike</div></div>