Changes between Version 11 and Version 12 of qemu


Ignore:
Timestamp:
04/21/2022 08:42:05 PM (2 years ago)
Author:
Tim Tassonis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • qemu

    v11 v12  
    77qemu can be built without any graphical environment and run on a server, where the display will be made available by the integrated vnc server.
    88
    9 Building qemu without any graphical environment on a system that has a graphical environment installed seems to be a bit tricky. I was successfull with the following commands:
     9Building qemu without any graphical environment on a system that has a graphical environment installed seems to be a bit tricky. I was successful with the following commands:
    1010{{{
    1111pathremove $XORG_PREFIX/bin             PATH
     
    4040
    4141
    42 The port bit of vnc is a bit funny, as the vnc port that you specify on the server is then increased by 5900 by qemu.
     42Vnc ports usually start at 5900, so when you define your vnc port for your virtual machine, qemu adds 5900 to it for the real port number.
    4343
    4444The following will work:
     
    5050QEMU_LOG_FILE=/tmp/myvm.log
    5151QEMU_SERVER_VNC_ADDR=192.168.219.5
    52 QEMU_SERVER_VNC_PORT=5942
     52QEMU_SERVER_VNC_PORT=1
    5353
    5454nohup /usr/bin/qemu $ALL_YOUR_USUAL_QEMU_OPTIONS_FOR_THIS_VM -vnc $QEMU_SERVER_VNC_ADDR:$QEMU_SERVER_VNC_PORT > $QEMU_LOG_FILE 2>&1 &
    5555}}}
    5656
    57 qemu will then make the display of the vm available on 192.168.219.5:11842
     57qemu will then make the display of the vm available on 192.168.219.5:5901
    5858
    5959So, on your client desktop, you can then connect to it by:
    6060
    6161{{{
    62 vncviewer 192.168.219.5:11842
    63 }}}
    64 
    65 On hindsight, maybe it would be more clever to specify "2" as the vnc server port and the just call it on 5902....
    66 
    67 Anyway, this works quite well for me, of course I have a couple of scripts to manage this easier.
     62vncviewer 192.168.219.5:5901
     63}}}
     64
     65
    6866
    6967