libvirt 函数说明

1. virConnectGetVersion

Returns the running hypervisor version of the connection host

2. virConnectGetLibVersion

Returns the libvirt version of the connection host

3. virConnectListDomainsID

Returns the list of the ID of the domains on the hypervisor

4. virConnectListDefinedDomains

list the defined domains, stores the pointers to the names in @names

5. virConnectListAllDomains

returns list of all defined domains

6. virConnectListNetworks

list the networks, stores the pointers to the names in @names

7. virConnectListDefinedNetworks

list the defined networks, stores the pointers to the names in @names

8. virConnectListAllNetworks

returns list of all networks

9. virDomainLookupByUUID

Try to lookup a domain on the given hypervisor based on its UUID.

10. virNetworkLookupByUUID

Try to lookup a network on the given hypervisor based on its UUID.

11. virDomainGetInfo

Extract information about a domain. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.

12. virDomainGetState

Extract domain state.

13. virDomainGetControlInfo

Extract details about current state of control interface to a domain.

14. virDomainGetBlockInfo

Extract information about a domain block device size

15. virDomainGetJobInfo

Extract information about an active job being processed for a domain.

16. virDomainGetJobStats

Extract information about an active job being processed for a domain.

17. virNodeGetInfo

Extract hardware information about the Node. Note that the memory size is reported in MiB instead of KiB.

18. virNodeGetSecurityModel

Extract information about the hypervisor security model

19. virDomainGetSecurityLabel

Extract information about the domain security label. Only the first label will be returned.

20. virDomainGetSecurityLabelList

Extract information about the domain security label. A list of all labels will be returned.

21. virNodeGetCPUStats

Extract node's CPU statistics.

22. virNodeGetMemoryStats

Extract node's memory statistics.

23. virDomainGetUUID

Extract the UUID unique Identifier of a domain.

24. virDomainGetUUIDString

Fetch globally unique ID of the domain as a string.

25. virNetworkGetUUID

Extract the UUID unique Identifier of a network.

26. virNetworkGetUUIDString

Fetch globally unique ID of the network as a string.

27. virStoragePoolGetUUID

Extract the UUID unique Identifier of a storage pool.

28. virStoragePoolGetUUIDString

Fetch globally unique ID of the storage pool as a string.

29. virNetworkGetAutostart

Extract the autostart flag for a network.

30. virDomainGetAutostart

Extract the autostart flag for a domain

31. virStoragePoolGetAutostart

Extract the autostart flag for a storage pool

32. virDomainBlockStats

Extracts block device statistics for a domain

33. virDomainBlockStatsFlags

Extracts block device statistics parameters of a running domain

34. virDomainGetCPUStats

Extracts CPU statistics for a running domain. On success it will return a list of data of dictionary type. If boolean total is False or 0, the first element of the list refers to CPU0 on the host, second element is CPU1, and so on. The format of data struct is as follows: [{cpu_time:xxx}, {cpu_time:xxx}, ...] If it is True or 1, it returns total domain CPU statistics in the format of [{cpu_time:xxx, user_time:xxx, system_time:xxx}]

35. virDomainInterfaceStats

Extracts interface device statistics for a domain

36. virDomainMemoryStats

Extracts memory statistics for a domain

37. virNodeGetCellsFreeMemory

Returns the available memory for a list of cells

38. virDomainGetSchedulerParameters

Get the scheduler parameters, the @params array will be filled with the values.

39. virDomainGetSchedulerParametersFlags

Get the scheduler parameters

40. virDomainGetSchedulerType

Get the scheduler type.

41. virDomainGetVcpus

Extract information about virtual CPUs of domain, store it in info array and also in cpumaps.

42. virDomainPinVcpu

Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.

43. virDomainPinVcpuFlags

Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor.

44. virDomainGetVcpuPinInfo

Query the CPU affinity setting of all virtual CPUs of domain

45. virDomainGetEmulatorPinInfo

Query the CPU affinity setting of the emulator process of domain

46. virDomainPinEmulator

Dynamically change the real CPUs which can be allocated to the emulator process of a domain. This function requires privileged access to the hypervisor.

47. virDomainGetIOThreadInfo

Query the CPU affinity setting of the IOThreads of the domain

48. virDomainPinIOThread

Dynamically change the real CPUs which can be allocated to an IOThread. This function requires privileged access to the hypervisor.

49. virDomainSetSchedulerParameters

Change the scheduler parameters

50. virDomainSetSchedulerParametersFlags

Change the scheduler parameters

51. virDomainSetBlkioParameters

Change the blkio tunables

52. virDomainGetBlkioParameters

Get the blkio parameters

53. virDomainSetMemoryParameters

Change the memory tunables

54. virDomainGetMemoryParameters

Get the memory parameters

