id = 1567 title = "On windows, storage daemon does not support daemonize" state = "opened" created_at = "2023-03-29T10:55:52.303Z" closed_at = "n/a" labels = ["Storage", "hostos: Windows"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1567" host-os = "Windows 10/11" host-arch = "x86_64" qemu-version = "``qemu-storage-daemon version 7.2.0 (v7.2.0-11948-ge6523b71fc-dirty)``" guest-os = "n/a" guest-arch = "n/a" description = """Presently, in order to run qemu-storage-daemon on windows, one has to login and run it in a terminal window that is kept open. #""" reproduce = """just run the command""" additional = """https://gitlab.com/qemu-project/qemu/-/blob/master/storage-daemon/qemu-storage-daemon.c#L299 ``` case OPTION_DAEMONIZE: if (os_set_daemonize(true) < 0) { /* * --daemonize is parsed before monitor_init_globals(), so * error_report() does not work yet */ fprintf(stderr, "--daemonize not supported in this build\\n"); exit(EXIT_FAILURE); } ``` https://gitlab.com/qemu-project/qemu/-/blob/master/include/sysemu/os-win32.h#L114 ``` static inline int os_set_daemonize(bool d) { if (d) { return -ENOTSUP; } return 0; } ``` - Recently Marc has added windows socket support 20230313 marcandre.lureau [PULL 00/25] Win socket patches https://lore.kernel.org/qemu-devel/20230313114335.424093-1-marcandre.lureau@redhat.com/"""