diff options
author | Michael Janczyk | 2010-03-20 19:15:02 +0100 |
---|---|---|
committer | Michael Janczyk | 2010-03-20 19:15:02 +0100 |
commit | aab97df6ee70674b995bea14b60fbf3019ace8ef (patch) | |
tree | ced49acb6cbf0026023f97bcbb4da5ef68e1b6d6 /os-plugins/plugins/virtualbox/files/run-virt.include | |
parent | virtualbox, vmgrix und xen anpassungen, jetzt auch geadded (diff) | |
download | core-aab97df6ee70674b995bea14b60fbf3019ace8ef.tar.gz core-aab97df6ee70674b995bea14b60fbf3019ace8ef.tar.xz core-aab97df6ee70674b995bea14b60fbf3019ace8ef.zip |
added rw share support for vmgrid and virtualbox
Diffstat (limited to 'os-plugins/plugins/virtualbox/files/run-virt.include')
-rw-r--r-- | os-plugins/plugins/virtualbox/files/run-virt.include | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os-plugins/plugins/virtualbox/files/run-virt.include b/os-plugins/plugins/virtualbox/files/run-virt.include index 44a749cb..a24845a3 100644 --- a/os-plugins/plugins/virtualbox/files/run-virt.include +++ b/os-plugins/plugins/virtualbox/files/run-virt.include @@ -203,6 +203,7 @@ writelog "\tNetwork kind:\t\t${network_kind}" #writelog "\tCD-ROM1:\t${cdrom0}" #writelog "\tCD-ROM2:\t${cdrom1}" #writelog "\tFloppy_A:\t${floppy0}" +writelog "\tShared Folders 'Home':\t/home/${USER}" ################################################################################ ### Pepare and configure virtual machine and disk image @@ -216,6 +217,15 @@ writelog "\tNetwork kind:\t\t${network_kind}" #date=${date%T*} . ${PLUGINCONFVIRTUALBOX}/machine.include >"${machconfig}" +# add rw share to vm, if existing +if [ -n "${rwshare}" ]; then + sharedf='<SharedFolder name="Share"' + sharedf="${sharedf} hostPath=\"${rwshare}\" writable=\"true\"/>" + sed -i "s,</SharedFolders>, ${sharedf}\n </SharedFolders>," \ + "${machconfig}" + writelog "\tShared Folders 'Share':\t${rwshare}" +fi + # add ssh port if linux and NAT if [ "${vmostype}" = "Linux26" ] && [ "${network_kind}" = "NAT" ]; then vmsshport="220${VM_ID}" |