runtime icon indicating copy to clipboard operation
runtime copied to clipboard

In case of devicemapper, do not pass the rootfs through 9pfs

Open amshinde opened this issue 9 years ago • 5 comments

We check for devicemapper after the VM has been created and hotplug the block device. We still pass the rootfs through 9pfs, we can avoid passing any 9pfs volumes to the VM.

amshinde avatar Nov 17 '17 00:11 amshinde

@amshinde what do you mean ? In case of devicemapper, we are passing the rootfs both through 9pfs and through a block device hotplug ?

sboeuf avatar Nov 17 '17 05:11 sboeuf

So is there a plan to stop using 9pfs as rootfs altogether?

rarindam avatar Nov 22 '17 22:11 rarindam

@rarindam Here are the use cases:

  • In case of overlay we get a filesystem and we need 9pfs so that we can access it from inside the VM.
  • In case of devicemapper, we get a block device, that we can hotplug into Qemu so that it appears inside the VM. And that's why in that case we don't need to use 9p.

But we still need 9p support for the first case. And notice that even in case of devicemapper, we still need to be able to give some specific files to be mounted inside every container.

The issue @amshinde is mentioning is that in case of devicemapper(block device) we are doing both 9p and block device hotplug, meaning that we have access to the same rootfs in 2 different ways.

sboeuf avatar Nov 22 '17 23:11 sboeuf

Thank you Sebastien for the clarification. As we are seeing a lot of 9p related issues, I was wondering along the lines whether it could be stopped being used as rootfs, in case of overlay.

rarindam avatar Nov 22 '17 23:11 rarindam

@rarindam devicemapper is a special case where we do not use 9pfs depending on a configuration. For all other storage drivers (aufs, overlay, overlay2) we use 9pfs.

amshinde avatar Nov 22 '17 23:11 amshinde