How to use qemu to run a non-gui OS on the terminal?

后端 未结 4 1796
傲寒
傲寒 2021-01-30 17:31

I want to run some programs on the High Performance Computer (With 8-core processor) in my department. Now I use that machine with ssh using terminal. The machine has Red Hat li

4条回答
  •  不要未来只要你来
    2021-01-30 18:09

    I've struggled this for a while and finally figured out how to get it to work for me:

    You need to have SGABIOS installed. Interestingly this BIOS is not included in the debian qemu package, so you need to install it (as the superuser):

    apt install sgabios  
    

    Then when you run qemu use the -device option to tell the virtural machine to use the sga output

    qemu-system-i386 -nographic -device sga discimage.bin
    

    Voila! works perfectly over ssh with both the monitor and text output sent through stdio. You can access the qemu monitor with C-a c.

    cheers, ben

提交回复
热议问题