Putting userdata logic into VirtualMachine