Question about integrating guest LAMP server in Windows
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Question about integrating guest LAMP server in Windows
So here's the thing. I've found that Apache/MySQL/PHP is easier to setup in Linux than in Windows, so I'm looking for a way to run a virtual machine with the Ubuntu server and edit settings and stuff like that from there, but manage the actual files, directories and view the sites from Windows. Is there a way to accomplish this, or maybe an alternative?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Question about integrating guest LAMP server in Windows
You can connect to the Guest using SSH, so you can control the VM from Windows. Other settings, like the database can be used with phpmyadmin. Install it on the Guest (if it isn't already), configure it for your current MySQL install and with the proper network settings (check the Manual for the different options you have available, chapter 6), you can mange it from the Host browser.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Question about integrating guest LAMP server in Windows
Thanks, but how can I see the site from the host? Is the guest assigned an IP address?
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Question about integrating guest LAMP server in Windows
Read the networking section in the user guide.
If you want to make the VM accessible to other PCs on your LAN choose a Bridged network. With this the VM with pick up its IP address from whatever DHCP host is serving the LAN. If the host is running DNS, then it will register itself.
If you want to use the VM only inside host PC then choose a Host Network.
Knowing what the IP address is is a little more problematic. It depends on how it acquires it. The easiest way is to run ifconfig inside the VM and then put an entry in your %windir%\system32\drivers\etc\hosts file.
If you want to make the VM accessible to other PCs on your LAN choose a Bridged network. With this the VM with pick up its IP address from whatever DHCP host is serving the LAN. If the host is running DNS, then it will register itself.
If you want to use the VM only inside host PC then choose a Host Network.
Knowing what the IP address is is a little more problematic. It depends on how it acquires it. The easiest way is to run ifconfig inside the VM and then put an entry in your %windir%\system32\drivers\etc\hosts file.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Question about integrating guest LAMP server in Windows
I've tried but no luck. This is the thing: no matter what I do, I can't get it to have connectivity to Internet and the host machine at the same time. Could someone give more precise help, please?
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Question about integrating guest LAMP server in Windows
Use a Bridged Network. This should do the trick.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Question about integrating guest LAMP server in Windows
That doesn't work. It can't resolve domain names, and its IP address is 127.0.0.1, which is not what I want.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Question about integrating guest LAMP server in Windows
That's your loopback address. You need to have more than one NIC listed in ifconfig output. What do you get when you enter ifconfig -a? If you don't run a DHCP server on your network, like a router, then the Guest won't get an IP address.ReyJavikVI wrote:That doesn't work. It can't resolve domain names, and its IP address is 127.0.0.1, which is not what I want.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Question about integrating guest LAMP server in Windows
I ran ifconfig -a, but still the only IP address I see is 127.0.0.1. However, in the Ethernet section there is a MAC address. I don't know if that's useful, but it's there.
Could this have something to do with the fact that I have wireless? The manual says that wireless is supported in recent versions of VirtualBox.
Could this have something to do with the fact that I have wireless? The manual says that wireless is supported in recent versions of VirtualBox.
-
baf
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Re: Question about integrating guest LAMP server in Windows
Post the output from ifconfig -a here. If we don't see it we can not check it.
How is your hosts wireless configured? Dhcp? Static ip address?
How is your hosts wireless configured? Dhcp? Static ip address?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
My way: "You live as long as you learn".
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Question about integrating guest LAMP server in Windows
If ifconfig -a doesn't show an eth0 or similar, you don't have a NIC defined in the VM settings. Or the module isn't loaded, which I doubt.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Question about integrating guest LAMP server in Windows
Wireless with DHCP is configured on the host and works correctly. This is the output from ifconfig -a:
Hope this helps
Code: Select all
eth4 Link encap:Ethernet HWaddr 08:00:27:98:7b:9a
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11 Base address:0xc020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Question about integrating guest LAMP server in Windows
That certainly helps. I'm pretty sure that your Guest OS config is for eth0, or eth1 at most. It doesn't have anything for eth4. You need to remove the following file, which will be regenerated when you reboot the Guest.
/etc/udev/rules.d/70-persistent-net.rulesNow it should set the configuration you made for eth0.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
ReyJavikVI
- Posts: 39
- Joined: 26. May 2009, 00:21
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu, Windows 7, Gentoo
Re: Question about integrating guest LAMP server in Windows
Thank you so much!
Now just a little question: can I give it a static IP address?
Now just a little question: can I give it a static IP address?