Hi,
I have a virtual desktop with RHEL 8.2 running Horizon Agent for Linux 8.0, i connect to the virtual desktop with the latest horizon client and i get no sound.
If i go to GNOME sound settings i see only an output device called Dummy Output.
Anyone had similar problem? Any fix?
If there is no such line, just add follow line to MonitorAudio.sh and startBlastWorker.sh, and have a try.
export SSH_CONNECTION=""
Is this a new issue for 8.x Linux Agent? or have you tried the case on 7.x Linux Agent?
Could you please run below commands and collect command output at connected desktop terminal:
# pax11publish -d
# pactl info
# ls -l <Each_subpath_at_Server_string> (Server string can be seen at output of pax11publish -d command, like ls -l /run/user/1002, ls -l /run/user/1002/.vmwblastaudio:101, ls -l /run/user/1002/.vmwblastaudio:101/native)
# pax11publish -d
doesn't show any output
# pactl info
Server String: /run/user/1001/pulse/native
Library Protocol Version: 32
Server Protocol Version: 32
Is Local: yes
Client Index: 27
Tile Size: 65472
User Name: xxxxxxxx
Host Name: z85101-vm-rhel
Server Name: pulseaudio
Server Version: 11.1-rebootstrapped
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: auto_null
Default Source: auto_null.monitor
Cookie: c335:a905
# ls -l <Each_subpath_at_Server_string>
there is no /run/user/1001/.vmwblastaudio: subpaths
Hi,
Thanks for the feedback. Could you please try below things? thanks.
1. Disable the selinux by the command "# setenforce 0", and try again.
2. If step 1 does not work, try to run follow command, and collect output
# /usr/bin/start-pulseaudio-x11
# pax11publish -d
3. Collect Linux agent log file by command "# /usr/lib/vmware/viewagent/bin/dct-debug.sh"
1. selinux was disabled:
getenforce
Disabled
2. There was no /usr/bin/start-pulseaudio-x11, then i looked for the package containing that binary and its pulseaudio-module-x11 which was not installed, so i installed it and rebooted the desktop, but still no sound.
But now "pax11publish -d" has output:
Server: /run/user/1001/.vmwblastaudio:100/native
Cookie: 20fa740ffe5380af4e5a84b2a10504c127539e47c2bedb57ad59cf50c27530a728305ca0d2ca70cfff703f4d89893754be108eadb199a5fbd7253832b3903219dec9787c17ce367d9c9b1c7f9fd1f38ac1801cf3b36ce47881379f8bc31d51f4c78744f0daea5fa36021f12f9afb6754601432b5ff6641bfff4f18e032687bd8582f0019cdd6b9ab37c1d0341bdc4e49314496e1b9e388d463a69118d402a415d4ac214ca98c00ed772a5b04c824e38d29cd4e32e4e3297e3bd5d41405adcbfe41c55d2251bf22bf7102e8d20a4f2588da8e0569d2cb9ffd597b7d618ed3adccba8c6141093879bb9b3e2795ffbfbaa7e4beed8b2a47a3f67b7740aac2cdc3d0
ls -a /run/user/1001/
. .. bus dbus-1 dconf gnome-shell GPaste gvfs keyring pipewire-0 pulse snapd-session-agent.socket systemd .vmwblastaudio:100
ls -a /run/user/1001/.vmwblastaudio\:100/
. .. native
3. in attachment the log files collected with dct-debug.sh
1. selinux was disabled:
getenforce
Disabled
2. There was no /usr/bin/start-pulseaudio-x11, then i looked for the package containing that binary and its pulseaudio-module-x11 which was not installed, so i installed it and rebooted the desktop, but still no sound.
But now "pax11publish -d" has output:
Server: /run/user/1001/.vmwblastaudio:100/native
Cookie: 20fa740ffe5380af4e5a84b2a10504c127539e47c2bedb57ad59cf50c27530a728305ca0d2ca70cfff703f4d89893754be108eadb199a5fbd7253832b3903219dec9787c17ce367d9c9b1c7f9fd1f38ac1801cf3b36ce47881379f8bc31d51f4c78744f0daea5fa36021f12f9afb6754601432b5ff6641bfff4f18e032687bd8582f0019cdd6b9ab37c1d0341bdc4e49314496e1b9e388d463a69118d402a415d4ac214ca98c00ed772a5b04c824e38d29cd4e32e4e3297e3bd5d41405adcbfe41c55d2251bf22bf7102e8d20a4f2588da8e0569d2cb9ffd597b7d618ed3adccba8c6141093879bb9b3e2795ffbfbaa7e4beed8b2a47a3f67b7740aac2cdc3d0
ls -a /run/user/1001/
. .. bus dbus-1 dconf gnome-shell GPaste gvfs keyring pipewire-0 pulse snapd-session-agent.socket systemd .vmwblastaudio:100
ls -a /run/user/1001/.vmwblastaudio\:100/
. .. native
3. send me PM so i can send you the the log files collected with dct-debug.sh
Hi,
Could you install Linux agent again after yum install pulseaudio-module-x11 package, and to see whether it's ok.
If it still does not work, please help to re-run pax11publish command, and run "ls -la <each_server_path>", I saw you only run "ls -a" command, thanks a lot.
Hi,
I reinstalled the view agent and rebooted, still no sound.
z85101-vm-rhel resteves ~ pax11publish -d
Server: /run/user/1001/.vmwblastaudio:100/native
Cookie: 20fa740ffe5380af4e5a84b2a10504c127539e47c2bedb57ad59cf50c27530a728305ca0d2ca70cfff703f4d89893754be108eadb199a5fbd7253832b3903219dec9787c17ce367d9c9b1c7f9fd1f38ac1801cf3b36ce47881379f8bc31d51f4c78744f0daea5fa36021f12f9afb6754601432b5ff6641bfff4f18e032687bd8582f0019cdd6b9ab37c1d0341bdc4e49314496e1b9e388d463a69118d402a415d4ac214ca98c00ed772a5b04c824e38d29cd4e32e4e3297e3bd5d41405adcbfe41c55d2251bf22bf7102e8d20a4f2588da8e0569d2cb9ffd597b7d618ed3adccba8c6141093879bb9b3e2795ffbfbaa7e4beed8b2a47a3f67b7740aac2cdc3d0
z85101-vm-rhel resteves ~ ls -la /run/user/1001/
total 0
drwx------ 12 resteves vmwblast 300 Jan 15 11:02 .
drwxr-xr-x 4 root root 80 Jan 15 11:03 ..
srw-rw-rw- 1 resteves resteves 0 Jan 15 11:01 bus
drwx------ 3 resteves resteves 60 Jan 15 11:01 dbus-1
drwx------ 2 resteves resteves 60 Jan 15 11:03 dconf
drwx------ 3 resteves resteves 60 Jan 15 11:01 gnome-shell
drwx------ 3 resteves resteves 60 Jan 15 11:01 GPaste
dr-x------ 2 resteves resteves 0 Jan 15 11:01 gvfs
drwxrwxr-x 2 resteves resteves 80 Jan 15 11:02 KeePass
drwx------ 2 resteves resteves 100 Jan 15 11:01 keyring
srw-rw-rw- 1 resteves resteves 0 Jan 15 11:01 pipewire-0
drwx------ 2 resteves resteves 80 Jan 15 11:02 pulse
srw-rw-rw- 1 resteves resteves 0 Jan 15 11:01 snapd-session-agent.socket
drwxr-xr-x 2 resteves resteves 80 Jan 15 11:01 systemd
drwx--x--- 2 resteves vmwblast 60 Jan 15 11:02 .vmwblastaudio:100
z85101-vm-rhel resteves ~ ls -la /run/user/1001/.vmwblastaudio\:100/
total 0
drwx--x--- 2 resteves vmwblast 60 Jan 15 11:02 .
drwx------ 12 resteves vmwblast 300 Jan 15 11:02 ..
srw-rw-r
I reinstalled the view agent and rebooted, but still no sound.
z85101-vm-rhel resteves ~ pax11publish -d
Server: /run/user/1001/.vmwblastaudio:100/native
Cookie: 20fa740ffe5380af4e5a84b2a10504c127539e47c2bedb57ad59cf50c27530a728305ca0d2ca70cfff703f4d89893754be108eadb199a5fbd7253832b3903219dec9787c17ce367d9c9b1c7f9fd1f38ac1801cf3b36ce47881379f8bc31d51f4c78744f0daea5fa36021f12f9afb6754601432b5ff6641bfff4f18e032687bd8582f0019cdd6b9ab37c1d0341bdc4e49314496e1b9e388d463a69118d402a415d4ac214ca98c00ed772a5b04c824e38d29cd4e32e4e3297e3bd5d41405adcbfe41c55d2251bf22bf7102e8d20a4f2588da8e0569d2cb9ffd597b7d618ed3adccba8c6141093879bb9b3e2795ffbfbaa7e4beed8b2a47a3f67b7740aac2cdc3d0
z85101-vm-rhel resteves ~ ls -la /run/user/1001/
total 0
drwx------ 12 resteves vmwblast 300 Jan 15 11:02 .
drwxr-xr-x 4 root root 80 Jan 15 11:03 ..
srw-rw-rw- 1 resteves resteves 0 Jan 15 11:01 bus
drwx------ 3 resteves resteves 60 Jan 15 11:01 dbus-1
drwx------ 2 resteves resteves 60 Jan 15 11:03 dconf
drwx------ 3 resteves resteves 60 Jan 15 11:01 gnome-shell
drwx------ 3 resteves resteves 60 Jan 15 11:01 GPaste
dr-x------ 2 resteves resteves 0 Jan 15 11:01 gvfs
drwxrwxr-x 2 resteves resteves 80 Jan 15 11:02 KeePass
drwx------ 2 resteves resteves 100 Jan 15 11:01 keyring
srw-rw-rw- 1 resteves resteves 0 Jan 15 11:01 pipewire-0
drwx------ 2 resteves resteves 80 Jan 15 11:02 pulse
srw-rw-rw- 1 resteves resteves 0 Jan 15 11:01 snapd-session-agent.socket
drwxr-xr-x 2 resteves resteves 80 Jan 15 11:01 systemd
drwx--x--- 2 resteves vmwblast 60 Jan 15 11:02 .vmwblastaudio:100
z85101-vm-rhel resteves ~ ls -la /run/user/1001/.vmwblastaudio\:100/
total 0
drwx--x--- 2 resteves vmwblast 60 Jan 15 11:02 .
drwx------ 12 resteves vmwblast 300 Jan 15 11:02 ..
srw-rw-rw- 2 resteves vmwblast 0 Jan 15 11:01 native
also when i run start-pulseaudio-x11 i get error:
z85101-vm-rhel resteves ~ /usr/bin/start-pulseaudio-x11
Failure: Module initialization failed
Haa, but this seems because was already running... if i kill all pulseaudio processes and then run start-pulseaudio-x11 it starts ok.
But still no audio.
Don't need run command start-pulseaudio-x11 any more.
sudo /usr/lib/vmware/viewagent/bin/MonitorAudio.sh
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
ln: failed to access '/run/user/1001/.vmwblastaudio:100/vmwaudioin': No such file or directory
chgrp: cannot access '/run/user/1001/.vmwblastaudio:100/vmwaudioin': No such file or directory
chmod: cannot access '/run/user/1001/.vmwblastaudio:100/vmwaudioin': No such file or directory
Please try to edit /usr/lib/vmware/viewagent/bin/MonitorAudio.sh with root.
Search line: if version_ge "${DISTRO_RELEASE}" "8.3"; then
Then update "8.3" to "8.2", logout and connect to desktop again. If it's lucky, audio shall be able to work now.
If it does not work, please continue to run follwing commands and collect output:
# ls -la <server_string_path>
# sudo /usr/lib/vmware/viewagent/bin/MonitorAudio.sh
Also, please add follow line to /usr/lib/vmware/viewagent/bin/StartBlastWorker.sh after Main block:
export SSH_CONNECTION=""
Hi,
There is no such line on MonitorAudio.sh
If there is no such line, just add follow line to MonitorAudio.sh and startBlastWorker.sh, and have a try.
export SSH_CONNECTION=""
./MonitorAudio.sh
25
ln: failed to create hard link '/run/user/1001/.vmwblastaudio:100/vmwaudioin': File exists
ls -la /run/user/1001/.vmwblastaudio:100/
total 0
drwx--x--- 2 resteves vmwblast 80 Jan 15 12:41 .
drwx------ 12 resteves vmwblast 300 Jan 15 11:29 ..
srw-rw-rw- 2 resteves vmwblast 0 Jan 15 11:28 native
prwxrwx--- 1 resteves vmwblast 0 Jan 15 12:41 vmwaudioin
Now pulse audio shows an input device, though doesn't seem to be working at all, i speak to microphone and levels don't move.
And still no output sound.
Hi,
The thing looks normal now, as the "native" file is created. Perform one logout, and connect to desktop, neither audio out or audio in works, right? Do you install viewagent with option "-a yes"?
If logout does not work, please try to reboot vm, and do one connection, to see the result.
If still not working, Please run ls -la for each subfolder for server path:
# pax11publish -d: to get the server path
# ls -la /run/user/
# ls -la /run/user/1001/
#ls -la /run/user/1001/.vmwblastaudio:100/
After reboot i have sound!
Thank you so much for the help, so the fix was adding the line
export SSH_CONNECTION=""
and then reboot.
Hello,
I have the same problem with no audio in my RHEL 7.9 guest. After I log in, I'm trying to run all the commands in this thread, but unable to see results for
pax11publish -d
sudo /usr/lib/vmware/view-agent/bin/MonitoAudio.sh
and I don't see .vmwareblastaudio in /run/user/53415/
Can you assist me in this? I tried changing in MonitorAudio.sh
case "$DISTRO_ID" in
${DISTRO_ID_CENTOS}|\
${DISTRO_ID_RHEL_CLIENT}|\
${DISTRO_ID_RHEL_SERVER}|\
${DISTRO_ID_RHEL_WORKSTATION})
if version_ge "${DISTRO_RELEASE}" "7.9"; then
export SSH_CONNECTION=""
fi
I'm not sure where to put export SSH_CONNECTION="" in StartBlackWorker.sh, what do you mean after the main block?