Hi, I tried to install a G729 codec from Digium on my asterisk server that runs in a VE. It doesn't work because it needs a mac address to attach to. Here is a suggestion from Digium: I have asked around, and we have a possible solution that may work. I believe the g729 codec only requires a nic with the name eth0. Can you possibly try to take a virtual ethernet device on your openvz machine and alias it to eth0? Is that possible?
Hi, you can use a veth(ernet) device in your *-VE. A veth(ernet) devices has a MAC address. Add a veth(ernet) to VE: # vzctl set <VEID> --netif_add eth0[,<mac>,<host_ifname>,<host_mac] [--save] See more at: http://wiki.openvz.org/Differences_between_venet_and_veth http://wiki.openvz.org/Virtual_Ethernet_device man-pages of vzctl
Hi Ugo, > Will it replace my venet? No, venet and (enabled) vethernet devices are both available in VE, but only the venet network config is setup. You must enter the network settings for a veth-dev manually.
Ok In the links you posted, we're told to do a ifconfig eth0 0 on the VE and ifconfig veth101.0 0 on the HW node. How do I configure it so that it does the equivalent at the startup of this VE? Regards, Ugo
Read this http://wiki.openvz.org/Veth#Making_a_veth-device_persistent HTH, Vasily.
Do I have to disable my venet inferface in the VE and only use veth?
Just do not assign any IP addresses using "vzctl set <veid> --ipadd <ip address>" to the VE in question. In this way, you _will_ still have venet0 device inside VE, but it _will_ _not_ operate. HTH, Vasily.
Would it be possible to do the opposite? Use the venet as is and have a veth that is doing nothing but providing a MAC address to meet the licensing requirement for the codec? Honestly, I find it terribly hard to configure a veth, and I can't spend much time trying to fiddle with that, it is a telephony server...
Could anyone help me out? I've tried my best and I'd really like to be able to use the codecs in a VE. Thanks, Ugo
Looks like all I needed to get a dummy veth device is vzctl set $VEID --netif_add eth0 --save Using this, I have a veth0 device with a MAC address, but it it not used and only shows with the '-a' option of ifconfig. This way, I can keep my venet and its simplicity, and still have a MAC address to register my codec. I'll try to register my G.729 Codec now. Thanks, Ugo
Success! Thanks to finist and digium for their help and patience! Regards, Ugo
Hi, I did the same thing but I am getting the error below.. I am new in OpenVZ.. any help would be appreciated. Bad CT ID --netif_add Regards Alvin
What is the exact command line that you used? Don't forget that you must substitute $VEID for the ID of the container you want to configure.