How to fix the read only error on lima vm

Viewed 1228

Getting read only file system error when try to create local repository for docker. [1] I used this installed lima [2] over Macbook Air M1 (Apple chipset)

chown: changing ownership of 'oracle-19c/.DS_Store': Read-only file system
chown: changing ownership of 'oracle-19c/oradata': Read-only file system
chown: changing ownership of 'oracle-19c/': Read-only file system

Any one know how to resolve this. I have change the permission to read write with 'getInfor' option by selecting the relevant folder.

[1] https://registry.hub.docker.com/r/doctorkirk/oracle-19c [2] https://github.com/lima-vm/lima

1 Answers

By default the home is read only. You may try write on /tmp/lima, this should work.

To be make home and other paths writeable by default, do the following:

  1. Edit the file and set write: true under mount section

    $ vim ~/.lima/default/lima.yaml
    
  2. Then restart lima

    limactl list #this lists all running vms 
    limactl stop default #or name of the machine 
    limactl start default #or name of the machine 
    

Further infos: https://github.com/lima-vm/lima/blob/41fd9cc6a1e2bac73666e1f2b11604c7c42227dc/pkg/limayaml/default.TEMPLATE.yaml#L33-L41

Related