sudo systemctl enable sshd
sudo systemctl start sshd
sudo systemctl set-default multi-user.target
wget -O ~/.bashrc https://gist.githubusercontent.com/DemianD/13c2ffedbf20eba7939c195f5e3ed073/raw/f30115d1159d540b6866cf28476c9a107be4d930/.bashrc
sudo passwd root
# Fill in root.
# Username and Password will then be `root` and `root`
First: shutdown the machine
VBoxManage modifyvm "Best 2" --natpf1 "ssh,tcp,,3022,,22"
You can start your VM in headless mode:
- Open VirtualBox
- Right Click -> Start ->
Headless Start
ssh 127.0.0.1 -p 3022 -l root
Start the GUI: