vm (de)attach working