Running TonidoPlug app in lxc on Arch Linux Arm

Ask questions about Arch Linux ARM. Please search before making a new topic.

Running TonidoPlug app in lxc on Arch Linux Arm

Postby phireph0x » Sun Jul 28, 2013 4:04 pm

I've recently stumbled across an older post where a user described getting the TonidoPlug OS and app running in an LXC container in ALARM. I'm trying to do this myself on my TonidoPlug (1), whereas the user had a gen 2 TonidoPlug. http://archlinuxarm.org/forum/viewtopic.php?f=30&t=5098

The step that's confounding me is the bridged network interface -- whenever I start the br0 interface, eth0 stops responding and I lose access to the plug. I have to manually reboot to get it back up and running. Is there something I'm missing regarding configuring a bridged interface for LXC containers? Thanks.
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby WarheadsSE » Sun Jul 28, 2013 4:41 pm

If possible, consider using a tap. But, using a bridge, you have to have your primary OS also using that bridge. It's how they work.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby phireph0x » Sun Jul 28, 2013 8:02 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I')f possible, consider using a tap. But, using a bridge, you have to have your primary OS also using that bridge. It's how they work.


I'm configuring the bridge in the primary OS (ALARM), and that's where I'm experiencing the failure: as soon as I start the bridge interface with $this->bbcode_second_pass_code('', 'netctl start lxc-bridge'), eth0 hangs and I lose connectivity.

For reference, here's my lxc-bridge config:

$this->bbcode_second_pass_code('', 'Description="LXC Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=eth0
IP=dhcp')

If I need to use a tap instead I can do that; I was using a bridge interface based on the config described in the link http://archlinuxarm.org/forum/viewtopic.php?f=30&t=5098
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby pepedog » Sun Jul 28, 2013 8:41 pm

Why didn't you look at example /etc/netctl/examples/bridge?
BindsToInterfaces=(eth0)
brackets!!!
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby phireph0x » Sun Jul 28, 2013 8:56 pm

$this->bbcode_second_pass_quote('pepedog', 'W')hy didn't you look at example /etc/netctl/examples/bridge?
BindsToInterfaces=(eth0)
brackets!!!


I did see the parens in the example, but my assumption was that they were only required for multiple interfaces, not with a single one. Some of the other examples with BindsToInterfaces include single interfaces without the parens (e.g. vlan-dhcp). However, I'll try that and see if it works. Thanks.
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby phireph0x » Sun Jul 28, 2013 9:00 pm

Including the parens (eth0) made no difference and the network still hangs.
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby phireph0x » Tue Jul 30, 2013 1:22 am

Any other ideas as to why the bridge device is causing eth0 to halt? The guide for LXC containers seems to assume that the user is on a typical desktop/laptop/server with console access instead of a headless device such as the TonidoPlug.
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby moonman » Tue Jul 30, 2013 5:55 am

Ssh daemon may be bound to whatever interfaces were up when it started. The solution to test may be a script that you run within "screen" that enables the bridge and then restarts the sshd. Don't know if it will work though. Another solution is to make the changes permanent and then reboot. But then if you make a mistake you end up with an unaccessible device.
The best solution is to get a serial.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Running TonidoPlug app in lxc on Arch Linux Arm

Postby WarheadsSE » Tue Jul 30, 2013 12:51 pm

Essentially, your bridge is taking over eth0, thus essentially disconnecting all services from that interface. Your OS will need to be configured to also use the br0 interface. Like I said.

Consider spawning a tap, or use not eth0, but an alias like eth0:1 etc.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests