ExecuteLXCShellWithVM opens an interactive session to an LXC container with automatic OS detection. This function automatically detects NixOS containers and uses the appropriate command to properly initialize the container environment. For NixOS containers, it uses 'pct exec' with environment setup
(user, nodeIP string, vm *api.VM, jumphost config.SSHJumpHost)
| 182 | // |
| 183 | // Returns an error if the connection fails. |
| 184 | func ExecuteLXCShellWithVM(user, nodeIP string, vm *api.VM, jumphost config.SSHJumpHost) error { |
| 185 | return ExecuteLXCShellWith(context.Background(), NewDefaultExecutor(), user, nodeIP, vm.ID, vm, jumphost) |
| 186 | } |
| 187 | |
| 188 | // ExecuteLXCShellWith opens an interactive session to an LXC container with full control options. |
| 189 | // |
no test coverage detected