This repository was archived by the owner on Jan 16, 2024. It is now read-only.
  
  
  
  
  
Description
When issuing a onevm disk-resize to a FreeBSD VM, the image OS will corrupt the FS and the VM will no longer be usable. This can happen with both live and POWEROFF resize. When live resize is issued the contextualization will not trigger automatically, but it can be triggered with onevm updateconf.
The problem lies in the execution of /etc/rc.d/growfs onestart triggered by the contextualization service. The problem even happens when commenting out such code and adding it to the START_SCRIPT instead, which is executed lastly by the contextualization service. Looks like some sort of race condition.
Executing this command manually inside the OS after a disk resize has been issued on the hypervisor doesn't seem to cause the FS corruption. The official FreeBSD documentation mentions this is a possibility.
Since there is a manual workaround and extremely high risk, the feature will be disabled for FreeBSD.