Best practice to manage network
by linux@hklb.ch
Hi,
First, sorry if the topic has already been discussed recently (the only thread I found related to my problem was created in 2010..)
I have a hypervisor with KVM and LXC installed on a Debian 12, and I'm using libvirt to create my VM. All my networks are defined in my /etc/network/interfaces.d/* (I'm using openvswitch with specific options, such as port mirroring/patch/...) , and I'm configuring the network on my VM XML definition like this :
<interface type='bridge'>
<mac address='52:54:00:ab:c3:d3'/>
<source bridge='prod'/>
<vlan>
<tag id='55'/>
</vlan>
<virtualport type='openvswitch'>
<parameters interfaceid='331d973c-0c5b-4d3c-b2ad-590f908e680d'/>
</virtualport>
<target dev='vnet180'/>
<model type='virtio'/>
<mtu size='9216'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
It is working perfectly, until I'm restarting my network (using ifreload, ifup, systemctl network restart, ...) - all my VM come unreachable... To make it work again, I also need to restart libvirtd
Is it still expected to have this behavior ? What would be a better way to configure the network ?
Thanks in advance
Lucas
18 hours, 11 minutes
libvirt-guests on Redhat
by Joe Muller
Hello,
Per libvirt and Redhat (up to RHEL7) documentation, the
libvirt-guests daemon should be enabled to ensure that guest VMs are
properly shutdown/suspended if the KVM host is shutdown/rebooted. I
understand that in addition to other changes, Redhat moved from the
'monolithic' libvirtd service model to the 'modular' multiple service
model. Out of the box, the systemd libvirt-guests.service is disabled,
and testing shows that the associated qemu-kvm processes for virtual
machines are simply killed as the various virt* services are stopped as
part of the systemd shutdown target.
Did Redhat just decide to fork libvirt and do their own thing, or
there some equivalent way to get the same clean shutdown behavior which
libvirt-guests used to provide?
Relevant documentation: --- https://libvirt.org/daemons.html
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/...
-- Joe Muller System Administrator Sonic.
1 day, 4 hours