diff options
author | Dirk von Suchodoletz | 2009-04-24 16:15:14 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-04-24 16:15:14 +0200 |
commit | e478852798e0ba385fd474a64858e87a326e5135 (patch) | |
tree | 6dc90dc58da4908eaa229ee352477250a67589d8 /os-plugins/plugins/vmware/files | |
parent | use 8.10 dkms install method for ubuntu 9.04 gfx stuff (diff) | |
download | core-e478852798e0ba385fd474a64858e87a326e5135.tar.gz core-e478852798e0ba385fd474a64858e87a326e5135.tar.xz core-e478852798e0ba385fd474a64858e87a326e5135.zip |
Trying to support attachment of serial/parallel devices in virtual
machines (vmware plugin only at the moment), see #419 ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2827 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/files')
-rw-r--r-- | os-plugins/plugins/vmware/files/run-virt.include | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index 56b37d4d..a9c8fb04 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -141,7 +141,12 @@ isolation.tools.paste.enabled = \"TRUE\" # serial port serial0.present = \"${serial}\" -${serialdev}" >>${conffile} +${serialdev} + +# parallel port +parallel0.present = \"${parallel}\" +parallel0.bidirectional = \"${paralbidi}\" +${paraldev}" >>${conffile} # set the appropriate permissions for the vmware config file chmod u+rwx ${conffile} >/dev/null 2>&1 @@ -231,14 +236,13 @@ case "$enable3d" in ;; esac -# serial port defined (e.g. "ttyS0" or "autodetect") -serial=$(grep -i "<serial port=\"" ${xml} | awk -F "\"" '{ print $2 }') +# serial/parallel port defined (e.g. "ttyS0, lp0" or "autodetect") case "$serial" in tty*) serialdev="serial0.filename = \"/dev/${serial}\"" serial="TRUE" ;; - autodetect) + auto*) serialdev="serial0.autodetect = \"TRUE\"" serial="TRUE" ;; @@ -247,6 +251,23 @@ case "$serial" in serial="FALSE" ;; esac +case "$parallel" in + lp*) + paraldev="parallel0.filename = \"/dev/${parallel}\"" + paralbidi="TRUE" + parallel="TRUE" + ;; + auto*) + paraldev="parallel0.autodetect = \"TRUE\"" + paralbidi="TRUE" + parallel="TRUE" + ;; + *) + paraldev="" + paralbidi="FALSE" + parallel="FALSE" + ;; +esac # percentage of memory to use for vmwares in standard case permem=30 |