Skip to content

Releases: vmware/govmomi

v0.34.2

08 Jan 04:36
Compare
Choose a tag to compare

Release v0.34.2

Release Date: 2024-01-08

πŸ’« vcsim (Simulator)

  • [4c8ffb2] Fix -method-delay option to update task states (#3323)

🧹 Chore

  • [96b6eb7] Update version.go for v0.34.2

⚠️ BREAKING

πŸ“– Commits

  • [96b6eb7] chore: Update version.go for v0.34.2
  • [4c8ffb2] vcsim: Fix -method-delay option to update task states (#3323)
  • [1c2c1c7] Fixes Missing Tags in AttachedTags (#3320)
  • [5592467] Changes to fix xml tag used for SnapshotId

v0.34.1

19 Dec 21:34
Compare
Choose a tag to compare

Release v0.34.1

Release Date: 2023-12-19

🧹 Chore

  • [754cb3a] Update version.go for v0.34.1

⚠️ BREAKING

πŸ“– Commits

  • [754cb3a] chore: Update version.go for v0.34.1
  • [dd8bbb4] Changes to add CNS fault CnsSnapshotCreatedFault

v0.34.0

12 Dec 21:49
Compare
Choose a tag to compare

Release v0.34.0

Release Date: 2023-12-12

🐞 Fix

πŸ’« API Changes

  • [31423b7] add object.Datastore.FindInventoryPath (#3267)
  • [d52f8ee] add Content Library update session file APIs (#3258)

πŸ’« vcsim (Simulator)

  • [4a09f19] add PbmQueryAssociatedProfiles method
  • [4cbd642] Fix [BUG] vcsim raises TypeError for RemoveSnapshotTask (#3298)
  • [04ccf69] handle HostNotConnected when saving inventory
  • [2f1fefa] fix MAC Addresses to be unique (#3279)
  • [e19137f] propagate VMwareDVSConfigSpec in CreateDVS_Task (#3264)
  • [a092311] emit DVS and Portgroup create events (#3263)
  • [c8a2fc2] Fix PropertyCollector to handle empty property (#3275)

🧹 Chore

  • [a5899af] Update version.go for v0.34.0

⚠️ BREAKING

πŸ“– Commits

  • [a5899af] chore: Update version.go for v0.34.0
  • [980d22d] fix: expose util for rest status return (#3309)
  • [4a09f19] vcsim: add PbmQueryAssociatedProfiles method
  • [e39527d] build(deps): bump actions/stale from 8 to 9
  • [4cbd642] vcsim: Fix [BUG] vcsim raises TypeError for RemoveSnapshotTask (#3298)
  • [e9a782a] build(deps): bump actions/setup-go from 4 to 5
  • [45188e1] Add default Historical Intervals to the simulator
  • [04ccf69] vcsim: handle HostNotConnected when saving inventory
  • [2f1fefa] vcsim: fix MAC Addresses to be unique (#3279)
  • [d32be09] simulator: fix dropped error
  • [e19137f] vcsim: propagate VMwareDVSConfigSpec in CreateDVS_Task (#3264)
  • [a092311] vcsim: emit DVS and Portgroup create events (#3263)
  • [31423b7] api: add object.Datastore.FindInventoryPath (#3267)
  • [c8a2fc2] vcsim: Fix PropertyCollector to handle empty property (#3275)
  • [d52f8ee] api: add Content Library update session file APIs (#3258)
  • [3942d8f] build(deps): bump github.com/google/uuid from 1.3.1 to 1.4.0
  • [09c7291] Add additional PBM methods

v0.33.0

25 Oct 16:21
Compare
Choose a tag to compare

Release v0.33.0

Release Date: 2023-10-25

πŸ’« govc (CLI)

  • [5264e83] add cluster.change '-ha-admission-control-enabled' flag
  • [3bcaf42] add option to enable hidden properties in import.{spec,ova} (#3111)

πŸ’« vcsim (Simulator)

  • [db0ba92] Handle prepare guest operations when svm is nil
  • [0754d75] fix ModifyListView to return unresolved references
  • [7f3a070] Remove extra devices in OVF Deploy w/ ConfigSpec

🧹 Chore

  • [f3c1fca] Update version.go for v0.33.0
  • [675eebd] remove refs to deprecated io/ioutil

⚠️ BREAKING

fix ModifyListView to return unresolved references [0754d75]:
api: view.ListView.{Add,Remove,Reset} methods now return unresolved references

πŸ“– Commits

  • [f3c1fca] chore: Update version.go for v0.33.0
  • [19726dc] Add functionality for checking whether the provided thumbprint is known to the soap client
  • [5264e83] govc: add cluster.change '-ha-admission-control-enabled' flag
  • [db0ba92] vcsim: Handle prepare guest operations when svm is nil
  • [0434fd2] vapi: add support for OperationID header
  • [0754d75] vcsim: fix ModifyListView to return unresolved references
  • [5569c01] build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0
  • [babee19] build(deps): bump chuhlomin/render-template from 1.7 to 1.8
  • [7f3a070] vcsim: Remove extra devices in OVF Deploy w/ ConfigSpec
  • [3bcaf42] govc: add option to enable hidden properties in import.{spec,ova} (#3111)
  • [675eebd] chore: remove refs to deprecated io/ioutil

v0.32.0

28 Sep 20:55
Compare
Choose a tag to compare

Release v0.32.0

Release Date: 2023-09-28

⚠️ BREAKING

camelCase json output [db5b3d8]:
This change adds camelCase (lower-case 1st character) json tags for govc types

EnvironmentBrowser improvements [524ca25]:
removed object.VirtualMachine.QueryConfigTarget method

  • Use object.VirtualMachine.EnvironmentBrowser().QueryConfigTarget instead

🐞 Fix

  • [bed9513] case insensitive govc import.ova PropertyMapping (#3245)

πŸ’‘ Examples

  • [f2aaee5] add ListView example for waiting on updates to tasks

πŸ’« API Changes

  • [a91eb5e] disable HTTP Keep-Alive for direct ESX connections

πŸ’« govc (CLI)

πŸ’« vcsim (Simulator)

πŸ“ƒ Documentation

  • [258ee24] update govc jq examples with correct case (#3007)

🧹 Chore

  • [a8d705a] Update version.go for v0.32.0

πŸ“– Commits

  • [a8d705a] chore: Update version.go for v0.32.0
  • [f2aaee5] examples: add ListView example for waiting on updates to tasks
  • [a91eb5e] api: disable HTTP Keep-Alive for direct ESX connections
  • [db5b3d8] govc: camelCase json output (#3007) (#3243) (#3242) (#3241)
  • [524ca25] vcsim: EnvironmentBrowser improvements
  • [bed9513] fix: case insensitive govc import.ova PropertyMapping (#3245)
  • [6c19b99] emacs: update for v0.31.0 release (#3007)
  • [258ee24] docs: update govc jq examples with correct case (#3007)
  • [d49e401] vcsim: set HostSystem.Config.Host (#3221)

v0.31.0

25 Sep 19:24
Compare
Choose a tag to compare

Release v0.31.0

Release Date: 2023-09-25

⚠️ BREAKING

  • [b594bf1] Move to main

    Changing GoVmomi's default branch from master to main will likely result in dependents needing to repoint their clients and other integrations to the new, default branch.

  • [9920086] Generate JSON tags

    Updating the vim25/types with camelCased, JSON tags affects the output of the govc command when using the -json flag to emit results as JSON. Field names that used to be PascalCased will now be camelCased. Queries for tools that parse JSON, such as jq, will need to be updated to use the new camelCased fields.

    This change was made to support marshaling the eam, pbm, sms, vim, and vslm types to/from JSON using OpenAPI JSON discriminators.

  • [4f9f126] Change string to *string for Item.Description and Library.Description in library package

    • Test against a VC testbed

      Sending a UpdateLibraryItem request with this change, and set the new description to "". The original item description was "virtualmachinepublishrequest.vmware.com: 6b0d06ad-8e18-4881-a806-2a7c8a7e1b4b", after this UpdateLibraryItem request succeeded, the item description was set to "". While before this change, it would be a no-op for the description.

    • Test using govc

      • Update Library

        Create a library:
        ➜  govmomi git:(issue-3048) βœ— govc library.create -d "description-1" cl-1
        495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1
          Description:        description-1
          Version:            2
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
        Update the library description with new string:
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.update -d "new description" 495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1
          Description:        new description
          Version:            3
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
        Update the item name, description is not erased.
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.update -n "cl-1-new" 495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1-new
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1-new
          Description:        new description
          Version:            4
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
        Update the library description with empty string:
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.update -d ""
        495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1-new
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1-new
          Description:
          Version:            5
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
      • Update Library Item

        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.update -d "item-2" /cl-1/image-2
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info /cl-1/image-2
        Name:                   image-2
          ID:                   0dc7df56-31e0-47dc-8b0a-6a33279ddccc
          Path:                 /cl-1/image-2
          Description:          item-2
          Type:                 ovf
          Size:                 2.0GB
          Created:              Wed Feb 15 23:05:15 2023
          Modified:             Fri Feb 17 19:29:54 2023
          Version:              3
          Security Compliance:  true
          Certificate Status:   INTERNAL
        
        Update item name:
        govmomi git:(issue-3048) βœ— ~/go/bin/govc library.update -n "image-2-new" /cl-1/image-2
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info /cl-1/image-2-new
        Name:                   image-2-new
          ID:                   0dc7df56-31e0-47dc-8b0a-6a33279ddccc
          Path:                 /cl-1/image-2-new
          Description:          item-2
          Type:                 ovf
          Size:                 2.0GB
          Created:              Wed Feb 15 23:05:15 2023
          Modified:             Fri Feb 17 19:31:44 2023
          Version:              4
          Security Compliance:  true
          Certificate Status:   INTERNAL
        
        Update item description to empty string
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.update -d "" /cl-1/image-2-new
        ➜  govmomi git:(issue-3048) βœ— ~/go/bin/govc library.info /cl-1/image-2-new
        Name:                   image-2-new
          ID:                   0dc7df56-31e0-47dc-8b0a-6a33279ddccc
          Path:                 /cl-1/image-2-new
          Description:
          Type:                 ovf
          Size:                 2.0GB
          Created:              Wed Feb 15 23:05:15 2023
          Modified:             Fri Feb 17 19:32:56 2023
          Version:              5
          Security Compliance:  true
          Certificate Status:   INTERNAL
        

🐞 Fix

  • [8f9e549] govc vm.clone failure when using 'cluster' option (#3208)
  • [b22f730] govc datacenter.info VM count with multiple DCs
  • [65814f0] Update some goreleaser deprecated fields (#3181)
  • [b4eac19] check the error chain when validating if it's x509 error (#3174)
  • [86cadf2] Fix the gorelease
  • [1711a84] avoid modifying client transport outside of NewClient (#3161)
  • [313aa85] share http.Transport with service clients (#3039)
  • [f81f3b3] grep warnings during generating usage documentation
  • [2d11115] support binary and dateTime in JSON (#3127)
  • [c4ffe46] add esxcli.Fault and revert Error() string (#3072)
  • [93cb079] byte, float and int (de) serialization (#3121)
  • [8bc2caa] avoid govc -verbose flag panic if an UpdateSet is nil (#3088)
  • [9ba1b85] include StoragePod Datastore children in ContainerView (#3094)
  • [8b00a93] only limit the number of samples generated to maxSample when maxSample is greater than 0 and the number of samples to generate is greater than maxSample Closes: #3097 (#3097)
  • [4ed0763] support govc ls -xml flag (#3053)
  • [8554329] Pin the result limit of ssoadmin client to its MAX (#3004)

πŸ’‘ Examples

πŸ’« API Changes

  • [a03f473] Fix errors w 8.0U2 GA update
  • [515df5d] Update generated types to vSphere 8.0U2 GA
  • [b7ceede] Prep to update types to vSphere 8.0U2 GA
  • [ccd07a0] Update generated types to vSphere 8.0U1c GA
  • [4c00586] Prep to update types to vSphere 8.0U1c GA
  • [5431c33] Type/field comments for data structures; API versions
  • [4b2de28] Add SDK support for VM data sets (#3050)
  • [25865e5] set inventory path in SearchIndex.FindByInventoryPath (#3095)
  • [38d0ac0] Add JSON transport for vim25 (#3062)
  • [0938fba] Add ServerGuid to gen'd MoRef
  • [e09a412] support find.NetworkList by ID (#2626)
  • [e8fa981] support find.Network by cluster path
  • [4e6d642] JSON Discriminators for vim25/types
  • [9920086] Generate JSON tags

πŸ’« govc (CLI)

  • [c4d851b] Add CLI support for VM data sets (#3050)
  • [02f353d] Command to print device/backings model as tree
  • [af7833b] Fix memory aliasing in for loop (gosec G601)
  • [e17d884] add -file flag for cluster.module.rm
  • [e34c721] Add CLI device protocol support for vm.network.add (#3167)
  • [48bdfad] Add --help
  • [28014f9] Add general usage message (#3054)
  • [e5f3cd0] add detail error message for host.esxcli commands (#3073)
  • [81733d0] add cluster.mv command (#2524)
  • [daaaca0] Add support for CNS volume snapshots
  • [477bf69] Support JSON protocol using environment variable (#3062)
  • [b8007c4] dont check poweredOn for vm.console vmrc requests (#2127)
  • [6b34770] add sso.idp.ldap.update command (#3057)
  • [e5b2aa3] Add feature VM IOMMU enablement support (#3055)
  • [f4c678a] Add checksum validation to govc import.ova (#1978)
  • [e935b5a] Add feature to get and set default idp (#3023)

πŸ’« vcsim (Simulator)

  • [35ec7c3] Add simulator support for VM data sets (#3050)
  • [c77de71] Introduce separation btw new service instance & infra creation
  • [2b5c457] add interactive debug github action stage
  • [9b2ef98] use docker event for efficient monitoring
  • [6f34f13] container backing respects changes via reconfigure
  • [6248cbf] create underlay network for pNICs in container-backed hosts
  • [6b7b0df] per-host OptionManager instances and differentiated roles
  • [387dc6e] support container backing for hosts
  • [fdb4d84] untangle container/VM to allow reuse of container logic for hosts
  • [9d8380c] Fix ...
Read more

v0.30.7

04 Aug 03:16
Compare
Choose a tag to compare

Release v0.30.7

Release Date: 2023-08-04

🐞 Fix

  • [cd0c259] Update some goreleaser deprecated fields (#3181)

πŸ’« vcsim (Simulator)

  • [3dac2e7] Fix RefreshDatastore to return a valid response (#3198)
  • [fe7a0ac] add PerformanceManager counter values

🧹 Chore

  • [46fd9d2] Update version.go for v0.30.7

⚠️ BREAKING

πŸ“– Commits

  • [46fd9d2] chore: Update version.go for v0.30.7
  • [3dac2e7] vcsim: Fix RefreshDatastore to return a valid response (#3198)
  • [fe7a0ac] vcsim: add PerformanceManager counter values
  • [552dfab] build: quote golang version in release file to workaround issue in github action Close #3179 (#3179)
  • [cd0c259] fix: Update some goreleaser deprecated fields (#3181)

v0.30.5

27 Jun 00:52
Compare
Choose a tag to compare

Release v0.30.5

Release Date: 2023-06-27

🐞 Fix

  • [03aa9dc] avoid govc -verbose flag panic if an UpdateSet is nil (#3088)
  • [b366e94] include StoragePod Datastore children in ContainerView (#3094)
  • [ae6efc9] only limit the number of samples generated to maxSample when maxSample is greater than 0 and the number of samples to generate is greater than maxSample Closes: #3097 (#3097)
  • [b129008] support govc ls -xml flag (#3053)

πŸ’‘ Examples

πŸ’« API Changes

  • [afd45d6] set inventory path in SearchIndex.FindByInventoryPath (#3095)

πŸ’« govc (CLI)

  • [ecca414] dont check poweredOn for vm.console vmrc requests (#2127)

πŸ’« vcsim (Simulator)

  • [844274f] set StandbyMode default to "none"
  • [a405207] Add RUN.env flag to inject environment variables to container-backed VM
  • [3466b11] Fix FindByInventoryPath to handle root folder (#3119)
  • [0473736] Add CSV format support to QueryPerf API (#3103)
  • [d46fe80] add ssoadmin user and group management (#2852)

🧹 Chore

  • [5373c14] Update version.go for v0.30.5
  • [e2f14cd] add missing guest OS IDs

⚠️ BREAKING

πŸ“– Commits

  • [5373c14] chore: Update version.go for v0.30.5
  • [844274f] vcsim: set StandbyMode default to "none"
  • [a405207] vcsim: Add RUN.env flag to inject environment variables to container-backed VM
  • [e2f14cd] chore: add missing guest OS IDs
  • [3466b11] vcsim: Fix FindByInventoryPath to handle root folder (#3119)
  • [3afdbf2] Add RUN.port.xx flag to publish ports on container backed VM
  • [03aa9dc] fix: avoid govc -verbose flag panic if an UpdateSet is nil (#3088)
  • [0473736] vcsim: Add CSV format support to QueryPerf API (#3103)
  • [b366e94] fix: include StoragePod Datastore children in ContainerView (#3094)
  • [ae6efc9] fix: only limit the number of samples generated to maxSample when maxSample is greater than 0 and the number of samples to generate is greater than maxSample Closes: #3097 (#3097)
  • [afd45d6] api: set inventory path in SearchIndex.FindByInventoryPath (#3095)
  • [16a58c2] Make mounting DMI information optional with docker-backed vcsim
  • [b129008] fix: support govc ls -xml flag (#3053)
  • [ecca414] govc: dont check poweredOn for vm.console vmrc requests (#2127)
  • [46bf240] examples: add rest.Client.LoginByToken
  • [d4e3142] examples: add session.Manager.LoginByToken (#3037)
  • [d46fe80] vcsim: add ssoadmin user and group management (#2852)

v0.30.4

16 Mar 18:26
Compare
Choose a tag to compare

Release v0.30.4

Release Date: 2023-03-16

πŸ’« API Changes

  • [23a6824] support find.Network by cluster path
  • [f4f6a5a] support find.NetworkList by ID (#2626)

πŸ’« govc (CLI)

🧹 Chore

  • [4561966] Update version.go for v0.30.4

⚠️ BREAKING

πŸ“– Commits

  • [4561966] chore: Update version.go for v0.30.4
  • [5232890] govc: Add feature VM IOMMU enablement support (#3055)
  • [23a6824] api: support find.Network by cluster path
  • [f4f6a5a] api: support find.NetworkList by ID (#2626)

v0.30.2

01 Feb 04:50
Compare
Choose a tag to compare

Release v0.30.2

Release Date: 2023-02-01

🐞 Fix

  • [4136fd8] Pin the result limit of ssoadmin client to its MAX (#3004)

πŸ’« vcsim (Simulator)

🧹 Chore

  • [9078b0b] Update version.go for v0.30.2

⚠️ BREAKING

πŸ“– Commits

  • [9078b0b] chore: Update version.go for v0.30.2
  • [997d9dd] vcsim: add guest.net.ipConfig
  • [4136fd8] fix: Pin the result limit of ssoadmin client to its MAX (#3004)