add %post installation of VBoxGuestAdditions #2

Closed
tcooper wants to merge 1 commits from tcooper/kickstarts:fix-vbox into r8
First-time contributor

Proposed solution from Bug #90

Resolves #1

Proposed solution from [Bug #90](https://bugs.rockylinux.org/view.php?id=90) Resolves #1
tcooper added 1 commit 2022-07-12 15:05:32 +00:00
Author
First-time contributor

@neil This solution was developed and tested with Packer on macOS. Please test within the RESF official build system which is currently opaque. Feel free to adjust as needed. When verified I can submit a similar PR for r9 branch after pub repos are published.

@neil This solution was developed and tested with Packer on macOS. Please test within the RESF official build system which is currently opaque. Feel free to adjust as needed. When verified I can submit a similar PR for r9 branch after pub repos are published.
Owner
Can you try out this? https://resf-empanadas.s3.us-east-2.amazonaws.com/buildimage-8.6-x86_64/Rocky-8-Vagrant-Vbox-8.6-20220712.0.x86_64/1657639211/rocky9-vbox.box?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA475HX25MI4V2ARZF%2F20220712%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20220712T162637Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=eadb764a8ea091ab1bb5f9422ae018dad9d6ddac00a3ab6568340a6e23c10ee0
Author
First-time contributor

Two things...

  • Is this a r8 or r9 box? The URL isn't clear. PR is for r8 branch and there are both Rocky-8-Vagrant-Vbox-8.6 and rocky9-vbox.box in the URL.
  • Assuming nothing I tried to simply import and boot the box. Import had no errors...
➜  kickstarts git:(fix-vbox) curl -LR https://resf-empanadas.s3.us-east-2.amazonaws.com/buildimage-8.6-x86_64/Rocky-8-Vagrant-Vbox-8.6-20220712.0.x86_64/1657639211/rocky9-vbox.box\?X-Amz-Algorithm\=AWS4-HMAC-SHA256\&X-Amz-Credential\=AKIA475HX25MI4V2ARZF%2F20220712%2Fus-east-2%2Fs3%2Faws4_request\&X-Amz-Date\=20220712T162637Z\&X-Amz-Expires\=604800\&X-Amz-SignedHeaders\=host\&X-Amz-Signature\=eadb764a8ea091ab1bb5f9422ae018dad9d6ddac00a3ab6568340a6e23c10ee0 -o rocky-vbox.box
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1186M  100 1186M    0     0  27.3M      0  0:00:43  0:00:43 --:--:-- 28.0M


➜  kickstarts git:(fix-vbox) ✗ vagrant box add --name custom/rocky rocky-vbox.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'custom/rocky' (v0) for provider:
    box: Unpacking necessary files from: file:///Users/tcooper/git/git.resf.org/tcooper/kickstarts/rocky-vbox.box
==> box: Successfully added box 'custom/rocky' (v0) for 'virtualbox'!

...but boot failed with FATAL: Could not read from the boot medium! System halted.

If I do a build in Packer and provide a box for you can you test it? Does that help you at all?

Two things... - Is this a r8 or r9 box? The URL isn't clear. PR is for r8 branch and there are both `Rocky-8-Vagrant-Vbox-8.6` and `rocky9-vbox.box` in the URL. - Assuming nothing I tried to simply import and boot the box. Import had no errors... ``` ➜ kickstarts git:(fix-vbox) curl -LR https://resf-empanadas.s3.us-east-2.amazonaws.com/buildimage-8.6-x86_64/Rocky-8-Vagrant-Vbox-8.6-20220712.0.x86_64/1657639211/rocky9-vbox.box\?X-Amz-Algorithm\=AWS4-HMAC-SHA256\&X-Amz-Credential\=AKIA475HX25MI4V2ARZF%2F20220712%2Fus-east-2%2Fs3%2Faws4_request\&X-Amz-Date\=20220712T162637Z\&X-Amz-Expires\=604800\&X-Amz-SignedHeaders\=host\&X-Amz-Signature\=eadb764a8ea091ab1bb5f9422ae018dad9d6ddac00a3ab6568340a6e23c10ee0 -o rocky-vbox.box % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1186M 100 1186M 0 0 27.3M 0 0:00:43 0:00:43 --:--:-- 28.0M ➜ kickstarts git:(fix-vbox) ✗ vagrant box add --name custom/rocky rocky-vbox.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'custom/rocky' (v0) for provider: box: Unpacking necessary files from: file:///Users/tcooper/git/git.resf.org/tcooper/kickstarts/rocky-vbox.box ==> box: Successfully added box 'custom/rocky' (v0) for 'virtualbox'! ``` ...but boot failed with `FATAL: Could not read from the boot medium! System halted.` If I do a build in Packer and provide a box for you can you test it? Does that help you at all?
Author
First-time contributor

@neil Build of using this kickstart in my packer env completed without errors, the box could be added to vagrant and booted without errors and mounted default shared folder using the vboxsf kmod created for the installed kernel.

packer build

➜  packer_rockylinux git:(r9) ✗ packer build -only '*.rockylinux' .
virtualbox-iso.rockylinux: output will be in this color.

==> virtualbox-iso.rockylinux: Retrieving Guest additions
==> virtualbox-iso.rockylinux: Trying /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso.rockylinux: Trying /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso.rockylinux: /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso => /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso.rockylinux: Retrieving ISO
==> virtualbox-iso.rockylinux: Trying https://download.rockylinux.org/pub/rocky/8.6/isos/x86_64/Rocky-8.6-x86_64-boot.iso
==> virtualbox-iso.rockylinux: Trying https://download.rockylinux.org/pub/rocky/8.6/isos/x86_64/Rocky-8.6-x86_64-boot.iso?checksum=sha256%3Afe77cc293a2f2fe6ddbf5d4bc2b5c820024869bc7ea274c9e55416d215db0cc5
==> virtualbox-iso.rockylinux: https://download.rockylinux.org/pub/rocky/8.6/isos/x86_64/Rocky-8.6-x86_64-boot.iso?checksum=sha256%3Afe77cc293a2f2fe6ddbf5d4bc2b5c820024869bc7ea274c9e55416d215db0cc5 => /Users/tcooper/.cache/packer/a8370f078dd839ca4094261648be9fa594d431a3.iso
==> virtualbox-iso.rockylinux: Starting HTTP server on port 8747
==> virtualbox-iso.rockylinux: Creating virtual machine...
==> virtualbox-iso.rockylinux: Creating hard drive output-rockylinux/rocky-8.6-rockylinux-x86_64.vdi with size 36000 MiB...
==> virtualbox-iso.rockylinux: Mounting ISOs...
    virtualbox-iso.rockylinux: Mounting boot ISO...
==> virtualbox-iso.rockylinux: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4343)
==> virtualbox-iso.rockylinux: Executing custom VBoxManage commands...
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --memory 2048
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --cpus 1
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --graphicscontroller vmsvga --vram 64
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --rtcuseutc on
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --vrde off
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --audio none
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --clipboard disabled --draganddrop disabled
    virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --mouse usb --keyboard usb
