PDA

View Full Version : Knoppix cd that autoloads "vmware player"



divisionmd
06-09-2007, 10:59 AM
Hello,

Can anyone help me customize a bootable Knoppix cd that autoloads "vmware player" and The virtual image i want to autoload is windows xp pro.

loads/starts a virtual image inside of Knoppix?

Can pay for help!

contact me by pm

best regards,
Johan

divisionmd
06-27-2007, 07:29 PM
can no one help me with this? :shock:

JohnnyH
06-28-2007, 03:00 PM
...Can anyone help me customize a bootable Knoppix cd that autoloads "vmware player" and The virtual image i want to autoload is windows xp pro. loads/starts a virtual image inside of Knoppix?Johan
OK, in response to your specific request I'll answer as far as I can and as far as I understand your 'autoload' requirements.

Step [1] installing vmware player
You install vmware player as chroot during the remastering in accordance with the standard procedures linked elsewhere in this forum. You could use the installation script that I append for guidance, with paths adjusted as necessary.

As described in http://www.knoppix.net/forum/viewtopic.php?t=27145&highlight= you would have to run /usr/bin/vmware-config.pl once the system is up.

Step [2] autoload vmware player ?
I don't know whether you could auto-run /usr/bin/vmware-config.pl via e.g. a script in /etc/init.d symbolically linked from /etc/rcS.d - I haven't had the time or motivation to try it. I expect that /usr/bin/vmware would need the X-system to be up anyway, then you could bring it up in a couple of mouse-clicks.

Step [3] autoload windows xp pro virtual image ?
Sorry, I don't understand this, and I don't have xp pro anyway. I suspect you may need to get 'inside' VMware Player to do this - I haven't looked to see if/how it could be done.

FWIW I just put together this script to load vmware player into the ramdisk of a live DVD - this would save remastering the compressed KNOPPIX file - at the price of using more ram (mine showed to be using ~500MB). But I expect you would anyway need to put the files in the root of the DVD image.
You need the Knoppix 5.1.1 DVD anyway to give you the linux-headers-2.6.19_2.6.19-10.00.Custom_i386.deb


#!/bin/bash
#
# Script to install VM Player in Live-CD-running Knoppix 5.1.1 ramdisk
#
# JohnnyH 28-6-2007

PLAYER=VMware-player-2.0.0-45731.i386.tar.gz # or whatever issue
DEBpath=/media/hda3/DEBPROGS
ROOTDIR=/ramdisk # change to / for an installed system
echo "README: replace /media/hda3/DEBPROGS/ by your path to VMware-player-2.0.0-45731.i386.tar.gz"
echo "and linux-headers-2.6.19_2.6.19-10.00.Custom_i386.deb" ; echo ""
wd=$(pwd)
dpkg -i -E $DEBpath/linux-headers-2.6.19_2.6.19-10.00.Custom_i386.deb
echo "REM Knoppix 5.1.1 has gcc-4.1 ; a symbolic link gcc may save you a question ;) " ; echo ""
cd /usr/bin ; ln -s gcc-4.1 gcc ; echo ""
cp -i $DEBpath/$PLAYER $ROOTDIR
cd $ROOTDIR
tar zfvx $PLAYER
cd vmware-player-distrib
echo "" ; echo "Make a note that your C header files are in $ROOTDIR/usr.src.linux-headers-2.6.19/include"
echo "as, when running first-time in ramdisk, vmware-install.pl will ask you where they are ..." ; echo ""
read -p "... <Enter> to continue when ready" ; echo ""
perl vmware-install.pl
cd $ROOTDIR
rm -r vmware-player-distrib
cd $wd

[Edited 14:18 GMT]

oppix
06-28-2007, 09:36 PM
Can anyone help me customize a bootable Knoppix cd that autoloads "vmware player" and The virtual image i want to autoload is windows xp pro.

loads/starts a virtual image inside of Knoppix?


I think what would work would be to remaster a knoppix CD with vmware player installed on the OS, so that it doesn't have to be reinstalled each time you boot.
I think he also wants to add an image of windows XP to the CD, so that when it boots, he can run windows XP in vmplayer.
I have been thinking of doing the same thing.