QA.sh & runOver9P.sh: introduce qemu-user boot parameter
This commit is contained in:
parent
7b8ebef97c
commit
b7a9f208c3
4
QA.sh
4
QA.sh
|
@ -37,7 +37,9 @@ if [ "$CPU_MODEL" = "" ]; then
|
|||
CPU_MODEL=Opteron_G1
|
||||
fi
|
||||
|
||||
appendLine="console=0 nobootprompt=tcp maxcores=1024 fs=10.0.2.2 auth=10.0.2.2 nvram=/boot/nvram nvrlen=512 nvroff=0 $KAPPEND"
|
||||
QEMU_USER=`whoami`
|
||||
|
||||
appendLine="console=0 nobootprompt=tcp maxcores=1024 fs=10.0.2.2 auth=10.0.2.2 nvram=/boot/nvram nvrlen=512 nvroff=0 qemu-user=$QEMU_USER $KAPPEND"
|
||||
appendLine="-append '$appendLine'"
|
||||
kernelLine="-kernel $KERNEL $*"
|
||||
if [ "$DISK" = "" ]; then
|
||||
|
|
|
@ -49,6 +49,8 @@ if [ "$NCPU" = "" ]; then
|
|||
NCPU=4
|
||||
fi
|
||||
|
||||
QEMU_USER=`whoami`
|
||||
|
||||
cd $KERNDIR
|
||||
read -r cmd <<EOF
|
||||
$kvmdo qemu-system-x86_64 -s -cpu Haswell -smp $NCPU -m 2048 $kvmflag \
|
||||
|
@ -63,7 +65,7 @@ $bootDisk \
|
|||
-redir tcp:17010::17010 \
|
||||
-redir tcp:17013::17013 \
|
||||
$usbDev \
|
||||
-append "maxcores=1024 nvram=$NVRAM nvrlen=512 nvroff=0 console=0 *acpi= $FS $KAPPEND" \
|
||||
-append "maxcores=1024 nvram=$NVRAM nvrlen=512 nvroff=0 console=0 qemu-user=$QEMU_USER *acpi= $FS $KAPPEND" \
|
||||
-initrd ./initrd \
|
||||
-kernel $KERNEL $*
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue