Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcsim: add options for ESXi/vCenter version #3560

Open
Syuparn opened this issue Sep 23, 2024 · 3 comments
Open

vcsim: add options for ESXi/vCenter version #3560

Syuparn opened this issue Sep 23, 2024 · 3 comments

Comments

@Syuparn
Copy link
Contributor

Syuparn commented Sep 23, 2024

Is your feature request related to a problem? Please describe.
While vcsim can change the API version through the option -api-version, ESXi/vCenter version cannot be changed.

# start vcsim
$ vcsim -api-version 8.0

# see vCenter info
$ govc about
FullName:     VMware vCenter Server 6.5.0 build-5973321 (govmomi simulator)
Name:         VMware vCenter Server
Vendor:       VMware, Inc.
Version:      6.5.0
Build:        5973321
OS type:      linux-amd64
API type:     VirtualCenter
API version:  8.0
Product ID:   vpx
UUID:         fb08b87b-b771-535a-8eb0-4a9ed5e45ee7

Describe the solution you'd like
vcsim has options to set the ESXi/vCenter version similar to -api-version.

# start vcsim
$ vcsim -api-version 8.0 -vpx-version 8.0.3

# see vCenter info
$ govc about | grep -i version
Version:      8.0.3
API version:  8.0
# start vcsim
$ vcsim -esx -api-version 8.0 -esx-version 8.0.3

# see ESXi info
$ govc about | grep -i version
Version:      8.0.3
API version:  8.0

Additional context
An option name -version should not be used as it may be confused with the version command vcsim version.

@dougm
Copy link
Member

dougm commented Sep 24, 2024

Hi @Syuparn , we could just set all 3 (api, vpx, esx) to the same value of -api-version. Would that work for you?
We have record+playback to satisfy more complex use-cases.

@Syuparn
Copy link
Contributor Author

Syuparn commented Sep 24, 2024

@dougm

we could just set all 3 (api, vpx, esx) to the same value of -api-version. Would that work for you?

It will work and sounds simpler. In this case, should we set version as x.y.z format (instead of x.y) to -api-version?

# set 8.0.3 instead of 8.0
$ vcsim -api-version 8.0.3

$ govc about | grep -i version
Version:      8.0.3
API version:  8.0

@dougm
Copy link
Member

dougm commented Sep 26, 2024

ok great. Yes, I think value of -api-version should be x.y.z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants