Skip to content
Snippets Groups Projects
Commit 9be7b52c authored by Florent Gluck's avatar Florent Gluck
Browse files

server: updated qemu audio configuration to work with QEMU above and below version 7

parent ac7443e4
Branches
Tags v0.9.2
No related merge requests found
...@@ -123,8 +123,9 @@ func NewQemuSystem(qgaSock string, cpus, ram int, nic string, usbDevs []string, ...@@ -123,8 +123,9 @@ func NewQemuSystem(qgaSock string, cpus, ram int, nic string, usbDevs []string,
args = append(args, "-device", "virtio-serial", "-device", "virtserialport,chardev=qga0,name=org.qemu.guest_agent.0", "-chardev", "socket,path="+qgaSock+",server=on,wait=off,id=qga0") args = append(args, "-device", "virtio-serial", "-device", "virtserialport,chardev=qga0,name=org.qemu.guest_agent.0", "-chardev", "socket,path="+qgaSock+",server=on,wait=off,id=qga0")
// USB redirection // USB redirection
args = append(args, usb...) args = append(args, usb...)
// No sound support for now as we want to keep compatibility with recent and older qemu versions without introducing audio backends, etc.
// args = append(args, "-device", "intel-hda", "-device", "hda-duplex") // Audio support
args = append(args, "-audiodev", "pa,id=myaudio,out.mixing-engine=off", "-device", "intel-hda", "-device", "hda-output,audiodev=myaudio")
// To share a folder with the host: // To share a folder with the host:
// - Add QEMU args: virtfs local,path=/tmp/pipo,mount_tag=sharedfs,security_model=none // - Add QEMU args: virtfs local,path=/tmp/pipo,mount_tag=sharedfs,security_model=none
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment