Below are some command usually used in a test environment.
1. Enable VDOM in CLI
# config system global (global) # set vdom-mode multi-vodm (global) # end
2. Factory reset when VDOM is enabled
# config global (global)# execute factoryreset