Open humanux opened 10 years ago
@jzupka please help to fix this issue.
@humanux hi, I'll take a look on that.
@humanux I try to create patch which recreate system dependent devs (nic, redirs, and what will be necessary more).
@humanux After quick fix of this problem I'll try to prepare better solution which totally splits preparation of qemu and system specific (create fd etc) things.
@jzupka thanks for your quickly reply. wait your fix patch
in qemu_vm.py make_qemu_commands()
unfortunately these check ignore tap fds change, some times guest tap fds will change, for example.
emu: -netdev tap,id=id9DXhqO,vhost=on,vhostfd=23,fd=22: TUNGETIFF ioctl() failed: Operation not permitted\nTUNSETOFFLOAD ioctl() failed: Operation not permitted\nqemu: -netdev tap,id=id9DXhqO,vhost=on,vhostfd=23,fd=22: vhost-net requested but could not be initialized\nqemu: -netdev tap,id=id9DXhqO,vhost=on,vhostfd=23,fd=22: Device 'tap' could not be initialized")
need update nic.tapfds and vhostfds before return self.device, or update them during generate qemu command line.