summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Uhrig2009-08-17 17:23:13 +0200
committerVolker Uhrig2009-08-17 17:23:13 +0200
commit7efb3dc6aa2e56512bdf564ddc35889a85d52914 (patch)
treed5d11aff88592cbaf3d78c78588741349161f5cb
parentAdding another export item (highly experimental, see #156 for general (diff)
downloadcore-7efb3dc6aa2e56512bdf564ddc35889a85d52914.tar.gz
core-7efb3dc6aa2e56512bdf564ddc35889a85d52914.tar.xz
core-7efb3dc6aa2e56512bdf564ddc35889a85d52914.zip
Added backward compatibility to 2.x
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3095 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--os-plugins/plugins/virtualbox/XX_virtualbox.sh2
-rw-r--r--os-plugins/plugins/virtualbox/files/run-virt.include46
2 files changed, 24 insertions, 24 deletions
diff --git a/os-plugins/plugins/virtualbox/XX_virtualbox.sh b/os-plugins/plugins/virtualbox/XX_virtualbox.sh
index 6f7b89ce..38dd80ec 100644
--- a/os-plugins/plugins/virtualbox/XX_virtualbox.sh
+++ b/os-plugins/plugins/virtualbox/XX_virtualbox.sh
@@ -49,11 +49,11 @@ ${virtualbox_imagesrc}." nonfatal
# copy and activate init file
cp /mnt/opt/openslx/plugin-repo/virtualbox/vbox-slx \
/mnt/etc/init.d
+ chmod 755 /mnt/etc/init.d/vbox-slx
rllinker "vbox-slx" 20 2
mknod -m 0660 /dev/vboxdrv c 10 59
chown root:vboxusers /dev/vboxdrv
- chmod 755 /etc/init.d/vbox-slx
fi
else
[ $DEBUGLEVEL -gt 0 ] && echo " * Configuration of virtualbox plugin failed"
diff --git a/os-plugins/plugins/virtualbox/files/run-virt.include b/os-plugins/plugins/virtualbox/files/run-virt.include
index 06173f3b..d653dd22 100644
--- a/os-plugins/plugins/virtualbox/files/run-virt.include
+++ b/os-plugins/plugins/virtualbox/files/run-virt.include
@@ -91,10 +91,10 @@ ID=$$
export VBOX_USER_HOME="/tmp/vbox-${USER}-${ID}"
# Import Image to VirtualBox, which won't get changed
-VBoxManage -q registerimage disk ${diskfile} -type immutable
+VBoxManage registerimage disk ${diskfile} -type immutable
# Get ID of VBox Image...
-diskuid="$(VBoxManage -q showvdiinfo ${diskfile} |grep UUID|awk '{ print $2; }')"
+diskuid="$(VBoxManage showvdiinfo ${diskfile} |grep UUID|awk '{ print $2; }')"
# Create Image and register it, so we are able to modify and start it
VBoxManage createvm -name "${ID}" -register
@@ -105,35 +105,35 @@ VBoxManage createvm -name "${ID}" -register
################################################################################
## Add harddisk
-VBoxManage -q modifyvm "${ID}" -hda ${diskuid}
+VBoxManage modifyvm "${ID}" -hda ${diskuid}
## Configure VM memory
-VBoxManage -q modifyvm "${ID}" -memory ${mem}
+VBoxManage modifyvm "${ID}" -memory ${mem}
## Add cddrives
## TODO: merge to new version, where run-virt.include has our drives
-#VBoxManage -q modifyvm "${ID}" -dvd host:${cdrs}
+#VBoxManage modifyvm "${ID}" -dvd host:${cdrs}
# Enable hardware virtualization
# TODO: check if CPU supports hw virtualization
-#VBoxManage -q modifyvm "${ID}" -hwvirtex on
+#VBoxManage modifyvm "${ID}" -hwvirtex on
# HDD as boot device
-VBoxManage -q modifyvm "${ID}" -boot1 disk
+VBoxManage modifyvm "${ID}" -boot1 disk
# enable audio (oss|null|none|alsa|pulse). OSS is backwardcompatible to v2.0
-VBoxManage -q modifyvm "${ID}" -audio oss
+VBoxManage modifyvm "${ID}" -audio oss
# supress License and Message
# TODO: Not clear if we are allowed to do this
-VBoxManage -q setextradata global "GUI/LicenseAgreed" "7"
-VBoxManage -q setextradata global "GUI/SuppressMessages" ",remindAboutAutoCapture"
-VBoxManage -q setextradata global "GUI/RegistrationData" "triesLeft=0"
+VBoxManage setextradata global "GUI/LicenseAgreed" "7"
+VBoxManage setextradata global "GUI/SuppressMessages" ",remindAboutAutoCapture"
+VBoxManage setextradata global "GUI/RegistrationData" "triesLeft=0"
# if we have enough memory, we can put the snapshots (changes on immutable
# disk) there
if [ -n ${snapshotdir} ]; then
- VBoxManage -q modifyvm "${ID}" --snapshotfolder "${snapshotdir}"
+ VBoxManage modifyvm "${ID}" -snapshotfolder "${snapshotdir}"
fi
# Operating system. Possible: VBoxManage list ostypes
@@ -143,15 +143,15 @@ fi
# so we can have a "compatibility to vmware config" section. Or include
# it into vmchooser?
if [ "${vmostype}" = "winxppro" -o "${vmostype}" = "WindowsXP" ]; then
- VBoxManage -q modifyvm "${ID}" --ostype "WindowsXP"
+ VBoxManage modifyvm "${ID}" -ostype "WindowsXP"
elif [ "${vmostype}" = "winvista" -o "${vmostype}" = "WindowsVista" ]; then
- VBoxManage -q modifyvm "${ID}" --ostype "WindowsVista"
+ VBoxManage modifyvm "${ID}" -ostype "WindowsVista"
elif [ "${vmostype}" = "Windows7" ]; then
- VBoxManage -q modifyvm "${ID}" --ostype "Windows7"
+ VBoxManage modifyvm "${ID}" -ostype "Windows7"
elif [ "${vmostype}" = "linux" -o "${vmostype}" = "Linux26" ]; then
- VBoxManage -q modifyvm "${ID}" --ostype "Linux26"
+ VBoxManage modifyvm "${ID}" -ostype "Linux26"
elif [ -n "${vmostype}" ]; then
- VBoxManage -q modifyvm "${ID}" --ostype "${vmostype}"
+ VBoxManage modifyvm "${ID}" -ostype "${vmostype}"
fi
@@ -160,23 +160,23 @@ fi
if [ "${network_kind}" = "bridge" ]; then
network_kind="bridged"
fi
-VBoxManage -q modifyvm "${ID}" --nic1 "${network_kind}"
+VBoxManage modifyvm "${ID}" -nic1 "${network_kind}"
if [ "${network_kind}" = "bridged" ]; then
- VBoxManage -q modifyvm "${ID}" --bridgeadapter1 "eth1"
+ VBoxManage modifyvm "${ID}" -bridgeadapter1 "eth1"
fi
if [ "${network_kind}" = "hostonly" ]; then
- VBoxManage -q modifyvm "${ID}" --hostonlyadapter1 "vboxnet0"
+ VBoxManage modifyvm "${ID}" -hostonlyadapter1 "vboxnet0"
fi
# modify macaddress
mac=$(echo ${mac}|sed 's/://') # ${mac/:/}
-VBoxManage -q modifyvm "${ID}" --macaddress1 "0050560D${mac}"
+VBoxManage modifyvm "${ID}" -macaddress1 "0050560D${mac}"
# usb configuration
# not available in free -ose version
-#VBoxManage -q modifyvm "${ID}" --usb on
-#VBoxManage -q modifyvm "${ID}" --usbehci on
+#VBoxManage modifyvm "${ID}" -usb on
+#VBoxManage modifyvm "${ID}" -usbehci on
# finally set env for run-virt.sh