Skip to content

Instantly share code, notes, and snippets.

@fardjad
Created August 28, 2019 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fardjad/a7e634d40f75dc29cff432e7372a1c93 to your computer and use it in GitHub Desktop.
Save fardjad/a7e634d40f75dc29cff432e7372a1c93 to your computer and use it in GitHub Desktop.
[How to run PhotonOS 3+ on VirtualBox] #virtualbox #photonos

How to run PhotonOS 3+ on VirtualBox

Steps

Create the VM

  1. Download the latest OVA (I downloaded the one with UEFI support).

  2. Extract the OVA and grab the VMDK file.

    tar xf photon-*.ova
    
  3. Create a new VM and configure it to use the extracted VMDK file from the previous step.

  4. Boot up the VM.

Install Guest Additions

  1. Log into the VM (username: root, password: changeme).

  2. Set the proxy settings if needed (ie. edit /etc/sysconfig/proxy and reboot the VM).

  3. Update the installed packages and install Guest Additions prerequisites.

    tdnf update
    tdnf install tar build-essential linux-devel -y
    
  4. Mount the Guest Additions ISO image and run the installer.

    mkdir /mnt/cdrom
    mount /dev/cdrom /mnt/cdrom
    cd /mnt/cdrom
    ./VBoxLinuxAdditions.run
    
  5. Disable vmtoolsd service.

    systemctl disable vmtoolsd
    
  6. Enable Guest Additions services:

    systemctl enable vboxadd
    systemctl enable vboxadd-service
    
  7. Reboot the VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment