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

Rename virtualbox VM names to predictable [ci skip] #139

Merged
merged 4 commits into from
Sep 5, 2018

Conversation

dmi3mis
Copy link
Contributor

@dmi3mis dmi3mis commented Sep 4, 2018

Hi!
I suggest you to add this to make virtualbox vm names more predictable.
Now i suspect that virtualbox vm names are slightly random.

cfg.vm.provider "virtualbox" do |vb, override|
...
vb.name = "name.windomain.local"
...
end

Hi!
I suggest you to add this to make virtualbox vm names more predictable.
Now i suspect that virtualbox vm names are slightly random.

cfg.vm.provider "virtualbox" do |vb, override|
...
vb.name = "name.windomain.local"
...
end
@dmi3mis
Copy link
Contributor Author

dmi3mis commented Sep 4, 2018

Let me explain.
Here what i see now in Virtualbox Manager
screenshot_120
Last VM on screenshot is the same dc but after i changed name.
This change makes VM file path more predictable too.

screenshot_121

Copy link
Owner

@clong clong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this PR! Two things need to happen before merge:

  1. Change logger.windomain.local to logger
    2.Add v.vmx["displayname"] = $hostname (where $hostname is the name of the host) to the vmware_fusion and vmware_desktop sections so that this stays consistent across VBox and VMware

@@ -20,6 +20,7 @@ Vagrant.configure("2") do |config|

cfg.vm.provider "virtualbox" do |vb, override|
vb.gui = true
vb.name = "logger.windomain.local"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger is not part of the domain, and should therefore just be "logger"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

Copy link
Contributor Author

@dmi3mis dmi3mis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added vm displaynames to vmware profiles

@clong
Copy link
Owner

clong commented Sep 5, 2018

Looks good, thank you

@clong clong changed the title Rename virtualbox VM names to predictable Rename virtualbox VM names to predictable [ci skip] Sep 5, 2018
@clong clong merged commit ef84579 into clong:master Sep 5, 2018
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

Successfully merging this pull request may close these issues.

2 participants