update PATH of guest vm using vagrantfile

0 votes

I have been trying to export the $PATH of a guest vm to be able to use the minishift command. This is what I have in the Vagrantfile, but I am unable to figure out, why it is not working?Can anyone please help me with this?

mvm.vm.provision :shell, :inline => "echo 'export PATH=$PATH:~/minishift-1.7.0-linux-amd64' >>~/.bashrc"
Apr 13, 2018 in DevOps & Agile by anonymous
1,130 views

1 answer to this question.

0 votes

You can try the following command: I hope it will work for you.

mvm.vm.provision :shell, :inline => "echo 'export PATH=$PATH:/home/vagrant/minishift-1.7.0-linux-amd64' >>/home/vagrant/.bashrc"
For some reason Vagrant is not interpreting correctly.
I hope it will work for you.
answered Apr 13, 2018 by shubham
• 7,340 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to set up a VM with KVM/qemu without VitualBox using Vagrant

Start the vagrant box using: vagrant up --provider=kvm But ...READ MORE

answered Apr 11, 2018 in DevOps & Agile by ajs3033
• 7,300 points
2,400 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Jenkins instance when opened using public address of AWS is giving permission denied

Hi@Kavita, You need to create a rule in ...READ MORE

answered Oct 7, 2020 in DevOps & Agile by MD
• 95,460 points
1,005 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,925 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+5 votes
2 answers

Wildfly Swarm: Specific configuration of the Keycloak Backend environment

I worked on a swarm project which ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by shubham
• 7,340 points
2,213 views
+2 votes
5 answers

main roles of DevOps

Can you please brief about the roles ...READ MORE

answered Oct 16, 2018 in DevOps & Agile by Haider
1,861 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP