cosmetic fixes

This commit is contained in:
betcher 2022-11-01 18:22:30 +03:00
parent 6101bf471f
commit edefb6a040

24
qemoo
View file

@ -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