Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, 22 April 2017

Virtual Box Host-Guest Machine connectivity Error

Virtual Box networking issue scenario:


  • Both Host and Guest can access Internet
  • Host can ping Guest but Guest is not able to ping Host

The host is running Windows 10 64-bit and the guest is running CentOS 6.4 64bit.

Solution:
  1. Setup the virtualbox to use 2 adapters:
    • The first adapter is set to Bridged Adapter (that will give you the internet connection).

    • The second adapter is set to host only.

  1. Start the virtual machine and assign a static IP for the second adapter in CentOS instance.
  2. Now, to make the connection available both ways (accessing the windows host from the CentOS guest) there's still one more step to be performed. Windows will automatically add the virtualbox host-only network to the list of public networks and that cannot be changed. This entails that the firewall will prevent proper access.
  3. To overcome this and not make any security breaches in your setup:
    • go to the windows firewall section, in control panel,
    • click on advanced settings. In the page that pops up,
    • click on inbound rules (left column), then on new rule (right column). Chose custom rule, set the rule to allow all programs, and any protocol. Click next, select allow the connection, next, check all profiles, next, give it a name and save.




CentOS 6+  Text mode Installation Step By Step

1) Open Virtual Box and click on New to create new Virtual Machine.

2) Below window will open:
Provide Machine name, Type and Version that you want to install. I am using above details. Click Next.

3) Provide RAM as per your need. I am using 1024MB of RAM for this machine. Click Next. 

4) Check create a virtual hard disk now and click on create. 

5) Select VDI option and click Next.  

6) Select Dynamically allocated option and click Next. 

7) Provide file location and storage size for your machine. Click on create.

8) New machine created.

9) Provide the centos iso file location using below:
Click on Settings à Storage à Controller IDE .
I am using centos 6.4 iso file. Click on OK.

10) Click on Start to start the machine. Below Window will open.

11) Click anywhere on the screen , hit TAB and enter the command
Vmlinuz initrd=initrd.img text expert

Wait for the installation to complete
12) Click anywhere on the screen and hit Tab to SKIP then hit Enter

13) Click anywhere on the screen and hit Tab to OK then hit Enter

14) Choose language as English and click OK

 15) Choose US keyboard and click OK

16) Hit TAB and choose Re-initialize all

17) Choose asia/Kolkata as TimeZone then click OK

18) Choose simple password to remember

19) Choose USE ANYWAY

20)Choose Use Entire drive then Click OK
  
21) Choose Write changes to disk

22) Wait for installation gets completed. Click Reboot.
23) Login as root
 

Enjoy The working on Linux.