[Software] QEMU not working

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

[Software] QEMU not working

#1 Post by xkeyscoreprism »

Note:
Host OS Winows10 21H2

I've downloaded QEMU here https://qemu.weilnetz.de/w64/ and instlaled it here: C:\Program Files\qemu
Because of issues i'll explain in a moment, i've also downloaded QtEmu (GUI) here https://gitlab.com/qtemu/gui and installed it here: C:\Program Files\QtEmu

These are the installation insctructions i followed:

install qemu-w64-setup-20230531.exe
run systempropertiesadvanced.exe > environment variables
> user variables > username > path > new > enter the following:
C:\Program Files\qemu

open poershell and enter the following:
qemu-system-x84_64.exe -boot d -cdrom example.iso -m 4096
or 8192 (8gb)
or 16384 (16gb)

example:

Code: Select all

qemu-system-x84_64.exe -boot d -cdrom windows-21H2-x64.iso -m 16384
The powershell responds by saying that the entered command is basically invalid, as shown on the screenshot below.

Image

PS: The same error occurs when executing the command via cmd instead of powershell.

So i've installed qtemu with the hopes that this GUI would solve my issues but it didn't, instead it displays an error saying qemu-img could not be found (is not installed), as shown on the screenshot below.

Image

However i did follow the instructions and doubble checked that i made no mistkes, i've added the system variables, i've installed QEMU, i've got the iso's ready, but when i run the command to startup a vm it fails.
Out of curiousity i manually ran qemu-system-x84_64.exe and it actually started, however it doesn't seem like a vm can be configured that way?

Image

Any help is welcomne...

Aki
Global Moderator
Global Moderator
Posts: 3950
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 518 times

Re: [Software] QEMU not working

#2 Post by Aki »

Moved from "General Questions" sub-forum to the "Off-Topic" sub-forum, since it is not about a Debian issue.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 771
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 140 times
Been thanked: 73 times

Re: [Software] QEMU not working

#3 Post by cds60601 »

Since you are using Windows as your default OS, instead of using qemu, you might be better served using virtual box. Not to mention that you should not be posting questions in a Debian forum for an application that is being installed on windows.
Supercalifragilisticexpialidocious

xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

Re: [Software] QEMU not working

#4 Post by xkeyscoreprism »

cds60601 wrote: 2023-06-16 07:07 Since you are using Windows as your default OS, instead of using qemu, you might be better served using virtual box. Not to mention that you should not be posting questions in a Debian forum for an application that is being installed on windows.
I am using virtualbox right now, from my knownledge it has some propietary code and i dislike that, but that's not the only argument against vbox, it's also way slower than qemu. (Don't take my word for that is what i've read and i want to test it now).
While the debian forum might not be the right place to ask about qemu-windows, it was on this forum that qemu was recommended to me, and i found no forums whatsoever for qemu so i really don't know where else i could/should ask.


trinidad
Posts: 316
Joined: 2016-08-04 14:58
Been thanked: 17 times

Re: [Software] QEMU not working

#6 Post by trinidad »

Try: x86_64

Otherwise since you are installing Windows to Windows use hyper-v, better features for that configuration.
You can't believe your eyes if your imagination is out of focus.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 771
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 140 times
Been thanked: 73 times

Re: [Software] QEMU not working

#7 Post by cds60601 »

xkeyscoreprism wrote: 2023-06-16 16:14
cds60601 wrote: 2023-06-16 07:07 Since you are using Windows as your default OS, instead of using qemu, you might be better served using virtual box. Not to mention that you should not be posting questions in a Debian forum for an application that is being installed on windows.
I am using virtualbox right now, from my knownledge it has some propietary code and i dislike that
... said the Op that's running Windows :roll:
Supercalifragilisticexpialidocious

xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

Re: [Software] QEMU not working

#8 Post by xkeyscoreprism »

Oh that, i saw that. So i'll have to either email them or create a matrix/element account.
In the meantime, if anyone here has some ideas i'd appriciate that anyway.

xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

Re: [Software] QEMU not working

#9 Post by xkeyscoreprism »

trinidad wrote: 2023-06-16 17:03 Try: x86_64

Otherwise since you are installing Windows to Windows use hyper-v, better features for that configuration.
Hmm i haven't checked hyperv. But windows wasn't the only os i was going to test/use in qemu, was planing on using debian and mint to. maybe also fedora or qubesos.

xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

Re: [Software] QEMU not working

#10 Post by xkeyscoreprism »

cds60601 wrote: 2023-06-16 17:11
xkeyscoreprism wrote: 2023-06-16 16:14
cds60601 wrote: 2023-06-16 07:07 Since you are using Windows as your default OS, instead of using qemu, you might be better served using virtual box. Not to mention that you should not be posting questions in a Debian forum for an application that is being installed on windows.
I am using virtualbox right now, from my knownledge it has some propietary code and i dislike that
... said the Op that's running Windows :roll:
Well yeah but my windows doesn't phone home. I spent ages figuring out how to shut that spyware os up.
You don't believe me? There's literally a script that rips the guts of microsoft out of windows. https://privacy.sexy
and as for firewall https://safing.io

trinidad
Posts: 316
Joined: 2016-08-04 14:58
Been thanked: 17 times

Re: [Software] QEMU not working

#11 Post by trinidad »

https://learn.microsoft.com/en-us/virtu ... ows/about/
https://getlabsdone.com/how-to-configur ... -switches/

I'm currently running Linux Lite in hyper-v with no issues and there is an official Debian ISO for installation if you like. You can connect to it any way you want over a LAN.

https://dbts-analytics.com/divntwkcon1.html

Also in the image you posted of your initial PS commandlet you have x84_64 which would error out with qemu as the image is probably x86_64. I have since noticed you posted this at the Windows 10 forum with the same commandlet and PS error. What CPU are you running? What Windows CD ISO are you trying to run? Hyper-V can virtualize any CPU spec and can deal with Windows full installation reboots and updates better than qemu.

TC
You can't believe your eyes if your imagination is out of focus.

xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

Re: [Software] QEMU not working

#12 Post by xkeyscoreprism »

trinidad wrote: 2023-06-17 12:17 https://learn.microsoft.com/en-us/virtu ... ows/about/
https://getlabsdone.com/how-to-configur ... -switches/

I'm currently running Linux Lite in hyper-v with no issues and there is an official Debian ISO for installation if you like. You can connect to it any way you want over a LAN.

https://dbts-analytics.com/divntwkcon1.html

Also in the image you posted of your initial PS commandlet you have x84_64 which would error out with qemu as the image is probably x86_64. I have since noticed you posted this at the Windows 10 forum with the same commandlet and PS error. What CPU are you running? What Windows CD ISO are you trying to run? Hyper-V can virtualize any CPU spec and can deal with Windows full installation reboots and updates better than qemu.

TC
Now that's what i all a stupid typing error... thanks for bringing it to my attention, works now...

But it doesn't really work, i've got some other issue now.

Image

xkeyscoreprism
Posts: 85
Joined: 2023-06-11 01:22
Has thanked: 8 times

Re: [Software] QEMU not working

#13 Post by xkeyscoreprism »

The above screenshot was an attempt to install windows in qemu, this one is debian.
Basically, there's no drive for the install?

Image

trinidad
Posts: 316
Joined: 2016-08-04 14:58
Been thanked: 17 times

Re: [Software] QEMU not working

#14 Post by trinidad »

1) Your file path is incorrect in the first Windows install image you posted. Open file explorer and find the file first and its correct path.
2) Create a qemu/kvm disk to install Debian to first.

TC
You can't believe your eyes if your imagination is out of focus.

Post Reply