I tried to start qemu-system-i386 with the following command through crontab, the command works perfectly under a console or a remote shell, but fails under crontab:
/opt/App/qemu/bin/qemu-system-i386 -enable-kvm -m 3072 -daemonize -net nic,model=virtio,macaddr=e2:bb:aa:00:00:04 -net tap,ifname=qemu4,script=no,downscript=no -usb -usbdevice host:1.11 -kernel /opt/vmhost/kernel/vmlinuz -initrd /opt/vmhost/kernel/initrd.img -append "kernel command line" -vnc :4,lossy /opt/vmhost/image/drive.img
The following error message was recorded in /var/spool/mail/root:
TAP interface qemu1 missing.
TAP interface is actually created, owned by the root user. Anyone know the cause of the error ? and how to fix it ?