The command control for the pods (bunch of sh's) for the Onboard Cloud
project. The control commands are done seamlessly in the UI. These sh
is bundled in the container.
Master refers to ONE Frontend. Host refers to a compute node.
- To connect a host ip 127.0.0.1 to master using
default:
hypervisor kvm.
$ /var/lib/megam/abcdsh/one/connect-node.sh --hostip 127.0.0.1
- To connect a host with ip 127.0.0.1 to master using hypervisor
xen
$ /var/lib/megam/abcdsh/one/connect-node.sh --hostip 127.0.0.1 --hypervisor xen
- To create a fs datastore in opennebula master
$ /var/lib/megam/abcdsh/one/connect-storage.sh --nodeip 127.0.0.1 --name fs_ds --fs fs
- To create a NFS datastore in opennebula master
$ /var/lib/megam/abcdsh/one/connect-storage.sh --nodeip 127.0.0.1 --name nfs_ds --fs nfs
- To create a LVM datastore in opennebula master
$ /var/lib/megam/abcdsh/one/connect-storage.sh --nodeip 127.0.0.1 --name lvm_ds --fs lvm
- To create a CEPH datastore to opennebula master
For ceph datastore add extra parameter --secret f6f03141-2666
is required.
$ /var/lib/megam/abcdsh/one/connect-storage.sh --nodeip 127.0.0.1 --name ceph_ds --fs ceph --secret f6f03141-2666
- To create a Template in opennebula master
$ /var/lib/megam/abcdsh/one/create_template.sh
- To create a Network to opennebula master using
default:
type IP4 .
$ /var/lib/megam/abcdsh/one/connect-network.sh --name public-ipv4 --ip 192.168.1.2 --size 2 --gateway 192.168.1.1 --network_mask 255.255.255.0
- To create a Network to opennebula master using
default:
type IP6 .
$ /var/lib/megam/abcdsh/one/connect-network.sh --name public-ipv6 --ip 6001:f288:aaaa:bbbb::cccc --size 2 --gateway fe80::1
--network_mask 64 --type IP6
- To create a Image in opennebula master
$ /var/lib/megam/abcdsh/one/connect-image.sh --name ubuntu --image_url https://s3-ap-southeast-1.amazonaws.com/megampub/iso/megam.tar.gz --datastore ceph_ds
(or)
$ /var/lib/megam/abcdsh/one/connect-image.sh --name ubuntu --image_url http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/mini.iso --datastore lvm_ds
- To create a cluster in opennebula master
$ /var/lib/megam/abcdsh/one/create-cluster.sh --cluster_name test --abcd_token u4M4bDqyw12nO2DsoNFSu1R4lae2khtQ6wxbO244dLs --abcd_url https://192.168.1.13:8443/api/v1/namespaces/default/configmaps/one-data
- Add host to cluster in opennebula master
$ /var/lib/megam/abcdsh/one/cluster-addhost.sh --cluster test --host 192.168.1.1
- Add vnet to cluster in opennebula master
$ /var/lib/megam/abcdsh/one/cluster-addvnet.sh --cluster test --vnet public-ipv4
- Add datastore to cluster in opennebula master
$ /var/lib/megam/abcdsh/one/cluster-adddatastore.sh --cluster test --datastore ceph_ds
- To update vertice configuration file vertice.conf
$/var/lib/megam/abcdsh/vertice/connect-apiserver.sh --gateway-ip 192.168.1.100 --datastore-id 100 --cluster-id 101 --network_name PRIVATE-IPV4="net0" --network_name PRIVATE-IPV6="net1" --network_name PUBLIC-IPV4="net2" --network_name PUBLIC-IPV6="net3" --region Romania
- To update api server ip in nilavu.conf
$/var/lib/megam/abcdsh/vertice/connect-apiserver.sh --gateway-ip 192.168.1.100