In case of devicemapper, do not pass the rootfs through 9pfs
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 what do you mean ? In case of devicemapper, we are passing the rootfs both through 9pfs and through a block device hotplug ?
So is there a plan to stop using 9pfs as rootfs altogether?
@rarindam Here are the use cases:
- In case of
overlaywe 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.
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 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.