docs: Use relative paths (#193)
This commit is contained in:
parent
1eaf327d19
commit
edac315970
3 changed files with 13 additions and 13 deletions
|
@ -11,5 +11,7 @@ services:
|
|||
- NET_ADMIN
|
||||
ports:
|
||||
- 8006:8006
|
||||
volumes:
|
||||
- ./qemu:/storage
|
||||
restart: always
|
||||
stop_grace_period: 2m
|
||||
|
|
|
@ -32,10 +32,6 @@ spec:
|
|||
env:
|
||||
- name: BOOT
|
||||
value: "https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/aarch64/alpine-virt-3.19.1-aarch64.iso"
|
||||
- name: RAM_SIZE
|
||||
value: "1G"
|
||||
- name: CPU_CORES
|
||||
value: "1"
|
||||
- name: DISK_SIZE
|
||||
value: "16G"
|
||||
ports:
|
||||
|
|
20
readme.md
20
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 🌟
|
||||
|
|
Loading…
Reference in a new issue