Add vm:rebuild task
Refactor VM tasks