summaryrefslogtreecommitdiff
path: root/debvm-run
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2023-01-07 16:22:28 +0100
committerJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2023-01-07 16:25:12 +0100
commitebf8917c9791659df8c995993484a21be922f2e1 (patch)
tree761e20a8558b2e083e5fc2e859a6ef30e261b9cf /debvm-run
parentba0206c069b00fed5911da62f56c9860bd1f8350 (diff)
downloaddebvm-ebf8917c9791659df8c995993484a21be922f2e1.tar.gz
debvm-run: add an example (I always forget about the -snapshot option)
Diffstat (limited to 'debvm-run')
-rwxr-xr-xdebvm-run9
1 files changed, 9 insertions, 0 deletions
diff --git a/debvm-run b/debvm-run
index 9b64ef4..eda3477 100755
--- a/debvm-run
+++ b/debvm-run
@@ -49,6 +49,15 @@ One possible use of this method is passing B<-snapshot> to avoid modifying the v
=back
+=head1 EXAMPLES
+
+Run a virtual machine stored in the image B<rootfs.ext4> (the default) with
+local port 8022 routed to port 22 of the virtual machine. The B<-snapshot>
+argument is passed to QEMU and prevents any permanent changes to
+B<rootfs.ext4>, resulting in an ephemeral run.
+
+ debvm-run -s 8022 -i rootfs.ext4 -- -snapshot
+
=head1 LIMITATIONS
Due to the way kernel and bootloader are being extracted before running B<qemu>, one cannot upgrade a kernel and then just reboot.