Skip to content

Instantly share code, notes, and snippets.

@soda736
Created November 17, 2022 15:25
Show Gist options
  • Save soda736/2ae57f2e00147fad9e797fb64b9db834 to your computer and use it in GitHub Desktop.
Save soda736/2ae57f2e00147fad9e797fb64b9db834 to your computer and use it in GitHub Desktop.
➜ pfm-vagrant git:(main) ✗ vagrant up
Bringing machine 'plaformoriginal' up with 'virtualbox' provider...
==> plaformoriginal: Cloning VM...
==> plaformoriginal: Matching MAC address for NAT networking...
==> plaformoriginal: Checking if box 'geerlingguy/drupal-vm' version '2.0.12' is up to date...
==> plaformoriginal: Setting the name of the VM: platformoriginal.test
==> plaformoriginal: Clearing any previously set network interfaces...
==> plaformoriginal: Preparing network interfaces based on configuration...
plaformoriginal: Adapter 1: nat
plaformoriginal: Adapter 2: hostonly
==> plaformoriginal: Forwarding ports...
plaformoriginal: 22 (guest) => 2222 (host) (adapter 1)
==> plaformoriginal: Running 'pre-boot' VM customizations...
==> plaformoriginal: Booting VM...
==> plaformoriginal: Waiting for machine to boot. This may take a few minutes...
plaformoriginal: SSH address: 127.0.0.1:2222
plaformoriginal: SSH username: vagrant
plaformoriginal: SSH auth method: private key
==> plaformoriginal: Machine booted and ready!
[plaformoriginal] GuestAdditions versions on your host (7.0.2) and guest (6.1.22) do not match.
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-4.15.0-112-generic is already the newest version (4.15.0-112.113).
The following additional packages will be installed:
fakeroot libfakeroot
Suggested packages:
python3-apport menu
The following NEW packages will be installed:
dkms fakeroot libfakeroot
0 upgraded, 3 newly installed, 0 to remove and 9 not upgraded.
Need to get 156 kB of archives.
After this operation, 664 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.7 [68.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Fetched 156 kB in 1s (224 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 71847 files and directories currently installed.)
Preparing to unpack .../dkms_2.3-3ubuntu9.7_all.deb ...
Unpacking dkms (2.3-3ubuntu9.7) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Setting up dkms (2.3-3ubuntu9.7) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
Installing Virtualbox Guest Additions 7.0.2 - guest version is 6.1.22
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.2 Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Removing installed version 6.1.22 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.15.0-112-generic
/opt/VBoxGuestAdditions-7.0.2/bin/VBoxClient: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory
/opt/VBoxGuestAdditions-7.0.2/bin/VBoxClient: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
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 4.15.0-112-generic.
update-initramfs: Generating /boot/initrd.img-4.15.0-112-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
An error occurred during installation of VirtualBox Guest Additions 7.0.2. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Unmounting Virtualbox Guest Additions ISO from: /mnt
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 6.1.22
VBoxService inside the vm claims: 7.0.2
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 6.1.22
VBoxService inside the vm claims: 7.0.2
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 6.1.22
VBoxService inside the vm claims: 7.0.2
Going on, assuming VBoxService is correct...
Restarting VM to apply changes...
==> plaformoriginal: Attempting graceful shutdown of VM...
==> plaformoriginal: Booting VM...
==> plaformoriginal: Waiting for machine to boot. This may take a few minutes...
==> plaformoriginal: Machine booted and ready!
==> plaformoriginal: [vagrant-hostsupdater] Checking for host entries
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 platformoriginal.test
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 nidirect.site
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 www.nidirect.site
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 adminer.platformoriginal.test
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 xhprof.platformoriginal.test
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 pimpmylog.platformoriginal.test
==> plaformoriginal: [vagrant-hostsupdater] found entry for: 192.168.56.20 dashboard.platformoriginal.test
==> plaformoriginal: Checking for guest additions in VM...
==> plaformoriginal: Setting hostname...
==> plaformoriginal: Configuring and enabling network interfaces...
==> plaformoriginal: Exporting NFS shared folders...
==> plaformoriginal: Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
==> plaformoriginal: Mounting NFS shared folders...
==> plaformoriginal: Configuring cache buckets...
==> plaformoriginal: Running provisioner: drupalvm (ansible)...
plaformoriginal: Running ansible-playbook...
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host plaformoriginal should
use /usr/bin/python3, but is using /usr/bin/python for backward compatibility
with prior Ansible releases. A future Ansible release will default to using the
discovered platform python for this host. See https://docs.ansible.com/ansible
/2.10/reference_appendices/interpreter_discovery.html for more information.
This feature will be removed in version 2.12. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [plaformoriginal]
TASK [Include OS-specific variables.] ******************************************
ok: [plaformoriginal]
TASK [Define config_dir.] ******************************************************
skipping: [plaformoriginal]
TASK [Include optional configuration files.] ***********************************
ok: [plaformoriginal] => (item=/Users/dsswebdev06/Projects/pfm-vagrant/config.yml)
TASK [Configure toggle vars for Debian/Ubuntu.] ********************************
ok: [plaformoriginal]
TASK [Configure toggle vars for CentOS.] ***************************************
skipping: [plaformoriginal]
TASK [Ensure Apache is stopped and disabled if Nginx is used.] *****************
skipping: [plaformoriginal]
TASK [Ensure Nginx is stopped and disabled if Apache is used.] *****************
ok: [plaformoriginal]
TASK [Ensure MySQL is stopped and disabled if Postgres is used.] ***************
skipping: [plaformoriginal]
TASK [Ensure Postgres is stopped and disabled if MySQL is used.] ***************
ok: [plaformoriginal]
TASK [nginx_hosts shim] ********************************************************
ok: [plaformoriginal]
TASK [include_tasks] ***********************************************************
included: /Users/dsswebdev06/Projects/pfm-vagrant/provisioning/tasks/init-Debian.yml for plaformoriginal
TASK [Update apt cache if needed.] *********************************************
changed: [plaformoriginal]
TASK [Install required dependencies.] ******************************************
ok: [plaformoriginal]
TASK [Add repository for Apache 2.4.9+ (Ubuntu 12/14).] ************************
skipping: [plaformoriginal]
TASK [Define php_xhprof_html_dir.] *********************************************
skipping: [plaformoriginal]
TASK [Run configured pre-provision shell scripts.] *****************************
TASK [Run configured pre-provision ansible task files.] ************************
TASK [Set the PHP webserver daemon correctly when nginx is in use.] ************
skipping: [plaformoriginal]
TASK [Ensure PHP version-specific workspace directory exists.] *****************
ok: [plaformoriginal]
TASK [geerlingguy.repo-remi : Install remi repo.] ******************************
skipping: [plaformoriginal]
TASK [geerlingguy.repo-remi : Import remi GPG key.] ****************************
skipping: [plaformoriginal]
TASK [drupalvm.hostname : Configure /etc/mailname (Debian).] *******************
ok: [plaformoriginal]
TASK [drupalvm.hostname : Add hostname to /etc/hosts.] *************************
changed: [plaformoriginal]
TASK [drupalvm.hostname : Configure hostname.] *********************************
ok: [plaformoriginal]
TASK [drupalvm.hostname : Set the hostname for current session.] ***************
skipping: [plaformoriginal]
TASK [geerlingguy.firewall : Ensure iptables is present.] **********************
ok: [plaformoriginal]
TASK [geerlingguy.firewall : Flush iptables the first time playbook runs.] *****
ok: [plaformoriginal]
TASK [geerlingguy.firewall : Copy firewall script into place.] *****************
ok: [plaformoriginal]
TASK [geerlingguy.firewall : Copy firewall init script into place.] ************
skipping: [plaformoriginal]
TASK [geerlingguy.firewall : Copy firewall systemd unit file into place (for systemd systems).] ***
ok: [plaformoriginal]
TASK [geerlingguy.firewall : Configure the firewall service.] ******************
ok: [plaformoriginal]
TASK [geerlingguy.firewall : Check if firewalld package is installed (on RHEL).] ***
skipping: [plaformoriginal]
TASK [geerlingguy.firewall : Disable the firewalld service (on RHEL, if configured).] ***
skipping: [plaformoriginal]
TASK [geerlingguy.firewall : Check if ufw package is installed (on Ubuntu).] ***
fatal: [plaformoriginal]: FAILED! => {"changed": false, "cmd": ["service", "ufw", "status"], "delta": "0:00:00.023386", "end": "2022-11-17 14:36:53.731547", "msg": "non-zero return code", "rc": 3, "start": "2022-11-17 14:36:53.708161", "stderr": "", "stderr_lines": [], "stdout": "* ufw.service - Uncomplicated firewall\n Loaded: loaded (/lib/systemd/system/ufw.service; disabled; vendor preset: enabled)\n Active: inactive (dead)\n Docs: man:ufw(8)", "stdout_lines": ["* ufw.service - Uncomplicated firewall", " Loaded: loaded (/lib/systemd/system/ufw.service; disabled; vendor preset: enabled)", " Active: inactive (dead)", " Docs: man:ufw(8)"]}
...ignoring
TASK [geerlingguy.firewall : Disable the ufw firewall (on Ubuntu, if configured).] ***
skipping: [plaformoriginal]
TASK [geerlingguy.firewall : Check if ufw package is installed (on Archlinux).] ***
skipping: [plaformoriginal]
TASK [geerlingguy.firewall : Disable the ufw firewall (on Archlinux, if configured).] ***
skipping: [plaformoriginal]
TASK [geerlingguy.git : Ensure git is installed (RedHat).] *********************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Update apt cache (Debian).] ****************************
ok: [plaformoriginal]
TASK [geerlingguy.git : Ensure git is installed (Debian).] *********************
ok: [plaformoriginal]
TASK [geerlingguy.git : Include OS-specific variables (RedHat).] ***************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Include OS-specific variables (Fedora).] ***************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Include OS-specific variables (Debian).] ***************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Define git_install_from_source_dependencies.] **********
skipping: [plaformoriginal]
TASK [geerlingguy.git : Ensure git's dependencies are installed.] **************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Get installed version.] ********************************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Force git install if the version numbers do not match.] ***
skipping: [plaformoriginal]
TASK [geerlingguy.git : Download git.] *****************************************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Expand git archive.] ***********************************
skipping: [plaformoriginal]
TASK [geerlingguy.git : Build git.] ********************************************
skipping: [plaformoriginal] => (item=all)
skipping: [plaformoriginal] => (item=install)
TASK [geerlingguy.postfix : Ensure postfix is installed.] **********************
ok: [plaformoriginal]
TASK [geerlingguy.postfix : Update Postfix configuration.] *********************
ok: [plaformoriginal] => (item={'name': 'inet_interfaces', 'value': 'localhost'})
ok: [plaformoriginal] => (item={'name': 'inet_protocols', 'value': 'all'})
TASK [geerlingguy.postfix : Ensure postfix is started and enabled at boot.] ****
ok: [plaformoriginal]
TASK [geerlingguy.apache : Include OS-specific variables.] *********************
ok: [plaformoriginal]
TASK [geerlingguy.apache : Include variables for Amazon Linux.] ****************
skipping: [plaformoriginal]
TASK [geerlingguy.apache : Define apache_packages.] ****************************
ok: [plaformoriginal]
TASK [geerlingguy.apache : include_tasks] **************************************
included: /Users/dsswebdev06/Projects/pfm-vagrant/provisioning/roles/geerlingguy.apache/tasks/setup-Debian.yml for plaformoriginal
TASK [geerlingguy.apache : Update apt cache.] **********************************
ok: [plaformoriginal]
TASK [geerlingguy.apache : Ensure Apache is installed on Debian.] **************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment