fix: Use correct QEMU binary (#44)
This commit is contained in:
parent
914a4995cc
commit
6d18fd73e3
3 changed files with 10 additions and 3 deletions
|
@ -103,7 +103,14 @@ docker run -it --rm --name qemu -e "BOOT=http://example.com/image.iso" -p 8006:8
|
|||
|
||||
* ### How do I boot a local image?
|
||||
|
||||
To skip the download, rename your image to `boot.iso` and place it in an empty `/storage` folder.
|
||||
You can use a local file directly, and skip the download, by binding it in your compose file in this way:
|
||||
|
||||
```yaml
|
||||
volumes:
|
||||
- /home/user/example.iso:/storage/boot.iso
|
||||
```
|
||||
|
||||
Replace the example path `/home/user/example.iso` with the filename of the desired ISO file.
|
||||
|
||||
* ### How do I assign an individual IP address to the container?
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ cd /run
|
|||
|
||||
trap - ERR
|
||||
|
||||
info "Booting image${BOOT_DESC} on ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
|
||||
info "Booting image${BOOT_DESC} on a ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
|
||||
|
||||
[[ "$DEBUG" == [Yy1]* ]] && set -x
|
||||
exec qemu-system-aarch64 ${ARGS:+ $ARGS}
|
||||
|
|
|
@ -44,7 +44,7 @@ HOST=$(hostname -s)
|
|||
KERNEL=$(uname -r | cut -b 1)
|
||||
MINOR=$(uname -r | cut -d '.' -f2)
|
||||
ARCH=$(dpkg --print-architecture)
|
||||
VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
|
||||
VERS=$(qemu-system-aarch64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
|
||||
CPU=$(lscpu | grep 'Model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | sed 's# @.*##g' | sed s/"(R)"//g | sed 's/[^[:alnum:] ]\+/ /g' | sed 's/ */ /g')
|
||||
|
||||
# Check system
|
||||
|
|
Loading…
Reference in a new issue