Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Secure solution for nexus infrastructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_masters
TM
Secure solution for nexus infrastructure
Commits
9be7b52c
Commit
9be7b52c
authored
4 months ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
server: updated qemu audio configuration to work with QEMU above and below version 7
parent
ac7443e4
Branches
Branches containing commit
Tags
v0.9.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/exec/QemuSystem.go
+3
-2
3 additions, 2 deletions
src/server/exec/QemuSystem.go
with
3 additions
and
2 deletions
src/server/exec/QemuSystem.go
+
3
−
2
View file @
9be7b52c
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment