Vagrant ssh X11 forwarding an android emulator

13 views
Skip to first unread message

F.N

unread,
Dec 13, 2018, 8:48:24 AM12/13/18
to Vagrant


I've prepaired an android development environment using apache cordova inside a vagrant box with ubuntu 16.04 by following mainly this guide except using the latest android sdk tools (sdkmanager & avdmanager).

I enable the ssh X11 forwarrding by adding the following in the Vagrantfile

config.ssh.forward_agent = true 
config.ssh.forward_x11 = true

but when I'm trying to run the android emulator cordova emulate android, a new window is oppened for a while but then it stucks (stop loading) and I'm gettin back the following X11 error:

No emulator specified, defaulting to Android-27
Waiting for emulator to start...
emulator: Requested console port 5584: Inferring adb port 5585.
emulator: WARNING: encryption is off
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  1 (X_ShmAttach)
  Serial number of failed request:  14
  Current serial number in output stream:  15


Any idea ?

Alvaro Miranda Aguilera

unread,
Dec 14, 2018, 1:09:57 PM12/14/18
to vagra...@googlegroups.com
run other app, like xeyes to confirm all works

try this:



--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4941e87e-42b9-480d-8260-f443df4b4589%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Nick Fikas

unread,
Dec 14, 2018, 3:34:49 PM12/14/18
to vagra...@googlegroups.com
I run both xclock and xeyes and worked as expected. Shoud either way to try the vagrant-xeyes box or you have something else to suggest?

Reply all
Reply to author
Forward
0 new messages