Benefit of loading windows box without GUI=true vs. RDP to it?

54 views
Skip to first unread message

Yona

unread,
Feb 6, 2018, 10:40:34 AM2/6/18
to Vagrant
Hi all, 
I'm new to vagrant I plan on using a Windows Box  (jhakonen/windows-10-n-pro-en-x86_64) to install my programing IDE and tools (delphi) this is how all my developers can use the same IDE
I notice that all examples have     vb.gui = true remarked  or set to false
My Question:
Is there any benefit to connect to my windows VM running on my local computer using RDP vs. VB.GUI = TRUE ?

On a side note: When truing to run vagrant rdp on this box im getting an error that an other console is already open  


   

Alvaro Miranda Aguilera

unread,
Feb 7, 2018, 8:13:15 AM2/7/18
to vagra...@googlegroups.com
hello

are different consoles that may use the same/similar port/protocol

the vb.gui will use the Virtualbox Gui, that will be like working directly on the computer monitor (say going to the computer and plug a monitor there)

where RDP into will be using the network and may need a configuration.

If the vb.gui works for you I would say stick to it.


If you are familiar with rdp over th enetwork, then you need:
- add a private or public network or add port fwd to 3389
- ensure rdp is enabled and firewall is open
- ensure the user you want to use is allowed to use rdp
- your rdp client can use the box rdp version
- connect either by public/private IP and port 3389. Or the port redirect of localhost:3389


Alvaro.

--
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 the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/aec351c4-e966-46c8-a5b6-838aefc656af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Frankie Liu

unread,
Mar 27, 2018, 2:46:16 AM3/27/18
to Vagrant
Hello Alvaro,

I hope it is ok to reply here, I read docs but there is not much information on how to set it up correctly for rdp.
I tried various combinations of forwarded_ports, public_network

config.vm.network "forwarded_port", guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.vm.network "public_network"
 
  # config.vm.communicator = :winrm
  # config.winrm.host = "ip.of.the.host"
  # config.winrm.guest_port = "5986"
  # config.winrm.port = "55986"
  # config.winrm.transport = "ssl"
  # config.winrm.ssl_peer_verification = false

Note that I can connect via 127.0.0.1:33389 which comes from the message after
vagrant rdp.  I can connect from the host machine, but connections from other devices
in the network have been unsuccessful.  Could you let me know how to set it properly?
I think rdp and firewall seem to work because I can connect via loopback 127.0.0.1 using
xfreerdp -u vagrant 127.0.0.1:33389.  But connection from other network nodes doesn't
seem to work.

Thanks,

-f

Quoted from your previous post:

Alvaro Miranda Aguilera

unread,
Mar 27, 2018, 3:27:59 AM3/27/18
to vagra...@googlegroups.com
hello

exactly in the same way you will do with a VM without vagrant.


port fwd localhost 3389 -> 3389 allows you to connect from where that port is valid, ie localhost 

if you want to connect from the network

- check whats the IP the VM got from public_network
- check firewall allows incoming connection to port 3389
- profit

Thanks
Alvaro.


--
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 the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Message has been deleted
Message has been deleted

Frankie Liu

unread,
Mar 27, 2018, 1:40:07 PM3/27/18
to Vagrant
Hello Alvaro,

Using public_network did work, although I had to add some more configuration to get a DHCP assigned.

  config.vm.network "public_network", :bridge => 'eth0', :use_dhcp_assigned_default_route => true

For the forwarded_ports option

  config.vm.network "forwarded_port", guest: 3389, host: 3389, id: "rdp", auto_correct: true

This did not work, my understanding from reading the docs, is that I should be able to connect to the guest via the host's forwarded port, i.e.

  xfreerdp /u:vagrant /v:<host_ip>:3389

seems like it should have worked but it does not.  Am i doing something wrong here?

In virtualbox if I set the following port forward: Settings/Network/Adapter 1 , set to NAT, and Advanced/Forwarding:

Name: rdp
Protocol: TCP
Host IP: <host_ip>
Host Port: 3389
Guest IP: 10.0.2.15
Guest Port: 3389

This works and allows me to connect to the VM from another machine by simply
xfreerdp /u:vmuser /v:<host_ip>:3389

So I don't quite understand why this is not working by setting VagrantFile with forwarded_port configuration.

Thanks again,

-f


Alvaro Miranda Aguilera

unread,
Mar 27, 2018, 1:51:34 PM3/27/18
to vagra...@googlegroups.com
the port forward may be binding to 127.0.0.1 and not to 0.0.0.0 (any ip)

so may not be available using the host ip.

if public_network works, then you can use that.

alvaro

--
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 the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages