qemu-system-x86_64: drive with bus=0, unit=0 (index=0) exists

今天发现起guest的时候有报错:qemu-system-x86_64: drive with bus=0, unit=0 (index=0) exists

起guest的command line:

taskset -c $(seq -s , 1 4) qemu-system-x86_64 -name one_socket -daemonize -hdb sdb.img -enable-kvm -cpu host -smp cores=4,sockets=1, -m 16G -drive file=rhel7u4.img -vnc :12 -device  -netdev tap,id=ipvm1,ifname=tap0,script=/etc/qemu-ifup -device e1000,netdev=ipvm1,id=net0,mac=00:00:02:98:AC:61

后来发现多了个-device的参数,不知道什么时候加上的-device  -netdev tap,id=ipvm1...

去掉这个-device参数就好了

原文地址:https://www.cnblogs.com/xia-dong/p/11550885.html