Mar 08

Balance is a free version of load balancing created by Inlab in Germany. I am trying to setup Balance on my Ubuntu Server and hit this error Balance unable to start (“setsockopt(IPV6_V6ONLY=0): Protocol not available) when I issue the balance command. After digging around, I found the following solution which actually worked for me. So I am sharing it for everyone who encounters this issue.

This problem isn’t fixed in the latest versions, the change appears that balance now needs IPv6 addresses if you specify IP addresses (versus host names). to fix this problem for v4 addresses add ::ffff: to the beginning of your address. for example:

balance -b 192.168.1.2 631 spiffycupshost

(which gives you this error)
should now become:
balance -b ::ffff:192.168.1.2 631 spiffycupshost

and the error will go away.

Provided by Craig Sawyer

Post to Twitter

Jan 30

好不容易把 Hyper-V 裝完, 可以開始玩虛擬機器來研究 clipbucket. 但安裝到一半, 出現一個紅色的畫面.

No Network Interfaces Detected

我第一個直覺是 – 悶, 舊的網卡都不支援. 自從知道舊 3com 卡和 Intel Pro 10/100 在 Windows 2008 都不能順利被找到, Hyper-V Server 上應該也是找不到把. 所以下午就驅車跑去 Palo Alto 的 Fry’s 裡買個最便宜不到$10元的TrendNet的螃蟹卡 RealTek8169. 雖然新卡是馬上可以被找到, 但是在安裝時, 還是出現找不到網路介面的問題. 我想 Hyper-V 實在是不支援很多東西, 免費果然要克服很多問題.

請出了谷歌大神, 果然大家都遇到一樣的問題, 只是沒人像我傻傻去買了張新卡才發現問題不是這樣. Ben Armstrong, Microsoft 的虛擬環境專案經理在他的 Virtual PC Guy’s Blog 上有說明解決問題. 他的 blog 是: http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/10/21/installing-ubuntu-server-10-10-on-hyper-v.aspx

而且在他 blog 上還有詳細的安裝步驟, 真是應該先看看的. 解決方面是先略過那個問題, 安裝完登入後再回過頭來加入驅動程式.

登入在 bash 下打入指令:

1
 sudo vi /etc/initramfs-tools/modules

打入密碼, 在這個檔案最下面加入以下幾行

hv_vmbus

hv_storvsc

hv_blkvsc

hv_netvsc

按 ESC 後, 再打 :x 儲存後, 要更新initramfs

1
 sudo update-initramfs –u

再重開機一次

1
 sudo shutdown -r now

確定 HV 驅動裝好沒, 可以鍵入以下指令. 在最下行可以看到有關 HV 等的東西

1
lsmod
ubuntu_lsmod

ubuntu_lsmod

之後再打入

1
 ifconfig -a

就可以看到到之前分配給這台虛擬機的網卡了, 但還是要設定一下

ubuntu_ifconfig-a

ubuntu_ifconfig-a

參考一下 ifconfig -a 的結果, 看一下網卡的名字, 我的情況是 eth0 & eth1 打開 /etc/network/interfaces 來加入

1
 sudo vi /etc/network/interfaces

裡頭, 可以加入以下的參據

如果是自動 DHCP , 就用下面

Auto eth0
iface eth0 inet dhcp

固定 IP 的話, 就多加IP位址等資料

Auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
Gateway xxx.xxx.xxx.xxx

最後再重開, 或是打入以下指令就有網路囉.

1
 sudo /etc/init.d/networking restart

Post to Twitter

Tagged with:
May 27

I have a Slingbox PRO-HD installed in Taiwan hoping that I can enjoy my hometown TV shows remotely here. However, I am not very pleased with the perform it brings because my PRO HD has been poorly performing with this intermittent 0 Kbps. Obviously the viewing experience is not quite smooth. I wonder what causes this so I searched Google for help. Some of the owners have similar issues but the search result took me to Slingbox’s old community page where it has been renewed to Sling Forum. I couldn’t find a useful page to help me addressing this issue. But I have finally figured it out. If your Slingbox PRO-HD has this sudden 0 Kbps lagging issue, please read on…

My network and equipments

[In Taiwan]

  1. Standard analog cable TV inputting to PRO-HD’s coaxial port
  2. Hinet fiber optic Internet connection (3M down/768K up)
  3. Linksys WRT-54G router with DD-WRT v2.4 pre-SP2-[Beta] build 13064
  4. Slingbox PRO-HD

[In US]

  1. Homebrew Windows 2003 Server as an Internet Gateway with routing service
  2. Dell Studio 15″ laptop
  3. RCN 20M cable (Queens)

I have researched some forums mentioned it’s RCN to block the Slingbox’s default port 5001, so I tested with a Verizon Business DSL on a Mac Pro. The result was the same, the connection randomly dropped and became 0 Kbps. I figured it shouldn’t be a network issue.

Luckily I had set up remote access to the DD-WRT administration web interface to monitor the traffic status. On the bandwidth monitor view under status tab, you can monitor the traffic in real-time. (Thanks to DD-WRT) I saw a very unstable WAN activities. So it is not the problem with Slingbox either.

Finally, I remotely flashed the DD-WRT firmware to DD-WRT v24-sp1 (07/27/08) std then it took care of everything. I am enjoying a stable 1840Kbps constant streaming with almost no lag. The v24-sp2 pre beta DD-WRT firmware is the cause of the whole problem. Although it is risky to update firmware remotely, if you are experience this issue with same configuration like mine, please check your DD-WRT’s firmware. Sometimes the newer version isn’t the best one to try…

My current bandwidth graph:



DD-WRT Bandwith Graph

Post to Twitter

preload preload preload