Tap bridge using LXC container and Traffic into NS-3 using VLC

434 views
Skip to first unread message

JeongHwan Kim

unread,
Dec 9, 2013, 8:47:23 AM12/9/13
to ns-3-...@googlegroups.com
Hello,

I'm trying to test that 
1. VLC server(option with showing its display) pushes traffic into NS-3 through the left side tap like an tap-csma-virtual-machine.cc
2. The traffic traverses NS-3 nodes and arrives at a final node.
3. VLC client receives the traffic which comes out of the final node via a right side tap.

LXC containers were configured properly by following the guide ""HOWTO Use Linux Containers to set up virtual networks" except using "lxc-execute" command instead of "lxc-start". 
Next, I tried to start VLC player inside a LXC container (e.g., left). 
It shows the error like the following. (Actually, I've configured and built the VLC source with --enable-run-as-root option)

ditto@left:~/test/vlc-2.1.1$ ./vlc
VLC media player 2.1.1 Rincewind (revision 2.1.0-207-g89c9520)
[0xe9fa08] main interface error: no suitable interface module
[0xda7248] main libvlc error: interface "globalhotkeys,none" initialization failed
[0xe9fa08] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0xe9fa08] main interface error: no suitable interface module
[0xda7248] main libvlc error: interface "dbus,none" initialization failed
[0xda7248] main libvlc: 기본 인터페이스로 vlc 실행. vlc 인터페이스 없이 사용하려면 'cvlc' 을 사용하세요.
[0xea4df8] qt4 interface error: Could not connect to X server
[0xea4df8] skins2 interface error: cannot initialize OSFactory
[0xea4df8] [cli] lua interface: Listening on host "*console".
VLC media player 2.1.1 Rincewind
Command Line Interface initialized. Type `help' for help.

Do you have any idea on "Running VLC player inside LXC container" ?
Thanks.

/Jeonghwan Kim 


JeongHwan Kim

unread,
Dec 9, 2013, 9:13:48 AM12/9/13
to ns-3-...@googlegroups.com
but, there is no information about VLC setup inside linux conainer... OTL..

Shane Tuohy

unread,
Dec 13, 2013, 2:43:40 AM12/13/13
to ns-3-...@googlegroups.com
I use the vlc wrapper command line program from within the lxc shell to achieve this.

Something like,

        vlc-wrapper myfile --sout '#transcode{vcodec=mjpg,vb=300               00,acodec=none}:rtp{dst=10.0.0.1,port=5004,mux=ts,ttl=1}' -I dummy 

The -i dummy option should allow the program to run without an interface. 

Shane   

Mohana Priya

unread,
Feb 6, 2018, 5:06:35 AM2/6/18
to ns-3-users
Hello,

I'm also trying for this,
but for me the VLC is not running from root.. And also not fetching all the packages, its showing the error in packages.. what shall i do for this???
Reply all
Reply to author
Forward
0 new messages