You can try to folow PTC rehost guide before re-installing everything
Prior 9.1:http://www.ptc.com/view?im_dbkey=38433
For 9.1:http://www.ptc.com/view?im_dbkey=105438
For 10.x:http://www.ptc.com/view?im_dbkey=124969
A good practice is to use aliases for host names during installation ; just some xconfmanager commands to make it work outside VM after install