Table of Contents
Important Note
You should have good configuration of PC, Atleast 8GB RAM, i5 CPU and SSD installed on system.
Download Softwares:
Detail
How To Create Vagrant Box from existing Virtualbox VM?
Step 1: Download Vagrant box repo from git
D:\Vagrant_testing>git clone https://github.com/dbanextstep/DBA_First_Step_Vagrant.git
Cloning into 'DBA_First_Step_Vagrant'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 14 (delta 0), reused 14 (delta 0), pack-reused 0
Receiving objects: 100% (14/14), done.
Step 2: Go to the directory
D:\Vagrant_testing\DBA_First_Step_Vagrant>cd Advance_vm_machine
D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine>dir
Volume in drive D is 1TB-CMSSD-D-DRIVE
Volume Serial Number is B87E-487D
Directory of D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine
11/21/2022 01:21 PM <DIR> .
11/21/2022 01:21 PM <DIR> ..
11/21/2022 01:20 PM <DIR> EXTRA_CAPTURE_FOR_SITE
11/21/2022 01:21 PM <DIR> scripts
11/21/2022 01:20 PM 1,858 Vagrantfile
1 File(s) 1,858 bytes
4 Dir(s) 169,754,521,600 bytes free
D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine>
Step 3: Create customize vagrant box with some parameters
D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine>type Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : # Variables var_box = 'oraclebase/oracle-7' ## Search from var_vm_name = 'SAMPLE_VAGRANT_MACHINE' var_mem_size = 4096 # More would be better. var_cpus = 2 var_non_rotational = 'on' # SSD by default var_disk1_name = './ol7_122_u01.vdi' var_disk2_name = './ol7_122_u02.vdi' var_hostname = 'sgghost' var_disk_size = 100 ## Define 100G for /u01 & /u02 var_private_network = '192.168.2.190' Vagrant.configure("2") do |config| config.vm.box = var_box config.vm.hostname=var_hostname config.vm.network "forwarded_port", guest: 8080, host: 8081 config.vm.network "private_network", ip: var_private_network config.vm.network "public_network" config.vm.provider "virtualbox" do |vb| vb.memory = var_mem_size vb.cpus = var_cpus vb.name = var_vm_name vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', '0', '--nonrotational', var_non_rotational] unless File.exist?(var_disk1_name) vb.customize ['createhd', '--filename', var_disk1_name, '--size', var_disk_size * 1024] end vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--nonrotational', var_non_rotational, '--medium', var_disk1_name] unless File.exist?(var_disk2_name) vb.customize ['createhd', '--filename', var_disk2_name, '--size', var_disk_size * 1024] end vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 2, '--device', 0, '--type', 'hdd', '--nonrotational', var_non_rotational, '--medium', var_disk2_name] end config.vm.provision "shell", inline: <<-SHELL sh /vagrant/scripts/setup.sh SHELL end
D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine>cd scripts D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine\scripts>dir Volume in drive D is 1TB-CMSSD-D-DRIVE Volume Serial Number is B87E-487D Directory of D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine\scripts 11/21/2022 01:21 PM <DIR> . 11/21/2022 01:21 PM <DIR> .. 11/21/2022 01:20 PM 381 install_os_packages.sh 11/21/2022 01:20 PM 689 prepare_u01_u02_disks.sh 11/21/2022 01:20 PM 94 root_setup.sh 11/21/2022 01:20 PM 50 setup.sh 4 File(s) 1,214 bytes 2 Dir(s) 169,754,521,600 bytes free D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine\scripts>type install_os_packages.sh echo "******************************************************************************" echo "Prepare yum with the latest repos." `date` echo "******************************************************************************" echo "nameserver 8.8.8.8" >> /etc/resolv.conf yum install -y yum-utils zip unzip yum install -y oracle-database-server-12cR2-preinstall #yum update -y D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine\scripts>type prepare_u01_u02_disks.sh function prepare_disk { MOUNT_POINT=$1 DISK_DEVICE=$2 echo "******************************************************************************" echo "Prepare ${MOUNT_POINT} disk." `date` echo "******************************************************************************" # New partition for the whole disk. echo -e "n\np\n1\n\n\nw" | fdisk ${DISK_DEVICE} # Add file system. mkfs.xfs -f ${DISK_DEVICE}1 # Mount it. UUID=`blkid -o value ${DISK_DEVICE}1 | grep -v xfs` mkdir ${MOUNT_POINT} echo "UUID=${UUID} ${MOUNT_POINT} xfs defaults 1 2" >> /etc/fstab mount ${MOUNT_POINT} } prepare_disk /u01 /dev/sdb prepare_disk /u02 /dev/sdc D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine\scripts>type setup.sh sudo bash -c 'sh /vagrant/scripts/root_setup.sh'
Before creating VirtualBox Status
D:\DBANEXTSTEP\DBA_First_Step_Vagrant\Advance_vm_machine>Vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'oraclebase/oracle-7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'oraclebase/oracle-7' version '2022.09.18' is up to date...
==> default: Setting the name of the VM: SAMPLE_VAGRANT_MACHINE
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Adapter 3: bridged
==> default: Forwarding ports...
default: 8080 (guest) => 8081 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] GuestAdditions seems to be installed (6.1.38) correctly, but not running.
Redirecting to /bin/systemctl start vboxadd.service
Redirecting to /bin/systemctl start vboxadd-service.service
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
5.4.17-2136.310.7.1.el7uek.x86_64.
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Restarting VM to apply changes...
==> default: Attempting graceful shutdown of VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => D:/DBANEXTSTEP/DBA_First_Step_Vagrant/Advance_vm_machine
==> default: Running provisioner: shell...
default: Running: inline script
default: ******************************************************************************
default: Prepare /u01 disk. Mon Nov 21 12:35:31 UTC 2022
default: ******************************************************************************
default: Welcome to fdisk (util-linux 2.23.2).
default:
default: Changes will remain in memory only, until you decide to write them.
default: Be careful before using the write command.
default:
default: Device does not contain a recognized partition table
default:
default: Building a new DOS disklabel with disk identifier 0x54bb85d5.
default: Command (m for help): Partition type:
default: p primary (0 primary, 0 extended, 4 free)
default: e extended
default: Select (default p): Partition number (1-4, default 1): First sector (2048-209715199, default 2048): Using default value 2048
default: Last sector, +sectors or +size{K,M,G} (2048-209715199, default 209715199): Using default value 209715199
default: Partition 1 of type Linux and of size 100 GiB is set
default:
default: Command (m for help): The partition table has been altered!
default:
default: Calling ioctl() to re-read partition table.
default: Syncing disks.
default: meta-data=/dev/sdb1 isize=256 agcount=4, agsize=6553536 blks
default: = sectsz=512 attr=2, projid32bit=1
default: = crc=0 finobt=0, sparse=0, rmapbt=0
default: = reflink=0
default: data = bsize=4096 blocks=26214144, imaxpct=25
default: = sunit=0 swidth=0 blks
default: naming =version 2 bsize=4096 ascii-ci=0, ftype=1
default: log =internal log bsize=4096 blocks=12799, version=2
default: = sectsz=512 sunit=0 blks, lazy-count=1
default: realtime =none extsz=4096 blocks=0, rtextents=0
default: ******************************************************************************
default: Prepare /u02 disk. Mon Nov 21 12:35:31 UTC 2022
default: ******************************************************************************
default: Welcome to fdisk (util-linux 2.23.2).
default:
default: Changes will remain in memory only, until you decide to write them.
default: Be careful before using the write command.
default:
default:
default: Command (m for help): Partition type:
default: p primary (0 primary, 0 extended, 4 free)
default: e extended
default: Select (default p): Partition number (1-4, default 1): First sector (2048-209715199, default 2048): Using default value 2048
default: Last sector, +sectors or +size{K,M,G} (2048-209715199, default 209715199): Using default value 209715199
default: Partition 1 of type Linux and of size 100 GiB is set
default:
default: Device does not contain a recognized partition table
default: Building a new DOS disklabel with disk identifier 0xe6bc8ce3.
default: Command (m for help): The partition table has been altered!
default:
default: Calling ioctl() to re-read partition table.
default: Syncing disks.
default: meta-data=/dev/sdc1 isize=256 agcount=4, agsize=6553536 blks
default: = sectsz=512 attr=2, projid32bit=1
default: = crc=0 finobt=0, sparse=0, rmapbt=0
default: = reflink=0
default: data = bsize=4096 blocks=26214144, imaxpct=25
default: = sunit=0 swidth=0 blks
default: naming =version 2 bsize=4096 ascii-ci=0, ftype=1
default: log =internal log bsize=4096 blocks=12799, version=2
default: = sectsz=512 sunit=0 blks, lazy-count=1
default: realtime =none extsz=4096 blocks=0, rtextents=0
default: ******************************************************************************
default: Prepare yum with the latest repos. Mon Nov 21 12:35:32 UTC 2022
default: ******************************************************************************
default: Loaded plugins: ulninfo
default: Package yum-utils-1.1.31-54.0.1.el7_8.noarch already installed and latest version
default: Resolving Dependencies
default: --> Running transaction check
default: ---> Package unzip.x86_64 0:6.0-24.0.1.el7_9 will be installed
default: ---> Package zip.x86_64 0:3.0-11.el7 will be installed
default: --> Finished Dependency Resolution
default:
default: Dependencies Resolved
default:
default: ================================================================================
default: Package Arch Version Repository Size
default: ================================================================================
default: Installing:
default: unzip x86_64 6.0-24.0.1.el7_9 ol7_latest 172 k
default: zip x86_64 3.0-11.el7 ol7_latest 259 k
default:
default: Transaction Summary
default: ================================================================================
default: Install 2 Packages
default:
default: Total download size: 432 k
default: Installed size: 1.1 M
default: Downloading packages:
default: --------------------------------------------------------------------------------
default: Total 630 kB/s | 432 kB 00:00
default: Running transaction check
default: Running transaction test
default: Transaction test succeeded
default: Running transaction
default: Installing : zip-3.0-11.el7.x86_64 1/2
default: Installing : unzip-6.0-24.0.1.el7_9.x86_64 2/2
default: Verifying : unzip-6.0-24.0.1.el7_9.x86_64 1/2
default: Verifying : zip-3.0-11.el7.x86_64 2/2
default:
default: Installed:
default: unzip.x86_64 0:6.0-24.0.1.el7_9 zip.x86_64 0:3.0-11.el7
default:
default: Complete!
default: Loaded plugins: ulninfo
default: Resolving Dependencies
default: --> Running transaction check
default: ---> Package oracle-database-server-12cR2-preinstall.x86_64 0:1.0-5.el7 will be installed
default: --> Processing Dependency: bind-utils for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: compat-libcap1 for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: compat-libstdc++-33 for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: ksh for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: libaio for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: libaio-devel for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: libstdc++-devel for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: smartmontools for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: sysstat for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: xorg-x11-utils for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Processing Dependency: xorg-x11-xauth for package: oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64
default: --> Running transaction check
default: ---> Package bind-utils.x86_64 32:9.11.4-26.P2.el7_9.10 will be installed
default: --> Processing Dependency: bind-libs(x86-64) = 32:9.11.4-26.P2.el7_9.10 for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: bind-libs-lite(x86-64) = 32:9.11.4-26.P2.el7_9.10 for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: libGeoIP.so.1()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: libbind9.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: libdns.so.1102()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: libirs.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: libisc.so.169()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: libisccfg.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: --> Processing Dependency: liblwres.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
default: ---> Package compat-libcap1.x86_64 0:1.10-7.el7 will be installed
default: ---> Package compat-libstdc++-33.x86_64 0:3.2.3-72.el7 will be installed
default: ---> Package ksh.x86_64 0:20120801-144.0.1.el7_9 will be installed
default: ---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
default: ---> Package libaio-devel.x86_64 0:0.3.109-13.el7 will be installed
default: ---> Package libstdc++-devel.x86_64 0:4.8.5-44.0.3.el7 will be installed
default: ---> Package smartmontools.x86_64 1:7.0-2.el7 will be installed
default: ---> Package sysstat.x86_64 0:10.1.5-19.0.3.el7 will be installed
default: --> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-19.0.3.el7.x86_64
default: ---> Package xorg-x11-utils.x86_64 0:7.5-23.el7 will be installed
default: --> Processing Dependency: libXi.so.6()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXinerama.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXrandr.so.2()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXrender.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXtst.so.6()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXv.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libXxf86vm.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: --> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
default: ---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be installed
default: --> Running transaction check
default: ---> Package GeoIP.x86_64 0:1.5.0-14.el7 will be installed
default: --> Processing Dependency: geoipupdate for package: GeoIP-1.5.0-14.el7.x86_64
default: ---> Package bind-libs.x86_64 32:9.11.4-26.P2.el7_9.10 will be installed
default: --> Processing Dependency: bind-license = 32:9.11.4-26.P2.el7_9.10 for package: 32:bind-libs-9.11.4-26.P2.el7_9.10.x86_64
default: ---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.10 will be installed
default: ---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
default: ---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
default: ---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
default: ---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
default: ---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
default: ---> Package libXv.x86_64 0:1.0.11-1.el7 will be installed
default: ---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el7 will be installed
default: ---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
default: ---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
default: ---> Package libdmx.x86_64 0:1.1.3-3.el7 will be installed
default: ---> Package lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.0.1.el7 will be installed
default: --> Running transaction check
default: ---> Package bind-license.noarch 32:9.11.4-26.P2.el7_9.10 will be installed
default: ---> Package geoipupdate.x86_64 0:2.5.0-1.el7 will be installed
default: --> Finished Dependency Resolution
default:
default: Dependencies Resolved
default:
default: ================================================================================
default: Package Arch Version Repository Size
default: ================================================================================
default: Installing:
default: oracle-database-server-12cR2-preinstall
default: x86_64 1.0-5.el7 ol7_latest 19 k
default: Installing for dependencies:
default: GeoIP x86_64 1.5.0-14.el7 ol7_latest 1.5 M
default: bind-libs x86_64 32:9.11.4-26.P2.el7_9.10 ol7_latest 157 k
default: bind-libs-lite x86_64 32:9.11.4-26.P2.el7_9.10 ol7_latest 1.1 M
default: bind-license noarch 32:9.11.4-26.P2.el7_9.10 ol7_latest 91 k
default: bind-utils x86_64 32:9.11.4-26.P2.el7_9.10 ol7_latest 261 k
default: compat-libcap1 x86_64 1.10-7.el7 ol7_latest 17 k
default: compat-libstdc++-33 x86_64 3.2.3-72.el7 ol7_latest 190 k
default: geoipupdate x86_64 2.5.0-1.el7 ol7_latest 34 k
default: ksh x86_64 20120801-144.0.1.el7_9 ol7_latest 882 k
default: libXi x86_64 1.7.9-1.el7 ol7_latest 40 k
default: libXinerama x86_64 1.1.3-2.1.el7 ol7_latest 13 k
default: libXrandr x86_64 1.5.1-2.el7 ol7_latest 27 k
default: libXrender x86_64 0.9.10-1.el7 ol7_latest 25 k
default: libXtst x86_64 1.2.3-1.el7 ol7_latest 20 k
default: libXv x86_64 1.0.11-1.el7 ol7_latest 18 k
default: libXxf86dga x86_64 1.1.4-2.1.el7 ol7_latest 18 k
default: libXxf86misc x86_64 1.0.3-7.1.el7 ol7_latest 19 k
default: libXxf86vm x86_64 1.1.4-1.el7 ol7_latest 17 k
default: libaio x86_64 0.3.109-13.el7 ol7_latest 24 k
default: libaio-devel x86_64 0.3.109-13.el7 ol7_latest 12 k
default: libdmx x86_64 1.1.3-3.el7 ol7_latest 15 k
default: libstdc++-devel x86_64 4.8.5-44.0.3.el7 ol7_latest 1.5 M
default: lm_sensors-libs x86_64 3.4.0-8.20160601gitf9185e5.0.1.el7 ol7_latest 41 k
default: smartmontools x86_64 1:7.0-2.el7 ol7_latest 546 k
default: sysstat x86_64 10.1.5-19.0.3.el7 ol7_latest 316 k
default: xorg-x11-utils x86_64 7.5-23.el7 ol7_latest 114 k
default: xorg-x11-xauth x86_64 1:1.0.9-1.el7 ol7_latest 29 k
default:
default: Transaction Summary
default: ================================================================================
default: Install 1 Package (+27 Dependent packages)
default:
default: Total download size: 7.0 M
default: Installed size: 23 M
default: Downloading packages:
default: --------------------------------------------------------------------------------
default: Total 5.5 MB/s | 7.0 MB 00:01
default: Running transaction check
default: Running transaction test
default: Transaction test succeeded
default: Running transaction
default: Installing : libaio-0.3.109-13.el7.x86_64 1/28
default: Installing : 32:bind-license-9.11.4-26.P2.el7_9.10.noarch 2/28
default: Installing : libXi-1.7.9-1.el7.x86_64 3/28
default: Installing : libXrender-0.9.10-1.el7.x86_64 4/28
default: Installing : libXrandr-1.5.1-2.el7.x86_64 5/28
default: Installing : libXtst-1.2.3-1.el7.x86_64 6/28
default: Installing : libaio-devel-0.3.109-13.el7.x86_64 7/28
default: Installing : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.0.1.el7.x86_6 8/28
default: Installing : sysstat-10.1.5-19.0.3.el7.x86_64 9/28
default: Installing : compat-libstdc++-33-3.2.3-72.el7.x86_64 10/28
default: Installing : libXxf86dga-1.1.4-2.1.el7.x86_64 11/28
default: Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 12/28
default: Installing : compat-libcap1-1.10-7.el7.x86_64 13/28
default: Installing : ksh-20120801-144.0.1.el7_9.x86_64 14/28
default: Installing : 1:smartmontools-7.0-2.el7.x86_64 15/28
default: Installing : libstdc++-devel-4.8.5-44.0.3.el7.x86_64 16/28
default: Installing : libXxf86misc-1.0.3-7.1.el7.x86_64 17/28
default: Installing : libXxf86vm-1.1.4-1.el7.x86_64 18/28
default: Installing : libXv-1.0.11-1.el7.x86_64 19/28
default: Installing : libXinerama-1.1.3-2.1.el7.x86_64 20/28
default: Installing : geoipupdate-2.5.0-1.el7.x86_64 21/28
default: Installing : GeoIP-1.5.0-14.el7.x86_64 22/28
default: Installing : 32:bind-libs-lite-9.11.4-26.P2.el7_9.10.x86_64 23/28
default: Installing : 32:bind-libs-9.11.4-26.P2.el7_9.10.x86_64 24/28
default: Installing : 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64 25/28
default: Installing : libdmx-1.1.3-3.el7.x86_64 26/28
default: Installing : xorg-x11-utils-7.5-23.el7.x86_64 27/28
default: Installing : oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64 28/28
default: Verifying : 32:bind-libs-9.11.4-26.P2.el7_9.10.x86_64 1/28
default: Verifying : libdmx-1.1.3-3.el7.x86_64 2/28
default: Verifying : geoipupdate-2.5.0-1.el7.x86_64 3/28
default: Verifying : libXinerama-1.1.3-2.1.el7.x86_64 4/28
default: Verifying : libXrender-0.9.10-1.el7.x86_64 5/28
default: Verifying : libXv-1.0.11-1.el7.x86_64 6/28
default: Verifying : libXi-1.7.9-1.el7.x86_64 7/28
default: Verifying : libXxf86vm-1.1.4-1.el7.x86_64 8/28
default: Verifying : libXxf86misc-1.0.3-7.1.el7.x86_64 9/28
default: Verifying : sysstat-10.1.5-19.0.3.el7.x86_64 10/28
default: Verifying : 32:bind-libs-lite-9.11.4-26.P2.el7_9.10.x86_64 11/28
default: Verifying : 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64 12/28
default: Verifying : GeoIP-1.5.0-14.el7.x86_64 13/28
default: Verifying : xorg-x11-utils-7.5-23.el7.x86_64 14/28
default: Verifying : 32:bind-license-9.11.4-26.P2.el7_9.10.noarch 15/28
default: Verifying : libXtst-1.2.3-1.el7.x86_64 16/28
default: Verifying : libstdc++-devel-4.8.5-44.0.3.el7.x86_64 17/28
default: Verifying : libaio-0.3.109-13.el7.x86_64 18/28
default: Verifying : 1:smartmontools-7.0-2.el7.x86_64 19/28
default: Verifying : ksh-20120801-144.0.1.el7_9.x86_64 20/28
default: Verifying : compat-libcap1-1.10-7.el7.x86_64 21/28
default: Verifying : libXrandr-1.5.1-2.el7.x86_64 22/28
default: Verifying : libaio-devel-0.3.109-13.el7.x86_64 23/28
default: Verifying : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 24/28
default: Verifying : libXxf86dga-1.1.4-2.1.el7.x86_64 25/28
default: Verifying : oracle-database-server-12cR2-preinstall-1.0-5.el7.x86_64 26/28
default: Verifying : compat-libstdc++-33-3.2.3-72.el7.x86_64 27/28
default: Verifying : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.0.1.el7.x86_6 28/28
default:
default: Installed:
default: oracle-database-server-12cR2-preinstall.x86_64 0:1.0-5.el7
default:
default: Dependency Installed:
default: GeoIP.x86_64 0:1.5.0-14.el7
default: bind-libs.x86_64 32:9.11.4-26.P2.el7_9.10
default: bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.10
default: bind-license.noarch 32:9.11.4-26.P2.el7_9.10
default: bind-utils.x86_64 32:9.11.4-26.P2.el7_9.10
default: compat-libcap1.x86_64 0:1.10-7.el7
default: compat-libstdc++-33.x86_64 0:3.2.3-72.el7
default: geoipupdate.x86_64 0:2.5.0-1.el7
default: ksh.x86_64 0:20120801-144.0.1.el7_9
default: libXi.x86_64 0:1.7.9-1.el7
default: libXinerama.x86_64 0:1.1.3-2.1.el7
default: libXrandr.x86_64 0:1.5.1-2.el7
default: libXrender.x86_64 0:0.9.10-1.el7
default: libXtst.x86_64 0:1.2.3-1.el7
default: libXv.x86_64 0:1.0.11-1.el7
default: libXxf86dga.x86_64 0:1.1.4-2.1.el7
default: libXxf86misc.x86_64 0:1.0.3-7.1.el7
default: libXxf86vm.x86_64 0:1.1.4-1.el7
default: libaio.x86_64 0:0.3.109-13.el7
default: libaio-devel.x86_64 0:0.3.109-13.el7
default: libdmx.x86_64 0:1.1.3-3.el7
default: libstdc++-devel.x86_64 0:4.8.5-44.0.3.el7
default: lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.0.1.el7
default: smartmontools.x86_64 1:7.0-2.el7
default: sysstat.x86_64 0:10.1.5-19.0.3.el7
default: xorg-x11-utils.x86_64 0:7.5-23.el7
default: xorg-x11-xauth.x86_64 1:1.0.9-1.el7
default:
default: Complete!
D:\DBANEXTSTEP\DBA_First_Step_Vagrant\Advance_vm_machine>
Add Your Heading Text Here
Step 4: Connect to Machine & execute commands
D:\DBANEXTSTEP\DBA_First_Step_Vagrant\Advance_vm_machine>Vagrant ssh [vagrant@sgghost ~]$ uname -a Linux sgghost 5.4.17-2136.310.7.1.el7uek.x86_64 #2 SMP Wed Aug 17 15:14:21 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux [vagrant@sgghost ~]$ sudo su - root [root@sgghost ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fe44:a71f prefixlen 64 scopeid 0x20<link> ether 08:00:27:44:a7:1f txqueuelen 1000 (Ethernet) RX packets 77626 bytes 112013464 (106.8 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 9476 bytes 704843 (688.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.2.190 netmask 255.255.255.0 broadcast 192.168.2.255 inet6 fe80::a00:27ff:fe4f:eff4 prefixlen 64 scopeid 0x20<link> ether 08:00:27:4f:ef:f4 txqueuelen 1000 (Ethernet) RX packets 2 bytes 486 (486.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 626 (626.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.88 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::a00:27ff:fe62:ed44 prefixlen 64 scopeid 0x20<link> ether 08:00:27:62:ed:44 txqueuelen 1000 (Ethernet) RX packets 61 bytes 6156 (6.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 61 bytes 5672 (5.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 68 bytes 5448 (5.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 68 bytes 5448 (5.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@sgghost ~]# fdisk -l Disk /dev/sda: 68.7 GB, 68719476736 bytes, 134217728 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x000caa87 Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 10487807 4194304 82 Linux swap / Solaris /dev/sda3 10487808 134217727 61864960 83 Linux Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x54bb85d5 Device Boot Start End Blocks Id System /dev/sdb1 2048 209715199 104856576 83 Linux Disk /dev/sdc: 107.4 GB, 107374182400 bytes, 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0xe6bc8ce3 Device Boot Start End Blocks Id System /dev/sdc1 2048 209715199 104856576 83 Linux [root@sgghost ~]#
[root@sgghost ~]# passwd <<<<<<<<<<<<<< Reset root Password Changing password for user root. New password: BAD PASSWORD: The password is shorter than 8 characters Retype new password: passwd: all authentication tokens updated successfully. [root@sgghost ~]#
Facing somtime issue during creation of Machine due to bug...
D:\Vagrant_testing\DBA_First_Step_Vagrant\Advance_vm_machine>Vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'oraclebase/oracle-7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'oraclebase/oracle-7' version '2022.09.18' is up to date...
==> default: A newer version of the box 'oraclebase/oracle-7' for provider 'virtualbox' is
==> default: available! You currently have version '2022.09.18'. The latest is version
==> default: '2022.10.21'. Run `vagrant box update` to update.
==> default: Setting the name of the VM: ADV_PARAM_VAGRANT_MACHINE
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Adapter 3: bridged
==> default: Forwarding ports...
default: 8080 (guest) => 8081 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.
If the problem persists, please report a bug to the net-ssh project.
timeout waiting for next packet