하모니카에서 버추어박스 6 사용하기

윈도우가 필요한 경우 버추어박스와 윈도우 무료 이미지를 이용하여 90일간 사용가능하다.

3개의 파일을 모두 다운로드 받아서 저장 (가상머신 이미지는 용량이 4.7G 정도)

버추어박스 설치 후 오류가 나는 경우 아래와 같이 권한을 변경

$ sudo chown root:root /usr/lib/virtualbox

$ sudo chown root:root /usr/lib/

$ sudo chown root:root /usr

버추어박스 CLI 제어

가상머신 목록확인

$ vboxmanage list vms

가상머신 구동

$ vboxmanage start win10pe

가상머신 종료

$ vboxmanage shutdown win10pe

https://www.techrepublic.com/article/how-to-run-virtualbox-virtual-machines-from-the-command-line/

Say we want to run the "Ubuntu Server" VM as a headless instance. To do this, you would issue the command:

VBoxManage startvm "Ubuntu Server" --type headless

The VM will start up and hand you back your bash prompt. Your virtual server (if that's how you're using the VM) is now available to you.

If you need to pause that VM, issue the command:

VBoxManage controlvm "Ubuntu Server" pause --type headless

To restart that paused VM, issue the command:

VBoxManage controlvm "Ubuntu Server" resume --type headless

To shut down the VM, issue the command:

VBoxManage controlvm "Ubuntu Server" poweroff --type headless

Last updated