fix: Skip download
fix: Skip download
This commit is contained in:
commit
013033c2b5
3 changed files with 28 additions and 2 deletions
24
readme.md
24
readme.md
|
@ -80,6 +80,30 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm
|
||||||
|
|
||||||
Replace the example path `/home/user/data` with the desired storage folder.
|
Replace the example path `/home/user/data` with the desired storage folder.
|
||||||
|
|
||||||
|
* ### How do I add multiple disks?
|
||||||
|
|
||||||
|
To add multiple disks, modify your compose file like this:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
environment:
|
||||||
|
DISK2_SIZE: "32G"
|
||||||
|
DISK3_SIZE: "64G"
|
||||||
|
volumes:
|
||||||
|
- /home/example2:/storage2
|
||||||
|
- /home/example3:/storage3
|
||||||
|
```
|
||||||
|
|
||||||
|
Additionally, it's also possible to passthrough raw disk devices like this:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
environment:
|
||||||
|
DEVICE2: "/dev/vdc1"
|
||||||
|
DEVICE3: "/dev/vdc2"
|
||||||
|
devices:
|
||||||
|
- /dev/vdc1
|
||||||
|
- /dev/vdc2
|
||||||
|
```
|
||||||
|
|
||||||
* ### How do I increase the amount of CPU or RAM?
|
* ### How do I increase the amount of CPU or RAM?
|
||||||
|
|
||||||
By default, a single core and 512 MB of RAM are allocated to the container. To increase this, add the following environment variables:
|
By default, a single core and 512 MB of RAM are allocated to the container. To increase this, add the following environment variables:
|
||||||
|
|
|
@ -31,9 +31,9 @@ STORAGE="/storage"
|
||||||
|
|
||||||
cd /run
|
cd /run
|
||||||
|
|
||||||
. install.sh # Get bootdisk
|
. install.sh # Get bootdisk
|
||||||
. disk.sh # Initialize disks
|
. disk.sh # Initialize disks
|
||||||
. network.sh # Initialize network
|
. network.sh # Initialize network
|
||||||
|
|
||||||
KVM_ERR=""
|
KVM_ERR=""
|
||||||
KVM_OPTS=""
|
KVM_OPTS=""
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
|
[ -f "$STORAGE/boot.img" ] && return 0
|
||||||
|
|
||||||
TMP="/boot.img"
|
TMP="/boot.img"
|
||||||
rm -f "$TMP"
|
rm -f "$TMP"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue