Added method to attach devices to virtual machine