share read only disk

Hello I was trying to access the persistent ssd disk from one vm on the other (one has already read write access I wanted other to have read only access)

I was following https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms

Hovewer although it is surely the same zone the cloud client is unable to see the disk to be attached as can be seen below - what could couse it?

Hi,

Sharing a disk in read-only mode across multiple VMs requires all VMs mount the disk read-only. So suggest removing and re-adding the disk as read-only on the first VM and then it should be visible to add to the second.

Best,

Alex

1 Like