Moved pm and vm to OS