sbcgua / sap-nw-abap-vagrant

Vagrant config for SAP NW developer edition
46 stars 15 forks source link

Option to specify a VM Name #5

Closed bmml1 closed 5 years ago

bmml1 commented 5 years ago

When trying to install a second instance there is an error message: A VirtualBox machine with the name 'Sap-nw752' already exists.

I would be cool to have the option to speficy the vm name as a command line option and be asked to give an alternative name if an instance with the default name already exists.

sbcgua commented 5 years ago

Good idea :+1: Please try the latest version

vagrant --vm-name=HelloWorld up 

Also see the updated readme. Should work, though I didn't test a lot. The name should be specifies for all subsequent runs ... although if you make a copy of vagrant folder for the second instance I guess it will be needed just on the first run ... not exactly sure, didn't try.

bmml1 commented 5 years ago

This works just fine! In the additional feature section there should also be a hint to speficy the name if one wants to ssh on the machine / run the addon.
e.g. vagrant --vm-name=HelloWorld ssh -c "sudo /vagrant/scripts/install_addons.sh"

Thanks :)

sbcgua commented 5 years ago

Good point. Done.

So if no more comments here, then I'm closing this one