Migrate Postgres from VM to VM
Absolutely no! Do not try this. The normal way of doing this is a proper dump and restore and copy the dumped file from one VM to another VM.

pg_dump -d db -f db.sql

You might want to compress the file with xz or some other compressor before transferring it.

transfer db.sql to new VM after creating the database with createdb db (adding any other option you require)

then 

psql -d db -f db.sql

or use pg_restore