-
Notifications
You must be signed in to change notification settings - Fork 178
Ability to add your own instances to pools/dstack #1100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
15 of 18 tasks
Comments
@TheBits for multi-node support, dstack also needs to know VMs internal ips. |
This was
linked to
pull requests
May 1, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
After we finish pool support, we will be ready to add our own servers to the pool. This is necessary for a particular set of users that have their own bare metal servers.
To add a server, we need to use the
dstack pool add
command in the same way as we add cloud instances with additional arguments:I will explain the new arguments:
--remote
- Adding a running server--remote-host 192.168.88.131
and--remote-port 22
- Connection detils--ssh-user=root
and--ssh-identity ~/ssh_key.pub
- Credentials for sshTo add the server, we need to go through the following steps.
dstack-shim
After install,
dstack-shim
should retrieve server resources and save them to the InstanceModel on the dstack server.This information about server resources will be provided to the user via "dstack pool ps" command.
SSH semantics
It is necessary to change the name the command to
dstack pool add-ssh
to add a remote instance. The add remote instance command must have the same semantics as the ssh command.Add support for the next cli arguments:
[user@]host
orssh://[user@]host[:port]
-l login_name
specifies the user-i key
specifies the private key-containing file.-p port
the connection portImprovements
instance name
of the added remote host.--region
--pool
dstack/base
image indocker run
to verify the output of thenvidia-smi
command.multinode support
Improvements
add_remote
(process_instances.py
) function blocks the server. For example, Ctrl-C does not work.-w
flag. Enabling it should show the process of provisioning the remote instance to the idle state. As an example, it should work asdstack ps -w
.The text was updated successfully, but these errors were encountered: