Listing shared vms

16 views
Skip to first unread message

Jalal Araidah

unread,
Apr 8, 2015, 5:34:26 PM4/8/15
to vagra...@googlegroups.com
Hi

I created a couple of virtual machines, I changed directory to each one of them, and did :
vagrant share --ssh

Is there a way to list what vms are shared from the command line ? I do realize they are listed under 'shares' in atlas.hashicorp.com, but I know
to show from the CLI

TIA.

Alvaro Miranda Aguilera

unread,
Apr 8, 2015, 6:57:13 PM4/8/15
to vagra...@googlegroups.com
Hello,

My understanding is the process keep running on the command line,
doesn't go to background.. so if this is you doing the share, you
should have the window open with the vagrant share command..

rite?
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jalal Araidah

unread,
Apr 9, 2015, 9:01:10 AM4/9/15
to vagra...@googlegroups.com
This is what I did :

[jalal@fed21 ~]# ls vagrants
centos61  ubuntu8 debian7

cd centos61
vagrant share --ssh &
cd ..


cd ubuntu8
vagrant share --ssh &
cd ..


cd debian7
vagrant share --ssh &
cd ..


You mean I could do ps aux |grep 'vagrant share' ??

Alvaro Miranda Aguilera

unread,
Apr 9, 2015, 7:16:12 PM4/9/15
to vagra...@googlegroups.com
use something like screen or tmux

I suggest tmux, as you can disconnect and reconnect to the running session

tmux
ctrl-b c
command 1
ctrl-b c
command 2

control-b 0 go to term0
control-b 1 go to term1

control-b d disconnect

then later

tmux a

Alvaro.

Jalal Araidah

unread,
Apr 10, 2015, 5:39:16 PM4/10/15
to vagra...@googlegroups.com
Thank you so much!

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/8uoYhaU3Lyw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages