vagrant serial

636 views
Skip to first unread message

Big Moozer

unread,
Jul 16, 2015, 1:12:06 PM7/16/15
to vagra...@googlegroups.com
Hi all

I want to do "vagrant up" and then access the console of the virtual machine using a serial connection.
I am thinking something like doing "vagrant serial" instead of "vagran ssh" or "vagrand rdp".

I found a discussion about it from 2011.
https://groups.google.com/forum/#!searchin/vagrant-up/serial/vagrant-up/E3a_fY4n0L0/Xll6XCH18QkJ

Is there any progress on this?
Is it implemented?
Are there plugins that can help with this?

Any pointers will be appreciated.

regards
Moozer

Artem Yakimenko

unread,
Jul 18, 2015, 10:56:20 AM7/18/15
to vagra...@googlegroups.com
Hi,

It's a bit old, so not sure if it's working or not, but maybe that's what you're looking for?:

Cheers,
A.

Big Moozer

unread,
Jul 21, 2015, 5:43:03 PM7/21/15
to Vagrant
hi,

Thanks for the suggestion.

This plug-in maps a serial port on the guest to a tcp/ip port.

I'm looking for a way not to depend on the actual networking of the guest.

The console is used a lot in network equipment, so you are not dependent on ip addresses, firewall rules and such - so that is what I am aiming for.
E.g. on a linux machine adding some kernel parameter
  console=tty0 console=ttyS0,115200n8
allows you to access the console directly from the host's command line using something like
  $ virsh console <domain>

This is how it works with Libvirt, I suppose Virtualbox has something similar.

It just seems so possible with vagrant supporting both "vagrant ssh" and "vagrant rdp". There "just" seems to missing a file here:
  https://github.com/mitchellh/vagrant/tree/master/plugins/communicators
and a "serial" command here
  https://github.com/mitchellh/vagrant/tree/master/plugins/commands

Any way, thanks for taking an interest.
Regards
Moozer

dragon788

unread,
Aug 3, 2015, 1:45:18 PM8/3/15
to Vagrant
Hi Big Mozer,
What you are referring to as "missing" is probably a communicator plugin utilizing the serial port as the console. It may be feasible to create a plugin for it, but the demand is probably vanishingly small as most people can easily use the networking options (NAT/Bridged/etc) to manage the VM using a virtual network connection. If Libvirt supports it, I think there is a vagrant plugin to manage libvirt machines, but I wouldn't be surprised if Virtualbox and VMware don't support it, because they have been primarily GUI driven tools, and only been slowly that there have been more "power user" options to manage things via the command line and as headless machines with only networking.

Big Moozer

unread,
Aug 5, 2015, 9:11:43 AM8/5/15
to Vagrant
I am using the libvirt plugin. It works.
https://github.com/pradels/vagrant-libvirt

And I agree. It is not a feature that will be used much, but maybe someone finds the time and need to implement it :-)

regard
Moozer

Eric Pulvino

unread,
Mar 11, 2016, 1:51:00 PM3/11/16
to Vagrant
Moozer,
    I'm running into a similar issue, also in the simulation of large network topologies. I think Libvirt will make more sense for these as well. That being said, Libvirt also has some real benefits for parallelization which come into play for larger simulations so me being forced to use it isn't the end of the world I suppose. I found the vagrant-serial plugin to be busted in my experimentation with it as well.

-Eric

Ethan S.

unread,
Mar 11, 2016, 11:15:16 PM3/11/16
to Vagrant

I discovered you can also enable some form of serial terminal via grub, but that's potentially still network limited unless you can create a serial port in your virtualization platform of choice attached to the same.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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/yP0KWgb9mps/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/296e0cfc-6e95-4a56-bca6-5faf4cf1a0cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages