VirtualBox

wwiki
이동: 둘러보기, 검색

VBoxManage[편집 | 원본 편집]

https://docs.oracle.com/en/virtualization/virtualbox/7.0/user/vboxmanage.html#vboxmanage-cmd-overview

list[편집 | 원본 편집]

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms

showvminfo[편집 | 원본 편집]

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe showvminfo [이름]

startvm[편집 | 원본 편집]

VBoxManage startvm { uuid | vmname ...} [--putenv=name[=value]] [--type=[ gui | headless | sdl | separate ]] --password file --password-id password identifier

기타[편집 | 원본 편집]

보안 부팅[편집 | 원본 편집]

virtualbox version: 6.1

에러 메시지

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

EFI 보안부팅이 켜져있는 경우에는 커널모듈(vbxdrv, vboxnetadp, vboxpci) 서명해야 하므로 다음 명령을 실행하면 해당되는 메시지가 출력된다.

sudo vboxconfig

vboxdrv.sh에서 virtualbox의 커널 모듈을 빌드하려고 하지만, 리눅스 커널 헤더파일이 필요하다는 메시지가 나온다. 메시지에 나오는 "linux-headers-amd64 linux-headers-5.10.0-0.bpo.7-amd64"를 설치해야 하는 것으로 보인다. 아마도 리눅스 배포판과 버전에 따라서 다를 것으로 보인다.

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
  vboxdrv vboxnetflt vboxnetadp
See the documentation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-5.10.0-0.bpo.7-amd64
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-5.10.0-0.bpo.7-amd64

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

apt등의 명령어로 위의 메시지에 나오는 헤더파일을 설치해도 다음과 같은 안내메시지가 나온다.

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
  vboxdrv vboxnetflt vboxnetadp
See the documentation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
No DKMS packages installed: not changing Secure Boot validation state.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

DKMS 패키지가 설치되지 않아서 보안부팅 유효성을 변경할 수 없다고 나온다. 'vboxdrv'도 modprobe명령어로 로딩하지 못 하였다. sudo dmesg 명령으로 확인해 보니 서명되지 않아서 실패한 모양이다.

Lockdown: modprobe: unsigned module loading is restricted; see man kernel_lockdown.7

외부링크[편집 | 원본 편집]

https://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi