-
Notifications
You must be signed in to change notification settings - Fork 93
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
QEMU never run and returned non-zero exit #78
Comments
I had checked my hardware, whether the processor has VT support or not. We can check this by running the following command in Terminal.
The VT support indicated by certain flag: The processor on my machine didn't have this flag. Despite lack of support, I have done initial testing on same test machine (on 12.04 host system) using Customizer gambas3 branch and QEMU works despite similar errors were seen inside Terminal. See screenshot below. I have repeated this test on same test machine, but this time on 14.04 host system (apparently gambas3 and devel branches can co-exist with same work directory). QEMU works and able to run similarly, this time without showing any error as seen in screenshot earlier. What does these mean actually? Was QEMU able to run in gambas3 branch because some sort of fallback acceleration (which may explain the screen glitches)? But why is it not working for devel branch? UPDATED By default, gambas3 branch runs QEMU via software emulation instead of hardware acceleration. In contrast, the original default for devel branch tries to run with hardware accelerartion by passing the command option |
By the way, these tests were done after checking that latest
That's all information I have for now. |
Thanks for the detailed info, can you test the latest checkout of the devel branch? My kernel does not support KVM altought my hardware does support virtualization so I can not test this right now. |
@fluxer
By the way, I found somewhere on the Web few days ago: suggesting to run
But similar to processor flags checking, mine is negative (not supported). Really, huh? |
Dang it. Does /dev/kvm exists on your host? I read http://manpages.ubuntu.com/manpages/lucid/man1/kvm-ok.1.html which has some usefull information about the topic. kvm-ok could be very helpfull I do not want to bind another external dependency so I would rather implement the check myself. |
@fluxer |
No, that would be (one of many) sign that your system does not support KVM thus I can use it in the check. |
@fluxer
In short, my budget line Intel processors doesn't support VT-x. For many end users, need at least any of Intel Core series' processors to use KVM. |
@clearkimura |
@fluxer
So it says. I can never do testing for QEMU with existing machine. |
@clearkimura |
Automated checking is good. Sure, why not?
Consider below cases. Case 1: Case 2: |
@clearkimura Case 1: Case 2: The second case will apply only for the GUI, users who use the CLI will see the output anyway and are able to turn off KVM manually via the config file. |
@fluxer |
@clearkimura |
@fluxer I probably can't do anything for the next few weeks, due to my working condition. There will be consecutive overhaul weeks planned by workplace.. So, kindly excuse me. |
@clearkimura |
I'm sorry but I may not be able to work on this. I mean, the basic checks are implemented but the option to manually enable/disable the use of KVM is not. It would be useful to have it in cases where the autmatic check fails, either that or the check should be improved. @clearkimura |
No worries. At least the basic checking has been implemented. After all, this issue won't break Customizer core functions to rebuild ISO. End users just cannot run QEMU for testing their remix. As alternative, they can opt for VirtualBox or such emulator, which doesn't rely on VT-x. Nothing major here.
Well, I rather close this issue since you already suggested that "initial issue should be solved". For option to manually enable/disable KVM, I will create new issue after this. |
@fluxer I should be able to confirm by this weekend. Until then, please leave this issue open. |
@clearkimura |
@fluxer The error dialog in the screenshot:
Um, actually I don't know what to expect after clicking QEMU button on non-supported machine. |
Should be fine now (at least the latest report). |
@fluxer Below is the screenshot when running QEMU on non-supported hardware machine. Now all make sense to me, why I had been experiencing this issue using devel branch. I have updated in issue post and first comment with UPDATED subheading appended to last paragraphs, for general reading and understanding. It is all good, hence I am closing this issue. |
I'm glad this finally got sorted. :) |
My explanation will be a little late, but better than never: qemu is fairly old, and has been around since before CPU virtualization became standard. These days, parts of qemu are also used elsewhere, like Xen, which uses only the emulated device models. |
This is probably different from issue #59 that has been reported and known since Lucid release testing. Below is the screenshot of error dialog prompted upon clicking "QEMU" button.
The Terminal output (as seen in screenshot):
The built-in checking shows KVM is available or present (regardless of
qemu-kvm
package is installed or not) however, QEMU never run from Customizer devel branch GUI or CLI.More testing reports will be included in comments later.
UPDATED The original built-in check is intended for setting the command option
-enable-kvm
and not for checking the KVM support on host system and machine.The text was updated successfully, but these errors were encountered: