Set state for Vm

Signed-off-by: dingxin <dingxin.git@gmail.com>