I Use the following command to instantiate a VM on KVM[Ubuntu 14]
virt-install --name --ram 4096 --cpu , --vcpus=2 --arch=x86_64 --disk path=/var/lib/libvirt/images/image.qcow2,size=16,device=disk,bus=ide,format=qcow2 --os-type linux --os-variant rhel7 --import --network=network:default,model=virtio --host-device=pci_0000_01_10_5
With this command the hostdevice is attached with driver "vfio". However, I would require to have the host device use KVM as driver in spite of vfio.
How do I pass driver as KVM in the virt-install?
I tried :
--host-device=pci_0000_01_10_5,driver=KVM
& got the following error:- UnboundLocalError: local variable 'devtype' referenced before assignment