Skip to content

Better documentation needed for virtual desktop #4730

Open
@afbjorklund

Description

@afbjorklund

More and more users are trying to run minikube on a virtual desktop (VM).
Typically this fails, because nested virtualization is not enabled for them...

vagrant@ubuntu-xenial:~$ egrep --color 'vmx|svm' /proc/cpuinfo
vagrant@ubuntu-xenial:~$ wget -q https://github.com/kubernetes/minikube/releases/download/v1.2.0/minikube_1.2.0.deb
vagrant@ubuntu-xenial:~$ sudo dpkg -i minikube_1.2.0.deb 
(Reading database ... 54233 files and directories currently installed.)
Preparing to unpack minikube_1.2.0.deb ...
Unpacking minikube (1.2.0) ...
Setting up minikube (1.2.0) ...
vagrant@ubuntu-xenial:~$ minikube start
😄  minikube v1.2.0 on linux (amd64)
💿  Downloading Minikube ISO ...
 129.33 MB / 129.33 MB [============================================] 100.00% 0s
🔥  Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
E0711 16:56:33.992057    1778 start.go:559] StartHost: create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path

💣  Unable to start VM
❌  Error:         [VBOX_NOT_FOUND] create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
💡  Advice:        Install VirtualBox, ensure that VBoxManage is executable and in path, or select an alternative value for --vm-driver
📘  Documentation: https://www.virtualbox.org/wiki/Downloads
⁉️   Related issues:
    ▪ https://github.com/kubernetes/minikube/issues/3784
    ▪ https://github.com/kubernetes/minikube/issues/3776

😿  If the above advice does not help, please let us know: 
👉  https://github.com/kubernetes/minikube/issues/new
vagrant@ubuntu-xenial:~$ sudo apt install -y virtualbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-5 dkms fakeroot fontconfig fontconfig-config fonts-dejavu-core gcc gcc-5 libasan2 libasound2 libasound2-data libasyncns0
  libatomic1 libavahi-client3 libavahi-common-data libavahi-common3 libboost-filesystem1.58.0 libboost-system1.58.0 libc-dev-bin libc6-dev
  libcaca0 libcapnp-0.5.3 libcc1-0 libcilkrts5 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa libevdev2
  libfakeroot libflac8 libfontconfig1 libgbm1 libgcc-5-dev libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgomp1 libgraphite2-3 libgsoap8
  libgudev-1.0-0 libharfbuzz0b libice6 libinput-bin libinput10 libisl15 libitm1 libjpeg-turbo8 libjpeg8 libllvm6.0 liblsan0 libmirclient9
  libmircommon7 libmircore1 libmirprotobuf3 libmpc3 libmpx0 libmtdev1 libogg0 libpciaccess0 libpcre16-3 libprotobuf-lite9v5 libproxy1v5
  libpulse0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
  libquadmath0 libsdl1.2debian libsensors4 libsm6 libsndfile1 libtsan0 libtxc-dxtn-s2tc0 libubsan0 libvncserver1 libvorbis0a libvorbisenc2
  libvpx3 libwacom-bin libwacom-common libwacom2 libwayland-client0 libwayland-server0 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0
  libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xkb1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon-x11-0
  libxkbcommon0 libxmu6 libxrender1 libxshmfence1 libxt6 libxxf86vm1 linux-libc-dev make manpages-dev qttranslations5-l10n virtualbox-dkms
  virtualbox-qt x11-common
Suggested packages:
  binutils-doc cpp-doc gcc-5-locales gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-5-multilib gcc-5-doc libgcc1-dbg
  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg
  libasound2-plugins alsa-utils glibc-doc cups-common pulseaudio libthai0 libqt5libqgtk2 qt5-image-formats-plugins qtwayland5 lm-sensors
  make-doc vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
  binutils cpp cpp-5 dkms fakeroot fontconfig fontconfig-config fonts-dejavu-core gcc gcc-5 libasan2 libasound2 libasound2-data libasyncns0
  libatomic1 libavahi-client3 libavahi-common-data libavahi-common3 libboost-filesystem1.58.0 libboost-system1.58.0 libc-dev-bin libc6-dev
  libcaca0 libcapnp-0.5.3 libcc1-0 libcilkrts5 libcups2 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa libevdev2
  libfakeroot libflac8 libfontconfig1 libgbm1 libgcc-5-dev libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgomp1 libgraphite2-3 libgsoap8
  libgudev-1.0-0 libharfbuzz0b libice6 libinput-bin libinput10 libisl15 libitm1 libjpeg-turbo8 libjpeg8 libllvm6.0 liblsan0 libmirclient9
  libmircommon7 libmircore1 libmirprotobuf3 libmpc3 libmpx0 libmtdev1 libogg0 libpciaccess0 libpcre16-3 libprotobuf-lite9v5 libproxy1v5
  libpulse0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
  libquadmath0 libsdl1.2debian libsensors4 libsm6 libsndfile1 libtsan0 libtxc-dxtn-s2tc0 libubsan0 libvncserver1 libvorbis0a libvorbisenc2
  libvpx3 libwacom-bin libwacom-common libwacom2 libwayland-client0 libwayland-server0 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0
  libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xkb1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon-x11-0
  libxkbcommon0 libxmu6 libxrender1 libxshmfence1 libxt6 libxxf86vm1 linux-libc-dev make manpages-dev qttranslations5-l10n virtualbox
  virtualbox-dkms virtualbox-qt x11-common
0 upgraded, 131 newly installed, 0 to remove and 22 not upgraded.
Need to get 88.0 MB of archives.
After this operation, 474 MB of additional disk space will be used.
[...]
Loading new virtualbox-5.1.38 DKMS files...
First Installation: checking all kernels...
Building only for 4.4.0-151-generic
Building initial module for 4.4.0-151-generic
[...]
vagrant@ubuntu-xenial:~$ minikube start
😄  minikube v1.2.0 on linux (amd64)
🔥  Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
E0711 17:00:32.729865   21889 start.go:559] StartHost: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory

💣  Unable to start VM
❌  Error:         [VBOX_VTX_DISABLED] create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
💡  Advice:        In some environments, this message is incorrect. Try 'minikube start --no-vtx-check'
⁉️   Related issues:
    ▪ https://github.com/kubernetes/minikube/issues/3900

😿  If the above advice does not help, please let us know: 
👉  https://github.com/kubernetes/minikube/issues/new
vagrant@ubuntu-xenial:~$ minikube start --no-vtx-check
😄  minikube v1.2.0 on linux (amd64)
🔥  Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
E0711 17:02:31.248432   21909 start.go:559] StartHost: create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.252851 Power up failed (vrc=VERR_VMX_NO_VMX, rc=NS_ERROR_FAILURE (0X80004005))

💣  Unable to start VM
❌  Error:         [VBOX_VERR_VMX_NO_VMX] create: creating: Unable to start the VM: /usr/bin/VBoxManage startvm minikube --type headless failed:
VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.252851 Power up failed (vrc=VERR_VMX_NO_VMX, rc=NS_ERROR_FAILURE (0X80004005))
💡  Advice:        Please check your BIOS, and ensure that you are running without HyperV or other nested virtualization that may interfere
⁉️   Related issues:
    ▪ https://github.com/kubernetes/minikube/issues/1994

😿  If the above advice does not help, please let us know: 
👉  https://github.com/kubernetes/minikube/issues/new

We should inform about this situation, and maybe even try to detect it too ?
Then we can come up with a better solution suggestion than "reboot your PC"

Metadata

Metadata

Assignees

No one assigned

    Labels

    cause/nested-vm-configWhen nested VM's appear to play a rolehelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.os/linuxpriority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions