Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,22 @@ Disabling the auto resize mode avoids slow system boot and shutdown. Enabling
LUKS discard makes sure the home directory doesn't become inaccessible because
systemd-homed is unable to resize the home directory.

## Default root password and user when booting in a virtual machine
## Booting ParticleOS in a virtual machine

To boot the image in a virtual machine run `mkosi vm` which copies the build image
and boots it. Every boot is first boot in this case. To persist the machine state
use `systemd-vmspawn`.

```sh
mkdir -p "$PWD/.vm-state/tpm"
./mkosi/bin/mkosi box -- \
systemd-vmspawn \
--image="$PWD/image.raw" \
--grow-image=20G \
--tpm=yes \
--tpm-state="$PWD/.vm-state/tpm" \
--efi-nvram-state="$PWD/.vm-state/efivars"
```

If you boot ParticleOS in a virtual machine using `mkosi vm`, the root password
is automatically set to `particleos` and a default user `particleos` with password
Expand Down