Skip to content

tools: add nm-in-vm script

Íñigo Huguet requested to merge ih/nm-in-vm into main

Summary

Add a new tool called nm-in-vm to ease testing with virtual machines.

Purpose

Some features cannot be tested from a container, like features that requires root access that we don't have in a rootless container. This tool will download and configure a virtual machine that will work in a very similar way than nm-in-container.

If no VM name is specified, nm is used. If another name is specified, it can be configured and used in parallel. Different OS can be chosen: fedora, centosstream and debian *. Example ./nm-in-vm -v other-vm-name build debian-12.

To connect to a running VM, execute ./nm-in-vm [-v vm-name] [exec] or ssh root@vm-name.

See ./nm-in-vm --help for more complete info.

Checklist

Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
  • you have added unit tests if applicable

Merge request reports