Skip to main content

VMware Photon OS

VMware Photon OS logo

"Project Photon OS™ is an open source, minimal Linux container host that is optimized for cloud-native applications, cloud platforms, and VMware infrastructure."

Photon OS version 2.0 GA on VirtualBox

E:\Projects>mkdir photonos
E:\Projects>cd photonos                                                                                                                             
E:\Projects\photonos>vagrant init vmware/photon
A `Vagrantfile` has been placed in this directory. You are now            ready to `vagrant up` your first virtual environment! Please read         the comments in the Vagrantfile as well as documentation on               `vagrantup.com` for more information on using Vagrant.     
                                                                                         
E:\Projects\photonos>vim Vagrantfile 
                                     
E:\Projects\photonos>set | findstr VAGRANT
VAGRANT_HOME=E:\HashiCorp\Vagrant\.vagrant.d

E:\Projects\photonos>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'vmware/photon' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'vmware/photon'
    default: URL: https://vagrantcloud.com/vmware/photon
==> default: Adding box 'vmware/photon' (v2.0.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/vmware/boxes/photon/versions/2.0.0/providers/virtualbox.box
    default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
    default: Progress: 0% (Rate: 281k/s, Estimated time remaining: 0:26:30    default: Progress: 1% (Rate: 655k/s, Estimated time remaining: 0:09:56    default: Progress: 12% (Rate: 4443k/s, Estimated time remaining: 0:01:    default: Progress: 15% (Rate: 4215k/s, Estimated time remaining: 0:01:    default: Progress: 28% (Rate: 4370k/s, Estimated time remaining: 0:00:    default: Progress: 44% (Rate: 5107k/s, Estimated time remaining: 0:00:    default: Progress: 54% (Rate: 6465k/s, Estimated time remaining: 0:00:    default: Progress: 73% (Rate: 3884k/s, Estimated time remaining: 0:00:    default: Progress: 100% (Rate: 5394k/s, Estimated time remaining: --:-    default:
==> default: Successfully added box 'vmware/photon' (v2.0.0) for 'virtualbox'!
==> default: Importing base box 'vmware/photon'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'vmware/photon' version '2.0.0' is up to date...
==> default: Setting the name of the VM: photonos_default_1571460322554_61279
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    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: Warning: Connection reset. Retrying...
    default: Warning: Connection aborted. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    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] No Virtualbox Guest Additions installation found.
The guest's platform ("photon") is currently not supported, will try generic Linux method...
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 6.0.12 - guest version is unknown
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.12 Guest Additions for Linux/mnt/VBoxLinuxAdditions.run: line 44: awk: command not found
/mnt/VBoxLinuxAdditions.run: line 360: test: -lt: unary operator expected
./mnt/VBoxLinuxAdditions.run: line 137: /dev/tty: No such device or address
Signal caught, cleaning up
An error occurred during installation of VirtualBox Guest Additions 6.0.12. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
vboxadd.sh: Starting the VirtualBox Guest Additions.
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
vboxadd.sh: failed: modprobe vboxguest failed.
Unmounting Virtualbox Guest Additions ISO from: /mnt
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default:
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Mounting shared folders...
    default: /vagrant => E:/Projects/photonos
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device


E:\Projects\photonos>vagrant plugin list
vagrant-host-shell (0.0.4, global)
vagrant-junos (0.2.1, global)
vagrant-vbguest (0.20.0, global)

E:\Projects\photonos>vagrant ssh
 05:06:49 up 21 min,  0 users,  load average: 0.00, 0.00, 0.00
tdnf update info not available yet!

vagrant@photon [ ~ ]$ uname -r
4.9.53-3.ph2

vagrant@photon [ ~ ]$ uname -a
Linux photon 4.9.53-3.ph2 #1-photon SMP Thu Oct 26 03:24:31 UTC 2017 x86_64 Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz GenuineIntel GNU/Linux

vagrant@photon [ ~ ]$ free
              total        used        free      shared  buff/cache   available
Mem:         498736       23984      395244         308       79508      463288
Swap:             0           0           0
vagrant@photon [ ~ ]$  

Popular posts from this blog

Microsoft Windows Server 2012 R2 Standard Evaluation Product Key

Microsoft Windows Server 2012 R2 Standard Evaluation D2N9P-3P6X9-2R39C-7RTCD-MDVJX DBGBW-NPF86-BJVTX-K3WKJ-MTB6V

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.