OpenVZ Forum


Home » General » Support » Is it possible to access eth0 device from container (Required for asterisk pbx)
Is it possible to access eth0 device from container [message #39213] Mon, 29 March 2010 14:26 Go to next message
Belko is currently offline  Belko
Messages: 5
Registered: March 2009
Junior Member
Hello.

We have Asterisk PBX running in container, and now we want to add Asterisk for Skype functionality. However it requires to "register" your server with a special cli utility which uses MAC-address of eth0. Since eth0 is not available from inside the container we cannot generate our key Sad

Is it possible to make eth0 available for a script running inside a container?

Thanks in advance.
Re: Is it possible to access eth0 device from container [message #39214 is a reply to message #39213] Mon, 29 March 2010 14:44 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can
(1) make eth0 available to container by using vzctl set NNN --netdev_add eth0 --save
(2) make a veth device in container and rename it to eth0, see wiki for details

I'd prefer the second variant.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Is it possible to access eth0 device from container [message #39221 is a reply to message #39213] Tue, 30 March 2010 07:11 Go to previous messageGo to next message
Belko is currently offline  Belko
Messages: 5
Registered: March 2009
Junior Member
Thank you very much, kir!

For those who may need it:
Minimal variant:
vzctl set CTID --netif_add eth0 --save

then in CT
ifconfig -a

Wiki: http://wiki.openvz.org/Virtual_Ethernet_device
Forum: http://forum.openvz.org/index.php?t=msg&goto=35005&
Re: Is it possible to access eth0 device from container [message #39414 is a reply to message #39213] Fri, 16 April 2010 16:41 Go to previous message
bbhenry is currently offline  bbhenry
Messages: 17
Registered: February 2009
Junior Member
Belko:

Did this ever happen to you once the skype for asterisk license is registered. Once you reboot the VE, asterisk doesn't seem to be able to find the license again...


Very weird

Previous Topic: **SOLVED** DHCP server problem inside centos 5.2 VE
Next Topic: Is XFS file system secure?
Goto Forum:
  


Current Time: Sun Apr 28 12:57:32 GMT 2024

Total time taken to generate the page: 0.02252 seconds