QEMU Virtualmachine Powershell Error

Page 1 of 3 123 LastLast

  1. Posts : 44
    Windows 10
       #1

    QEMU Virtualmachine Powershell Error


    1. installed qemu on windows 10
    2. followed the instructions from here:
    How to Install QEMU on Windows 11 QEMU Installation Guide + Use Qemu on Windows 11 + Boot ISO Image - YouTube
    QEMU Installation Guide for Windows PC 2022 - YouTube
    One is for w10 the other w11 but the instructions are identical, on their videos it works, on my system it doesn't.

    When i execute the command they use, powershell responds by saying the command i use is basically invalid.
    Any hints?
    Attached Thumbnails Attached Thumbnails QEMU Virtualmachine Powershell Error-f2357k53.png  
      My Computer


  2. Posts : 9,792
    Mac OS Catalina
       #2

    That is because you need to run it in cmd.exe.
      My Computer


  3. Posts : 785
    Windows 7
       #3

    More likely C:\Programs\qemu isn't in your PATH. Start at 1:46 (dunno why I can't embed the skip ahead).

      My Computer


  4. Posts : 44
    Windows 10
    Thread Starter
       #4

    bro67 said:
    That is because you need to run it in cmd.exe.
    How come? People in video use powerhsell not cmd and it works for them

    - - - Updated - - -

    garlin said:
    More likely C:\Programs\qemu isn't in your PATH. Start at 1:46 (dunno why I can't embed the skip ahead).

    i added the path to the system variables.

    - - - Updated - - -

    This is where i downloaded QEMU, should be original. QEMU for Windows – Installers (64 bit)
    Since it doesn't work i tought follow some other guide, he used a GUI, this one QtEmu / gui . GitLab
    Result as per screenshot...
    And i can see that qemu is installed as it should be - in C:\Program Files\qemu
    Attached Thumbnails Attached Thumbnails QEMU Virtualmachine Powershell Error-capture.png  
      My Computer


  5. Posts : 785
    Windows 7
       #5

    $env:PATH will display the current PATH as known to PowerShell.

    If you don't see the same folder listed as where you installed QEMU, then PowerShell won't find it. It's the same way for any 3rd-party app that installs under \Program Files or \Program Files (x86). Some installers are nice in updating your PATH for you, but usually that's not the rule.
      My Computer


  6. Posts : 44
    Windows 10
    Thread Starter
       #6

    garlin said:
    $env:PATH will display the current PATH as known to PowerShell.

    If you don't see the same folder listed as where you installed QEMU, then PowerShell won't find it. It's the same way for any 3rd-party app that installs under \Program Files or \Program Files (x86). Some installers are nice in updating your PATH for you, but usually that's not the rule.
    I see, thanks for the info. Didn't the person in the video cd to the directory of his iso instead of cd to qemu install dir?
    How do you explain that, how did it work for him?

    - - - Updated - - -

    Windows really should be capable of handling directorys with spaces on it's on without using special syntax...
    How do you specific directorys with spaces in them? C:\Program Files\qemu

    cd "C:\Program Files\qemu"
    Attached Thumbnails Attached Thumbnails QEMU Virtualmachine Powershell Error-0.png  
      My Computer


  7. Posts : 785
    Windows 7
       #7

    The video shows you have to bring up System Properties to update the PATH environment variable, so all shells (CMD, PowerShell) include the QEMU folder. Otherwise, every time you need to type the long path C:\Program File\qemu\...command to run anything.

    This a separate issue from going into the QEMU tools, and configuring its own install locations. Point is you shouldn't skip any these steps they walk you through.
      My Computer


  8. Posts : 44
    Windows 10
    Thread Starter
       #8

    Update: Still doesn't work even when i'm in the qemu dir and even when the iso's are also in the qemu dir, what am i doing wrong?! Just see the attachment

    - - - Updated - - -

    Update 2: This is what happens when i manually run qemu-system-x86_64.exe (see attachment)
    Attached Thumbnails Attached Thumbnails QEMU Virtualmachine Powershell Error-f.png   QEMU Virtualmachine Powershell Error-fm.png  
      My Computer


  9. Posts : 785
    Windows 7
       #9

    If you're not familiar with PS, to run a local EXE file whenever you're in the same folder location is ".\program.EXE"
    PowerShell is loosely patterned after UNIX/Linux, which uses this notation. It's unlike CMD which doesn't need the "."
      My Computer


  10. Posts : 44
    Windows 10
    Thread Starter
       #10

    Thanks for the info, sadly this doesn't help with my current issue,
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:56.
Find Us




Windows 10 Forums