Weekly news #356

Weekly status for the week of 22th July to 28th July.

Introduction

In the past week, LXD has received several bugfixes and features.

Extended the VM conversion API with option to inject virtio drivers

The conversion API already allows VM images that are uploaded to the LXD server to be converted into a raw disk format. In addition to format conversion, LXD is now capable of injecting virtio drivers into the resulting raw disk. However, currently, the virt-v2v-in-place tool needs to be manually installed on the host running the LXD server.

To inject VIRTIO drivers during conversion, enable virtio conversion option when invoking lxd-migrate:

# Enable only driver injection.
lxd-migrate --conversion=virtio

# Enable both image formatting and driver injection:
lxd-migrate --conversion=format,virtio

Note that when importing Windows images from external hypervisors, additional drivers need to be downloaded and placed in the appropriate directories according to the documentation.

Documentation: How to import physical or virtual machines to LXD instances

Support for starting instances on creation (from Incus)

A new field start has been added to the instance creation API request (POST /1.0/instances), which allows an instance to be started immediately after creation as part of the same request.

Documentation: How to create instances (API tab)

Bugfixes

  • Fixed an issue where virtiofs daemon would not start on older kernel versions. Virtiofs defaults to namespace sandbox mode, which requires pidfd_open support intrduced in Linux 5.3. LXD will now fallback to chroot sandbox mode if running on an older kernel.

  • Project config can now be patched. Previously, the project config was entirely replaced with the request config, but now only the fields present in the request config are updated.

  • Fixed an issue where setting the project quota failed if the file disappeared during the directory walk.

  • Fixed AppArmor rules which prevented unprivileged Ubuntu 24.10 containers from starting. AppArmor rules now allow mounting with the nosymfollow option.

All changes

The items listed below is all of the work which happened over the past week and which will be included in the next release.

LXD

LXD UI

LXD Charm

  • Nothing to report this week

Distribution work

This section is used to track the work done in downstream Linux distributions to ship the latest LXD as well as work to get various software to work properly inside containers.

Ubuntu

  • Nothing to report this week.

LXD snap

3 Likes