set_direct


Description:

[ Version ( deprecated = true , since = "1.0.72" ) ]
public bool set_direct (bool direct) throws Error

Warning: set_direct is deprecated.

enable or disable direct appliance mode

Note:

In new code, use guestfs_session_internal_get_console_socket instead

If the direct appliance mode flag is enabled, then stdin and stdout are passed directly through to the appliance once it is launched.

One consequence of this is that log messages aren't caught by the library and handled by guestfs_session_set_log_message_callback, but go straight to stdout.

You probably don't want to use this unless you know what you are doing.

The default is disabled.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error