cleanvm: robust cleanup and include ssh key
cleanvm: cleanup and split into functions
avoid race on 12.2

use cp instead of mv before /var/lib remount
using mv caused the network to go down