==> virtualbox-iso.rockylinux: Starting the virtual machine...
==> virtualbox-iso.rockylinux: Waiting 10s for boot...
==> virtualbox-iso.rockylinux: Typing the boot command...
==> virtualbox-iso.rockylinux: Using SSH communicator to connect: 127.0.0.1
==> virtualbox-iso.rockylinux: Waiting for SSH to become available...
==> virtualbox-iso.rockylinux: Connected to SSH!
==> virtualbox-iso.rockylinux: Uploading VirtualBox version info (6.1.34)
==> virtualbox-iso.rockylinux: Uploading VirtualBox guest additions ISO...
==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/01_base.sh
==> virtualbox-iso.rockylinux: Pausing 1m0s before the next provisioner...
==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/02_vagrant.sh
==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/03_virtualbox.sh
==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/04_cleanup.sh
==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/05_zerodisk.sh
==> virtualbox-iso.rockylinux: Gracefully halting virtual machine...
==> virtualbox-iso.rockylinux: Preparing to export machine...
    virtualbox-iso.rockylinux: Deleting forwarded port mapping for the communicator (SSH, WinRM, etc) (host port 4343)
==> virtualbox-iso.rockylinux: Exporting virtual machine...
    virtualbox-iso.rockylinux: Executing: export rocky-8.6-rockylinux-x86_64 --output output-rockylinux/rocky-8.6-rockylinux-x86_64.ovf
