libvirt cannot autostart sriov pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Confirmed
|
Undecided
|
Sergio Durigan Junior |
Bug Description
I have a home-lab setup and cannot have a SR-IOV (Intel X540) pool autostarted. After boot I can manually start the pools via virt-manager. The state of machine right after reboot as below (replaced MAC addresses to 00:00:00:00:00:00):
ip link
-------
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wan: <BROADCAST,
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
3: rtl8156b: <BROADCAST,
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
4: x540_p0: <BROADCAST,
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
vf 0 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
vf 1 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
vf 2 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
vf 3 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
5: x540_p1: <BROADCAST,
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
vf 0 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
vf 1 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
vf 2 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
vf 3 link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
virsh net-list --all
-------
Name State Autostart Persistent
-------
WAN active yes yes
x540_p0 inactive yes yes
x540_p1 inactive yes yes
virsh net-dumpxml WAN
-------
<network>
<name>WAN</name>
<forward mode='bridge'/>
<bridge name='wan'/>
</network>
virsh net-dumpxml x540_p0
-------
<network>
<name>
<forward mode='hostdev' managed='yes'>
<pf dev='x540_p0'/>
</forward>
</network>
affects: | netplan → libvirt |
description: | updated |
description: | updated |
tags: | added: server-triage-discuss |
Hi,
most likely something on your device isn't ready yet to be started.
As an initial suggestion I'd recommend to enable debugging of libvirtd [1] via the config files.
And then do a full reboot.
The log file should then contain some info about trying to auto-start this but failing.
You can then grab the same log from the when you later manually start the pool and compare it.
That should already give you a good idea what might be wrong.
The two questions you need to answer with those logs as a first step are:
1. Is it even trying to enable it on boot time (is the actication or the trigger to activate broken)?
2. If it is trying to start it at boot, what is different to the same that works later.
[1]: https:/ /libvirt. org/kbase/ debuglogs. html#turning- on-debug- logs