Subject: vmware 3.2.1 build-2242: Cannot open /dev/wd0e for writing: Permission denied.
To: None <netbsd-help@NetBSD.org>
From: Tomas D <u0giene@yahoo.com>
List: netbsd-help
Date: 02/14/2005 10:19:53
Hi I cant seem to make my vmware boot from my
/dev/wd0e here's what I do:
bash-3.00# disklabel /dev/wd0
# /dev/wd0d:
type: ESDI
disk: Maxtor 90640D4
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 12495
total sectors: 12594960
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

5 partitions:
#        size    offset     fstype [fsize bsize
cpg/sgs]
 d:  12594960         0     unused      0     0       
# (Cyl.      0 -  12494)
 e:  12578832        63      MSDOS                    
# (Cyl.      0*-  12479*)
disklabel: boot block size 0
disklabel: super block size 0
-------
in my /home/wally/vmware/dos/dos.cfg I've got
following:#!/usr/pkg/bin/vmware
config.version = "2"
virtualHW.version = "1"
displayName = "MS-DOS"

# No cdrom installed

# Virtual hard disk on primary master
ide0:0.present = "TRUE"
ide0:0.fileName = "wd0"
ide0:0.deviceType = "plainDisk"
ide0:0.mode = "persistent"
ide0:0.writethrough = FALSE
(rest doesn't matter)
----------
disk.mbr I've created using firmware guide on
netbsd.org 
everything seem to allright (at least to me) but when
I start vmware here's what's happening in
/home/wally/vmware/dos.log
---------
in my /home/wally/vmware/dos/wd0 I've got:

DRIVETYPE      ide
CYLINDERS    12495
HEADS           16
SECTORS         63

ACCESS "disk.mbr" 0 63
ACCESS "/dev/wd0e" 63 12578832

dos.log:

Feb 14 18:12:55: VMX|changing directory to
/home/wally/vmware/dos/.
Feb 14 18:12:55: VMX|Config file:
/home/wally/vmware/dos/dos.cfg
Feb 14 18:12:55: VMX|VMX: changing state 1 from 1873
to 1873
Feb 14 18:12:55: VMX|VMX: changing state 2 from 1877
to 1878
Feb 14 18:12:55: VMX|Disk: Open(wd0) flags=0x0=.
Feb 14 18:12:55: VMX|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:12:55: VMX|PlainDisk wd0 does not have
capacity info.
Feb 14 18:12:55: VMX|FILEIO: Reverting to buffered IO
for file disk.mbr
Feb 14 18:12:55: VMX|FILEIO: Reverting to buffered IO
for file /dev/wd0e
Feb 14 18:12:55: VMX|Disk: Open(wd0) flags=0x0=.
Feb 14 18:12:55: VMX|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:12:55: VMX|PlainDisk wd0 does not have
capacity info.
Feb 14 18:12:55: VMX|FILEIO: Reverting to buffered IO
for file disk.mbr
Feb 14 18:12:55: VMX|FILEIO: Reverting to buffered IO
for file /dev/wd0e
Feb 14 18:12:55: UI|VMX(UI): changing state 1 from
1873 to 1873, nesting 0
Feb 14 18:12:55: UI|VMX(UI): changing state 2 from
1877 to 1878, nesting 0
Feb 14 18:12:55: UI|Config file:
/home/wally/vmware/dos/dos.cfg
Feb 14 18:12:55: VMX|Disk: Open(wd0) flags=0x0=.
Feb 14 18:12:55: VMX|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:12:55: VMX|PlainDisk wd0 does not have
capacity info.
Feb 14 18:12:55: VMX|FILEIO: Reverting to buffered IO
for file disk.mbr
Feb 14 18:12:55: VMX|FILEIO: Reverting to buffered IO
for file /dev/wd0e
(after pressing power on button)
Feb 14 18:14:04: VMX|PowerOn
Feb 14 18:14:04: VMX|VMX: changing state 0 from 1870
to 1871
Feb 14 18:14:04: VMX|Disk: Open(wd0) flags=0x0=.
Feb 14 18:14:04: VMX|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:14:04: VMX|PlainDisk wd0 does not have
capacity info.
Feb 14 18:14:04: VMX|FILEIO: Reverting to buffered IO
for file disk.mbr
Feb 14 18:14:04: VMX|FILEIO: Reverting to buffered IO
for file /dev/wd0e
Feb 14 18:14:04: VMX|HOST sysname Linux, nodename
uogiene, release 2.4.18, versi
on #0 Wed Feb 20 20:00:02 CET 2002, machine i386
Feb 14 18:14:04: VMX|DICT --- USER PREFERENCES
Feb 14 18:14:04: VMX|DICT        prefvmx.mru.config =
/home/wally/vmware/dos/dos
.cfg:
Feb 14 18:14:04: VMX|DICT              pref.toolbar =
TRUE
Feb 14 18:14:04: VMX|DICT --- USER DEFAULTS
Feb 14 18:14:04: VMX|DICT --- HOST DEFAULTS
Feb 14 18:14:04: VMX|DICT           vmware.fullpath =
/usr/pkg/bin/vmware
Feb 14 18:14:04: VMX|DICT           wizard.fullpath =
/usr/pkg/bin/vmware-wizard
Feb 14 18:14:04: VMX|DICT            dhcpd.fullpath =
/usr/pkg/bin/vmware-dhcpd
Feb 14 18:14:04: VMX|DICT             natd.fullpath =
/usr/pkg/bin/vmware-natd
Feb 14 18:14:04: VMX|DICT        smbpasswd.fullpath =
/usr/pkg/bin/vmware-smbpas
swd
Feb 14 18:14:04: VMX|DICT                    libdir =
/usr/pkg/share/vmware
Feb 14 18:14:04: VMX|DICT    vmnet1.HostOnlyAddress =
172.16.212.1
Feb 14 18:14:04: VMX|DICT    vmnet1.HostOnlyNetMask =
255.255.255.0
Feb 14 18:14:04: VMX|DICT    host.FSSupportLocking1 =
0x1
Feb 14 18:14:04: VMX|DICT
xkeymap.usekeycodeMapIfXFree86 = true
Feb 14 18:14:04: VMX|DICT --- SITE DEFAULTS
Feb 14 18:14:04: VMX|DICT                  tag.help =
introduction.htm
Feb 14 18:14:04: VMX|DICT   tag.configurationEditor =
config_editor_newvm.htm
Feb 14 18:14:04: VMX|DICT             tag.ideConfig =
devices_virtualdrive.htm
Feb 14 18:14:04: VMX|DICT          tag.floppyConfig =
devices_floppy.htm
Feb 14 18:14:04: VMX|DICT           tag.mouseConfig =
devices_mouse.htm
Feb 14 18:14:04: VMX|DICT             tag.netConfig =
devices_netadapter.htm
Feb 14 18:14:04: VMX|DICT        tag.parallelConfig =
devices_parallel.htm
Feb 14 18:14:04: VMX|DICT          tag.serialConfig =
devices_serial.htm
Feb 14 18:14:04: VMX|DICT           tag.soundConfig =
devices_sound.htm
Feb 14 18:14:04: VMX|DICT             tag.memConfig =
configvm_memory.htm
Feb 14 18:14:04: VMX|DICT             tag.usbConfig =
devices_usb.htm
Feb 14 18:14:04: VMX|DICT            tag.miscConfig =
configvm.htm
Feb 14 18:14:04: VMX|DICT                 tag.tools =
vmtools.htm
Feb 14 18:14:04: VMX|DICT --- COMMAND LINE
Feb 14 18:14:04: VMX|DICT             gui.available =
TRUE
Feb 14 18:14:04: VMX|DICT --- CONFIGURATION
Feb 14 18:14:04: VMX|DICT            config.version =
2
Feb 14 18:14:04: VMX|DICT         virtualHW.version =
1
Feb 14 18:14:04: VMX|DICT               displayName =
MS-DOS
Feb 14 18:14:04: VMX|DICT            ide0:0.present =
TRUEFeb 14 18:14:04: VMX|DICT          
ide0:0.fileName = wd0
Feb 14 18:14:04: VMX|DICT         ide0:0.deviceType =
plainDisk
Feb 14 18:14:04: VMX|DICT               ide0:0.mode =
persistent
Feb 14 18:14:04: VMX|DICT       ide0:0.writethrough =
FALSE
Feb 14 18:14:04: VMX|DICT           floppy0.present =
FALSE
Feb 14 18:14:04: VMX|DICT                   memsize =
16
Feb 14 18:14:04: VMX|DICT                     nvram =
dos.nvram
Feb 14 18:14:04: VMX|DICT              log.fileName =
dos.log
Feb 14 18:14:04: VMX|DICT                   guestOS =
winXPHome
Feb 14 18:14:04: VMX|DICT      gui.powerOnAtStartup =
FALSE
Feb 14 18:14:04: VMX|DICT                apmSuspend =
FALSE
Feb 14 18:14:04: VMX|DICT             suspendToDisk =
TRUE
Feb 14 18:14:04: VMX|DICT        gui.exitAtPowerOff =
FALSE
Feb 14 18:14:04: VMX|DICT       hard-disk.enableIBR =
FALSE
Feb 14 18:14:04: VMX|DICT      gui.fullScreenResize =
TRUE
Feb 14 18:14:04: VMX|DICT         resume.repeatable =
FALSE
Feb 14 18:14:04: VMX|DICT      disable_acceleration =
FALSE
Feb 14 18:14:04: VMX|DICT   gui.fullScreenAtPowerOn =
FALSE
Feb 14 18:14:04: VMX|DICT                redoLogDir =
Feb 14 18:14:04: VMX|DICT                   logging =
TRUE
Feb 14 18:14:04: VMX|DICT                     debug =
FALSE
Feb 14 18:14:04: VMX|DICT --- USER DEFAULTS
Feb 14 18:14:04: VMX|DICT --- HOST DEFAULTS
Feb 14 18:14:04: VMX|DICT           vmware.fullpath =
/usr/pkg/bin/vmware
Feb 14 18:14:04: VMX|DICT           wizard.fullpath =
/usr/pkg/bin/vmware-wizard
Feb 14 18:14:04: VMX|DICT            dhcpd.fullpath =
/usr/pkg/bin/vmware-dhcpd
Feb 14 18:14:04: VMX|DICT             natd.fullpath =
/usr/pkg/bin/vmware-natd
Feb 14 18:14:04: VMX|DICT        smbpasswd.fullpath =
/usr/pkg/bin/vmware-smbpas
swd
Feb 14 18:14:04: VMX|DICT                    libdir =
/usr/pkg/share/vmware
Feb 14 18:14:04: VMX|DICT    vmnet1.HostOnlyAddress =
172.16.212.1
Feb 14 18:14:04: VMX|DICT    vmnet1.HostOnlyNetMask =
255.255.255.0
Feb 14 18:14:04: VMX|DICT    host.FSSupportLocking1 =
0x1
Feb 14 18:14:04: VMX|DICT
xkeymap.usekeycodeMapIfXFree86 = true
Feb 14 18:14:04: VMX|DICT --- SITE DEFAULTS
Feb 14 18:14:04: VMX|DICT                  tag.help =
introduction.htm
Feb 14 18:14:04: VMX|DICT   tag.configurationEditor =
config_editor_newvm.htm
Feb 14 18:14:04: VMX|DICT             tag.ideConfig =
devices_virtualdrive.htm
Feb 14 18:14:04: VMX|DICT          tag.floppyConfig =
devices_floppy.htm
Feb 14 18:14:04: VMX|DICT           tag.mouseConfig =
devices_mouse.htm
Feb 14 18:14:04: VMX|DICT             tag.netConfig =
devices_netadapter.htm
Feb 14 18:14:04: VMX|DICT        tag.parallelConfig =
devices_parallel.htm
Feb 14 18:14:04: VMX|DICT          tag.serialConfig =
devices_serial.htm
Feb 14 18:14:04: VMX|DICT           tag.soundConfig =
devices_sound.htm
Feb 14 18:14:04: VMX|DICT             tag.memConfig =
configvm_memory.htm
Feb 14 18:14:04: VMX|DICT             tag.usbConfig =
devices_usb.htm
Feb 14 18:14:04: VMX|DICT            tag.miscConfig =
configvm.htm
Feb 14 18:14:04: VMX|DICT                 tag.tools =
vmtools.htm
Feb 14 18:14:04: VMX|DICT --- GLOBAL SETTINGS
Feb 14 18:14:04: VMX|MStat: Creating Stat vm.uptime
Feb 14 18:14:04: VMX|GuestOSId = 0x500c
Feb 14 18:14:04: VMX|Msg_Hint: msg.guestos.xp (shown)
Feb 14 18:14:04: VMX|Disk: Open(wd0) flags=0x0=.
Feb 14 18:14:04: VMX|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:14:04: VMX|PlainDisk wd0 does not have
capacity info.
Feb 14 18:14:04: VMX|FILEIO: Reverting to buffered IO
for file disk.mbr
Feb 14 18:14:04: VMX|FILEIO: Reverting to buffered IO
for file /dev/wd0e
Feb 14 18:14:04: UI|VMX(UI): changing state 0 from
1870 to 1871, nesting 0
Feb 14 18:14:06: VMX|VMX: changing state 1 from 1873
to 1873
Feb 14 18:14:06: VMX|Created the /tmp/ram1 temporary
file.
Feb 14 18:14:06: VMX|LICENSE using:
'/home/wally/.vmware/license.ws.3.0'
Feb 14 18:14:06: VMX|minReservedMemInMB=32
maxReservedMemInMB=224 defaultReserve
dMemInMB=224
Feb 14 18:14:06: VMX|totOverheadInMB=16
Feb 14 18:14:06: VMX|PHYSMEM: TryAddRegion 0
Feb 14 18:14:06: VMX|PHYSMEM: TryAddRegion 1
Feb 14 18:14:06: VMX|PHYSMEM: TryAddRegion 2
Feb 14 18:14:06: VMX|Mhz estimate 1467
Feb 14 18:14:06: VMX|MHZEstimate 1467
Feb 14 18:14:06: VMX|Msg_Hint: msg.disk.rawacpi
(shown)
Feb 14 18:14:06: UI|VMX(UI): changing state 1 from
1873 to 1873, nesting 0
Feb 14 18:14:07: VMX|Disk: Open(wd0) flags=0x0=.
Feb 14 18:14:07: VMX|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:14:07: VMX|PlainDisk wd0 does not have
capacity info.
Feb 14 18:14:07: VMX|FILEIO: Reverting to buffered IO
for file disk.mbr
Feb 14 18:14:07: VMX|FILEIO: Reverting to buffered IO
for file /dev/wd0e
Feb 14 18:14:07: VMX|(VMX) DeclareThread ide0:0
module=16 source=0x200000
Feb 14 18:14:07: VMX|Creating thread 'ide0:0', type 16
from self, pid=2291
Feb 14 18:14:07: VMX|Created AIO ide0:0 pid=2291
sharedArea=0x48389000 size=0x20
00
Feb 14 18:14:07: VMX|(SELF) DeclareThread ide0:0
module=16 source=0x200000
Feb 14 18:14:07: ide0:0|(ide0:0) DeclareThread VMX
module=1 source=0x10000
Feb 14 18:14:07: ide0:0|DISK: OPEN ide:0:0 'wd0'
persistent
Feb 14 18:14:07: ide0:0|Disk: Open(wd0)
flags=0xf=poweron|writeable|lock|writelo
ck.
Feb 14 18:14:07: ide0:0|BigCOWDisk_OpenFromParent: Big
Cow Disk wd0
Feb 14 18:14:07: ide0:0|PlainDisk wd0 does not have
capacity info.
Feb 14 18:14:07: ide0:0|DISK: ROOT PlainDisk wd0
(12495/16/63)
Feb 14 18:14:07: ide0:0|FILEIO: Reverting to buffered
IO for file disk.mbr
Feb 14 18:14:07: ide0:0|DISK: Read/write extent 0
(disk.mbr) locked, numSecs = 6
3
Feb 14 18:14:07: ide0:0|FILEIO: Reverting to buffered
IO for file /dev/wd0e
Feb 14 18:14:07: ide0:0|Msg_Post: Error
Feb 14 18:14:07:
ide0:0|[msg.plaindisk.openFailedWrite] Cannot open
/dev/wd0e fo
r writing: Permission denied.
Feb 14 18:14:07: ide0:0|[msg.disk.noBackEnd] Unable to
open either the disk 'wd0
' or the redo log 'wd0.REDO'
Feb 14 18:14:07: ide0:0|[msg.disk.notConfigured2]
Failed to configure disk ide0:
0.  The virtual machine cannot be powered on with an
unconfigured disk. (thread
0)
Feb 14 18:14:07:
ide0:0|----------------------------------------


and on vmware dialog box pops out with the following:
Cannot open /dev/wd0e for writing: Permission denied.
Unable to open either the disk 'wd0' or the redo log
'wd0.REDO'
Failed to configure disk ide0:0.  The virtual machine
cannot be powered on with an unconfigured disk.
(thread 0)

-
I've tried starting vmware as a root and as normal
user, with /dev/wd0e mounted and unmounted getting the
same error message.
if anybody had same problem could you please share
with me how did you went about it.
cheers.
tom


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com