Issue #3274512 by Ryo Yamashita, yas: Add the function to reboot VMware VM in the SPA and refactoring