- Add host only adapter
- Select ‘Allow All’ or ‘Allow VMs’ for Premiscuous Mode
- Check Cable Connected
usermod -aG sudo dhyan
Add to the last line
dhyan ALL=(ALL) NOPASSWD: ALL
sudo apt install net-tools
ip link
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: yes
enp0s8:
dhcp4: yes
sudo apt install openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
ifconfig
ansible-playbook -i environments/dev -u dhyan addKey.yml -e "pub_user=dhyan" --ask-pass
sudo dhclient -r enp0s8
sudo dhclient enp0s8
NOTE May have to repeat couple of times to obtain new address
pyenv virtualenvs # list environments
pyenv activate [tff_venv_3.6] # activate environment
ansible-playbook -i environments/dev -u dhyan --private-key=~/.ssh/id_rsa setup.yml