Skip to main content

Command Palette

Search for a command to run...

How to Start VirtualBox VM in the Background and Connect via PuTTY

Updated
How to Start VirtualBox VM in the Background and Connect via PuTTY
N

A passionate data engineer skilled in ETL, Data warehousing, SQL, Python, Docker & Kubernetes and more. Follow my blog for tech insights!

Set Environmental path

  1. copy the directory where VirtualBox is installed (e.g., C:\Program Files\Oracle\VirtualBox)

  2. Add into environmental path variable

Commands to run vm in background

Start the vm

Syntax - VBoxManage startvm yourVM_name --type headless

VBoxManage startvm navinvm --type headless

Status of the VM

Syntax - VBoxManage showvminfo yourVM_name | Select-String "State"

VBoxManage showvminfo navinvm | Select-String "State"

VBoxManage list runningvms

Stop the VM

Syntax - VBoxManage controlvm yourVM_name poweroff

VBoxManage controlvm navinvm poweroff

How to connect via PuTTY

or You can use Mobaxterm

for file transfer, you can use either FileZilla or WinScp