HACKING.md: Mention using virtual machines instead of containers

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2025-08-20 19:12:47 -07:00
parent f27b222657
commit 6327a04ea0
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -114,6 +114,26 @@ development environment inside a systemd-nspawn container.
host$ ./container ssh --distribution=stable
```
#### Using KVM Virtual Machine
The `./container` script, shipped with FreedomBox source code, can manage the
development environment inside a KVM-based virtual machine using libvirt. This
is an alternative to using containers described above (but the name of the
script is still 'container' even when managing virtual machines). Some hardware,
such as additional disks, can be better tested with virtual machine than with
containers.
Containers and a virtual machines of the same or different distribution all be
used simultaneously as they all use different disk images.
1. To use virtual machines instead of container, append the option
'--machine-type=vm' to all the ./container commands described above. For
example, to bring up a virtual machine instead of a container run:
```bash
host$ ./container up --machine-type=vm
```
#### Using after Setup
After logging into the container, the source code is available in `/freedombox`