QEMU-VNC(1)

πŸ“¦
version 11.1.3 Β· 3 versions
, in arch rolling

πŸ’– QEMU-VNC(1) πŸ’–

okay so welcome to the QEMU-VNC(1) page from the QEMU manual, bestie. this is the whole vibe, and yes, we’re keeping every single flag, default, path, and caveat because that’s just how we do it. 🫢


🌸 NAME 🌸

qemu-vnc β€” QEMU standalone VNC server. literally the little VNC server that could. πŸ’…


✨ SYNOPSIS ✨

qemu-vnc [OPTION]...

πŸ’… DESCRIPTION πŸ’…

qemu-vnc is a standalone VNC server that connects to a running QEMU instance via the D-Bus display interface (D-Bus display <#dbus-display>). it serves the guest display, input, audio, clipboard, and serial console chardevs over the VNC protocol, allowing VNC clients to interact with the virtual machine without QEMU itself binding a VNC socket. iconic behavior, no cap. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” display help and exit. your β€œwait what does this do again” button. πŸŽ€
  • -V, --version β€” print version information and exit. lil identity check. ✨
  • -a ADDRESS, --dbus-address=ADDRESS β€” D-Bus address to connect to. when not specified, qemu-vnc connects to the session bus. default behavior stays defaulting. πŸ¦‹
  • -p FD, --dbus-p2p-fd=FD β€” file descriptor of an inherited Unix socket for a peer-to-peer D-Bus connection to QEMU. this is mutually exclusive with --dbus-address and --bus-name. pick your lane, bestie. πŸ’€
  • -n NAME, --bus-name=NAME β€” D-Bus bus name of the QEMU instance to connect to. the default is org.qemu. when a custom --dbus-address is given without a bus name, peer-to-peer D-Bus is used. πŸ‘‘
  • -W, --wait β€” wait for the D-Bus bus name to appear. only for bus connections. patient queen behavior. ⏳
  • --password β€” require VNC password authentication from connecting clients. the password is set at runtime via the D-Bus SetPassword method (see D-Bus VNC <>). clients will not be able to connect until a password has been set. no password, no entry, periodt. πŸ”

this option is ignored when a systemd credential password is present, since password authentication is already enabled via password-secret in that case.

  • -l ADDR, --vnc-addr=ADDR β€” VNC listen address in the same format as the QEMU -vnc option (default localhost:0, i.e. TCP port 5900). yes, the classic. 🌈
  • -w ADDR, --websocket=ADDR β€” enable WebSocket transport on the given address. ADDR can be a port number or an address:port pair. websocket era. πŸ¦‹
  • -O OBJDEF, --object=OBJDEF β€” create a QEMU user-creatable object. OBJDEF uses the same key=value syntax as the QEMU -object option. this option may be given multiple times. it is needed, for example, to create authorization objects referenced by --tls-authz. stack those objects, bestie. 🧚
  • -t DIR, --tls-creds=DIR β€” directory containing TLS x509 credentials (ca-cert.pem, server-cert.pem, server-key.pem). when specified, the VNC server requires TLS from connecting clients. secure the bag. πŸ”₯
  • --tls-authz=ID β€” ID of a QAuthZ object previously created with --object for TLS client certificate authorization. when specified, the TLS credentials are created with verify-peer=yes so connecting clients must present a valid certificate. after the TLS handshake, the client certificate Distinguished Name is checked against the authorization object. this option requires --tls-creds. no cert, no chat. πŸ’…
  • --sasl β€” require that the client use SASL to authenticate with the VNC server. the exact choice of authentication method used is controlled from the system / user’s SASL configuration file for the 'qemu' service. this is typically found in /etc/sasl2/qemu.conf. if running QEMU as an unprivileged user, an environment variable SASL_CONF_PATH can be used to make it search alternate locations for the service config. while some SASL auth methods can also provide data encryption (eg GSSAPI), it is recommended that SASL always be combined with the 'tls' and 'x509' settings to enable use of SSL and server certificates. this ensures a data encryption preventing compromise of authentication credentials. see the VNC security <#vnc-security> section in the System Emulation Users Guide for details on using SASL authentication. auth but make it fashion. πŸŽ€
  • --sasl-authz=ID β€” ID of a QAuthZ object previously created with --object for SASL username authorization. after successful SASL authentication, the authenticated username is checked against the authorization object. if the check fails, the client is disconnected. this option requires --sasl. check the username, then yeet the connection if it fails. πŸ’€
  • -s POLICY, --share=POLICY β€” set display sharing policy. POLICY is one of allow-exclusive, force-shared, or ignore.
    • allow-exclusive β€” allows clients to ask for exclusive access. as suggested by the RFB spec this is implemented by dropping other connections. connecting multiple clients in parallel requires all clients asking for a shared session (vncviewer: -shared switch). this is the default. πŸ‘‘
    • force-shared β€” disables exclusive client access. useful for shared desktop sessions, where you don’t want someone forgetting to specify -shared disconnect everybody else. group project but make it VNC. 🫢
    • ignore β€” completely ignores the shared flag and allows everybody to connect unconditionally. doesn’t conform to the RFB spec but is traditional QEMU behavior. chaotic old-school energy, honestly. πŸ’€
  • -C NAME, --vt-chardev=NAME β€” chardev type name to expose as a VNC text console. this option may be given multiple times to expose several chardevs. when not specified, the defaults org.qemu.console.serial.0 and org.qemu.monitor.hmp.0 are used. default console besties stay winning. πŸ¦‹
  • -N, --no-vt β€” do not expose any chardevs as text consoles. this overrides the default chardev list and any --vt-chardev options. no text console, no problem. πŸ™ˆ
  • -k LAYOUT, --keyboard-layout=LAYOUT β€” keyboard layout (e.g. en-us). passed through to the VNC server for key-code translation. your keys, translated. ⌨️✨
  • --lossy β€” enable lossy compression methods (gradient, JPEG, ...). if this option is set, VNC client may receive lossy framebuffer updates depending on its encoding settings. enabling this option can save a lot of bandwidth at the expense of quality. beauty is pain, bandwidth is bandwidth. 🌸
  • --non-adaptive β€” disable adaptive encodings. adaptive encodings are enabled by default. an adaptive encoding will try to detect frequently updated screen regions, and send updates in these regions using a lossy encoding (like JPEG). this can be really helpful to save bandwidth when playing videos. disabling adaptive encodings restores the original static behavior of encodings like Tight. turn it off and go back to the old reliable vibe. πŸŽ€
  • -T, --trace [[enable=]PATTERN][,events=FILE][,file=FILE] β€” specify tracing options. detective mode: activated. πŸ”
    • [enable=]PATTERN β€” immediately enable events matching PATTERN (either event name or a globbing pattern). this option is only available if QEMU has been compiled with the simple, log or ftrace tracing backend. to specify multiple events or patterns, specify the -trace option multiple times. use -trace help to print a list of names of trace points. trace all the things, bestie. ✨
    • events=FILE β€” immediately enable events listed in FILE. the file must contain one event name (as listed in the trace-events-all file) per line; globbing patterns are accepted too. this option is only available if QEMU has been compiled with the simple, log or ftrace tracing backend. list β€˜em, load β€˜em, trace β€˜em. πŸ¦‹
    • file=FILE β€” log output traces to FILE. this option is only available if QEMU has been compiled with the simple tracing backend. put the trace tea in this file. 🍡

πŸ¦‹ EXAMPLES πŸ¦‹

start QEMU with the D-Bus display backend:

qemu-system-x86_64 -display dbus ...

then attach qemu-vnc:

qemu-vnc

a VNC client can now connect to localhost:5900. slay. πŸ’…

to listen on a different port with TLS:

qemu-vnc --vnc-addr localhost:1 --tls-creds /etc/pki/qemu-vnc

to require TLS with client certificate authorization:

qemu-vnc --object authz-list-file,id=auth0,filename=/etc/qemu/vnc.acl,refresh=on \
         --tls-creds /etc/pki/qemu-vnc --tls-authz auth0

to enable SASL authentication with TLS:

qemu-vnc --tls-creds /etc/pki/qemu-vnc --sasl

πŸ” VNC PASSWORD AUTHENTICATION πŸ”

there are two ways to enable VNC password authentication:

  1. --password flag β€” start qemu-vnc with --password and then set the password at runtime using the D-Bus SetPassword method. clients will be rejected until a password is set. no password yet? no connection yet, bestie. 😭
  2. systemd credentials β€” if the CREDENTIALS_DIRECTORY environment variable is set (see systemd.exec(5)) and contains a file named vnc-password, the VNC server will use that file’s contents as the password automatically. the --password flag is not needed in this case. systemd said β€œI got you.” 🫢

🌈 D-BUS INTERFACE 🌈

qemu-vnc exposes a D-Bus interface for management and monitoring of VNC connections. see D-Bus VNC <> for the full interface reference. management era. πŸ‘‘


🌟 SEE ALSO 🌟


2026, The QEMU Project Developers

okay that’s the whole page bestie β€” this was QEMU-VNC(1) from the QEMU manual, version 11.1.3, dated Oct 29, 2026. now go slay some VNC connections πŸ’…βœ¨

πŸ“¦ where this page comes from
  • arch rolling: qemu-common 11.1.3-1 Β· BSD-2-Clause AND BSD-2-Clause-Patent AND BSD-3-Clause AND CC0-1.0 AND FSFAP AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Linux-syscall-note AND GPL-2.0-only WITH Linux-syscall-note OR BSD-2-Clause AND GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause AND GPL-2.0-or-later AND GPL-2.0-or-later OR BSD-3-Clause AND GPL-2.0-or-later WITH Linux-syscall-note AND ISC AND LGPL-2.1-only OR BSD-3-Clause AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Public-Domain AND MIT
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms