Copy lxc container template for centos before editting.
Use static ip address temporarily for lxc on centos. Now it works!