==> virtualbox-iso.rockylinux: Cleaning up floppy disk...
==> virtualbox-iso.rockylinux: Deregistering and deleting VM...
==> virtualbox-iso.rockylinux: Running post-processor:  (type vagrant)
==> virtualbox-iso.rockylinux (vagrant): Creating a dummy Vagrant box to ensure the host system can create one correctly
==> virtualbox-iso.rockylinux (vagrant): Creating Vagrant box for 'virtualbox' provider
    virtualbox-iso.rockylinux (vagrant): Copying from artifact: output-rockylinux/rocky-8.6-rockylinux-x86_64-disk001.vmdk
    virtualbox-iso.rockylinux (vagrant): Copying from artifact: output-rockylinux/rocky-8.6-rockylinux-x86_64.ovf
    virtualbox-iso.rockylinux (vagrant): Renaming the OVF to box.ovf...
    virtualbox-iso.rockylinux (vagrant): Compressing: Vagrantfile
    virtualbox-iso.rockylinux (vagrant): Compressing: box.ovf
    virtualbox-iso.rockylinux (vagrant): Compressing: metadata.json
    virtualbox-iso.rockylinux (vagrant): Compressing: rocky-8.6-rockylinux-x86_64-disk001.vmdk
Build 'virtualbox-iso.rockylinux' finished after 8 minutes 38 seconds.

==> Wait completed after 8 minutes 38 seconds

==> Builds finished. The artifacts of successful builds are:
--> virtualbox-iso.rockylinux: 'virtualbox' provider box: rocky-8.6-rockylinux-x86_64-virtualbox.box

NOTE: The provisioning scripts are noop for this build case, only the kickstart is used for any post actions.

vagrant box add

➜  packer_rockylinux git:(r9) ✗ vagrant box add --name custom/rockylinux8u6 rocky-8.6-rockylinux-x86_64-virtualbox.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'custom/rockylinux8u6' (v0) for provider:
    box: Unpacking necessary files from: file:///Users/tcooper/boxes/custom/packer_rockylinux/rocky-8.6-rockylinux-x86_64-virtualbox.box
==> box: Successfully added box 'custom/rockylinux8u6' (v0) for 'virtualbox'!

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "custom/rockylinux8u6"

  config.vm.provider "virtualbox" do |vb|
    # Display the VirtualBox GUI when booting the machine
    vb.gui = true

    # Customize the amount of memory on the VM:
    vb.memory = "1024"
  end

  config.vm.provision "shell", inline: <<-SHELL
    cat /etc/rocky-release
  SHELL
end

vagrant up

➜  kickstarts git:(fix-vbox) ✗ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'custom/rockylinux8u6'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: kickstarts_default_1657767874219_9861
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2201 (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:2201
    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: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /Users/tcooper/git/git.resf.org/tcooper/kickstarts
==> default: Running provisioner: shell...
    default: Running: inline script
    default: Rocky Linux release 8.6 (Green Obsidian)

vagrant ssh

➜  kickstarts git:(fix-vbox) ✗ vagrant ssh

[vagrant@localhost ~]$ modinfo vboxsf
filename:       /lib/modules/4.18.0-372.13.1.el8_6.x86_64/misc/vboxsf.ko
version:        6.1.34 r150636
alias:          fs-vboxsf
license:        GPL and additional rights
author:         Oracle Corporation
description:    Oracle VM VirtualBox VFS Module for Host File System Access
rhelversion:    8.6
srcversion:     4FB075146B6351FB845F767
depends:        vboxguest
name:           vboxsf
vermagic:       4.18.0-372.13.1.el8_6.x86_64 SMP mod_unload modversions
parm:           follow_symlinks:Let host resolve symlinks rather than showing them (int)

[vagrant@localhost ~]$ mount -t vboxsf
vagrant on /vagrant type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=1000,gid=1000,_netdev)

[vagrant@localhost ~]$ cat /etc/rocky-release
Rocky Linux release 8.6 (Green Obsidian)

[vagrant@localhost ~]$ uname -r
4.18.0-372.13.1.el8_6.x86_64

[vagrant@localhost ~]$ dnf repoinfo 2>/dev/null | grep baseurl
Repo-baseurl       : http://ash.mirrors.clouvider.net/rocky/8.6/AppStream/x86_64/os/ (35 more)
Repo-baseurl       : http://mirror.lshiy.com/rocky/8.6/BaseOS/x86_64/os/ (35 more)
Repo-baseurl       : http://nyc.mirrors.clouvider.net/rocky/8.6/extras/x86_64/os/ (35 more)

[vagrant@localhost ~]$ dnf check-update
Last metadata expiration check: 0:00:06 ago on Thu 14 Jul 2022 03:17:07 AM UTC.
@neil Build of using this kickstart in my packer env completed without errors, the box could be added to vagrant and booted without errors and mounted default shared folder using the `vboxsf` kmod created for the installed kernel. ### packer build ```bash ➜ packer_rockylinux git:(r9) ✗ packer build -only '*.rockylinux' . virtualbox-iso.rockylinux: output will be in this color. ==> virtualbox-iso.rockylinux: Retrieving Guest additions ==> virtualbox-iso.rockylinux: Trying /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso ==> virtualbox-iso.rockylinux: Trying /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso ==> virtualbox-iso.rockylinux: /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso => /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso ==> virtualbox-iso.rockylinux: Retrieving ISO ==> virtualbox-iso.rockylinux: Trying https://download.rockylinux.org/pub/rocky/8.6/isos/x86_64/Rocky-8.6-x86_64-boot.iso ==> virtualbox-iso.rockylinux: Trying https://download.rockylinux.org/pub/rocky/8.6/isos/x86_64/Rocky-8.6-x86_64-boot.iso?checksum=sha256%3Afe77cc293a2f2fe6ddbf5d4bc2b5c820024869bc7ea274c9e55416d215db0cc5 ==> virtualbox-iso.rockylinux: https://download.rockylinux.org/pub/rocky/8.6/isos/x86_64/Rocky-8.6-x86_64-boot.iso?checksum=sha256%3Afe77cc293a2f2fe6ddbf5d4bc2b5c820024869bc7ea274c9e55416d215db0cc5 => /Users/tcooper/.cache/packer/a8370f078dd839ca4094261648be9fa594d431a3.iso ==> virtualbox-iso.rockylinux: Starting HTTP server on port 8747 ==> virtualbox-iso.rockylinux: Creating virtual machine... ==> virtualbox-iso.rockylinux: Creating hard drive output-rockylinux/rocky-8.6-rockylinux-x86_64.vdi with size 36000 MiB... ==> virtualbox-iso.rockylinux: Mounting ISOs... virtualbox-iso.rockylinux: Mounting boot ISO... ==> virtualbox-iso.rockylinux: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4343) ==> virtualbox-iso.rockylinux: Executing custom VBoxManage commands... virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --memory 2048 virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --cpus 1 virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --graphicscontroller vmsvga --vram 64 virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --rtcuseutc on virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --vrde off virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --audio none virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --clipboard disabled --draganddrop disabled virtualbox-iso.rockylinux: Executing: modifyvm rocky-8.6-rockylinux-x86_64 --mouse usb --keyboard usb ==> virtualbox-iso.rockylinux: Starting the virtual machine... ==> virtualbox-iso.rockylinux: Waiting 10s for boot... ==> virtualbox-iso.rockylinux: Typing the boot command... ==> virtualbox-iso.rockylinux: Using SSH communicator to connect: 127.0.0.1 ==> virtualbox-iso.rockylinux: Waiting for SSH to become available... ==> virtualbox-iso.rockylinux: Connected to SSH! ==> virtualbox-iso.rockylinux: Uploading VirtualBox version info (6.1.34) ==> virtualbox-iso.rockylinux: Uploading VirtualBox guest additions ISO... ==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/01_base.sh ==> virtualbox-iso.rockylinux: Pausing 1m0s before the next provisioner... ==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/02_vagrant.sh ==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/03_virtualbox.sh ==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/04_cleanup.sh ==> virtualbox-iso.rockylinux: Provisioning with shell script: scripts/05_zerodisk.sh ==> virtualbox-iso.rockylinux: Gracefully halting virtual machine... ==> virtualbox-iso.rockylinux: Preparing to export machine... virtualbox-iso.rockylinux: Deleting forwarded port mapping for the communicator (SSH, WinRM, etc) (host port 4343) ==> virtualbox-iso.rockylinux: Exporting virtual machine... virtualbox-iso.rockylinux: Executing: export rocky-8.6-rockylinux-x86_64 --output output-rockylinux/rocky-8.6-rockylinux-x86_64.ovf ==> virtualbox-iso.rockylinux: Cleaning up floppy disk... ==> virtualbox-iso.rockylinux: Deregistering and deleting VM... ==> virtualbox-iso.rockylinux: Running post-processor: (type vagrant) ==> virtualbox-iso.rockylinux (vagrant): Creating a dummy Vagrant box to ensure the host system can create one correctly ==> virtualbox-iso.rockylinux (vagrant): Creating Vagrant box for 'virtualbox' provider virtualbox-iso.rockylinux (vagrant): Copying from artifact: output-rockylinux/rocky-8.6-rockylinux-x86_64-disk001.vmdk virtualbox-iso.rockylinux (vagrant): Copying from artifact: output-rockylinux/rocky-8.6-rockylinux-x86_64.ovf virtualbox-iso.rockylinux (vagrant): Renaming the OVF to box.ovf... virtualbox-iso.rockylinux (vagrant): Compressing: Vagrantfile virtualbox-iso.rockylinux (vagrant): Compressing: box.ovf virtualbox-iso.rockylinux (vagrant): Compressing: metadata.json virtualbox-iso.rockylinux (vagrant): Compressing: rocky-8.6-rockylinux-x86_64-disk001.vmdk Build 'virtualbox-iso.rockylinux' finished after 8 minutes 38 seconds. ==> Wait completed after 8 minutes 38 seconds ==> Builds finished. The artifacts of successful builds are: --> virtualbox-iso.rockylinux: 'virtualbox' provider box: rocky-8.6-rockylinux-x86_64-virtualbox.box ``` *NOTE: The provisioning scripts are `noop` for this build case, only the kickstart is used for any post actions.* ### vagrant box add ```bash ➜ packer_rockylinux git:(r9) ✗ vagrant box add --name custom/rockylinux8u6 rocky-8.6-rockylinux-x86_64-virtualbox.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'custom/rockylinux8u6' (v0) for provider: box: Unpacking necessary files from: file:///Users/tcooper/boxes/custom/packer_rockylinux/rocky-8.6-rockylinux-x86_64-virtualbox.box ==> box: Successfully added box 'custom/rockylinux8u6' (v0) for 'virtualbox'! ``` ### Vagrantfile ```ruby # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "custom/rockylinux8u6" config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine vb.gui = true # Customize the amount of memory on the VM: vb.memory = "1024" end config.vm.provision "shell", inline: <<-SHELL cat /etc/rocky-release SHELL end ``` ### vagrant up ```bash ➜ kickstarts git:(fix-vbox) ✗ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'custom/rockylinux8u6'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: kickstarts_default_1657767874219_9861 ==> default: Fixed port collision for 22 => 2222. Now on port 2201. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2201 (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:2201 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: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => /Users/tcooper/git/git.resf.org/tcooper/kickstarts ==> default: Running provisioner: shell... default: Running: inline script default: Rocky Linux release 8.6 (Green Obsidian) ``` ### vagrant ssh ``` ➜ kickstarts git:(fix-vbox) ✗ vagrant ssh [vagrant@localhost ~]$ modinfo vboxsf filename: /lib/modules/4.18.0-372.13.1.el8_6.x86_64/misc/vboxsf.ko version: 6.1.34 r150636 alias: fs-vboxsf license: GPL and additional rights author: Oracle Corporation description: Oracle VM VirtualBox VFS Module for Host File System Access rhelversion: 8.6 srcversion: 4FB075146B6351FB845F767 depends: vboxguest name: vboxsf vermagic: 4.18.0-372.13.1.el8_6.x86_64 SMP mod_unload modversions parm: follow_symlinks:Let host resolve symlinks rather than showing them (int) [vagrant@localhost ~]$ mount -t vboxsf vagrant on /vagrant type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=1000,gid=1000,_netdev) [vagrant@localhost ~]$ cat /etc/rocky-release Rocky Linux release 8.6 (Green Obsidian) [vagrant@localhost ~]$ uname -r 4.18.0-372.13.1.el8_6.x86_64 [vagrant@localhost ~]$ dnf repoinfo 2>/dev/null | grep baseurl Repo-baseurl : http://ash.mirrors.clouvider.net/rocky/8.6/AppStream/x86_64/os/ (35 more) Repo-baseurl : http://mirror.lshiy.com/rocky/8.6/BaseOS/x86_64/os/ (35 more) Repo-baseurl : http://nyc.mirrors.clouvider.net/rocky/8.6/extras/x86_64/os/ (35 more) [vagrant@localhost ~]$ dnf check-update Last metadata expiration check: 0:00:06 ago on Thu 14 Jul 2022 03:17:07 AM UTC. ```
neil changed title from WIP: add %post installation of VBoxGuestAdditions to add %post installation of VBoxGuestAdditions 2022-11-12 22:43:01 +00:00
neil closed this pull request 2022-11-12 22:54:54 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sig_core/kickstarts#2
No description provided.