diff options
author | Josef Karthauser <joe@FreeBSD.org> | 2000-01-26 22:06:13 +0000 |
---|---|---|
committer | Josef Karthauser <joe@FreeBSD.org> | 2000-01-26 22:06:13 +0000 |
commit | 6f08968435cff33700c668b703552f42471725e7 (patch) | |
tree | 006759175ab4dbfe2463aa3527ac996ab7a48e36 /emulators/vmware3/files | |
parent | Upgrade to 2.10.3 and support IPv6. (diff) |
Virgin import of Vladimir N. Silyaev's port of the linux version of the
VMWare virtual machine.
PR: ports/16337
Submitted by: vsilyaev@mindspring.com
Notes
Notes:
svn path=/head/; revision=25101
Diffstat (limited to 'emulators/vmware3/files')
-rw-r--r-- | emulators/vmware3/files/Makefile | 4 | ||||
-rw-r--r-- | emulators/vmware3/files/README.FreeBSD | 84 | ||||
-rw-r--r-- | emulators/vmware3/files/config | 8 | ||||
-rw-r--r-- | emulators/vmware3/files/df | 28 | ||||
-rw-r--r-- | emulators/vmware3/files/vmware.sh | 38 |
5 files changed, 162 insertions, 0 deletions
diff --git a/emulators/vmware3/files/Makefile b/emulators/vmware3/files/Makefile new file mode 100644 index 000000000000..600b81821441 --- /dev/null +++ b/emulators/vmware3/files/Makefile @@ -0,0 +1,4 @@ +SUBDIR= vmmon-only vmnet-only/freebsd + +.include <bsd.subdir.mk> + diff --git a/emulators/vmware3/files/README.FreeBSD b/emulators/vmware3/files/README.FreeBSD new file mode 100644 index 000000000000..66e673bb0488 --- /dev/null +++ b/emulators/vmware3/files/README.FreeBSD @@ -0,0 +1,84 @@ +VMware 1.1 for Linux on FreeBSD. +$Date: 1999/12/17 00:36:01 $ + +Introduction. + +This piece of software provides some basic support for running +the VMware 1.1 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. + +=== + +What's done. + +At this time I was able to successfully run the following operation systems +under VMware on FreeBSD: + + - FreeBSD 4.0 Current + - Linux (Debian 2.1) + - Windows NT + - Windows 95 OSR2 (in safe mode :) + - MS DOS 7.0 (Part of Win'95) + +I think that all platforms supported by VMware should work under FreeBSD. + + +Installation procedure. + +The easiest solution is to obtain the vmware port and try to build it. +The name of the port is vmware.tar.gz, and it can be downloaded from the +following location: + +http://www.mindspring.com/~vsilyaev/vmware/files/vmware.tar.gz + +If you are like to use the linux proc filesystem emulator, you are need +to install the next port: + +http://www.mindspring.com/~vsilyaev/vmware/files/linuxproc.tar.gz + +At build time, you will get further instructions on how to proceed. + +After a successful port installation you will need to obtain a license key +to run VMware (you can use an old one for Linux). If you want to obtain +a new key from http://www.vmware.com , you will have to select Linux as the +'server' platform. + +Features currently unsupported + + - Fullscreen text mode + + - Mounting vmware virtual drive + + - Parallel ports were never tested. However, to support bidirectional + transfers, we will need a FreeBSD version of the vmppuser driver. + +Caveats. + + - Onle one guest may be runned at one time. + + - Floppy disk detection currently doesn't work. It is assumed that + a disk is always present in the floppy drive. Because of that, if you + 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 + with a rest of the world. + +Copyright issue. + + Unclear. My own code has a BSD-style copyright license, + but in order to write it, I used VMware-copyrighted sources. + In any case, I'm distributing only my own patch set, and all + modified files retain the original copyright information. + +Author. + + Vladimir N. Silyaev. + E-Mail: vsilyaev@mindspring.com + diff --git a/emulators/vmware3/files/config b/emulators/vmware3/files/config new file mode 100644 index 000000000000..bb1a52d02cc0 --- /dev/null +++ b/emulators/vmware3/files/config @@ -0,0 +1,8 @@ +vmware.fullpath = "@@PREFIX@@/lib/vmware/bin/vmware" +wizard.fullpath = "@@PREFIX@@/lib/vmware/bin/vmware-wizard" +dhcpd.fullpath = "@@PREFIX@@/lib/vmware/bin/vmnet-dhcpd" +loop.fullpath = ""@@PREFIX@@/lib/vmware/bin/vmware-loop" +libdir = "@@PREFIX@@/lib/vmware/lib" +vmnet1.HostOnlyAddress = "@@HOST_IP@@" +vmnet1.HostOnlyNetMask = "@@NETMASK@@" + diff --git a/emulators/vmware3/files/df b/emulators/vmware3/files/df new file mode 100644 index 000000000000..a0911b35c432 --- /dev/null +++ b/emulators/vmware3/files/df @@ -0,0 +1,28 @@ +#!/usr/bin/perl +# Hacky emulation of GNU df. +# Intented to use with vmware wizard. +# Depend from the _absence_ linux version perl in the dir /compat/linux/usr/bin/ +@NARGV=('-n'); +$type=0; +foreach (@ARGV) { + exit if $_ eq '-n'; # Aargh it's me again, exit immediatly + next if $_ eq '-P'; + $type=1,next if $_ eq '-T'; + push @NARGV, $_; +} + +$line = 0; + +open(DF,"-|") or exec '/bin/df', @NARGV; +while(<DF>) { + + unless ($type) { print $_; next;} + @cols = split(); + if ($line++) { + $col = 'ext2fs'; + } else { + $col = 'Type'; + } + @cols = (@cols[0], $col, @cols[1..$#cols]); + print join("\t", @cols),"\n"; +} diff --git a/emulators/vmware3/files/vmware.sh b/emulators/vmware3/files/vmware.sh new file mode 100644 index 000000000000..b3fa8424c1c6 --- /dev/null +++ b/emulators/vmware3/files/vmware.sh @@ -0,0 +1,38 @@ +#!/bin/sh +# +# Start or stop vmware +# + +vmware_dir=@@PREFIX@@/lib/vmware +networking=@@NETWORKING@@ +host_ip=@@HOST_IP@@ +netmask=@@NETMASK@@ + +[ -x $vmware_dir/bin/vmware ] || exit +exec >/dev/null + +case $1 in + start) + kldload ${vmware_dir}/lib/modules/vmmon.ko + if [ $networking -eq 1 ]; then + kldload ${vmware_dir}/lib/modules/vmnet.ko + echo -n >/dev/vmnet1 + ifconfig vmnet1 $host_ip netmask $netmask + fi + echo -n " VMware" >/dev/tty + ;; + + stop) + kldunload vmmon + if [ $networking -eq 1 ]; then + ifconfig vmnet1 down + ifconfig vmnet1 delete $host_ip + kldunload vmnet + fi + ;; + + *) + echo "usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac |