cockpit-project / cockpit-machines

Cockpit UI for virtual machines
GNU Lesser General Public License v2.1
293 stars 75 forks source link

Fedora VMs erroneously state "Changes pending" #1098

Closed jonpmyatt closed 11 months ago

jonpmyatt commented 1 year ago

I have two Fedora VMs (F36, F37) and both of them show "Changes pending" in Cockpit related to network, the message is: "VM needs shutdown - Some configuration changes only take effect after a fresh boot: Network interface". A reboot or shutdown/restart does not make this message go away. I've not made any network changes so I suspect this might be a bug, but I don't really know how to investigate it. Thanks.

Larse99 commented 1 year ago
Scherm­afbeelding 2023-06-16 om 09 38 40

Same. Alma Linux

MarcosCC commented 1 year ago

Same here, but is Debian host and Debian guest. Have several VMs, but only this one shows the message.

Virtual Machine Manager GUI does not show any changes pending on this VM.

skobyda commented 1 year ago

Hey, do you mind sharing an offline and live XML of any of those VM which has the "Changes pending" label. When the VM is running, you can run virsh dumpxml [vmName] to get and n live XML configuration, and then run virsh dumpxml [vmName] --inactive to get an offline XML configuration

MarcosCC commented 1 year ago

Attached

On Mon, 11 Sept 2023 at 20:57, Simon Kobyda @.***> wrote:

Hey, do you mind sharing an offline and live XML of any of those VM which has the "Changes pending" label. When the VM is running, you can run virsh dumpxml [vmName] to get and n live XML configuration, and then run virsh dumpxml [vmName] --inactive to get an offline XML configuration

— Reply to this email directly, view it on GitHub https://github.com/cockpit-project/cockpit-machines/issues/1098#issuecomment-1713828133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXR2C7CMJEFCYMKBI5BSVLXZ4DERANCNFSM6AAAAAAYYCUTEA . You are receiving this because you commented.Message ID: @.***>

-- Marcos R Carot

2007or10-Minecraft c5ec9690-ffae-48c1-bbca-3be1a9fc98d8 12582912 12582912 4 /machine hvm destroy restart destroy /usr/bin/qemu-system-x86_64
jwhaugustine commented 1 year ago

I have this same issue when creating a bridged network so VMs can share interfaces.

The host is Ubuntu and the guests are varying Linux and Windows.

Create a bridge:

ip link add br0 type bridge
ip link set eth0 master br0
ip link set br0 up
ip link set eth0 up

Create a new network for KVM:

<network>
    <name>bridge</name>
    <forward-mode="bridge"/>
    <bridge name="br0"/>
</network>

Attach the network to a VM and observe the following: bridge_net Shutdown, restart, recreate the VM and message persists. The interface is indeed working, on multiple VMs, as it is the only network device attached to each machine.

KKoukiou commented 11 months ago

Duplicate of #563