diff --git a/ui/vnc-stubs.c b/ui/vnc-stubs.c
index 06c4ac6296ebcb327660f465eeaa8c4629a99c34..c6b737dcec67529e27e78b4c46f787bd32258e45 100644
--- a/ui/vnc-stubs.c
+++ b/ui/vnc-stubs.c
@@ -12,6 +12,9 @@ int vnc_display_pw_expire(const char *id, time_t expires)
 };
 QemuOpts *vnc_parse(const char *str, Error **errp)
 {
+    if (strcmp(str, "none") == 0) {
+        return NULL;
+    }
     error_setg(errp, "VNC support is disabled");
     return NULL;
 }