Weekly news #378

Weekly status for the week of 6th January to 12th January.

Introduction

The highlight of the past week is a new feature in LXD that enables attaching a VM root volume to another instance. Additionally, several bugs were fixed, and various improvements were made to error handling throughout the LXD codebase.

The temporary issues with the images: remote, caused by hardware failures, have also been resolved, and the remote is now fully functional. We are still working on restoring its IPv6 connectivity.

Thanks to all the contributors!

Allow attaching VMs root volumes as disk devices

LXD now allows attaching virtual machine volumes as disk devices to other instances.

In order to prevent concurrent access, security.protection.start must be set on an instance before its root volume can be attached to another virtual-machine.

lxc config set vm1 security.protection.start=true
lxc storage volume attach my-pool virtual-machine/vm1 vm2

Since simultaneous access to storage volumes with content-type: block is considered unsafe, certain limitations apply:

  • When security.protection.start is enabled, the root volume can be attached to only one other instance. This is recommended for interactive use, such as when access to the block device is needed for volume recovery.

  • Enabling security.shared removes the restriction of how many instances can access the block volume simultaniously. However, it comes with the risk of volume corruption.

  • When neither security.protection.start nor security.shared is enabled, the root volume cannot be attached to another instance.

Documentation: Attach instance root volumes to other instances

Bug Fixes

  • The API now supports fetching network zones from all projects. (from Incus)

  • The lxc auto-completion has been further improved to provide correct suggestions for load balancer addresses when managing network forwards, as well as target addresses when adding new network forward ports. Additionally, auto-completion now supports the --project, --profile, and --mode flags.

  • Improved lxc auto-completion for lxc file push|pull, which now suggests files within an instance. (from Incus)

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

LXD Terraform provider

  • Nothing to report this week

PyLXD

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

2 Likes