crc: Getting exception upon CRC setup - error: internal error: Network is already in use by interface crc"

General information

  • OS: Linux
  • Hypervisor:
  • Did you run crc setup before starting it (Yes)?
  • Running CRC on: VM

CRC version

# Put `crc version` output here
CRC version 2.12.0+74565a6
OpenShift version 4.11.18
Podman version 4.2.0  
## CRC status
```bash

# Put `crc status --log-level debug` output here
Machine does not exist. Use 'crc start to create it```

## CRC config
```bash
# Put `crc config view` output here

Host Operating System

# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of Windows

Steps to reproduce

just ran ‘crc setup’ and got the above mentioned exception – Please note it was working earlier , and suddenly this problem cropped up with no change as such.

Expected

Actual

Logs

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Please consider posting the output of crc start --log-level debug on http://gist.github.com/ and post the link in the issue.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

During debugging session looks like the RHEL-8 image is used by @srigitsri is provided by IT and had some wired modification which doesn’t allow to delete the crc interface from ifconfig -a even when from libvirt side we destroyed and undefine the crc network. So I need to manually delete the crc interface using nmcli command

$ sudo nmcli -f bridge con delete crc

After that crc setup works as expected and also crc start . Closing this issue.

@srigitsri looks like you already have crc network so might try crc cleanup which remove that network.