Thinking of vagrant sessions free of network artifacts. By this i mean without the default nat network so, you only see the networks relevant to the session your running. Instead, it could setup and use serial consoles so "vagrant console" could be added to "ssh" and "rdp". In some ways, this would be more effort and complexity, so i dont think it should be the default, but it would be good for some sessions. windows has an "emergency mangement service" that can provide a shell on the serial console.
The relevant code is already written as plugins, like the vagrant-serial plugin. for the libvirt provider. its simply "virsh $guest console". for gui display, instead of vagrant rdp, in this case you could simply enable the gui from the provider. for libvirt, virt-viewer (or local spice/vnc client), for virtualbox VBoxManage modifyvm and showvminfo to local rdp client. maybe "vagrant rdp" could be expanded to optionally use the provider. since user interaction is interactive anyway, "automating" the display start isnt as important as the non interactive parts. In some ways, this would add effort and complexity, so i dont think it should be the default. provisioning and host file access would be limited. most guest systems could use mtp for ptp for host file access. provisioning would end up with simple shell commands, or some guests in the session running provisioning software. The only practical reasons i can think of for doing this is simulating a router where you want to do something "all networks" instead of "all networks, except the vagrant utility network", or trying to fool something/someone on that network. like a honeypot or training / testing. wrote some scripts a decade ago that generated networks of qemu instances configured with expect on their serial consoles. one of the design goals was not to have any artifacts of the scripts that generated it. now i laugh at that when i see the good uses vagrant makes with those artifacts. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
