Why can't I run my images on QEMU? (Infinite Loop at VM boot)












1















Running Ubuntu 14.04 64-bit. I've installed QEMU/KVM, and I'm trying to create a Virtual Machine running Android using a .iso obtained from the Android-x86 project.



I can run the .iso using -cdrom <address>/android-x86_64-7.1-r2.iso -boot d and the installation is accused of being successful, 10G partitioned as one bootable ext4. However, when I reboot, the QEMU reads the .img and recognizes it as an Android, but then it takes me to a black screen/blank screen.



If I opt for a Debug run, when it gets to that part, it shows me an infinite loop. Many services like 'zygote_secundary', 'cameraserver', and others are getting killed by Signal 6 or Signal 9, or just killed, then restarted.
It also starts accusing SELinux of not being defined.



I did it with different ISOs, Android 8.1 to Android 6.0, and the result is the same:
I can run enough to install them, but I can't run enough to boot the android system, any of them.



Commands entered:



$ sudo apt-get install qemu qemu-kvm libvirt-bin
$ qemu-img create -f qcow2 android-test.img 10G
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img -cdrom android-x86_64-7.1-r2.iso -boot d
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img


I don't know how to copy the QEMU logs though, so if you need specific information and can guide me on how to get it for you, I'll do it.



Edit:





1.
Ran a kvm-ok test:



$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used









share|improve this question




















  • 1





    I once had Oracle VM VIrtualBox installed here, but it was uninstalled long ago, and I don't know if maybe something was left messed up, like, some library maybe?

    – Amy
    Feb 2 at 20:01
















1















Running Ubuntu 14.04 64-bit. I've installed QEMU/KVM, and I'm trying to create a Virtual Machine running Android using a .iso obtained from the Android-x86 project.



I can run the .iso using -cdrom <address>/android-x86_64-7.1-r2.iso -boot d and the installation is accused of being successful, 10G partitioned as one bootable ext4. However, when I reboot, the QEMU reads the .img and recognizes it as an Android, but then it takes me to a black screen/blank screen.



If I opt for a Debug run, when it gets to that part, it shows me an infinite loop. Many services like 'zygote_secundary', 'cameraserver', and others are getting killed by Signal 6 or Signal 9, or just killed, then restarted.
It also starts accusing SELinux of not being defined.



I did it with different ISOs, Android 8.1 to Android 6.0, and the result is the same:
I can run enough to install them, but I can't run enough to boot the android system, any of them.



Commands entered:



$ sudo apt-get install qemu qemu-kvm libvirt-bin
$ qemu-img create -f qcow2 android-test.img 10G
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img -cdrom android-x86_64-7.1-r2.iso -boot d
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img


I don't know how to copy the QEMU logs though, so if you need specific information and can guide me on how to get it for you, I'll do it.



Edit:





1.
Ran a kvm-ok test:



$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used









share|improve this question




















  • 1





    I once had Oracle VM VIrtualBox installed here, but it was uninstalled long ago, and I don't know if maybe something was left messed up, like, some library maybe?

    – Amy
    Feb 2 at 20:01














1












1








1








Running Ubuntu 14.04 64-bit. I've installed QEMU/KVM, and I'm trying to create a Virtual Machine running Android using a .iso obtained from the Android-x86 project.



I can run the .iso using -cdrom <address>/android-x86_64-7.1-r2.iso -boot d and the installation is accused of being successful, 10G partitioned as one bootable ext4. However, when I reboot, the QEMU reads the .img and recognizes it as an Android, but then it takes me to a black screen/blank screen.



If I opt for a Debug run, when it gets to that part, it shows me an infinite loop. Many services like 'zygote_secundary', 'cameraserver', and others are getting killed by Signal 6 or Signal 9, or just killed, then restarted.
It also starts accusing SELinux of not being defined.



I did it with different ISOs, Android 8.1 to Android 6.0, and the result is the same:
I can run enough to install them, but I can't run enough to boot the android system, any of them.



Commands entered:



$ sudo apt-get install qemu qemu-kvm libvirt-bin
$ qemu-img create -f qcow2 android-test.img 10G
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img -cdrom android-x86_64-7.1-r2.iso -boot d
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img


I don't know how to copy the QEMU logs though, so if you need specific information and can guide me on how to get it for you, I'll do it.



Edit:





1.
Ran a kvm-ok test:



$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used









share|improve this question
















Running Ubuntu 14.04 64-bit. I've installed QEMU/KVM, and I'm trying to create a Virtual Machine running Android using a .iso obtained from the Android-x86 project.



I can run the .iso using -cdrom <address>/android-x86_64-7.1-r2.iso -boot d and the installation is accused of being successful, 10G partitioned as one bootable ext4. However, when I reboot, the QEMU reads the .img and recognizes it as an Android, but then it takes me to a black screen/blank screen.



If I opt for a Debug run, when it gets to that part, it shows me an infinite loop. Many services like 'zygote_secundary', 'cameraserver', and others are getting killed by Signal 6 or Signal 9, or just killed, then restarted.
It also starts accusing SELinux of not being defined.



I did it with different ISOs, Android 8.1 to Android 6.0, and the result is the same:
I can run enough to install them, but I can't run enough to boot the android system, any of them.



Commands entered:



$ sudo apt-get install qemu qemu-kvm libvirt-bin
$ qemu-img create -f qcow2 android-test.img 10G
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img -cdrom android-x86_64-7.1-r2.iso -boot d
$ qemu-system-x86_64 -m 1024 -enable-kvm -net nic -net user -hda android-test.img


I don't know how to copy the QEMU logs though, so if you need specific information and can guide me on how to get it for you, I'll do it.



Edit:





1.
Ran a kvm-ok test:



$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used






14.04 android virtualization kvm qemu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 at 21:57







Amy

















asked Feb 2 at 19:34









AmyAmy

614




614








  • 1





    I once had Oracle VM VIrtualBox installed here, but it was uninstalled long ago, and I don't know if maybe something was left messed up, like, some library maybe?

    – Amy
    Feb 2 at 20:01














  • 1





    I once had Oracle VM VIrtualBox installed here, but it was uninstalled long ago, and I don't know if maybe something was left messed up, like, some library maybe?

    – Amy
    Feb 2 at 20:01








1




1





I once had Oracle VM VIrtualBox installed here, but it was uninstalled long ago, and I don't know if maybe something was left messed up, like, some library maybe?

– Amy
Feb 2 at 20:01





I once had Oracle VM VIrtualBox installed here, but it was uninstalled long ago, and I don't know if maybe something was left messed up, like, some library maybe?

– Amy
Feb 2 at 20:01










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115075%2fwhy-cant-i-run-my-images-on-qemu-infinite-loop-at-vm-boot%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115075%2fwhy-cant-i-run-my-images-on-qemu-infinite-loop-at-vm-boot%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents