i have a virtual machine running with qemu-kvm, and a secondary disk-image mounted with
Code: Select all
-drive file=/data/vms/kube/kube-storage.img,format=raw,if=none,id=drive-ide0-1-1Code: Select all
/dev/sdb on /storage type ext4 (rw,relatime,seclabel,data=ordered)Code: Select all
/data/vms/kube/kube-storage.img on /mnt/tmp type ext4 (ro,nosuid,nodev,noexec,relatime)E.g. when i do on the VM
Code: Select all
# touch /storage/test
# ll /storage/test
-rw-r--r--. 1 root root 0 21. Dez 15:10 /storage/testCode: Select all
# ll /mnt/tmp/
drwxr-xr-x 4 root root 4.0K Dec 25 10:32 .
drwxr-xr-x 7 root root 4.0K Jan 22 2018 ..
drwxr-xr-x 3 root root 4.0K Dec 21 14:54 data
# umount /mnt/tmp
# mount -o loop /data/vms/kube/kube-storage.img /mnt/tmp
# mount -o remount,ro /mnt/tmp/
# ll /mnt/tmp/
drwxr-xr-x 4 root root 4.0K Dec 25 10:33 .
drwxr-xr-x 7 root root 4.0K Jan 22 2018 ..
drwxr-xr-x 3 root root 4.0K Dec 21 14:54 data
-rw-r--r-- 1 root root 0 Dec 25 10:33 testCan someone explain me what happens here, and maybe also which options to use, to make it
work..
Thanks,
Tony.


