From f2ebeaa58d6c52708d5d2f7969dfe6fb4edfaad1 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Tue, 25 May 2010 22:23:08 +0200 Subject: nice level added to vmgrid --- os-plugins/plugins/virtualbox/files/run-virt.include | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os-plugins/plugins/virtualbox/files/run-virt.include') diff --git a/os-plugins/plugins/virtualbox/files/run-virt.include b/os-plugins/plugins/virtualbox/files/run-virt.include index f8a6ff79..9dbe47ac 100644 --- a/os-plugins/plugins/virtualbox/files/run-virt.include +++ b/os-plugins/plugins/virtualbox/files/run-virt.include @@ -43,7 +43,7 @@ export VBOX_USER_HOME=${confdir} RMDIRS="${snapshotdir} ${confdir} /tmp/.vbox-${USER}-ipc" rm -rf ${RMDIRS} 2>/dev/null machfolder="${confdir}/Machines" -# use vm_shortname for VM name since vm_name can be very long +# use vm_shortname for dir and config names since vm_name can be very long machconfig="${machfolder}/${vm_shortname}/${vm_shortname}.xml" diskfolder="${confdir}/HardDisks" snapshotdir=${machfolder}/${vm_shortname}/Snapshots @@ -233,8 +233,8 @@ case ${boot} in n*|tftp) boot="Network" if [ "${network_kind}" = "NAT" ] && [ -n "${virtualbox_tftpdir}" ]; then - # remove spaces from VM name to avoid Problems /w TFTP in NAT - vm_name=$(echo ${vm_name} | sed -e "s, ,-,g") + # use vm_shortname to avoid Problems /w TFTP in NAT + vm_name=${vm_shortname} # link TFTP dir for NAT TFTP boots mkdir -p ${confdir}/TFTP if [ -e ${virtualbox_tftpdir}/pxelinux.0 ]; then -- cgit v1.2.3-55-g7522