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

[Question]: Hi, Why not use the QCOW2 format for the hard disk by default to save space ? #574

Closed
2 tasks done
mike37510 opened this issue Jul 18, 2024 · 3 comments
Closed
2 tasks done
Labels
question Further information is requested

Comments

@mike37510
Copy link

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

Hi, Why not use the QCOW2 format for the hard disk by default to save space ?

@mike37510 mike37510 added the question Further information is requested label Jul 18, 2024
NateChoe1 added a commit to NateChoe1/qemu-docker that referenced this issue Jul 19, 2024
@NateChoe1
Copy link
Contributor

I'm the contributor who added qcow2 support in this commit. I made the DISK_FMT variable so that old docker-compose configs that used raw images would still work, even though qcow2 images would save space. There is already code to convert between disk formats, so theoretically changing the default could be done seamlessly. I've submitted PR #575 to do this, although there might be some technical reasons to have raw images as the default that I just don't know about.

@kroese
Copy link
Collaborator

kroese commented Jul 20, 2024

@NateChoe1 I use this project as the base for https://github.com/dockur/windows and when using the QCOW2 format, some users reported strange error messages during the installation of Windows. When they switched to RAW suddenly their problems disappeared.

It might be a specific combination of circumstances, because all those reports were from Unraid users. So maybe its the combination of using the QCOW format when the host filesystem is zfs or btrfs, or some specific kernel version, etc.

But just to be sure I reverted the default back to RAW, until I know what is going on.

@mike37510
Copy link
Author

ok, thanks, I understand better now.
Thank you for your answers.

@kroese kroese closed this as completed Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants