Fix vm resource type

* Fix power on issues.
* Refactor some issues.
* Simplify munge.
* Simplify network initialization code.