0

I'm not sure where to start with this one. (Warning, this could be a virtualbox question and not an Ubuntu question)

I have ubuntu 14.04.02_64 running in virtual box 5.0.16r on a windows 10 machine.

This was a clean install from a week ago. My first step was to install the AMP in LAMP using the instructions at https://www.howtoforge.com/ubuntu-lamp-server-with-apache2-php5-mysql-on-14.04-lts

for the last week, I've been using this VM and successfully connecting to the internet through the NAT network connection. No problems.

This evening I messed with the apache2 settings, using the instructions at https://www.howtoforge.com/ubuntu-lamp-server-with-apache2-php5-mysql-on-14.04-lts (during which time I pointed my local host to /home/server/public_html [yes, the machine's name is "server" and no, it's not a server version of ubuntu])

here's where it gets weird.

I had noticed yesterday that my clipboard was not being shared from the host (win10) into the ubuntu box, and decided to restart the VM.

Before I restarted I had internet connectivity in the VM.

After the restart the VM came up and informed me that I didn't have a network connection.

I went out to Virtual box and sure enough, my network settings showed "attached to" set to blank, so I set it back to NAT and restarted. - No joy

I did a search for "ubuntu disconnected you are now offline" (the text of the message) and find a lot of people not being connected in the first place.

For what I'm doing I don't have to have internet connectivity, I'm just working in localhost (learning php and mysql), but this seemed like the perfect opportunity to learn through doing, so here we are.

Is it weird that I lost connection after playing with the apache2 settings. Is the lack of clipboard sharing a symptom or just a red-herring?

How do I trouble shoot this, I've never been a network person so I'm not sure what basic data I should be putting in this question.

1 Answers1

0

There are 2 Issues you have reported from what I could understand and this is NOT related to Apache settings.

  1. Network Connectivity
  2. Clipboard Sharing

The clipboard sharing can be enabled/disabled in the Vbox after starting it. By > devices->Shared clipboard ->bidirectional or one way if you prefer.

The network connectivity can be enabled by two ways, if you select NAT, be sure to configure it using the networking applet in the right conner.

The alternative is to use the networking settings in Vbox to "Bridged Mode". And after starting the instance, go to the network settings and use DHCP if your router/switch can assign additional IPs or else you can try assigning them yourselves.

Let me know, if this solved your issue.