Error while setting up virtual machine

Looks like you have downloaded old image. You need to update.

go to frappe bench folder and run command bench update

then you need to reinstall site or create new site.

cd frappe-bench
bench update
bench reinstall

reference: Version 5 Setup Error - #7 by David_Stegnitz