55. virDomainSetNumaParameters

Change the NUMA tunables

56. virDomainGetNumaParameters

Get the NUMA parameters

57. virDomainGetPerfEvents

Get all perf events setting.

58. virDomainSetPerfEvents

Enable or disable the particular list of perf events

59. virDomainSetInterfaceParameters

Change the bandwidth tunables for a interface device

60. virDomainGetInterfaceParameters

Get the bandwidth tunables for a interface device

61. virConnectListStoragePools

list the storage pools, stores the pointers to the names in @names

62. virConnectListDefinedStoragePools

list the defined storage pool, stores the pointers to the names in @names

63. virConnectListAllStoragePools

returns list of all storage pools

64. virStoragePoolListVolumes

list the storage volumes, stores the pointers to the names in @names

65. virStoragePoolListAllVolumes

return list of storage volume objects

66. virStoragePoolGetInfo

Extract information about a storage pool. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.

67. virStorageVolGetInfo

Extract information about a storage volume. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.

68. virStorageVolGetInfoFlags

Extract information about a storage volume. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.

69. virNodeListDevices

list the node devices

70. virConnectListAllNodeDevices

returns list of all host node devices

71. virNodeDeviceListCaps

list the node device's capabilities

72. virSecretGetValue

Fetches the value associated with a secret.

73. virConnectListSecrets

List the defined secret IDs

74. virConnectListAllSecrets

returns list of all interfaces

75. virSecretSetValue

Associates a value with a secret.

76. virSecretLookupByUUID

Try to lookup a secret on the given hypervisor based on its UUID.

77. virSecretGetUUID

Extract the UUID unique Identifier of a secret.

78. virSecretGetUUIDString

Fetch globally unique ID of the secret as a string.

79. virConnectListNWFilters

List the defined network filters

80. virConnectListAllNWFilters

returns list of all network fitlers

81. virNWFilterLookupByUUID

Try to lookup a network filter on the given hypervisor based on its UUID.

82. virNWFilterGetUUID

Extract the UUID unique Identifier of a network filter.

83. virNWFilterGetUUIDString

Fetch globally unique ID of the network filter as a string.

84. virConnectListInterfaces

list the running interfaces, stores the pointers to the names in @names

85. virConnectListDefinedInterfaces

list the defined interfaces, stores the pointers to the names in @names

86. virConnectListAllInterfaces

returns list of all interfaces

87. virConnectBaselineCPU

Computes the most feature-rich CPU which is compatible with all given host CPUs.

88. virConnectGetCPUModelNames

Get the list of supported CPU models.

89. virDomainSnapshotListNames

collect the list of snapshot names for the given domain

90. virDomainListAllSnapshots

returns the list of snapshots for the given domain

91. virDomainSnapshotListChildrenNames

collect the list of child snapshot names for the given snapshot

92. virDomainSnapshotListAllChildren

returns the list of child snapshots for the given snapshot

93. virDomainRevertToSnapshot

revert the domain to the given snapshot

94. virDomainGetBlockJobInfo

Get progress information for a block job

95. virDomainMigrateGetCompressionCache

Get current size of the cache (in bytes) used for compressing repeatedly transferred memory pages during live migration.

96. virDomainMigrateGetMaxSpeed

Get currently configured maximum migration speed for a domain

97. virDomainMigrate3

Migrate the domain object from its current host to the destination host given by dconn (a connection to the destination host).

98. virDomainMigrateToURI3

Migrate the domain object from its current host to the destination host given by URI.

99. virDomainSetBlockIoTune

Change the I/O tunables for a block device

100. virDomainGetBlockIoTune

Get the I/O tunables for a block device

101. virDomainBlockPeek

Read the contents of domain's disk device

102. virDomainMemoryPeek

Read the contents of domain's memory

103. virDomainGetDiskErrors

Extract errors on disk devices.

104. virNodeSetMemoryParameters

Change the node memory tunables

105. virNodeGetMemoryParameters

Get the node memory parameters

106. virNodeGetCPUMap

Get node CPU information

107. virNodeGetFreePages

Returns the number of available pages for a list of cells and page sizes

108. virNetworkGetDHCPLeases

Returns a list of dhcp leases for interfaces connected to the given virtual network

109. virDomainBlockCopy

Copy the guest-visible contents of a disk image to a new file described by destxml

110. virNodeAllocPages

Allocate or free some pages in the huge pages pool

111. virDomainGetFSInfo

Get a list of mapping information for each mounted file systems within the specified guest and the disks.

112. virDomainInterfaceAddresses

returns a dictionary of domain interfaces along with their MAC and IP addresses

113. virDomainGetGuestVcpus

returns a dictionary containing information regarding guest vcpus

results matching ""

    No results matching ""