Skip to content

Appvm Module

Whether to enable GIVC appvm agent module.

Type: boolean

Default: false

Example: true

Admin server transport configuration. This configuration tells the agent how to reach the admin server.

Type: submodule

Default:

{
name = "localhost";
addr = "127.0.0.1";
protocol = "tcp";
port = "9000";
};

Example:

admin =
{
name = "admin-vm";
addr = "192.168.100.3";
protocol = "tcp";
port = "9001";
};

Address identifier. Can be one of IPv4 address, vsock address, or unix socket path.

Type: string

Default: "127.0.0.1"

Identifier for network, host, and/or TLS name.

Type: string

Default: "localhost"

Port identifier for TCP or vsock addresses. Ignored for unix socket addresses.

Type: string

Default: "9000"

Protocol identifier. Can be one of ‘tcp’, ‘unix’, or ‘vsock’.

Type: one of “tcp”, “unix”, “vsock”

Default: "tcp"

List of applications to be supported by the appvm module. Interface and options are detailed under givc.appvm.applications.*.<option>.

Type: list of (submodule)

Default:

[
{ }
]

Example:

applications = [
{
name = "app";
command = "/run/current-system/sw/bin/app";
args = [
"url"
"file"
];
directories = [ "/tmp" ];
}
];

List of allowed argument types for the application. Currently implemented argument types:

  • ‘url’: URL provided to the application as string
  • ‘flag’: Flag (boolean) provided to the application as string
  • ‘file’: File path provided to the application as string If the file argument is used, a list of allowed directories must be provided.

Type: list of string

Default: [ ]

Command to run the application.

Type: string

Default: "/run/current-system/sw/bin/app"

List of directories (absolute path) to be whitelisted and used with file arguments.

Type: list of string

Default: [ ]

Name of the application.

Type: string

Default: "app"

Whether to enable enable appvm GIVC agent debug logging. This increases the verbosity of the logs.

Caution Enabling debug logging may expose sensitive information in the logs, especially if the appvm uses the DBUS submodule. .

Type: boolean

Default: false

Example: true

Optional socket proxy module. The socket proxy provides a VM-to-VM streaming mechanism with socket enpoints, and can be used to remote DBUS functionality across VMs. Hereby, the side running the dbusproxy (e.g., a network VM running NetworkManager) is considered the ‘server’, and the receiving end (e.g., the GUI VM) is considered the ‘client’.

The socket proxy module must be configured on both ends with explicit transport information, and must run on a dedicated TCP port. The detailed socket proxy options are described in the respective .socketProxy.* options.

Note The socket proxy module is a possible transport mechanism for the DBUS proxy module, and must be appropriately configured on both ends if used. In this use case, the server option is configured automatically and does not need to be set.

Type: null or (list of (submodule))

Default: null

Example:

givc.appvm.socketProxy = [
{
# Configure the remote endpoint
transport = {
name = "gui-vm";
addr = "192.168.100.5;
port = "9013";
protocol = "tcp";
};
# Socket path
socket = "/tmp/.dbusproxy_app.sock";
}
];

Whether the module runs as server or client.

The client/server logic follows the socket providing the service. The server connects to a local socket (e.g., local system dbus or xdg-dbus-module) and upon successful connection allows connection of a remote socket client(s). The socket proxy client provides a local socket to any service to connect to (e.g., dbus client application).

Note This setting defaults to config.givc.dbusproxy.enable and can be ignored if dbusproxy is used.

Type: boolean

Default:

if hasAttrByPath [ "givc" "dbusproxy" ] config
then
config.givc.dbusproxy.enable
else false;

Path to the system socket. Defaults to /tmp/.dbusproxy.sock.

Type: string

Default: "/tmp/.dbusproxy.sock"

Transport configuration of the socket proxy module of type transportSubmodule.

Type: submodule

Default: { }

Example:

transport =
{
name = "app-vm";
addr = "192.168.100.123";
protocol = "tcp";
port = "9012";
};

Address identifier. Can be one of IPv4 address, vsock address, or unix socket path.

Type: string

Default: "127.0.0.1"

Identifier for network, host, and/or TLS name.

Type: string

Default: "localhost"

Port identifier for TCP or vsock addresses. Ignored for unix socket addresses.

Type: string

Default: "9000"

givc.appvm.socketProxy.*.transport.protocol

Section titled “givc.appvm.socketProxy.*.transport.protocol”

Protocol identifier. Can be one of ‘tcp’, ‘unix’, or ‘vsock’.

Type: one of “tcp”, “unix”, “vsock”

Default: "tcp"

TLS options for gRPC connections. It is enabled by default to discourage unprotected connections, and requires paths to certificates and key being set. To disable it use tls.enable = false;. The TLS modules default paths’ are overwritten for the appvm module to allow access for the appvm user (see UID).

Caution It is recommended to use a global TLS flag to avoid inconsistent configurations that will result in connection errors.

Type: submodule

Default:

tls = {
enable = true;
caCertPath = "/run/givc/ca-cert.pem";
certPath = "/run/givc/cert.pem";
keyPath = "/run/givc/key.pem";
};

Example:

tls = {
enable = true;
caCertPath = "/etc/ssl/certs/ca-certificates.crt";
certPath = "/etc/ssl/certs/server.crt";
keyPath = "/etc/ssl/private/server.key";
};

Enable the TLS module. Defaults to ‘true’ and should only be disabled for debugging.

Type: boolean

Default: true

Path to the CA certificate file.

Type: string

Default: "/etc/givc/ca-cert.pem"

Path to the service certificate file.

Type: string

Default: "/etc/givc/cert.pem"

Path to the service key file.

Type: string

Default: "/etc/givc/key.pem"

Transport configuration of the GIVC agent of type transportSubmodule.

Caution This parameter is used to generate and validate the TLS host name.

Type: submodule

Default: { }

Example:

transport =
{
name = "app-vm";
addr = "192.168.100.123";
protocol = "tcp";
port = "9000";
};

Address identifier. Can be one of IPv4 address, vsock address, or unix socket path.

Type: string

Default: "127.0.0.1"

Identifier for network, host, and/or TLS name.

Type: string

Default: "localhost"

Port identifier for TCP or vsock addresses. Ignored for unix socket addresses.

Type: string

Default: "9000"

Protocol identifier. Can be one of ‘tcp’, ‘unix’, or ‘vsock’.

Type: one of “tcp”, “unix”, “vsock”

Default: "tcp"

UID of the user session to run the appvm module in. This prevents to run agent instances for other users (e.g., admin) on login.

Note If the application VM is expected to run upon start, the user corresponding to the given UID is expected to linger to keep the user session alive in the application VM without specific login.

Type: signed integer

Default: 1000