Collapse All
Parallels Virtualization SDK
PrlVmCfg_SetSyncVmHostnameEnabled Function
PHT_VM_CONFIGURATION

Enables or disables VM name and guest hostname synchronization feature in a virtual machine.

Syntax
PRL_RESULT PrlVmCfg_SetSyncVmHostnameEnabled(
    PRL_HANDLE hVmCfg, 
    PRL_BOOL bEnabled
);
File

PrlApiVm.h

Parameters

hVmCfg
A handle of type PHT_VM_CONFIGURATION identifying the virtual machine configuration.
bEnabled
Setting boolean value.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

You can synchronize hostname of the guest OS with the name of the virtual machine it is running on. Feature is available for Linux guests only.

Links
Copyright © 1999-2017 Parallels International GmbH. All rights reserved.