fix: simplify README

This commit is contained in:
ange 2024-03-10 22:59:07 +01:00
parent 45ba46043d
commit ce1f1f0c33
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -7,15 +7,14 @@ To start (or create) a VM, go in the desired folder and run
$ ./run.sh [OPTS]
```
You can pass `qemu` flags to `./run.sh` directly or you can make theses flags
permanent in `run.sh` (this VM only) or `lib.sh` (all VMs).
See `QEMU(1)` for all options.
You can pass `qemu` flags (see `QEMU(1)`) to `./run.sh` directly or you can
make theses flags permanent by editing `run.sh` (this VM only) or `lib.sh` (all
VMs).
### CPU/RAM limit
See `QEMU(1)` for CPU limit.<br>
Default RAM flag: `-m "2G,maxmem=$((MAX_RAM - 2))G"`.
The CPU flag is not set by default, see `QEMU(1)` for default values.<br>
Default RAM flag: `-m "2G,maxmem=$((HOST_RAM - 2))G"`.
```
./run.sh -smp "$NB_CPUS,maxcpus=$MAX_CPUS" \
-m "${RAM}G,maxmem=${MAX_RAM}G"
@ -23,7 +22,7 @@ Default RAM flag: `-m "2G,maxmem=$((MAX_RAM - 2))G"`.
### Port forwarding
To forward host port 2222 to guest 22:
To forward host port 2222 to guest port 22:
```
./run.sh -nic user,hostfwd=tcp::2222-:22
```