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

Set the name of the box for "vagrant status" #1514

Open
brucejo75 opened this issue Dec 11, 2020 · 0 comments
Open

Set the name of the box for "vagrant status" #1514

brucejo75 opened this issue Dec 11, 2020 · 0 comments

Comments

@brucejo75
Copy link

brucejo75 commented Dec 11, 2020

When you execute vagrant status you will see the name of your instance as default.

To better identify your instances there are are a couple of name settings worth setting:

config.vm.hostname = "MYHOSTNAME"
config.vm.define "MYHOSTNAME"

and for the Hyper-V Manager, add vmname:

  config.vm.provider "hyperv" do |h|
    h.enable_virtualization_extensions = true
    h.linked_clone = true
+   h.vmname = "MYVMNAME"
  end

I just use MYHOSTNAME for MYVMNAME.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

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

No branches or pull requests

1 participant