VmWare

From OESF

Revision as of 03:10, 28 November 2004 by Offroadgeek (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

This HOWTO has been contributed by Gerald J. Normandin Jr. It has been found at: http://www.rot13.org/~dpavlin/zaurus.html#ToC8

I know, this is rather redundant, but, if you need to sync with vmware here it is:

Syncing over anything - from Zaurus to VMware There are very good instructions on Zaurus forum how to sync over wireless. But, I wanted to sync with VMware, and USB driver doesn't seem to work in VMware. So, I applied my knowledge of IP networks and instructions for wireless sync to produce sync between USB cradle on host computer and InteliSync in VMware. On Zaurus

Change your IP number on Zaurus to 192.168.129.1 and connection to USB - TCP/IP (advanced)

On Linux host

Setup your IP networking with zaurus. I use following in /etc/network/interfaces for my Debian:

 iface usb0 inet static

address 192.168.129.254 pointopoint 192.168.129.1 netmask 255.255.255.0 pre-up modprobe usbnet post-down rmmod usbnet

So, my Linux USB device will have IP 192.168.129.254 and Zaurus will use already configured IP 192.168.129.1.

Change /etc/vmware/config so that your host-only network is 192.168.129.0 and vmware host-only adapter (vmnet1) is 192.168.129.10.

 vmnet1.hostonlyaddress = "192.168.129.10"
 vmnet1.hostonlynetmask = "255.255.255.0"

Change also any occurrence of old host-only network in /etc/vmware/locations to 192.168.129.10

answer VNET_1_HOSTONLY_HOSTADDR 192.168.129.10

Edit /etc/vmware/vmnet1/dhcpd/dhcpd.conf to change IP address class to server addresses in 192.168.129.0 network:

 subnet 192.168.129.0 netmask 255.255.255.0 {
   range 192.168.129.2 192.168.129.9;
   option broadcast-address 192.168.129.255;
   option domain-name-servers 192.168.129.10;
   option domain-name "localdomain";
 }

Now you have vmnet1 adapter with IP address 192.168.129.10 and host-only adapter in VMware will have addresses 192.168.129.2 to 9 (you might need to suspend your VMware and run /etc/init.d/vmware restart to get that).

You might also want to do:

 chattr +i /etc/vmware/vmnet1/dhcpd/dhcpd.conf /etc/vmware/locations

to make those files immutable. Otherwise, next run of vmware-config.pl will again overwrite those files.

On Guest Windows 98

First, renew your IP address (this assumes that your host-only adapter is interface 1).

 ipconfig /renew 1

Your adapter should get IP address 192.168.129.2

Start your VMware create route.bat file and add it to StartUp.

 route add 192.168.129.254 mask 255.255.255.255 192.168.129.10
 route add 192.168.129.1 mask 255.255.255.255 192.168.129.10

If you are not using Windows 98 as I am, you might want to use route -p in cmd.exe which will add permanent route for Windows 2000 and above.

Again on Linux host

Add explicit route to your zaurus and arp entry for your VMware host-only adapter (you will have to start your VMware to get vmnet1 interface and IP address 192.168.129.2):

 root@llin:~# route add -host 192.168.129.1 dev usb0
 root@llin:~# ping -c 1 192.168.129.2
 root@llin:~# arp -i usb0 -s 192.168.129.2 `arp -a 192.168.129.2 | cut -d" " -f4` pub

You might want to add those lines in /etc/network/interfaces like this:

 up route add -host 192.168.129.1 dev usb0
 up ping -c 1 192.168.129.2>/dev/null
 up arp -i usb0 -s 192.168.129.2 `arp -a 192.168.129.2 | cut -d" " -f4` pub

Now you should be able to ping 192.168.129.2 from Zaurus as well as 192.168.129.1 from VMware.

Start sync

Create shortcut in Windows 98 guest to "C:\Program Files\Sharp Zaurus 2\Intellisync for Zaurus\IS4SL.exe" /E and enjoy syncing.

Personal tools