diff --git a/readme.md b/readme.md index a8c62e2..6d8a204 100644 --- a/readme.md +++ b/readme.md @@ -40,6 +40,8 @@ services: - NET_ADMIN ports: - 8006:8006 + volumes: + - ./qemu:/storage restart: always stop_grace_period: 2m ``` @@ -47,7 +49,7 @@ services: Via Docker CLI: ```bash -docker run -it --rm -e "BOOT=http://example.com/image.iso" -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN qemux/qemu-arm +docker run -it --rm --name qemu -e "BOOT=http://example.com/image.iso" -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v ${PWD:-.}/qemu:/storage --stop-timeout 120 qemux/qemu-arm ``` Via Kubernetes: @@ -84,11 +86,11 @@ kubectl apply -f https://raw.githubusercontent.com/qemus/qemu-arm/refs/heads/mas ```yaml volumes: - - /var/qemu:/storage + - ./qemu:/storage ``` - Replace the example path `/var/qemu` with the desired storage folder. - + Replace the example path `./qemu` with the desired storage folder or named volume. + ### How do I change the size of the disk? To expand the default size of 16 GB, add the `DISK_SIZE` setting to your compose file and set it to your preferred capacity: @@ -123,10 +125,10 @@ kubectl apply -f https://raw.githubusercontent.com/qemus/qemu-arm/refs/heads/mas ```yaml volumes: - - /home/user/example.iso:/boot.iso + - ./example.iso:/boot.iso ``` - This way you can supply a `boot.iso`, `boot.img` or `boot.qcow2` file. The value of the `BOOT` variable will be ignored in this case. + You can supply a `boot.iso`, `boot.img` or `boot.qcow2` file by replacing the example path `./example.iso` with the filename of your desired image. The value of `BOOT` will be ignored in this case. ### How do I boot Windows? @@ -247,8 +249,8 @@ kubectl apply -f https://raw.githubusercontent.com/qemus/qemu-arm/refs/heads/mas DISK2_SIZE: "32G" DISK3_SIZE: "64G" volumes: - - /home/example:/storage2 - - /mnt/data/example:/storage3 + - ./example2:/storage2 + - ./example3:/storage3 ``` ### How do I pass-through a disk? @@ -298,7 +300,7 @@ kubectl apply -f https://raw.githubusercontent.com/qemus/qemu-arm/refs/heads/mas | `.vhdx` | Hyper-V | | `.vdi` | VirtualBox | - > [!TIP] +> [!TIP] > It will also accept `.img.gz`, `.qcow2.xz`, `.iso.zip` and many more, as it automaticly extracts compressed files. ## Stars 🌟