-
Notifications
You must be signed in to change notification settings - Fork 12
New SubutaiTray [DRAFT]
The main purpose of redesigning SubutaiTray is to make Launcher and Tray as one application by embedding core functions of Launcher to Tray.
- Handling Virtual Machine operations by sitting on top of the Vagrant
- Access for managing multiple Peers
- Delete/Create new Peers
- Delete/Create new Resource Hosts
- Subutai Bazaar (Old: Launch->Bazaar website)
- Balance: 107.2
Separator
- Peers
- Create New Peer
New Dialog to Create a Peer
- Specify Name, RAM usage for Peer
- List of Peers
New Dialog For Each Peer
- Peer Name
- Management (Old: Launch->Subutai Console)
- Stop/Start (Old: Virtual Machines-> Stop/Start)
- Resource Host #1 (Old: Settings->RH) (note: it might be used as the button to start/stop VM)
- Resource Host #2
- ....
- Resource Host #n
- Delete Peer
- Create New Peer
- Environments
- Create New Environment (maybe? link to Bazaar/Create Environment)
- List of Environments
New Dialog For Each Environment
- Environment Name
- Container #1
- Container #2
- ...
- Container #n
- Delete Environment (maybe?)
Separator
- Settings
- SSH keys (Old: SSH-keys management)
- Vagrant Settings (maybe)
- Common
- Commands
- Logout
- Notification history
- Updates
- Updating frequencies (Old: Settings->Updating)
- Updates (Old: About)
- Quit
We think that Vagrant
would fit our needs because it can handle complicated commands to manage multiple VMs. And since in new SubutaiTray user should be able to create more than one Peers and more than one Resource Hosts, Vagrant could be the best tool for this purposes.
For each Peer and Resource Host, we need to create a new folder, where we vagrant init subutai/stretch
to get the bridged
version of ubuntu. Then vagrant up
to up the virtual machine.
Note #1: while vagrant up
ing, vagrant checks if there already exists an Image of subutai/stretch, if it doesn't exist then it starts to download, else it uses already existing one. So we need to install an image once for all Peers and Resource Hosts.
Note #2: Vagrant can complain that there is an already existing VM with the same name subutai/stretch
. In this case we should rename VM by giving the new name for each Peer or RH in configuration file .VagrantFile
.
-
vagrant init subutai/stretch
<---> configure VM (rename, set CPU, etc.) vagrant up
vagrant ssh
-
sudo /bin/snap/subutai import management
<---> case for discussion - vagrant halt ()
-
vagrant init subutai/stretch
<---> configure VM (rename, set CPU, etc.) vagrant up
While Creating a new Peer, we should save the ipaddress
of that Peer, so that we can access to console later.
Not sure if we need this feature.