guest: Default to e1000e if machine=q35
And libosinfo doesn't have any specific recommendation for us
This commit is contained in:
parent
2da06fec95
commit
7cd41ab9ea
|
@ -40,6 +40,7 @@
|
|||
<interface type="bridge">
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<model type="e1000e"/>
|
||||
</interface>
|
||||
<console type="pty"/>
|
||||
<channel type="spicevmc">
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
<interface type="bridge">
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<model type="e1000e"/>
|
||||
</interface>
|
||||
<console type="pty"/>
|
||||
<channel type="spicevmc">
|
||||
|
@ -120,6 +121,7 @@
|
|||
<interface type="bridge">
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
<model type="e1000e"/>
|
||||
</interface>
|
||||
<console type="pty"/>
|
||||
<channel type="spicevmc">
|
||||
|
|
|
@ -1107,6 +1107,9 @@ class Guest(XMLBuilder):
|
|||
else:
|
||||
net_model = self._os_object.default_netmodel()
|
||||
|
||||
if not net_model and self.os.is_q35():
|
||||
net_model = "e1000e"
|
||||
|
||||
if net_model:
|
||||
for net in self.devices.interface:
|
||||
if not net.model:
|
||||
|
|
Loading…
Reference in New Issue