You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to define a custom state of a simulator instance (e.g. datacenters, networks, VMs, hosts) so that I don't have to remove the defaults and add my own at runtime. This would allow me to mimic what I have in my physical lab or even in production, and test different scenarios very quickly.
Or vcsim -vm 0 if you want everything except VMs. Similar for the other types.
The flags are hooked up to the Model fields, we could have an option to specify in a file instead of the switches:
% vcsim -h
Usage of vcsim:
-app int
Number of virtual apps per compute resource
-cluster int
Number of clusters (default 1)
-dc int
Number of datacenters (default 1)
-ds int
Number of local datastores (default 1)
-folder int
Number of folders
-host int
Number of hosts per cluster (default 3)
-pg int
Number of port groups (default 1)
-pod int
Number of storage pods per datacenter
-pool int
Number of resource pools per compute resource
-standalone-host int
Number of standalone hosts (default 1)
-vm int
Number of virtual machines per resource pool (default 2)
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Activity
dougm commentedon Jul 20, 2018
vcsim -dc 0and your inventory is emptyOr
vcsim -vm 0if you want everything except VMs. Similar for the other types.The flags are hooked up to the
Modelfields, we could have an option to specify in a file instead of the switches:govmomi/simulator/model.go
Lines 45 to 80 in 8d973c3
dougm commentedon Jul 20, 2018
The related flags:
dougm commentedon Oct 18, 2018
@jakerobinson do the flags above provide what you need?
github-actions commentedon May 26, 2021
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment
/remove-lifecycle stale.github-actions commentedon Mar 17, 2025
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.