Commit Graph

53 Commits

Author SHA1 Message Date
Michael Tremer
7eec7e2c8b ncat: Make this package part of the core system
The nc command is required for the Unbound/DHCP leases bridge.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-10-07 10:19:14 +00:00
Adolf Belka
2261d072e5 libvirt: Update to version 10.7.0
- Update from version 10.0.0 to 10.7.0
- Update of rootfile
- 1 CVE fix in 10.7.0 and 1 in 10.1.0
- Changelog
    10.7.0
	* **Security**
	  * CVE-2024-8235: Crash of ``virtinterfaced`` via ``virConnectListInterfaces()``
	    A refactor of the code fetching the list of interfaces for multiple APIs
	    introduced corner case on platforms where allocating 0 bytes of memory
	    results in a NULL pointer.
	    This corner case would lead to a NULL-pointer dereference and subsequent
	    crash of ``virtinterfaced`` if ``virConnectListInterfaces()`` is called
	    requesting 0 networks to be filled.
	    The bug was introduced in libvirt-10.4.0
	* **New features**
	  * qemu: Introduce the ability to disable the built-in PS/2 controller
	    It is now possible to control the state of the ``ps2`` feature in the
	    domain XML for descendants of the generic PC machine type (``i440fx``,
	    ``q35``, ``xenfv`` and ``isapc``).
	* **Improvements**
	  * ch: support restore with network devices
	    Cloud-Hypervisor starting from V40.0 supports restoring file descriptor
	    backed network devices. So, create new net fds and pass them via
	    SCM_RIGHTS to CH during restore operation.
	  * ch: support basic networking modes
	    Cloud-Hypervisor driver now supports Ethernet, Network (NAT) and Bridge
	    networking modes.
    10.6.0
	* **Removed features**
	  * qemu: Require QEMU-5.2.0 or newer
	    The minimal required version of QEMU was bumped to 5.2.0.
	* **New features**
	  * qemu: Add support for the 'pauth' Arm CPU feature
	  * Introduce pstore device
	    The aim of pstore device is to provide a bit of NVRAM storage for guest
	    kernel to record oops/panic logs just before it crashes. Typical usage
	    includes usage in combination with a watchdog so that the logs can be
	    inspected after the watchdog rebooted the machine.
	* **Improvements**
	  * qemu: Set 'passt' net backend if 'default' is unsupported
	    If QEMU is compiled without SLIRP support, and if domain XML allows it,
	    starting from this release libvirt will use passt as the default backend
	    instead. Also, supported backends are now reported in the domain
	    capabilities XML.
	  * qemu: add a monitor to /proc/$pid when killing times out
	    In cases when a QEMU process takes longer to be killed, libvirt might have
	    skipped cleaning up after it. But now a /proc/$pid watch is installed so
	    this does not happen ever again.
	* **Bug fixes**
	  * virt-aa-helper: Allow RO access to /usr/share/edk2-ovmf
	    When binary version of edk2 is distributed, the files reside under
	    /usr/share/edk2-ovmf. Allow virt-aa-helper to generate paths under that
	    directory.
	  * virt-host-validate: Allow longer list of CPU flags
	    During its run, virt-host-validate parses /proc/cpuinfo to learn about CPU
	    flags. But due to a bug it parsed only the first 1024 bytes worth of CPU
	    flags leading to unexpected results. The file is now parsed properly.
	  * capabilities: Be more forgiving when decoding OEM strings
	    On some systems, OEM strings are scattered in multiple sections. This
	    confused libvirt when generating capabilities XML. Not anymore.
    10.5.0
	* **New features**
	  * Introduce SEV-SNP support
	    SEV-SNP is introduced as another type of ``<launchSecurity/>``. Its support
	    is reported in both domain capabilities and ``virt-host-validate``.
	* **Improvements**
	  * tools: virt-pki-validate has been rewritten in C
	    The ``virt-pki-validate`` shell script has been rewritten as a C program,
	    providing an output format that matches ``virt-host-validate``, removing
	    the dependency on ``certtool`` and providing more comprehensive checks
	    of the certificate properties.
	  * qemu: implement iommu coldplug/unplug
	    The ``<iommu/>`` device can be now cold plugged and/or cold unplugged.
	  * Pass shutoff reason to release hook
	    Sometimes in release hook it is useful to know if the VM shutdown was
	    graceful or not. This is especially useful to do cleanup based on the VM
	    shutdown failure reason in release hook. Starting with this release the
	    last argument 'extra' is used to pass VM shutoff reason in the call to
	    release hook.
	  * nodedev: improve DASD detection
	    In newer DASD driver versions the ID_TYPE tag is supported. This tag is
	    missing after a system reboot but when the ccw device is set offline and
	    online the tag is included. To fix this version independently we need to
	    check if a device detected as type disk is actually a DASD to maintain the
	    node object consistency and not end up with multiple node objects for
	    DASDs.
	* **Bug fixes**
	  * remote_daemon_dispatch: Unref sasl session when closing client connection
	    A memory leak was identified when a client started SASL but then suddenly
	    closed connection. This is now fixed.
	  * qemu: Fix migration with disabled vmx-* CPU features
	    Migrating a domain with some vmx-* CPU features marked as disabled could
	    have failed as the destination would incorrectly expect those features to
	    be enabled after starting QEMU.
	  * qemu: Fix ``libvirtd``/``virtqemud`` crash when VM shuts down during migration
	    The libvirt daemon could crash when a VM was shut down while being migrated
	    to another host.
    10.4.0
	* **New features**
	  * qemu: Support for ras feature for virt machine type
	    It is now possible to set on/off ``ras`` feature in the domain XML for virt
	    (Arm) machine type as ``<ras state='on'/>``.
	  * SSH proxy for VM
	    Libvirt now installs a binary helper that allows connecting to QEMU domains
	    via SSH using the following scheme: ``ssh user@qemu/virtualMachine``.
	  * qemu: Support for ``virtio`` sound model
	    Sound devices can now be configured to use the virtio model with
	    ``<sound model='virtio'/>``. This model is available from QEMU 8.2.0
	    onwards.
	  * network: use nftables to setup virtual network firewall rules
	    The network driver can now use nftables rules for the virtual
	    network firewalls, rather than iptables. With the standard build
	    options, nftables is preferred over iptables (with fallback to
	    iptables if nftables isn't installed), but this can be modified at
	    build time, or at runtime via the firewall_backend setting in
	    network.conf. (NB: the nwfilter driver still uses
	    ebtables/iptables).
	* **Improvements**
	  * qemu: add zstd to supported compression formats
	    Extend the list of supported formats of QEMU save image by adding zstd
	    compression.
	  * qemu: Implement support for hotplugging evdev input devices
	    As of this release, hotplug and hotunplug of evdev ``<input/>`` devices is
	    supported.
	* **Bug fixes**
	  * virsh/virt-admin: Fix ``--help`` option for all commands
	    A bug introduced in `v10.3.0 (2024-05-02)`_ caused that the attempt to print
	    help for any command by using the ``--help`` option in ``virsh`` and
	    ``virt-admin`` would print::
	      $ virsh list --help
	      error: command 'list' doesn't support option --help
	    instead of the help output. A workaround for the affected version is to use
	    the help command::
	      $ virsh help list
	  * qemu: Fix ``virsh save`` and migration when storage in question is root_squashed NFS
	    Attempting to save a VM to a root_squash NFS mount or migrating with disks
	    hosted on such mount could, in some scenarios, result in error stating::
	      'Unknown error 255'
	    The bug was introduced in `v10.1.0 (2024-03-01)`_.
	  * qemu: Don't set affinity for isolcpus unless explicitly requested
	    When starting a domain, by default libvirt sets affinity of QEMU process to
	    all online CPUs. This also included isolated CPUs (``isolcpus=``) which is
	    wrong. As of this release, isolated CPUs are left untouched, unless
	    explicitly configured in domain XML.
	  * qemu_hotplug: Properly assign USB address to hotplugged usb-net device
	    Previously, the network device hotplug logic would try to ensure only CCW
	    or PCI addresses. With recent support for the usb-net model, USB addresses
	    for usb-net network devices are assigned automatically.
	  * qemu: Fix hotplug of ``virtiofs`` filesystem device with ``<boot order=`` set
	    The bug was introduced in `v10.3.0 (2024-05-02)`_ when attempting to reject
	    unsupported configurations. During hotplug the addresses are
	    assigned after validation and thus errorneously reject valid configs.
    10.3.0
	* **New features**
	  * qemu: Proper support for USB network device
	    USB address is now automatically assigned to USB network devices thus they
	    can be used without manual configuration.
	  * conf: Introduce memReserve attribute to <controller/>
	    Some PCI devices have large non-prefetchable memory. This can be a problem
	    in case when such device needs to be hotplugged as the firmware can't
	    foresee such situation. The user thus can override the value calculated at
	    start to accomodate for such devices.
	* **Improvements**
	  * Improve validation of USB devices
	    Certain USB device types ('sound', 'fs', 'chr', 'ccid' and 'net') were not
	    properly handled in the check whether the VM config supports USB and thus
	    would result in poor error messages.
	  * virsh: Fix behaviour of ``--name`` and ``--parent`` used together when listing checkpoint and snapshots
	    The ``checkpoint-list`` and ``snapshot-list`` commands would ignore the
	    ``--name`` option to print only the name when used with ``--parent``.
	  * Extend libvirt-guests to shutdown only persistent VMs
	    Users can now choose to shutdown only persistent VMs when the host is being
	    shut down.
	* **Bug fixes**
	  * qemu: Fix migration with custom XML
	    Libvirt 10.2.0 would sometimes complain about incompatible CPU definition
	    when trying to migrate or save a domain and passing a custom XML even
	    though such XML was properly generated as migratable. Hitting this bug
	    depends on the guest CPU definition and the host on which a particular
	    domain was running.
	  * qemu: Fix TLS hostname verification failure in certain non-shared storage migration scenarios
	    In certain scenarios (parallel migration, newly also post-copy migration)
	    libvirt would wrongly pass an empty hostname to QEMU to be used for TLS
	    certificate hostname validation, which would result into failure of the
	    non-shared storage migration step::
	     error: internal error: unable to execute QEMU command 'blockdev-add': Certificate does not match the hostname
	  * Create OVS ports as transient
	    Libvirt now creates OVS ports as transient which prevents them from
	    reappearing or going stale on sudden reboots.
	  * Clear OVS QoS settings when domain shuts down
	    Libvirt now clears QoS settings on domain shutdown, so they no longer pile
	    up in OVS database.
    10.2.0
	* **New features**
	  * ch: Basic save and restore support for ch driver
	    The ch driver now supports basic save and restore operations. This is
	    functional on domains without any network, host device config defined.
	    The ``path`` parameter for save and restore should be a directory.
	  * qemu: Support for driver type ``mtp`` in ``<filesystem/>`` devices
	    The ``mtp`` driver type exposes the ``usb-mtp`` device in QEMU. The
	    guest can access files on this driver through the Media Transfer
	    Protocol (MTP).
	  * qemu: Added support for the loongarch64 architecture
	    It is now possible for libvirt to run loongarch64 guests, including on
	    other architectures via TCG. For the best results, it is recommended to
	    use the upcoming QEMU 9.0.0 release together with the development version
	    of edk2.
	  * qemu: Introduce virDomainGraphicsReload API
	    Reloading the graphics display is now supported for QEMU guests using
	    VNC. This is useful to make QEMU reload the TLS certificates without
	    restarting the guest. Available via the ``virDomainGraphicsReload`` API
	    and the ``domdisplay-reload`` virsh command.
	* **Bug fixes**
	  * qemu: Fix migration from libvirt older than 9.10.0 when vmx is enabled
	    A domain with vmx feature enabled (which may be even done automatically
	    with ``mode='host-model'``) started by libvirt 9.9.0 or older cannot be
	    migrated to libvirt 9.10.0, 10.0.0, and 10.1.0 as the target host would
	    complain about a lot of extra ``vmx-*`` features. Migration of similar
	    domains started by the affected releases to libvirt 9.9.0 and older
	    does not work either. Since libvirt 10.2.0 migration works again with
	    libvirt 9.9.0 and older in both directions. Migration from the affected
	    releases to 10.2.0 works as well, but the other direction remains broken
	    unless the fix is backported.
	  * node_device: Don't report spurious errors from PCI VPD parsing
	    In last release the PCI Vital Product Data parser was enhanced to report
	    errors but that effort failed as some kernels have the file but don't allow
	    reading it causing logs to be spammed with::
	      libvirtd[21055]: operation failed: failed to read the PCI VPD data
	    Since the data is used only in the node device XML and errors are ignored if
	    the parsing failed, this release removes all the error reporting.
	  * qemu: set correct SELinux label for unprivileged virtiofsd
	    It is now possible to use virtiofsd-based ``<filesystem>`` shares even
	    if the guest is confined using SELinux.
	  * qemu: fix a crash on unprivileged virtiofsd hotplug
	    Hotplugging virtiofsd-based filesystems works now.
	  * virt-admin: Fix segfault when libvirtd dies
	    ``virt-admin`` no longer crashes when ``libvirtd`` unexpectedly closes
	    the connection.
    10.1.0
	* **Security**
	  * ``CVE-2024-1441``: Fix off-by-one error leading to a crash
	    In **libvirt-1.0.0** there were couple of interface listing APIs
	    introduced which had an off-by-one error.  That error could lead to a
	    very rare crash if an array was passed to those functions which did
	    not fit all the interfaces.
	    In **libvirt-5.10** a check for non-NULL arrays has been adjusted to
	    allow for NULL arrays with size 0 instead of rejecting all NULL
	    arrays.  However that made the above issue significantly worse since
	    that off-by-one error now did not write beyond an array, but
	    dereferenced said NULL pointer making the crash certain in a
	    specific scenario in which a NULL array of size 0 was passed to the
	    aforementioned functions.
	* **New features**
	  * nodedev: Support updating mdevs
	    The node device driver has been extended to allow updating mediated node
	    devices. Options are available to target the update against the persistent,
	    active or both configurations of a mediated device.
	    **Note:** The support is only available with at least mdevctl v1.3.0 installed.
	  * qemu: Add support for /dev/userfaultfd
	    On hosts with new enough kernel which supports /dev/userfaultfd libvirt will
	    now automatically grant QEMU access to this device. It's no longer needed to
	    set vm.unprivileged_userfaultfd sysctl.
	  * qemu: Support clusters in CPU topology
	    It is now possible to configure the guest CPU topology to use clusters.
	    Additionally, if CPU clusters are present in the host topology, they will
	    be reported as part of the capabilities XML.
	  * network: Make virtual domains resolvable from the host
	    When starting a virtual network with a new ``register='yes'`` attribute
	    in the ``<domain>`` element, libvirt will configure ``systemd-resolved``
	    to resolve names of the connected guests using the name server started
	    for this network.
	  * qemu: Introduce dynamicMemslots attribute for virtio-mem
	    QEMU now allows setting ``.dynamic-memslots`` attribute for virtio-mem-pci
	    devices. When turned on, it allows memory exposed to guest to be split into
	    multiple memory slots and thus smaller memory footprint (see the original
	    commit for detailed explanation).
	* **Improvements**
	  * nodedev: Add ability to update persistent mediated devices by defining them
	    Existing persistent mediated devices can now also be updated by
	    ``virNodeDeviceDefineXML()`` as long as parent and UUID remain unchanged.
	  * ch: Enable ``ethernet`` interface mode support
	    ``<interface type='ethernet'/>`` can now be used for CH domains.
	  * viraccessdriverpolkit: Add missing vtpm case
	    Secrets with ``<usage type='vtpm'>`` were left unable to be checked for in
	    the access driver, i.e. in ACL rules. Missing code was provided.
	  * virt-admin: Notify users to use explicit URI if connection fails
	    ``virt-admin`` doesn't try to guess the URI of the daemon to manage so a
	    failure to connect may be confusing for users if modular daemons are used.
	    Add a hint to use the URI of the dameon to manage.
	* **Bug fixes**
	  * qemu_process: Skip over non-virtio non-TAP NIC models when refreshing rx-filter
	    If ``trustGuestRxFilters`` is enabled for a vNIC that doesn't support it,
	    libvirt may throw an error when such domain is being started, loaded from a
	    saved state, migrated, etc. These errors are now silenced, but make sure to
	    fix such configurations (after previous release it is even possible to
	    change ``trustGuestRxFilters`` value on live domains via
	    ``virDomainUpdateDeviceFlags()`` or ``virsh device-update``).
	  * domain: Fix check for overlapping ``<memory/>`` devices
	    A bug was identified which caused libvirt to report two NVDIMMs as
	    overlapping even though they weren't. This now fixed.
	  * vmx: Accept empty fileName for cdrom-image
	    Turns out, ``fileName`` attribute (which contains path to CDROM image) can
	    be set to an empty string (``""``) to denote a state in which the CDROM has
	    no medium in it. Libvirt used to reject such configuration file, but not
	    anymore.
	  * qemu_hotplug: Don't lose 'created' flag in qemuDomainChangeNet()
	    When starting a domain, libvirt tracks what resources it created for it and
	    which were pre-existing and uses this information to preserve pre-existing
	    resources when cleaning up after said domain is shut off. But for macvtaps
	    this information was lost after the macvtap device was changed (e.g. via
	    ``virsh update-device``).
	  * Fix virStream hole handling
	    When a client sent multiple holes into a virStream it may have caused
	    daemon hangup as the daemon stopped processing RPC from the client
	    temporarily. This is now fixed.
	  * nodedev: Don't generate broken XML with certain hardware
	    A broken node device XML would be generated in a rare case when a hardware
	    device had certain characters in the VPD fields.
	  * qemu: Fix reservation of manually specified port for disk migration
	    A manually specified port would not be relased after disk migration making
	    it impossible to use it again.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-09-03 12:52:53 +00:00
Michael Tremer
3757d24e47 libvirt: Don't build for riscv64
There seems to be some problem that this package does not build from
source, but as we don't currently have any hardware that supports thise,
there is no point in debugging it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-02-07 11:21:49 +00:00
Adolf Belka
3f22b83096 libvirt: Update to version 10.0.0
- Update from version 8.10.0 to 10.0.0
- Update of rootfile
- Changelog is too large to include here. Details can be found in the NEWS.rst file in the
   source tarball
    CVE-2023-3750 was fixed in version 9.6.0
	Fix race condition in storage driver leading to a crash
	    In **libvirt-8.3** a bug was introduced which in rare cases could cause
	    ``libvirtd`` or ``virtstoraged`` to crash if multiple clients attempted to
	    look up a storage volume by key, path or target path, while other clients
	    attempted to access something from the same storage pool.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-23 13:53:47 +00:00
Arne Fitzenreiter
4d4f665ab3 riscv64: enable some disabled addons
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-10-09 08:16:53 +00:00
Adolf Belka
954c3fb914 libvirt: libtirpc removed from dependencies as now core package
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-09 13:00:29 +00:00
Adolf Belka
3227129d7b libvirt: Ship due to sobump from json-c update
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-01-05 10:40:59 +00:00
Adolf Belka
1302f0cde8 libvirt: Update version to 8.10.0
- Update from version 8.9.0 to 8.10.0
- Update of rootfile
- Changelog
    v8.10.0 (2022-12-01)
	**New features**
		  * Tool for validating SEV firmware boot measurement of QEMU VMs
		     The ``virt-qemu-sev-validate`` program will compare a reported SEV/SEV-ES
		     domain launch measurement, to a computed launch measurement. This
		     determines whether the domain has been tampered with during launch.
		  * Support for SGX EPC (enclave page cache)
		     Users can add a ``<memory model='sgx-epc'>`` device to lauch a VM with
		     ``Intel Software Guard Extensions``.
		  * Support migration of vTPM state of QEMU vms on shared storage
		     Pass ``--migration`` option if appropriate in order for ``swtpm`` to
		     properly migrate on shared storage.
	**Improvements**
		  * Mark close callback (un-)register API as high priority
		     High priority APIs use a separate thread pool thus can help in eliminating
		     problems with stuck VMs. Marking the close callback API as high priority
		     allows ``virsh`` to properly connect to the daemon in case the normal
		     priority workers are stuck allowing other high priority API usage.
		  * Updated x86 CPU features
		     The following features for the x86 platform were added:
		      ``v-vmsave-vmload``, ``vgif``, ``avx512-vp2intersect``, ``avx512-fp16``,
		      ``serialize``, ``tsx-ldtrk``, ``arch-lbr``, ``xfd``, ``intel-pt-lip``,
		      ``avic``, ``sgx``, ``sgxlc``, ``sgx-exinfo``, ``sgx1``, ``sgx2``,
		      ``sgx-debug``, ``sgx-mode64``, ``sgx-provisionkey``, ``sgx-tokenkey``,
		      ``sgx-kss``, ``bus-lock-detect``, ``pks``, ``amx``.
		  * Add support for ``hv-avic`` Hyper-V enlightenment
		     ``qemu-6.2`` introduced support for the ``hv-avic`` enlightenment which
		     allows to use Hyper-V SynIC with hardware APICv/AVIC enabled.
		  * qemu: Run memory preallocation with numa-pinned threads
		     Run the thread allocating memory in the proper NUMA node to reduce overhead.
		  * RPM packaging changes
		    - add optional dependancy of ``libvirt-daemon`` on ``libvirt-client``
		       The ``libvirt-guests.`` tool requires the ``virsh`` client to work
		       properly, but we don't want to require the installation of the daemon
		       if the tool is not used.
		    - relax required ``python3-libvirt`` version for ``libvirt-client-qemu``
		       The ``virt-qemu-qmp-proxy`` tool requires python but doesn't strictly
		       need the newest version. Remove the strict versioning requirement in
		       order to prevent cyclic dependency when building.
	**Bug fixes**
		  * Skip initialization of ``cache`` capabilities if host doesn't support them
		     Hypervisor drivers would fail to initialize on ``aarch64`` hosts with
		     following error ::
		       virStateInitialize:657 : Initialisation of cloud-hypervisor state driver failed: no error
		     which prevented the startup of the daemon.
		  * Allow incoming connections to guests on routed networks w/firewalld
		     A change in handling of implicit rules in ``firewalld 1.0.0`` broke
		     incomming connections to VMs when using ``routed`` network. This is fixed
		     by adding a new ``libvirt-routed`` zone configured to once again allow
		     incoming sessions to guests on routed networks.
		  * Fix infinite loop in nodedev driver
		     Certain udev entries might be of a size that makes libudev emit EINVAL
		     which caused a busy loop burning CPU. Fix it by ignoring the return code.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-12-26 08:39:00 +00:00
Adolf Belka
81c3f9e1b9 libvirt: Update to version 8.9.0
- Update from 7.10.0 to 8.9.0
- Update of rootfile
- Removal of sheepdog_storage option in ./configure as it has been removed from libvirt
- Removal of libvirt-7.10.0-fix-glibc-headers.patch as contents are now built in to source
   tarball.
- Changelog is too large to include here. Details can be found in the NEWS.rst file in
   the source tarball.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-11-25 11:58:27 +00:00
Peter Müller
a15a758292 {libvirt,qemu,samba}: Bump package versions for glibc changes
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-09-11 08:46:48 +00:00
Michael Tremer
34097d0bd3 libvirt: Fix build against glibc 2.36
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-09-11 08:36:17 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Peter Müller
93f7f46bf6 Merge branch 'next' into temp-c165-development 2022-02-13 20:34:06 +00:00
Arne Fitzenreiter
419aaf916c libvirt: ship arm cpu configfiles
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-02-13 08:55:24 +00:00
Robin Roevens
f15707c78c buildprocess: Add extra metadata to pak lfs files
* Add a Summary and Services field to all pak lfs files
* Replace occurances of INSTALL_INITSCRIPT with new INSTALL_INITSCRIPTS
  macro in all pak lfs files.

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-11 15:13:15 +00:00
Arne Fitzenreiter
e22b42571a libvirt: enabled on aarch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2022-01-23 08:03:06 +00:00
Adolf Belka
084bd67b62 libvirt: Update to version 7.10.0
- Update from 6.5.0 to 7.10.0 (17 releases between these versions)
- Update of rootfile
- Update of patch as source file contents changed enough that old patch failed to work
- Build changed to meson/ninja as autotools option has been removed
- Most of the existing options were available as meson options - look in
   meson_options.txt file in the source tarball.
   Three options were not available with meson
   --with-virtualport
   --with-macvtap
   --without-dbus
- Changelog is too large to include here (~1200 lines) but the detail can be seen in the
   NEWS.rst file in the source tarball. Many bug fixes identified in the changelog

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-01-14 13:42:04 +00:00
Michael Tremer
6cf219c427 Drop support for i586
This patch removes support for i586 according to the decision being
taken over a year ago.

It removes the architecture from the build system and removes all
required hacks and other quirks that have been necessary before.

There is no need to ship any changed files to the remaining
architectures as the removed code branches have not been used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-12-04 23:27:26 +01:00
Michael Tremer
40a3053a67 libvirtd: Enable required cgroups
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-19 18:13:55 +00:00
Michael Tremer
4c0e047bb5 core155: Ship libffi and all dependencies
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-03-03 13:40:33 +00:00
Arne Fitzenreiter
0216f1ecdd libvirt: add libtirpc to dependencies
libvirt is linked against libtirpc so this need to installed.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-08-31 18:39:01 +02:00
Michael Tremer
9a62b6daac libvirt: Depend on ebtables
libvirtd requires this to create some custom firewall rules

Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-19 14:08:54 +00:00
Michael Tremer
882ab515f9 libvirt: Ship all CPU maps
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-19 14:08:53 +00:00
Matthias Fischer
196cdadab8 libvirt: Update to 6.5.0
For details see:
https://libvirt.org/news.html

This update "just came my way" - I hope its somehow useful.

I also checked updates for dependencies - 'libusbredir 0.8.0' and 'qemu 5.0.0' follow.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-17 17:53:38 +00:00
Michael Tremer
2dc2a27803 lfs: Drop quotes in DEPS variable
Not sure why this has ever been there. This simply makes it
nicer to read and edit because we can have line-breaks now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:57:27 +00:00
Jonatan Schlag
5cc921b474 Libvirt: enable lvm
This was requested in the forum:

https://forum.ipfire.org/viewtopic.php?f=17&t=21872&p=120243&hilit=lvm#p120243

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-11-13 19:39:33 +00:00
Jonatan Schlag
62e116567a Libvirt: update to version 5.6.0
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-11-13 19:39:20 +00:00
Jonatan Schlag
3e5d4e6f83 libvirt: use a custom config file
The patch which adjusts the options for IPFire in the libvirtd.conf does
not apply in a newer version of libvirt. Creating this patch is harder
than to use a separate config file.

This separate config file also enables us to adjust options much faster.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-11-13 19:38:59 +00:00
Jonatan Schlag
8d82903c0d Libvirt: disable Wireshark
When I try to build libvirt a second-time without ./make.sh clean
between the two builds, libvirt tries to link against Wireshark and
fails.
This configure option solves the problem.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-11-13 19:38:29 +00:00
Michael Tremer
2aff684f37 libvirt: The package no longer depends on jansson
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-03 15:12:39 +00:00
Michael Tremer
cdaad0cdd3 libvirt: Bump package version
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-02 16:24:39 +00:00
Jonatan Schlag
909549b1d6 Update libvirt to version 4.10
This partially fixes #11941 as libvirt now states clearly that seccomp
needs to be disabled

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-18 22:33:07 +00:00
Michael Tremer
6124245427 libvirt: This package depends on jansson now
Fixes: #11939
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-11-27 10:04:46 +00:00
Michael Tremer
edacf85320 libvirt: Update to 4.6.0
Fixes builds against glibc >= 2.28

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-24 09:25:57 +01:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Michael Tremer
ca4c354e08 Bump release of all packages linked against OpenSSL
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-02-26 16:28:16 +00:00
Jonatan Schlag
e7edab7e55 libvirt: update to version 4.0
This version works for me. Some others do not ..

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-24 16:12:51 +00:00
Jonatan Schlag
8e5116af26 Update libvirt to 3.1.0
This patch update the libvirt library to version 3.1.0
We can not update to the latest version in the moment because version
3.2.0 has a annoying bug.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-04-16 17:29:11 +01:00
Jonatan Schlag
c8b7d517d0 Libvirt: move initscripts to src/initscripts/packages and use new macro
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
2017-02-22 13:16:12 +01:00
Jonatan Schlag
cb144b4f8a Move the initscripts of the libvirt package into the packages directory
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
2017-02-22 11:21:17 +01:00
Jonatan Schlag
9a015b5bd5 Update libvirt to 2.5
For Changelog see:
https://libvirt.org/news-2016.html

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-01-02 14:43:23 +00:00
Jonatan Schlag
3943a54036 Libvirt: Fix update.sh script
The virtlogd could only be restarted when the daemons run. The update.sh
script tried to restart the daemon no matter if the daemons run or not.
This behaviour produce problems.

An If statement now checks if the daemon runs or not and execute the
command that is suitable for the situation.

Fixes: #11172

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-09-05 17:05:32 +01:00
Jonatan Schlag
d996e17ab8 Update libvirt to 2.1
This is the update of libvirt to the latest version 2.1.
The most important change from a packager view is the new virtlogd
daemon.
This daemon handles the qemu output and wrote it to log files.

The require some changes:
- A new init script to start, stop restart the daemon called virtlogd.
The daemon is restart with SIGUSR1 (this is important because the daemon
keeps all pipelines etc. open).

This introduces a problem with the uninstall.sh install.sh script.
It is not possible to stop the daemon while virtual machines are
running, so the script update.sh execute from now not uninstall.sh and
install.sh instead it contains all steps from uninstall.sh install.sh
expect the start / stop routine for virtlogd. The daemon is just
restarted after the update, which makes sure that all changes take
effect.

- new symlinks in the uninstall.sh and install.sh script and some root
file changes because of the new virtlogd init script.
- the archive format changes from tar.gz to tar.xz

For Changelogs see:

https://libvirt.org/news-2015.html
https://libvirt.org/news.html (2017 and later:
https://libvirt.org/news-2016.html )

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-31 22:40:35 +01:00
Jonatan Schlag
a07b8a2d55 Libvirt: load vhost_net before libvirtd start.
If the  kernel module vhot_net is loaded, the performance of virtio
networking is better then without vhost_net.
So the module is loaded before libvirtd ist started to get the benefit
of vhost_net.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-14 15:43:00 +01:00
Jonatan Schlag
cf5c7c9f2b Libvirt: fix configuration options
Adds a missed - to -without-dbus and -with-interface.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-14 15:42:59 +01:00
Jonatan Schlag
ae2919a502 Libvirt: enable storage-fs
Fixes: 11154

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-14 15:42:30 +01:00
Jonatan Schlag
1cd62a8d3d Libvirt: Remove delay from start command in install.sh
Fixes: #11152

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-03 11:42:24 +01:00
Jonatan Schlag
3a4a8b055b Libvirt: Add backup
The directory /etc/libvirt is backed up on uninstallation  and is
restored on installation.

Alle Files in  /var are commented in the rootfile so they are not
removed on uninstallation.
Because of the fact that the directories are not shipped with the
package they were created at installation time.
The permissions of 3 directories are changed because the qemu user is
nobody and the qemu group is kvm, so the permissions must be nobody:kvm

Fixes: #11151

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-02 16:07:33 +01:00
Jonatan Schlag
b61fe3f404 Fix in libvirt install.sh/uninstall.sh
The libvirt daemon was not started after installation because the
initscritp is named 'libvirtd' not like the package 'libvirt'.
The same problem appear in the uninstall.sh. The service was not
stopped.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-07-15 09:53:13 +01:00