Subject: vmware problems - cdrom, /dev/rtc, vmnet
To: None <netbsd-users@netbsd.org>
From: Lubos Vrbka <shnek@chemi.muni.cz>
List: netbsd-users
Date: 11/11/2002 17:47:39
i'm trying to get vmware running (i386, netbsd-1.6, X 4.2.0). i've 
experienced
some problems with set-up. there are some similar questions in the
archives, but no answers... is there anybody who could help me, please?

1) my cdrom behaviour in the vmware is weird. it works, but has got
approx. 1.5 sec timeout after reading every single file - cdrom stops
and then respin the cd for reading next file (copying installation files
for win2k takes nearly 3 hours :o( this is annoying and probably not
very good for the drive itself)
similar problem is reported in
http://mail-index.netbsd.org/current-users/2002/02/25/0004.html
but no answer or solution is there :o(

log file ->
Nov 11 08:57:13: ATAPI_CDROM: Mode Sense (Almost) Completely Emulated.
Nov 11 08:57:13: ATAPI_CDROM: Mode Sense Packet 0x5A 0x8 0x2A 0x0 0x0
0x0 0x0 0x0 0x20 0x0 0x0 0x0
...
Nov 11 08:58:00: DISK/CDROM timeout of 1.485 seconds (ok)

dmesg output for the cdrom device ->
cd0 at atapibus0 drive 0: <SONY    CD-RW  CRX175A, , 1.0h> type 5 cdrom
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2

2) where can i find the /dev/rtc device? it is needed for the win98 and
vmware looks for it at startup... is it linux feature? i've
compatibility packages instaled, but no dev/rtc is anywhere...

3) bridged network in the vmware doesn't work.
kernel modules are loaded ->
$ modstat
Type    Id  Off Loadaddr Size Info     Rev Module Name
DEV       0  29 e3763000 0018 e3766b80   1 vmmon
DEV       1  30 e375e000 0008 e375fac0   1 vmnet

bridge is probably running (don't understand ifconfig :o( )->
$ ifconfig -a
ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
          capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
          enabled=0<>
          address: 00:04:75:83:34:8e
          media: Ethernet autoselect (100baseTX full-duplex)
          status: active
          inet 147.251.28.27 netmask 0xffffff00 broadcast 147.251.28.255
          inet6 fe80::204:75ff:fe83:348e%ex0 prefixlen 64 scopeid 0x1
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33220
          inet 127.0.0.1 netmask 0xff000000
          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
          inet6 ::1 prefixlen 128
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
strip0: flags=0<> mtu 1100
strip1: flags=0<> mtu 1100
vmnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
          address: 00:50:56:01:00:00
          inet 172.16.212.1 netmask 0xffffff00 broadcast 172.16.212.255

device files are present ->
$ ls -la /dev/vm*
crw-------  1 root  wheel  29,  0 Nov  8 16:24 /dev/vmmon
crw-------  1 root  wheel  30,  0 Nov  8 16:24 /dev/vmnet0
crw-------  1 root  wheel  30, 16 Nov  8 16:24 /dev/vmnet1
crw-------  1 root  wheel  30, 32 Nov  8 16:24 /dev/vmnet2
crw-------  1 root  wheel  30, 48 Nov  8 16:24 /dev/vmnet3

but on startup vmware states that the bridge on /dev/vmnet0 is not
running. i don't understand this very well - vmware looks at /dev/vmnet0
while ifconfig reports bridge at vmnet1, right? is it ok? why are there
the values inet 172.16.212.1 netmask 0xffffff00? i tried to replace them
with IP and netmask for my virtual win2k machine, but win2k then reports
conflicting IP... i also tried to change /vmnet1 to /vmnet0 in rc.conf,
but with the same results... bridge on /dev/vmnet0 is not running. i
compared values with non-problems running (debian linux) vmware - should
be ok...

any suggestions would help me a lot. thanx

lubos
-- 
#################################################
Lubos Vrbka
National Centre For Biomolecular Research
Masaryk university, Brno, Czech Republic
shnek@chemi.muni.cz
#################################################