-
Notifications
You must be signed in to change notification settings - Fork 247
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
[BUG] crc 1.18 crc config set disk-size not respected on macos #1640
Comments
there is no unit given so 50 will be interpreted the same as 20384 was. This also does not result in 20384GB, but 20GB... right? |
It is not yet implemented on macOS. |
Yes, not implemented yet, see crc-org/machine-driver-hyperkit#18 Note that there is a warning about it in the logs:
(and I see there's also a bug in that code :( ) Regarding the unit, disk sizes are in GiB while memory sizes are in MiB
|
Please create follow-up issues accordingly for the remaining work/platform support, or re-use this one to add macOS support. |
values do not take units. |
Why do I get Warnings? when cpu and memory work fine when I set them with
|
Looking forward, please 🙏 |
@csantanapr if you really need it now, you can take qcow-tool here https://github.com/code-ready/machine-driver-hyperkit/releases/tag/v0.12.9 and use it to resize your disk. Then inside, the VM you still need to run xfs_growfs. |
I have used qemu-img to resize the qcow2 in previous versions but this latest 1.18 version with OCP 4.6.1 doesn't seem to allow for that resize either INFO Starting CodeReady Containers VM for OpenShift 4.6.1... |
I am questioning this as this is not how minishift worked. |
Well, I'll first point out that this was a totally unsupported way of resizing disk images... You should be able to workaround this error by setting the disk size in the config to something bigger than the size you gave to your disk image. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This might be dependent on #1850 |
It will be available in the next crc release (1.29.0). |
Closing this as everything is merged, we can reopen if needed. |
Thank you for the fix |
Trying to set the disk size to
50GB
withcrc config set disk-size 50
doesn't workGeneral information
crc setup
before starting it (Yes/No)? YesCRC version
❯ crc version CodeReady Containers version: 1.18.0+bb304aa OpenShift version: 4.6.1 (embedded in binary)
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
Expect VM disk size to be 50GB
Actual
VM Disk size is the default 33GB
Logs
Tried to pass via flag
-d
and I get WARN messages, I get same result VM is 33GBThe text was updated successfully, but these errors were encountered: