Sunday, April 23, 2017

Create and mount /u01 on guest linux using Virtualbox


While the VM is powered off , add a VDI (Virtual Disk Image) as shown below-


I have added a 20GB disk for the demo-


Power up the VM and login as root to perform the below tasks -

1. fdisk -l  (to list the existing partitions)

      The added disk has been detected as shown below


2. fdisk /dev/sdg  (create a disk partition on the disk we attached)

      Double check to see no partitions are created (p option to print partitions)



3. Create partition (using the same fdisk utility)
         Following fdisk options used int he snapshot below-
                   n   add a new partition
                   p   to select primary partition (1-4)
                   w   write table to disk and exit


          To verify partition is created run the fdisk /dev/sdg with 'p' option to print the partitions.

4. Now that we have the partition /dev/sdg1 created its time we format the disk in ext4 filesystem as follows -



5. Go ahead and mount the filesystem !


6. To ensure the mount is persistent even after a reboot don't forget to update the /etc/fstab


Thursday, April 6, 2017

Oracle Virtualbox Guest OracleLinux Network settings Bridged adapter

Setup-
Oracle VirtualBox 5.1
Guest: OracleLinux R6-U3 (6.3v)
Host: Windows 10

The following setup is for the guest Linux server to access host WiFi connectivity using a bridged adapter.

Step 1-
Ensure the following settings are in place in the Virtualbox configurations,
1. Promiscuous Mode being an important one usually set to 'Deny'.
2. Use Cable connected even though the host uses wireless.


Step 2-
Make the below change on the Guest OS,
- Here eth2 is my adapter3 fromt he previous snapshot.
- The address mentioned must be of the same IP range as on the host (run ipconfig on the windows host) in my case it was in the range of 192.168._.__
- The gateway is the router address and can be determined from the ipconfig out put in windows, labelled as Default Gateway.



Step 3-
Restart network services and retry !