An example of preparing the host for python VSOCK testing via ./python -m test 1) Install Fedora 26. 2) dnf install qemu-kvm libvirt virt-install libvirt-python virt-manager libvirt-client. 3) modprobe vhost_vsock 4) Install python 3.7 5) Install a Fedora 26 VM virt-install -n FS26 --os-variant=fedora25 --memory=2048 --vcpus=2 --disk path=/var/lib/libvirt/images/FS26.img,bus=virtio,cache=none,format=raw,io=threads,size=8 --nographics -l http://your-install-tree --extra-args='console=tty0 console=ttyS0,115200n8 serial' You will need to shutdown the vm after installing it. virsh shutdown FS26 6) Run the VM qemu-system-x86_64 -enable-kvm -m 1024 \ -drive if=virtio,file=/var/lib/libvirt/images/FS26.img,format=raw \ -device vhost-vsock-pci,guest-cid=3 \ -netdev user,id=netdev0,hostfwd=tcp::2222-:22 \ -device virtio-net-pci,netdev=netdev0 \ -vnc :0 You will not be able to see the VM using virsh. Login to your VM via ssh -p 2222 root@localhost 7) Install python 3.7 on the VM. The tests can be run on either the host or the VM. There are no host to VM tests. Only inter-host and inter-VM.