Re: [Lxc-users] trying to bridge wireless
here is what i got when i ran last command: stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up iptables v1.4.4: host/network `' not found Try `iptables -h' or 'iptables --help' for more information. dnsmasq: bad command line options: try --help stlsaint@stlsaint-devcore:~$ On Fri, Jun 3, 2011 at 9:24 PM, matthew byers faintstlsa...@gmail.comwrote: I will try that out when i get back home. I had to go to work. On Fri, Jun 3, 2011 at 7:59 PM, Serge Hallyn serge.hal...@canonical.comwrote: Weird. You have bridge-utils installed? Does brctl addbr lxcbr0 ifconfig lxcbr0 192.168.42.8 netmask 255.255.255.0 /opt/bin/lxcbr0-up work? Quoting matthew byers (faintstlsa...@gmail.com): stlsaint@stlsaint-devcore:~$ sudo ifup lxcbr0 SIOCSIFADDR: No such device lxcbr0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device lxcbr0: ERROR while getting interface flags: No such device Failed to bring up lxcbr0. On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting matthew byers (faintstlsa...@gmail.com): Hey i am trying to run lxc on my laptop but am having problem setting up bridge. My internet connection consist of a WAN that i have absolutely no control over. I connect my tablet to the network and then tether it to my laptop. I followed directions from this site: http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/up until the point of running: ifup br0 #in which i get the Ignoring Uknown Interface.as shown below stlsaint@stlsaint-devcore:~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto lxcbr0 iface lxcbr0 inet static address 192.168.42.8 netmask 255.255.255.0 post-up /opt/bin/lxcbr0-up stlsaint@stlsaint-devcore:~$ cat /opt/bin/lxcbr0-up #!/bin/sh # This is the address we assigned to our bridge in /etc/network/interfaces braddr=192.168.42.8 # ip address range for containers brrange=192.168.42.9,192.168.42.230 iptables -A FORWARD -i lxcbr0 -s /24 -m conntrack --ctstate NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE dnsmasq --bind-interfaces --conf-file= --listen-address --except-interface lo --dhcp-range --dhcp-lease-max=253 --dhcp-no-override stlsaint@stlsaint-devcore:~$ sudo ifup br0 Ignoring unknown interface br0=br0. D'oh! Halfway through writing the post I changed br0 to lxcbr0. Apparently not completely. What happens if you do: sudo ifup lxcbr0 ? -- God Bless -- God Bless -- God Bless -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] trying to bridge wireless
Quoting matthew byers (faintstlsa...@gmail.com): here is what i got when i ran last command: stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up iptables v1.4.4: host/network `' not found Oh, fudge. The problem is I told you (in the blog post) to do cat file EOF hack hack $var hack hack EOF but when you do that $var gets substituted! So your script has '/24' instead of '${braddr}/24' Please open /opt/bin/lxcbr0-up in an editor, clear it out, and paste in: #!/bin/sh # This is the address we assigned to our bridge in /etc/network/interfaces braddr=192.168.30.1 # ip address range for containers brrange=192.168.30.2,192.168.30.254 iptables -A FORWARD -i lxcbr0 -s ${braddr}/24 -m conntrack --ctstate NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE dnsmasq --bind-interfaces --conf-file= --listen-address $braddr --except-interface lo --dhcp-range $brrange --dhcp-lease-max=253 --dhcp-no-override Hopefully that's the last of my blog posting booboos for now, and it'll now work for you. -serge -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] trying to bridge wireless
Ok, i added the change to lxcbr0-up file and saved. I went back and used brctl to add in the info you gave before but when i run ifup lxcbr0 i get: dnsmasq:bad command line options: try --help Seems as if there is some wrong network info i may have entered somewhere on my end. Just wanted to ask if this looked like a familiar error to ya? On Sat, Jun 4, 2011 at 9:11 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting matthew byers (faintstlsa...@gmail.com): here is what i got when i ran last command: stlsaint@stlsaint-devcore:~$ sudo /opt/bin/lxcbr0-up iptables v1.4.4: host/network `' not found Oh, fudge. The problem is I told you (in the blog post) to do cat file EOF hack hack $var hack hack EOF but when you do that $var gets substituted! So your script has '/24' instead of '${braddr}/24' Please open /opt/bin/lxcbr0-up in an editor, clear it out, and paste in: #!/bin/sh # This is the address we assigned to our bridge in /etc/network/interfaces braddr=192.168.30.1 # ip address range for containers brrange=192.168.30.2,192.168.30.254 iptables -A FORWARD -i lxcbr0 -s ${braddr}/24 -m conntrack --ctstate NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE dnsmasq --bind-interfaces --conf-file= --listen-address $braddr --except-interface lo --dhcp-range $brrange --dhcp-lease-max=253 --dhcp-no-override Hopefully that's the last of my blog posting booboos for now, and it'll now work for you. -serge -- God Bless -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] trying to bridge wireless
Quoting matthew byers (faintstlsa...@gmail.com): Hey i am trying to run lxc on my laptop but am having problem setting up bridge. My internet connection consist of a WAN that i have absolutely no control over. I connect my tablet to the network and then tether it to my laptop. I followed directions from this site: http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/ up until the point of running: ifup br0 #in which i get the Ignoring Uknown Interface.as shown below stlsaint@stlsaint-devcore:~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto lxcbr0 iface lxcbr0 inet static address 192.168.42.8 netmask 255.255.255.0 post-up /opt/bin/lxcbr0-up stlsaint@stlsaint-devcore:~$ cat /opt/bin/lxcbr0-up #!/bin/sh # This is the address we assigned to our bridge in /etc/network/interfaces braddr=192.168.42.8 # ip address range for containers brrange=192.168.42.9,192.168.42.230 iptables -A FORWARD -i lxcbr0 -s /24 -m conntrack --ctstate NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE dnsmasq --bind-interfaces --conf-file= --listen-address --except-interface lo --dhcp-range --dhcp-lease-max=253 --dhcp-no-override stlsaint@stlsaint-devcore:~$ sudo ifup br0 Ignoring unknown interface br0=br0. D'oh! Halfway through writing the post I changed br0 to lxcbr0. Apparently not completely. What happens if you do: sudo ifup lxcbr0 ? -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] trying to bridge wireless
Weird. You have bridge-utils installed? Does brctl addbr lxcbr0 ifconfig lxcbr0 192.168.42.8 netmask 255.255.255.0 /opt/bin/lxcbr0-up work? Quoting matthew byers (faintstlsa...@gmail.com): stlsaint@stlsaint-devcore:~$ sudo ifup lxcbr0 SIOCSIFADDR: No such device lxcbr0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device lxcbr0: ERROR while getting interface flags: No such device Failed to bring up lxcbr0. On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn serge.hal...@canonical.comwrote: Quoting matthew byers (faintstlsa...@gmail.com): Hey i am trying to run lxc on my laptop but am having problem setting up bridge. My internet connection consist of a WAN that i have absolutely no control over. I connect my tablet to the network and then tether it to my laptop. I followed directions from this site: http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/up until the point of running: ifup br0 #in which i get the Ignoring Uknown Interface.as shown below stlsaint@stlsaint-devcore:~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto lxcbr0 iface lxcbr0 inet static address 192.168.42.8 netmask 255.255.255.0 post-up /opt/bin/lxcbr0-up stlsaint@stlsaint-devcore:~$ cat /opt/bin/lxcbr0-up #!/bin/sh # This is the address we assigned to our bridge in /etc/network/interfaces braddr=192.168.42.8 # ip address range for containers brrange=192.168.42.9,192.168.42.230 iptables -A FORWARD -i lxcbr0 -s /24 -m conntrack --ctstate NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE dnsmasq --bind-interfaces --conf-file= --listen-address --except-interface lo --dhcp-range --dhcp-lease-max=253 --dhcp-no-override stlsaint@stlsaint-devcore:~$ sudo ifup br0 Ignoring unknown interface br0=br0. D'oh! Halfway through writing the post I changed br0 to lxcbr0. Apparently not completely. What happens if you do: sudo ifup lxcbr0 ? -- God Bless -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] trying to bridge wireless
I will try that out when i get back home. I had to go to work. On Fri, Jun 3, 2011 at 7:59 PM, Serge Hallyn serge.hal...@canonical.comwrote: Weird. You have bridge-utils installed? Does brctl addbr lxcbr0 ifconfig lxcbr0 192.168.42.8 netmask 255.255.255.0 /opt/bin/lxcbr0-up work? Quoting matthew byers (faintstlsa...@gmail.com): stlsaint@stlsaint-devcore:~$ sudo ifup lxcbr0 SIOCSIFADDR: No such device lxcbr0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device lxcbr0: ERROR while getting interface flags: No such device Failed to bring up lxcbr0. On Fri, Jun 3, 2011 at 6:14 PM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting matthew byers (faintstlsa...@gmail.com): Hey i am trying to run lxc on my laptop but am having problem setting up bridge. My internet connection consist of a WAN that i have absolutely no control over. I connect my tablet to the network and then tether it to my laptop. I followed directions from this site: http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/up until the point of running: ifup br0 #in which i get the Ignoring Uknown Interface.as shown below stlsaint@stlsaint-devcore:~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto lxcbr0 iface lxcbr0 inet static address 192.168.42.8 netmask 255.255.255.0 post-up /opt/bin/lxcbr0-up stlsaint@stlsaint-devcore:~$ cat /opt/bin/lxcbr0-up #!/bin/sh # This is the address we assigned to our bridge in /etc/network/interfaces braddr=192.168.42.8 # ip address range for containers brrange=192.168.42.9,192.168.42.230 iptables -A FORWARD -i lxcbr0 -s /24 -m conntrack --ctstate NEW -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE dnsmasq --bind-interfaces --conf-file= --listen-address --except-interface lo --dhcp-range --dhcp-lease-max=253 --dhcp-no-override stlsaint@stlsaint-devcore:~$ sudo ifup br0 Ignoring unknown interface br0=br0. D'oh! Halfway through writing the post I changed br0 to lxcbr0. Apparently not completely. What happens if you do: sudo ifup lxcbr0 ? -- God Bless -- God Bless -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users