VMstack For Node

VMStack 节点端

VMStack 节点端

项目部署

创建相关目录

# 程序主目录
mkdir /usr/local/vmstack
# kvm xml目录
mkdir /home/kvm
# 镜像目录
mkdir /home/image
# KVM磁盘存储
mkdir /home/kvm_disk

赋予权限

chmod a+x /usr/local/vmstack/vmstack

修改conf配置

cp /usr/local/vmstack/conf.ini.example /usr/local/vmstack/conf.ini

修改ini文件

[api]
server = '' #主控地址
token = '' # api token
key = '' # api key

[path]
vms = '/home/kvm' # kvm xml目录
image = '/home/image' # 镜像目录

[websocket]
server = ''
port = ''
key = ''

[mysql]
port = '' #mysql 端口
host = '' #mysql 地址
dbname = '' #mysql 数据库名
username = '' # mysql 账户
password = '' # mysql 密码

程序跑起来

/usr/local/vmstack/vmstack 

# 跑起来
-------------------------------------
Version              1.0
Qemu Version         1.5.3
Libvirt Version      4.5.0
HTTP Port            7500
Server               http://192.168.128.13
VMs Path             /home/kvm
Image Path           /home/image
-------------------------------------
Start Run Service [VMsTask] 
Start Run Service [FlowMonitor] 
Start Run Service [Sync] 

TAG:none

发表新评论