pacman -Scc
pacman-key --refresh-keys
pacman -Syu
apt update
apt install python3.6 python3.6-dev python3.6-venv

Create a host only network

Create a host only network with adapter address and range from

Inside the guest

ifconfig eth1 netmask up

And setup in /etc/network/interfaces:

View pg_hba.conf
# PostgreSQL Client Authentication Configuration File
# ===================================================
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
git config --global alias.adog "log --all --decorate --oneline --graph"

Swap file creation

As root use fallocate to create a swap file the size of your choosing (M = Mebibytes, G = Gibibytes). For example, creating a 512 MiB swap file:
fallocate -l 512M /swapfile

Note: fallocate may cause problems with some file systems such as F2FS or XFS.[1] As an alternative, using dd is more reliable, but slower:
dd if=/dev/zero of=/swapfile bs=1M count=512

Set the right permissions (a world-readable swap file is a huge local vulnerability)
chmod 600 /swapfile


Get Pypy 5.8 (Python 2.7 compatible)

sudo mkdir -p /opt/pypy
cd /opt/pypy 
sudo wget
sudo tar -xvf pypy2-v5.8.0-linux64.tar.bz2
sudo chmod -R 775 /opt/pypy
sudo rm -rf pypy2-v5.8.0-linux64.tar.bz2

# va para o diretorio do projeto
# update pip
pip install -U pip
pip install requests[security]
#apt install -y libxml2-dev libxslt1-dev python-dev zlib1g-dev libjpeg-dev