diff --git a/src/qemu_conf.c b/src/qemu_conf.c index 03f710f..e0ab039 100644 --- a/src/qemu_conf.c +++ b/src/qemu_conf.c @@ -1334,8 +1334,13 @@ int qemudBuildCommandLine(virConnectPtr conn, ADD_ARG_LIT("-full-screen"); } - /* Add sound hardware */ - if (vm->def->nsounds) { + /* Add sound hardware iff you are not running as root */ + /* Configuring sound devices in QEMU when doing remote provisioning is + pretty useless really. We need to tunnelling of audio stream from + the QEMU instance to the client machine, over VNC / SPICE, or a + parallel network audio transport. */ + + if (getuid() && vm->def->nsounds) { int size = 100; char *modstr; if (VIR_ALLOC_N(modstr, size+1) < 0)