grid session
Start a live machine
Launch an interactive Session with the hardware and data of your choice.

create

Creates an interactive Session.
1
grid session create
Copied!
Allowed parameters:
flag
description
optional
--credential
The cloud credential to use with the session
yes
--disk_size
Disk size of the session
yes
--instance_type
Cloud machine type
yes
--name
Name of the Session
yes
--config
Points to a YAML config file
yes
--description
Description of the interactive session
yes
--datastore_name
Name of datastore to be mounted in interactive session
yes
--datastore_version
Version of datastore to be mounted in interactive session
yes
--datastore_mount_dir
Absolute path to mount Datastore in interactive session
yes
1
grid session create --instance_type 2_cpu_4gb
Copied!
Sessions are no longer recoverable after being deleted.

delete

Deletes an interactive session.
1
grid session delete the-session-name
Copied!
Deleting a session deletes all files on that machine. To keep the files consider pausing instead.

mount

Mount interactive session directory to local. To mount a filesystem use: ixSession:[dir] mountpoint
Example 1: Mounts the home directory on the interactive session in dir data
1
grid session mount bluberry-122 ./data
Copied!
Example 2: Mounts ~/data directory on the interactive session to ./data
1
grid session mount bluberry-122:~/data ./data
Copied!
To unmount the session:
1
fusermount3 -u mountpoint # Linux
2
umount mountpoint # OS X, FreeBSD
Copied!

pause

Pauses an interactive session.
1
grid session pause bluberry-122
Copied!

resume

Resumes an interactive session.
1
grid session resume bluberry-122
Copied!

ssh

SSH to interactive session.
First, create an ssh key
1
ssh-keygen -t ed25519 -C "[email protected]"
Copied!
Now add it to grid
1
grid ssh-keys add lit_key ~/.ssh/ed25519.pub
Copied!
then ssh into the Session
1
grid session ssh happy-owl-123
Copied!

sync-ssh-config

Sync interactive session's ssh config to the local ssh config.
It manages a section within the ssh config file for all interactive sessions ssh config details.
Afterwards you can use the system's ssh & related utilities (sshfs, rsync, ansible, etc) with interactive sessions directly.
The default file is ~/.ssh/config and can be changed via envvar GRID_SSH_CONFIG
Last modified 2mo ago