Copy the upstart scripts into their proper directories
cp /opt/axsh/openvnet/deployment/conf_files/etc/init/* /etc/init
cp /opt/axsh/openvnet/deployment/conf_files/etc/default/* /etc/default
redis の設定
/etc/redis.conf
1
bind 172.25.255.254
redis の起動
1
service redis start
サービスの起動
123
start vnet-vnmgr
start vnet-vna
start vnet-webapi
サービスの起動確認
12
# initctl status vnet-vnmgr
vnet-vnmgr start/running, process 47122
12
# initctl status vnet-vna
vnet-vna start/running, process 47216
12
# initctl status vnet-webapi
vnet-webapi start/running, process 47283
ログの確認
/var/log/openvnet/vna.log
/var/log/openvnet/vnmgr.log
/var/log/openvnet/webapi.log
vnctl コマンドのセットアップ
123456789101112131415
# cd /opt/axsh/openvnet/vnctl/bin
# /opt/axsh/openvnet/ruby/bin/bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Fetching gem metadata from http://rubygems.org/.......
Installing fuguta 1.0.2
Installing multi_json 1.8.0
Installing multi_xml 0.5.5
Installing httparty 0.11.0
Installing thor 0.18.1
Using bundler 1.7.12
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from httparty:
When you HTTParty, you must party hard!
1 Box OpenVNet
1234
# curl -o /root/vnet-test-kvm.tgz -R http://dlc.openvnet.axsh.jp/tests/vnet-test-kvm.tgz
# tar xvfz ./vnet-test-kvm.tgz
# export PATH=/opt/axsh/openvnet/ruby/bin:$PATH
# cd /root/vnet-test-kvm
[4271] 04 Feb 09:23:33 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.