From 86feb9d871595f4c1efe4e521ba2cdae021aa59b Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 18 Feb 2009 21:49:44 +0000 Subject: More on the new virtualization starter framework. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2609 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/vmware/files/run-virt.include | 43 +++++++++++------------- 1 file changed, 19 insertions(+), 24 deletions(-) (limited to 'os-plugins/plugins/vmware/files/run-virt.include') diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index 49df4c38..5afe3692 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -18,6 +18,15 @@ # declaration of default variables ################################################################################ +# temporary disk space for logs, etc... +redodir=/tmp/vmware/${USER} +# dir for configs and vmem file +confdir=${redodir} +# configfile +conffile="${confdir}/run-vmware.conf" +# users vmware config folder +vmhome="${HOME}/.vmware" + # serial port defined (e.g. "ttyS0" or "autodetect") serial=$(grep -i "&1) @@ -202,7 +198,7 @@ numvcpus = \"1\" # ide-disks ide0:0.present = \"${ide}\" ide0:0.fileName = \"${diskfile}\" -ide0:0.mode = \"${np}\" +ide0:0.mode = \"independent-nonpersistent\" ide1:0.present = \"${cdr_1}\" ide1:0.autodetect = \"TRUE\" ide1:0.fileName = \"auto detect\" @@ -217,7 +213,7 @@ scsi0.present = \"${scsi}\" scsi0:0.present = \"${scsi}\" scsi0:0.fileName = \"${diskfile}\" scsi0.virtualDev = \"lsilogic\" #\"${hddrv}\" -scsi0:0.mode = \"${np}\" +scsi0:0.mode = \"independent-nonpersistent\" # floppies floppy0.present = \"${floppya}\" @@ -353,7 +349,7 @@ mkdir -p ${vmhome} >/dev/null 2>&1 ## log script information writelog "# File created by $0 (v.${version})\n# on $(date)\n" -writelog "Starting with $(echo ${np} | sed 's/i.*-//g')-mode ...\n" +writelog "Starting with nonpersistent mode ...\n" ## look for cdrom, dvd and add them to the vm config file @@ -391,7 +387,7 @@ writelog "\tVMostype:\t${vmostype}" writelog "\tDisplayname:\t${displayname}" # check if image exists, etc... -filecheck +#filecheck # VMPlayer Version. # strings is the fastest and most secure way, vmplayer -v takes too much time @@ -424,4 +420,3 @@ done # set the variables appropriately VIRTCMD=vmplayer VIRTCMDOPTS="${vmopt} ${conffile}" - -- cgit v1.2.3-55-g7522