diff options
Diffstat (limited to 'remote/modules/vmware/data')
| -rw-r--r-- | remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc index 7812590e..3d82d934 100644 --- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc +++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/parse_vmx.inc @@ -17,7 +17,8 @@ writelog "Guest MAC: $macaddr" echo 'ethernet0.addressType = "static"' >> "$TMPDIR/$IMGUUID" echo 'ethernet0.address = "'"${macaddr}"'"' >> "$TMPDIR/$IMGUUID" -# Massenspeicher: DVD, CDROM +# DVD, CDROM +# XXX: For now it's save to assume ide channel 1 is free, as we support only one HDD, and it it's IDE, it's on channel 0 cat >> "$TMPDIR/$IMGUUID" <<-HEREEND ide1:0.present = "$cdrom0" ide1:0.autodetect = "TRUE" @@ -29,7 +30,7 @@ ide1:1.fileName = "auto detect" ide1:1.deviceType = "cdrom-raw" HEREEND -# Floppies: +# Floppies: cat >> "$TMPDIR/$IMGUUID" <<-HEREEND floppy0.present = "$floppy0" floppy0.startConnected = "FALSE" @@ -59,7 +60,7 @@ usb.present = "TRUE" usb.generic.autoconnect = "TRUE" HEREEND -# shared folders +# shared folders cat >> "$TMPDIR/$IMGUUID" <<-HEREEND $ENABLE_SHARE sharedFolder0.present = "$shfolders" @@ -85,12 +86,12 @@ HEREEND # It should be verified whether and when entries necessary cat >> "$TMPDIR/$IMGUUID" <<-HEREEND isolation.tools.hgfs.disable = "FALSE" -# isolation.tools.dnd.disable = "FALSE" # unclear ? +isolation.tools.dnd.disable = "FALSE" isolation.tools.copy.enable = "TRUE" isolation.tools.paste.enabled = "TRUE" HEREEND -# Seriell, Parallel: Empty, nothing is being currently set. TODO later. +# Serial, parallel: Empty, nothing is being currently set. TODO later. # Graphics, GPU: 3D will be activated if FORCE3D is set. # Force3D is set in set_hardware.inc if SLX_VMWARE_3D is set in config. @@ -105,21 +106,10 @@ fi sed -i '/^gui.applyHostDisplayScaling/d' "$TMPDIR/$IMGUUID" echo 'gui.applyHostDisplayScalingToGuest = "FALSE"' >> "$TMPDIR/$IMGUUID" -# rausziehen: Hardwareversion -# hwver=$(echo "${imghead}" | grep -m1 -ia "ddb.virtualHWVersion" | awk -F '"' '{print $2}') -# writelog "hwver: $hwver" -# sed -i "s/virtualHW.version.*/virtualHW.version = $hwver/g" "$TMPDIR/$IMGUUID" -# cleanexit 1 - -# rausziehen: GuestOS - -# Killing duplicate lines (output much nicer as sort -u): +# Killing duplicate lines (output much nicer than sort -u): awk '!a[$0]++' "${TMPDIR}/${IMGUUID}" > "${TMPDIR}/${IMGUUID}.tmp" && mv "${TMPDIR}/${IMGUUID}.tmp" "${TMPDIR}/${IMGUUID}" # At last_ Let's copy it to $confdir/run-vmware.conf cp -p "$TMPDIR/$IMGUUID" "$conffile" && writelog "Copied TMPDIR/IMGUUID ${TMPDIR}/${IMGUUID} to conffile ${conffile}" || \ - ( writelog "Could not copy TMPDIR/IMGUUID -$TMPDIR/$IMGUUID- to conffile ${conffile}!"; cleanexit 1 ) + ( writelog "Could not copy TMPDIR/IMGUUID -$TMPDIR/$IMGUUID- to conffile ${conffile}!"; cleanexit 1 ) -# TODO: Move this to cleanexit. -# rm -f "$TMPDIR/$IMGUUID" || writelog "Could not delete $TMPDIR/$IMGUUID." -# rmdir "$TMPDIR" || writelog "Could not rmdir $TMPDIR" |
