summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/virtualbox/files/run-virt.include
diff options
context:
space:
mode:
authorMichael Janczyk2010-05-25 22:23:08 +0200
committerMichael Janczyk2010-05-25 22:23:08 +0200
commitf2ebeaa58d6c52708d5d2f7969dfe6fb4edfaad1 (patch)
treea186f8334d93d415d0aece6acf732b65137b847f /os-plugins/plugins/virtualbox/files/run-virt.include
parentaccidently moved if clause to use only one core /w 64 guests on 32 bit clients (diff)
downloadcore-f2ebeaa58d6c52708d5d2f7969dfe6fb4edfaad1.tar.gz
core-f2ebeaa58d6c52708d5d2f7969dfe6fb4edfaad1.tar.xz
core-f2ebeaa58d6c52708d5d2f7969dfe6fb4edfaad1.zip
nice level added to vmgrid
Diffstat (limited to 'os-plugins/plugins/virtualbox/files/run-virt.include')
-rw-r--r--os-plugins/plugins/virtualbox/files/run-virt.include6
1 files changed, 3 insertions, 3 deletions
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