From 32d3f111121f3a9ebdd60e6b777cf49ab1f2f60d Mon Sep 17 00:00:00 2001
From: Chris Koeritz Configuring host-only networking for the VM makes the VM completely local
to your machine. The cakelampvm will not be accessible on the
internet or from the LAN, and can only be accessed by your host PC. Note: If the host-only or NAT network exist ahead of time, virtualbox may
+ complain about them even if they have the correct configuration.
+ This can be corrected simply by opening the VM settings and selecting the
+ appropriate network names again. To configure the host-only network, follow these steps: Additional information on host-only (and other) network adapter types is
- at: https://www.virtualbox.org/manual/ch06.html#network_nat_service
- Configure the Nat Network on virtualbox
+ at: https://www.virtualbox.org/manual/ch06.html#network_nat_service
The NAT (Network Address Translation) network allows the VM to get off of + the machine and onto the internet safely. It will use this interface + for any communication off of the host machine. Since the real IP + address of the VM is hidden behind the NAT firewall on Virtualbox, this + keeps the VM safe from attackers, and hence your machine stays safe as + well.
+To set up the NAT network, follow these steps:
ping cakelampvm.com
ping defaultcake.cakelampvm.com
ping mapsdemo.cakelampvm.com-
The ipconfig tool will provide helpful information about your current networking and DNS configuration:
ipconfig --all@@ -175,11 +186,12 @@ meow
Control Panel | Network & Sharing | click WiFI or Ethernet link near top right | click Adapter Settings on left | click on specific network device to modify | select Properties
+
{fill in rest}
On the host computer, look for the guest vm as a networked computer called cakelampvm. This should provide some network shares using Microsoft SMB protocol, and they can be attached to using the "developer" @@ -197,7 +209,7 @@ meow
sudo chmod g+w /var/www
Afterwards, the www folder should allow the developer user to create new folders at will.
-If you want to share a folder from the host to the guest, perhaps for driver updates or other conveniences, then make the share with these steps:
@@ -215,14 +227,21 @@ meowTo add a new website, you will need to pick one of the DNS options below - (A or B) depending on how you want to name the site. After the DNS - is updated, then follow the section after for creating a new apache conf - file.
-Assuming one has created a new folder in "www" called "greatsite", then - the new web site can be brought online on the vm with one of the following - options.
-To add a new website, you will first need to pick one of the DNS options + below (A or B) depending on how you want to name the site.
+Let us say a customer needs an application called "excalibur". It + will be a new subdomain within an existing domain, such as the + "cakelampvm.com" domain, meaning we want the VM to start answering + requests for "excalibur.cakelampvm.com".
+Run this command in a bash shell on the VM:
+add_domain excalibur.cakelampvm.com+
Done.
+Execute the following command to edit the DNS file for the cakelampvm -- 2.34.1