What is the OS?

I followed the instructions here
Re-Introducing Vagrant
And as far as I can understand, after vagrant installation on my virtualbox, vagrant has configured itself using Homestead_Improved, and this has led to the PHP server being made and configured for me automatically. Now my question is, what is the OS of this machine? Well, every machine has an OS too, yes?
I think:
Vagrant >> A box
Homestead_Improved >> A provisioner

There was an answer and now it’s gone!

There was an answer, yes, but as it was less than helpful it was deleted by the mods.

I’m not good at terminology but Homestead_Improved is a virtual machine running, if my memory serves me right, a version of Linux and Nginx web server.

1 Like

I’m likely wrong or at best somewhat confused myself, but I believe the VM (in this case VirtualBox) has different Operating Systems available and Vagrant isn’t so much a VM as it is what I’d call an “environment manager”.

My best guess is you have a version of Ubuntu (as gandalf458 posted, Linux), but that would depend on your installation.

I’m not at my desktop to test my localhost, but AFAIK you should be able to see what the OS is (and a lot more info) by going into the CLI and running
vagrant global-status

1 Like

Homestead improved uses Ubuntu as a base, but other boxes uses different distributions.

You can ssh into the server and run cat /etc/*-release which will show:

DISTRIB_ID=Ubuntu                                                                                                                                                                            
DISTRIB_RELEASE=16.04                                                                                                                                                                        
DISTRIB_CODENAME=xenial                                                                                                                                                                      
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"                                                                                                                                                     
NAME="Ubuntu"                                                                                                                                                                                
VERSION="16.04.3 LTS (Xenial Xerus)"                                                                                                                                                         
ID=ubuntu                                                                                                                                                                                    
ID_LIKE=debian                                                                                                                                                                               
PRETTY_NAME="Ubuntu 16.04.3 LTS"                                                                                                                                                             
VERSION_ID="16.04"                                                                                                                                                                           
HOME_URL="http://www.ubuntu.com/"                                                                                                                                                            
SUPPORT_URL="http://help.ubuntu.com/"                                                                                                                                                        
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"                                                                                                                                           
VERSION_CODENAME=xenial                                                                                                                                                                      
UBUNTU_CODENAME=xenial  

For web development the distro often doesn’t matter. Although once you start working on real projects, it’s a good idea to create a VM that matches your real server, though distribution still matters less than installed PHP and MySQL versions.

There are occasions where distribution matters, for example if your server is running CentOS it has selinux enabled by default, Ubuntu does not. If your code is using unix sockets for anything, it’ll work fine on ubuntu but you’ll have to configure the centos server to allow it.

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.