I'm not exactly sure what I'm doing
First, there are different ip-addresses, the application Virtual Box itself on my Windows 10 desktop says
Host-only network details, IPv4 192.168.56.1 then there is the ip of the virtual web server itself, which is 10.0.2.15
I am trying to connect to this Windows 10 Virtual Box running a Debian 8 LAMP web server with filezilla.
I have set the network to bridged-adapter for the vm debian web server
I am trying to connect from a Linux laptop, both computers are in my house, both connected to the same WiFi.
I have tried to edit my Windows 10 firewall regarding the Virtual Box application.
I also modified the filezilla application settings on my linux laptop where the ip is determined externally.
I've been trying different stuff I am just not sure if I am going in circles.
The vm web server is working, when I search 10.0.2.15 in a browser, I see the index.php file I placed in /var/www/html directory.
I'd appreciate any help.
Can't connect to VM webserver.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Can't connect to VM webserver.
Going to suspect the network settings aren't the way they need to be. Post this info please: Minimal information needed to be able to help
-
GreenAce92
- Posts: 9
- Joined: 26. Sep 2015, 10:02
Re: Can't connect to VM webserver.
Hello scottgus1,
Thank you for your response. Here is my information.
Someone suggested to me to use NAT and port forward to 80, I'm going to try that as well but as requested here is my information.
I don't understand why most if not all of the commands for vm by terminal appear to be for linux. I tried them in command line with suspicion they were aimed for linux. I have installed it on a windows machine to run linux but I imagine I'm looking at the top-level part of the application eg. windows. At any rate I'll try to find the equivalent for each command.
Actually I might have guest enabled/installed, the little menu icons at the base of my vm window, I see Vt-x/Amd active
Version 5.0.10 on Windows 10 build version 10586.36
64 bit host with 16GB of RAM, Debian 8 VM web server has 4GB
I am going to say that guests is not installed, since I'm reading this virtualbox forum thread and it says that you need to enable hyperthreading, which I believe I do have that enabled by default but I didn't mess with that when installing virtual box. I'm not sure how to find out guest at this point.
Attached is VBoxGardening.log zipped
Thank you for your response. Here is my information.
Someone suggested to me to use NAT and port forward to 80, I'm going to try that as well but as requested here is my information.
I don't understand why most if not all of the commands for vm by terminal appear to be for linux. I tried them in command line with suspicion they were aimed for linux. I have installed it on a windows machine to run linux but I imagine I'm looking at the top-level part of the application eg. windows. At any rate I'll try to find the equivalent for each command.
Actually I might have guest enabled/installed, the little menu icons at the base of my vm window, I see Vt-x/Amd active
Version 5.0.10 on Windows 10 build version 10586.36
64 bit host with 16GB of RAM, Debian 8 VM web server has 4GB
I am going to say that guests is not installed, since I'm reading this virtualbox forum thread and it says that you need to enable hyperthreading, which I believe I do have that enabled by default but I didn't mess with that when installing virtual box. I'm not sure how to find out guest at this point.
Attached is VBoxGardening.log zipped
- Attachments
-
- VBoxHardening.zip
- (21.63 KiB) Downloaded 97 times
-
GreenAce92
- Posts: 9
- Joined: 26. Sep 2015, 10:02
Re: Can't connect to VM webserver.
Damn I don't even understand the difference between host and guest, it just occurred to me that guest is part of the Virtual box.
This is what I'm trying to do. I have two different computers, one is a laptop running linux, the other is a desktop with windows 10. The desktop has an i7 and I want to develop locally so I have virtual box running on the windows 10 desktop. In this virtualbox I have a debian 8 webserver running. Within the debian 8 "guest?" I can access the apache server by typing localhost in the url.
What I'm trying to do, is access that same file/webserver via the laptop which is a separate computer. I was under the impression that guest would be the linux laptop connecting to the windows 10 desktop virtual box debian 8 web server.
This is what I'm trying to do. I have two different computers, one is a laptop running linux, the other is a desktop with windows 10. The desktop has an i7 and I want to develop locally so I have virtual box running on the windows 10 desktop. In this virtualbox I have a debian 8 webserver running. Within the debian 8 "guest?" I can access the apache server by typing localhost in the url.
What I'm trying to do, is access that same file/webserver via the laptop which is a separate computer. I was under the impression that guest would be the linux laptop connecting to the windows 10 desktop virtual box debian 8 web server.
-
GreenAce92
- Posts: 9
- Joined: 26. Sep 2015, 10:02
Re: Can't connect to VM webserver.
Holy crap okay, never mind I'm an idiot.
I logged into my router, and saw the connected devices, the debian 8 server was under the ip 192... so I entered that into my laptop's url and voila, web server.
Sweet!
Sorry to have added useless data to your servers hehe
I logged into my router, and saw the connected devices, the debian 8 server was under the ip 192... so I entered that into my laptop's url and voila, web server.
Sweet!
Sorry to have added useless data to your servers hehe
-
GreenAce92
- Posts: 9
- Joined: 26. Sep 2015, 10:02
Re: Can't connect to VM webserver.
Spoke too soon I guess.
I am able to access the site via browser but cannot seem to connect by FTP/filezilla. I realize that's a filezilla problem not vb so I guess I will look there.
I am able to access the site via browser but cannot seem to connect by FTP/filezilla. I realize that's a filezilla problem not vb so I guess I will look there.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Can't connect to VM webserver.
Sometimes the best kind of help is the kind you get by plodding through it yourself until it starts working. Good on ya, mate! Likely you just need to tweak stuff in Filezilla or the firewall/port-forwarding to get FTP up.
The easiest way to open up a guest to the rest of the network is with Bridged. The guest gets an IP address on the network like any other PC and all other PCs on the network see it. You can set a static IP address on the guest's network connection within the guest OS if you want to. Only problem with Bridged is that some physical Wi-Fi adapters have poorly-written drivers and won't allow Bridged on Wi-Fi. Try newer drivers. Also, some routers won't allow two IP addresses to connect when they appear to come through one Wi-Fi connection. No way to predict whether it will work, just have to try it.
NAT is the easiest network setting to get your guest to attach to the internet. You can port forward through NAT to allow service access from the rest of the network, but there won't be full access from the network like there would be with Bridged.
Yes the guest is the OS you install in Virtualbox, in your case Debian, and the host is the physical PC.
Also, the VboxHardening log is used for when Virtualbox throws errors before the guest OS starts. If the guest OS is showing its bootup screen then Virtualbox switches to showing errors in the log for the guest itself, found in the GUI, right-click the desired guest, Show Log.
Glad you got it running!
The easiest way to open up a guest to the rest of the network is with Bridged. The guest gets an IP address on the network like any other PC and all other PCs on the network see it. You can set a static IP address on the guest's network connection within the guest OS if you want to. Only problem with Bridged is that some physical Wi-Fi adapters have poorly-written drivers and won't allow Bridged on Wi-Fi. Try newer drivers. Also, some routers won't allow two IP addresses to connect when they appear to come through one Wi-Fi connection. No way to predict whether it will work, just have to try it.
NAT is the easiest network setting to get your guest to attach to the internet. You can port forward through NAT to allow service access from the rest of the network, but there won't be full access from the network like there would be with Bridged.
Yes the guest is the OS you install in Virtualbox, in your case Debian, and the host is the physical PC.
Also, the VboxHardening log is used for when Virtualbox throws errors before the guest OS starts. If the guest OS is showing its bootup screen then Virtualbox switches to showing errors in the log for the guest itself, found in the GUI, right-click the desired guest, Show Log.
Glad you got it running!
-
GreenAce92
- Posts: 9
- Joined: 26. Sep 2015, 10:02
Re: Can't connect to VM webserver.
Thanks for the response scottgus1, I haven't succeeded yet, gotta work on the port 22 ssh/ftp stuff still...
I was thinking it may not really help me overall to have this type of local web developer (on another computer) where I still have to have an excess click (filezilla).
Right now when I develop I do it live online and I was thinking this was bad as far as the unfinished product being accessible, I may be paranoid in being concerned about indexing when it's not finished.
While the desktop computer has more power than my laptop computer which I prefer to develop on, it is not that much different from developing online except that it's not accessible.
Anyway, it is nice to know how to do this.
I've had problems with mysql/phpmyadmin and php parsing when installed on the laptop with the Mint "environment?"
But my vps runs debian 8 so I went to that instead and no surprise the installation went through without a hitch.
Anyway, I'm going to work on this again later today and refer to your post.
Right now I'm using a bridged, when I try the NAT it doesn't see the USB wireless receiver that I'm using for internet access on the desktop.
Thanks for your input.
I was thinking it may not really help me overall to have this type of local web developer (on another computer) where I still have to have an excess click (filezilla).
Right now when I develop I do it live online and I was thinking this was bad as far as the unfinished product being accessible, I may be paranoid in being concerned about indexing when it's not finished.
While the desktop computer has more power than my laptop computer which I prefer to develop on, it is not that much different from developing online except that it's not accessible.
Anyway, it is nice to know how to do this.
I've had problems with mysql/phpmyadmin and php parsing when installed on the laptop with the Mint "environment?"
But my vps runs debian 8 so I went to that instead and no surprise the installation went through without a hitch.
Anyway, I'm going to work on this again later today and refer to your post.
Right now I'm using a bridged, when I try the NAT it doesn't see the USB wireless receiver that I'm using for internet access on the desktop.
Thanks for your input.