Re: Statically Defining a Network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 11, 2024 at 04:23:33PM GMT, richard.schmitt--- via Users wrote:
> We install libvirt in a AlmaLinux 9 Kickstart file.  The version of
> libvirt we are using is 10.0.0.
>
> What we'd like to do is to statically define a network in the
> kickstart file without having to run `virsh net-define`.  In other
> words, we had hoped that by installing a <network>.xml file in
> /usr/share/libvirt/networks, that that network would be recognized
> by libvirt the first time the system is booted.  This does not
> appear to be the case.
>
> Is there a way to statically define libvirt networks without
> needing to run 'virsh net-define'?

You need to install the file in /etc/libvirt/qemu/networks instead.
If you want the network to be autostarted, you also need to create a
symlink in /etc/libvirt/qemu/networks/autostart that points to the
network XML and has a matching name.

-- 
Andrea Bolognani / Red Hat / Virtualization



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux