-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
127 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Proxy Configuration | ||
|
||
If you are using a proxy with basic authentication (not NTLM), you will have to configure it for Bundler and Vagrant. | ||
* From your host command line do | ||
``` | ||
SET HTTP_PROXY=http://_XXX.XXX.XXX.XXX_:_port_ | ||
SET HTTPS_PROXY=ttp://_XXX.XXX.XXX.XXX_:_port_ | ||
SET HTTP_PROXY_USER=_proxyuser_ | ||
SET HTTPS_PROXY_USER=_proxyuser_ | ||
SET HTTP_PROXY_PASS=_userpasswd_ | ||
SET HTTPS_PROXY_PASS=_userpasswd_ | ||
``` | ||
on a Windows host, or | ||
```export HTTP_PROXY=http://_XXX.XXX.XXX.XXX_:_port_ | ||
|
||
export HTTPS_PROXY=ttp://_XXX.XXX.XXX.XXX_:_port_ | ||
export HTTP_PROXY_USER=_proxyuser_ | ||
export HTTPS_PROXY_USER=_proxyuser_ | ||
export HTTP_PROXY_PASS=_userpasswd_ | ||
export HTTPS_PROXY_PASS=_userpasswd_ | ||
``` | ||
on a Linux host. | ||
* From the command line `vagrant plugin install vagrant-proxyconf-1.5.2.gem` | ||
* Last edit Vagrantfile and change config.proxy.http, config.proxy.https and config.proxy.no_proxy values to the right IP and port and user/password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Troubleshooting | ||
|
||
In case you have made any change to Vagrantfile then validate it with: | ||
|
||
`vagrant validate` | ||
|
||
In case you need a full debug trace during VM creation you may use: | ||
|
||
`vagrant up machine_name -- debug > vagrant_debug.log 2>&1` | ||
|
||
For watching your SSH configuration use: | ||
|
||
`vagrant ssh-config` | ||
|
||
For trying to stablish an SSH connection with debug enabled use: | ||
|
||
`vagrant ssh -- -vvv` | ||
|
||
At Vagrantfile, set `vb.gui = true` enable the GUI of VirtualBox and see whether the VM is waiting for input on startup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# How to configure VirtualBox | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
## INSTALL VIRTUAL BOX GUEST ADDITIONS | ||
|
||
See [VirtualBox Guest Additions on CentOS 7.5](https://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/). | ||
|
||
Execute: | ||
|
||
``` | ||
sudo yum install gcc kernel-devel kernel-headers dkms make bzip2 perl | ||
mkdir /media/VirtualBoxGuestAdditions | ||
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions | ||
cd /media/VirtualBoxGuestAdditions | ||
./VBoxLinuxAdditions.run | ||
``` | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
## REBUILD THE BASE BOX | ||
|
||
A VirtualBox base box is required at Vagrant file **vs.vm.box_url** | ||
|
||
If a box is not available, it can be created using [Packer](https://www.packer.io/intro/index.html). | ||
|
||
For building the base box, download [download Packer](https://www.packer.io/downloads.html) then change to the [/packer](packer) subdirectory of CentOrion. | ||
|
||
Execute: | ||
|
||
`packer build -var-file=variables-centos-7.5.json vagrant-centos.json` | ||
|
||
This will create a base box name `vagrant-centos-75.box` that can be referenced from Vagrantfile. | ||
|
||
Read more on Vagrant provisioners [here](https://www.packer.io/docs/provisioners/shell.html). | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
## ADD SWAP SPACE | ||
|
||
Some applications, i.e. Oracle need a swap space bigger than the default of 1279 Mb. | ||
|
||
If you need to increase the swap space do the following: | ||
|
||
With the VM halted, you must add a new virtual hard disk from Virtualbox by right clicking on the machine and then Configuration -> Storage. | ||
Click on the icon of a hard drive with a + sign and add a new disk of 2Gb fixed size. | ||
|
||
After adding the new hard disk do `vagrant up machine_name` | ||
|
||
Once logged in type: | ||
|
||
`sudo vgdisplay` | ||
this will display the volume group information showing something like: | ||
VG Name **cl** | ||
|
||
Then execute | ||
`sudo fdisk -l` | ||
to list the available drives. | ||
You should get in the list **/dev/hdb** or **/dev/sdb** depending on whether you are using spinning or solid states physical drives. | ||
|
||
Now execute: | ||
` | ||
sudo pvcreate /dev/sdb | ||
sudo vgextend cl /dev/sdb | ||
sudo lvextend -L+2G /dev/cl/swap | ||
` | ||
this will add 2Gb to the swap space. |