fix ethernet device pci slot conflict

This commit is contained in:
Jonas Heinrich 2022-05-23 19:30:06 +02:00 committed by Mikhail Klementev
parent 467f74f19a
commit 17f17be784

2
xml.go
View file

@ -35,7 +35,7 @@ var qemuParamsDefault = `
var qemuParamsWithNetwork = ` var qemuParamsWithNetwork = `
<qemu:commandline> <qemu:commandline>
<qemu:arg value='-device'/> <qemu:arg value='-device'/>
<qemu:arg value='e1000,netdev=net0'/> <qemu:arg value='e1000,netdev=net0,bus=pci.0,addr=0x10'/>
<qemu:arg value='-netdev'/> <qemu:arg value='-netdev'/>
<qemu:arg value='user,id=net0'/> <qemu:arg value='user,id=net0'/>
<qemu:arg value='-snapshot'/> <qemu:arg value='-snapshot'/>