VMware Cloud Community
Malefunk
Contributor
Contributor

Wanted : Read-Only Virtual Disks!

Hi,

i want to know if it`s possible to set a vmdk File on an ESX3.02 Host to read-only.

I tried so far setting the file to 400, but it seems the ESX Kernel ignores these settings...

Also, i set RW to RDONLY inside the vmdk file, but with no success...

Non-persistent Mode doesn`t work for us, because we want to have the rpm datapase on that partition. if s.o. would be able to install rpms, and the changes

were omitted, this would result in an inconsistent rpm database.

Currently we use a raw LUN, set to read-only inside the SAN to prevent changes. But therefore we need much configuration setting up new vms, and the minimun capacity

for a single raw lun is 1gb .. for about 20mb data .. :smileymischief:

Reply
0 Kudos
1 Reply
wila
Immortal
Immortal

Hi,

One thing you could try is to create an ISO file of the data you need.. just burn the data to a CD and then use a tool (or the dd command in unix) to make an iso out of the file.

Then attach the data as a CDrom drive to your VM and it must be read only.

AFAIK, the only other easy option would be to set the readonly flags within the OS that you are using, but that can be overriden depending on how much rights the user has.

Another way might be to use NFS and share a drive without the write flags set.



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos