malahit Hi, I'm trying to use Lightstreamer under OpenVZ virtualization with java 6 and can't install the license because "MAC address check failed". As I see the problem probably in java.net.NetworkInterface.getHardwareAddress() which returns null for the virtual network interface. Is there some solution?
Alessandro Alinone Hi, Usually getHardwareAddress works great for virtual network interfaces too. This is the first time such issue is reported. Did you give the Java process the right privileges (root) to access the network interface? Does "ifconfig -a" report any network interfaces?
malahit ifconfig output looks like this: # ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:736 errors:0 dropped:0 overruns:0 frame:0 TX packets:736 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:39268 (39.2 KB) TX bytes:39268 (39.2 KB) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:448198 errors:0 dropped:0 overruns:0 frame:0 TX packets:396909 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:229352384 (229.3 MB) TX bytes:59166897 (59.1 MB) venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:195.10.77.96 P-t-P:195.10.77.96 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 ## arp -v Entries: 0 Skipped: 0 Found: 0 And yes, I've tried to execute getHardwareAddress() from root - result is null
Alessandro Alinone From the ifconfig output, it really seems that your virtualization system is not giving any MAC address to your network interface. Both HWaddr report "00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00" instead of a MAC address. So you should fix your virtualization configuration by enabling virtual MAC addresses-
Alessandro Alinone If MAC address support is not available in your infrastructure, please get back to support@lightstreamer.com, and we'll try to understand your needs better and perhaps work out a solution. Thanks Alessandro