Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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?

 

Jakub_Mitura_1-1664450641461.png

 

Solved Solved
0 1 1,284
1 ACCEPTED SOLUTION

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

View solution in original post

1 REPLY 1

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