mirror of
https://abf.rosa.ru/djam/qemoo.git
synced 2025-02-23 17:12:57 +00:00
cosmetic fixes
This commit is contained in:
parent
6101bf471f
commit
edefb6a040
1 changed files with 12 additions and 12 deletions
24
qemoo
24
qemoo
|
@ -1,15 +1,15 @@
|
|||
#!/bin/bash
|
||||
ACTION='run' # what to do
|
||||
IMG='none' # name of image to boot
|
||||
QCOW2='none' # name for qcow2 image to install
|
||||
SIZE='12' # size for qcow2 image to install
|
||||
RAM='auto' # ram for machine
|
||||
QEMUADD='' # additional parameters for qemu
|
||||
ACTION='run' # what to do
|
||||
IMG='none' # name of image to boot
|
||||
QCOW2='none' # name for qcow2 image to install
|
||||
SIZE='12' # size for qcow2 image to install
|
||||
RAM='auto' # ram for machine
|
||||
QEMUADD='' # additional parameters for qemu
|
||||
EFI_FIRMWARE="-bios /usr/share/OVMF/OVMF_CODE.fd"
|
||||
PREFIX='_qemoo' # prefix for generating qcow2 file name
|
||||
SHARE='./'
|
||||
PREFIX='_qemoo' # prefix for generating qcow2 file name
|
||||
SHARE='./' # share dir
|
||||
|
||||
### init empty, not for config
|
||||
### initialized empty, not for config
|
||||
EFI=''
|
||||
KVM=''
|
||||
INSTALL=''
|
||||
|
@ -171,7 +171,7 @@ COMMON="$QEMU $EFI \
|
|||
-nic mac=$MAC \
|
||||
-m ${vRam}M \
|
||||
-rtc base=localtime \
|
||||
-virtfs local,path=$SHARE,mount_tag=host,security_model=mapped,id=host
|
||||
-virtfs local,path=$SHARE,mount_tag=hostdir,security_model=mapped,id=hostdir
|
||||
"
|
||||
|
||||
[ "$REDIRUSB" ] && usbDev="$(checkUSB)"
|
||||
|
@ -205,8 +205,8 @@ esac
|
|||
echo "Host share:
|
||||
$(realpath $SHARE)
|
||||
Linux guest mount command example:
|
||||
mkdir /mnt/host
|
||||
mount -t 9p -o trans=virtio,msize=100000000 host /mnt/host"
|
||||
mkdir /mnt/hostdir
|
||||
mount -t 9p -o trans=virtio,msize=100000000 hostdir /mnt/hostdir"
|
||||
|
||||
run $COMMON $cmdline $INSTALL $QEMUADD
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue