crc: [BUG] Failed to start CRC on ubuntu bare metal server
General information
- OS: Linux
- Hypervisor: KVM
- Did you run
crc setupbefore starting it (Yes/No)? yes - Running CRC on: Baremetal-Server
CRC version
./crc version
WARN A new version (2.3.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.3.0/crc-linux-amd64.tar.xz
CRC version: 2.2.2+f1e1d3e
OpenShift version: 4.10.9
Podman version: 3.4.4
CRC status
./crc status --log-level debug
DEBU CRC version: 2.2.2+f1e1d3e
DEBU OpenShift version: 4.10.9
DEBU Podman version: 3.4.4
DEBU Running 'crc status'
DEBU Checking file: /home/indresh/.crc/machines/crc/.crc-exist
DEBU Checking file: /home/indresh/.crc/machines/crc/.crc-exist
DEBU Found binary path at /home/indresh/.crc/bin/crc-driver-libvirt
DEBU Launching plugin server for driver libvirt
DEBU Plugin server listening at address 127.0.0.1:45619
DEBU () Calling .GetVersion
DEBU Using API Version 1
DEBU () Calling .SetConfigRaw
DEBU () Calling .GetMachineName
DEBU (crc) Calling .GetBundleName
DEBU (crc) Calling .GetState
DEBU (crc) DBG | time="2022-05-19T06:25:03Z" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2022-05-19T06:25:03Z" level=debug msg="Fetching VM..."
DEBU Making call to close driver server
DEBU (crc) Calling .Close
DEBU Successfully made call to close driver server
DEBU Making call to close connection to plugin binary
DEBU (crc) DBG | time="2022-05-19T06:25:03Z" level=debug msg="Closing plugin on server side"
CRC VM: Stopped
OpenShift: Stopped (v4.10.9)
Podman:
Disk Usage: 0B of 0B (Inside the CRC VM)
Cache Usage: 17.42GB
Cache Directory: /home/indresh/.crc/cache
CRC config
./crc config view
- consent-telemetry : no
- network-mode : user
Host Operating System
# ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Steps to reproduce
- Install CRC on ubuntu 20.04 (focal) by following the https://crc.dev/crc/#required-software-packages_gsg
- Setup the crc -> crc setup
- crc start (failed to start the service)
Expected
crc should start and service should be accessible
Actual
crc failed to start
Logs
./crc start --log-level debug
DEBU CRC version: 2.2.2+f1e1d3e
DEBU OpenShift version: 4.10.9
DEBU Podman version: 3.4.4
DEBU Running 'crc start'
DEBU Total memory of system is 202558705664 bytes
WARN A new version (2.3.0) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.3.0/crc-linux-amd64.tar.xz
DEBU Checking file: /home/indresh/.crc/machines/crc/.crc-exist
DEBU Found binary path at /home/indresh/.crc/bin/crc-driver-libvirt
DEBU Launching plugin server for driver libvirt
DEBU Plugin server listening at address 127.0.0.1:38947
DEBU () Calling .GetVersion
DEBU Using API Version 1
DEBU () Calling .SetConfigRaw
DEBU () Calling .GetMachineName
DEBU (crc) Calling .GetBundleName
DEBU (crc) Calling .GetState
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Fetching VM..."
DEBU Making call to close driver server
DEBU (crc) Calling .Close
DEBU Successfully made call to close driver server
DEBU Making call to close connection to plugin binary
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Closing plugin on server side"
DEBU Checking if systemd-resolved.service is running
DEBU Running 'systemctl status systemd-resolved.service'
DEBU systemd-resolved.service is already running
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
DEBU Running '/home/indresh/.crc/bin/crc-admin-helper-linux --version'
DEBU Found crc-admin-helper-linux version 0.0.10
DEBU crc-admin-helper executable already cached
INFO Checking for obsolete admin-helper executable
DEBU Checking if an older admin-helper executable is installed
DEBU No older admin-helper executable found
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
DEBU Total memory of system is 202558705664 bytes
INFO Checking if crc executable symlink exists
INFO Checking if Virtualization is enabled
DEBU Checking if the vmx/svm flags are present in /proc/cpuinfo
DEBU CPU virtualization flags are good
INFO Checking if KVM is enabled
DEBU Checking if /dev/kvm exists
DEBU /dev/kvm was found
INFO Checking if libvirt is installed
DEBU Checking if 'virsh' is available
DEBU 'virsh' was found in /usr/bin/virsh
DEBU Checking 'virsh capabilities' for libvirtd/qemu availability
DEBU Running 'virsh --readonly --connect qemu:///system capabilities'
DEBU Found x86_64 hypervisor with 'hvm' capabilities
INFO Checking if user is part of libvirt group
DEBU Checking if current user is part of the libvirt group
DEBU Current user is already in the libvirt group
INFO Checking if active user/process is currently part of the libvirt group
DEBU libvirt group is active for the current user/process
INFO Checking if libvirt daemon is running
DEBU Checking if libvirtd service is running
DEBU Running 'systemctl status virtqemud.socket'
DEBU Command failed: exit status 4
DEBU stdout:
DEBU stderr: Unit virtqemud.socket could not be found.
DEBU virtqemud.socket is neither running nor listening
DEBU Running 'systemctl status libvirtd.socket'
DEBU libvirtd.socket is running
INFO Checking if a supported libvirt version is installed
DEBU Checking if libvirt version is >=3.4.0
DEBU Running 'virsh -v'
INFO Checking if crc-driver-libvirt is installed
DEBU Checking if crc-driver-libvirt is installed
DEBU Running '/home/indresh/.crc/bin/crc-driver-libvirt version'
DEBU Found crc-driver-libvirt version 0.13.2
DEBU crc-driver-libvirt is already installed
INFO Checking crc daemon systemd socket units
DEBU Checking crc daemon systemd socket units
DEBU Checking if crc-http.socket is running
DEBU Running 'systemctl --user status crc-http.socket'
DEBU crc-http.socket is running
DEBU Checking if crc-http.socket has the expected content
DEBU Checking if crc-vsock.socket is running
DEBU Running 'systemctl --user status crc-vsock.socket'
DEBU crc-vsock.socket is running
DEBU Checking if crc-vsock.socket has the expected content
INFO Checking if AppArmor is configured
INFO Checking if vsock is correctly configured
DEBU Running 'getcap /home/indresh/openshift/crc-linux-2.2.2-amd64/crc'
DEBU Checking file: /home/indresh/.crc/machines/crc/.crc-exist
INFO Loading bundle: crc_libvirt_4.10.9_amd64...
DEBU Checking file: /home/indresh/.crc/machines/crc/.crc-exist
DEBU Found binary path at /home/indresh/.crc/bin/crc-driver-libvirt
DEBU Launching plugin server for driver libvirt
DEBU Plugin server listening at address 127.0.0.1:41595
DEBU () Calling .GetVersion
DEBU Using API Version 1
DEBU () Calling .SetConfigRaw
DEBU () Calling .GetMachineName
DEBU (crc) Calling .GetBundleName
DEBU (crc) Calling .GetState
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Getting current state..."
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Fetching VM..."
INFO Starting CRC VM for OpenShift 4.10.9...
DEBU Updating CRC VM configuration
DEBU (crc) Calling .GetConfigRaw
DEBU (crc) Calling .Start
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Starting VM crc"
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Validating storage pool"
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=warning msg="Failed to start: virError(Code=67, Domain=10, Message='unsupported configuration: unable to open vhost-vsock device')"
DEBU Making call to close driver server
DEBU (crc) Calling .Close
DEBU Successfully made call to close driver server
DEBU (crc) DBG | time="2022-05-19T06:26:52Z" level=debug msg="Closing plugin on server side"
DEBU Making call to close connection to plugin binary
Error starting machine: Error in driver during machine start: virError(Code=67, Domain=10, Message='unsupported configuration: unable to open vhost-vsock device')
This issue talks about the ubuntu supported out of the box: https://github.com/code-ready/crc/issues/3074#issuecomment-1072028144
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 18 (6 by maintainers)
I was facing the same problem. I could resolve the issue by issuing the following commands:
crc cleanup sudo rmmod vmw_vsock_vmci_transport sudo modprobe vhost_vsock
crc setup crc start
Hope this helps someone
Same issue here on Ubuntu 23.10. https://github.com/crc-org/crc/issues/3183#issuecomment-1217841493 did not work for me.
Fixed after manual install of
virtiofsdpackage.Host OS
CRC version
installing virtiofsd package also helped me! thanks for calling this out!
and also the server is a Ubuntu on ESX environment.