Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crc delete not able to remove a VM if crc start failed due to not enough space for the disk image #4680

Open
anjannath opened this issue Mar 12, 2025 · 0 comments
Labels
kind/bug Something isn't working os/windows

Comments

@anjannath
Copy link
Member

anjannath commented Mar 12, 2025

General information

PS C:\Users\rhqp> crc start
[...]
INFO Creating CRC VM for OpenShift 4.18.1...
DEBU Running pre-create checks...
DEBU Running '@(Get-Module -ListAvailable hyper-v).Name | Get-Unique'
DEBU Running '@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(([System.Security.Principal.SecurityIdentifier]::new("S-1-5-32-578")))'
DEBU Creating machine...
DEBU Machine: libhvee -> creating: system settings
DEBU Machine: libhvee -> creating: copy disk image
Error creating machine: Error in driver during machine creation: write C:\Users\rhqp\.crc\machines\crc\crc.vhdx: There is not enough space on the disk.

PS C:\Users\rhqp> crc delete -f
Machine does not exist. Use 'crc start' to create it

PS C:\Users\rhqp> Get-VM 'crc'

Name State CPUUsage(%) MemoryAssigned(M) Uptime   Status             Version
---- ----- ----------- ----------------- ------   ------             -------
crc  Off   0           0                 00:00:00 Operating normally 11.0

Operating System

Windows

Hypervisor

Hyper-V

Did you run crc setup before crc start?

yes

Running on

Laptop

Steps to reproduce

  1. crc setup
  2. crc start

Expected behavior

Able to delete the instance in broken state with crc delete

Actual behavior

crc reports no machine exists...

PS C:\Users\rhqp> crc delete -f
Machine does not exist. Use 'crc start' to create it
@anjannath anjannath added kind/bug Something isn't working os/windows labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working os/windows
Projects
None yet
Development

No branches or pull requests

1 participant