diff options
author | knu <knu@FreeBSD.org> | 2000-03-29 21:23:07 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-03-29 21:23:07 +0000 |
commit | 7661af6d92f63dfaefb3aa8deda9f034380aac3e (patch) | |
tree | ac61db9a4752369e501f5d71a4bf67859a418472 /emulators/vmware3/files | |
parent | 51c22eea984352ab62c150d27e0abd27a69ca88b (diff) | |
download | FreeBSD-ports-7661af6d92f63dfaefb3aa8deda9f034380aac3e.zip FreeBSD-ports-7661af6d92f63dfaefb3aa8deda9f034380aac3e.tar.gz |
Here comes the VMware 2.0 port, finally.
- Correspond to VMware 2.0 Build 476 release (not beta)
- Support SMP kernel
- Install VMware tools floppies (for Windows and Linux)
- Add Hints.FreeBSD
- Mention my unofficial `rtc' port on post-install
- Raw disk may not work for the present
- etc.
Enjoy it!
Diffstat (limited to 'emulators/vmware3/files')
-rw-r--r-- | emulators/vmware3/files/Hints.FreeBSD | 20 | ||||
-rw-r--r-- | emulators/vmware3/files/Makefile.vmmon | 9 | ||||
-rw-r--r-- | emulators/vmware3/files/README.FreeBSD | 8 | ||||
-rw-r--r-- | emulators/vmware3/files/vmware.sh | 11 |
4 files changed, 41 insertions, 7 deletions
diff --git a/emulators/vmware3/files/Hints.FreeBSD b/emulators/vmware3/files/Hints.FreeBSD new file mode 100644 index 0000000..1b2c36a --- /dev/null +++ b/emulators/vmware3/files/Hints.FreeBSD @@ -0,0 +1,20 @@ +Here lists some useful hints on using VMware on FreeBSD. + +- Raw disk may not work. Use virtual disk instead. + +- Under FreeBSD, floppy device should be configured as follows: + + Type: file + Path: /dev/rfd0 + +(Obtain the write permission on /dev/rfd0 if you write floppy disks) + +- Consider making a link /compat/linux/tmp if your /tmp doesn't have +sufficient free space or is slow. VMware uses /tmp to back the VM's +memory. + +e.g. + ln -s /usr/tmp /compat/linux/tmp + +-- +Akinori -Aki- MUSHA <knu@idaemons.org> diff --git a/emulators/vmware3/files/Makefile.vmmon b/emulators/vmware3/files/Makefile.vmmon new file mode 100644 index 0000000..ad036c6 --- /dev/null +++ b/emulators/vmware3/files/Makefile.vmmon @@ -0,0 +1,9 @@ +# $FreeBSD$ + +all: + make -f Makefile.FreeBSD SMP=YES clean all + make -f Makefile.FreeBSD SMP=NO clean all + +install: + make -f Makefile.FreeBSD SMP=YES install + make -f Makefile.FreeBSD SMP=NO install diff --git a/emulators/vmware3/files/README.FreeBSD b/emulators/vmware3/files/README.FreeBSD index 08ccb34..39c78c7 100644 --- a/emulators/vmware3/files/README.FreeBSD +++ b/emulators/vmware3/files/README.FreeBSD @@ -1,11 +1,11 @@ -VMware 1.1 for Linux on FreeBSD. -$Date: 1999/12/17 00:36:01 $ +VMware 2.0 for Linux on FreeBSD. +$Date: 2000/01/23 22:28:10 $ $FreeBSD$ Introduction. This piece of software provides some basic support for running -the VMware 1.1 for Linux on FreeBSD. +the VMware 2.0 for Linux on FreeBSD. I'm using FreeBSD 4.0 -current system and don't know whether this software will work on the 3.X branch. @@ -64,8 +64,6 @@ Caveats. have enabled both IDE and floppy drives in the same VMware session, you _must_ select the right booting order in the Phoenix BIOS Setup. - - Doesn't work on a SMP kernel. - - Support only for Host networking. Doesn't have a bridgink networking But really this mean, that you are need to enable gateway on our FreeBSD box. And after that virtual machine can communicate diff --git a/emulators/vmware3/files/vmware.sh b/emulators/vmware3/files/vmware.sh index 6764ced..1afdbf3 100644 --- a/emulators/vmware3/files/vmware.sh +++ b/emulators/vmware3/files/vmware.sh @@ -10,11 +10,18 @@ host_ip=@@HOST_IP@@ netmask=@@NETMASK@@ [ -x $vmware_dir/bin/vmware ] || exit + +if [ `sysctl -n hw.ncpu` -eq 1 ]; then + suffix=up +else + suffix=smp +fi + exec >/dev/null case $1 in start) - kldload ${vmware_dir}/lib/modules/vmmon.ko + kldload ${vmware_dir}/lib/modules/vmmon_${suffix}.ko if [ $networking -eq 1 ]; then kldload ${vmware_dir}/lib/modules/vmnet.ko echo -n >/dev/vmnet1 @@ -24,7 +31,7 @@ start) ;; stop) - kldunload vmmon + kldunload vmmon_${suffix} if [ $networking -eq 1 ]; then ifconfig vmnet1 down ifconfig vmnet1 delete $host_ip |