use change_host_name capability

guest.change_host_name does not work in 1.2.x anymore