Изменение режима кеширования IO гостя


#!/bin/bash
if [ "$1" = "-T" ] ; then
        echo -n "©"
        exit 0
fi

mpath=`pwd`

if [ -n "$1" ] 
then
    mpath=$1
fi

. ${mpath}/pre-run.conf

DRIVELIST="$(echo "$DRIVELIST" | sed 's|cache=none|cache=writethrough|g')"
VNC=":${ID},password"
NNIC="nic,macaddr=${MAC},model=${MODEL}"
NTAP="tap,ifname=${IFACE}${ID},script=${UPSCRIPT},downscript=${DOWNSCRIPT}"
PIDFILE=${VDSPATH}/pidfile
MONITOR="unix:${VDSPATH}/monitor,server,nowait"
PADD="-rtc base=localtime,clock=host"

if [ -z "${VDSSERIAL}" ]
then
        SERIAL="unix:${VDSPATH}/serial,server"
else
        SERIAL=${VDSSERIAL}
fi

if [ -n "${INCOMING}" ] 
then
        /usr/bin/kvm -name ${NAME} -smp ${SMP} -boot ${BOOT} -vnc ${VNC} -net ${NNIC} -net ${NTAP} -m ${MEM} -monitor ${MONITOR} -serial ${SERIAL} -pidfile ${PIDFILE} -daemonize -enable-kvm ${DRIVELIST} -incoming "${INCOMING}" ${PADD}
else
        /usr/bin/kvm -name ${NAME} -smp ${SMP} -boot ${BOOT} -vnc ${VNC} -net ${NNIC} -net ${NTAP} -m ${MEM} -monitor ${MONITOR} -serial ${SERIAL} -pidfile ${PIDFILE} -daemonize -enable-kvm ${DRIVELIST} ${PADD}
fi

exit $?


http://forum.ispsystem.com/ru/showthread.php?p=121397

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.