VirtualBox is basically inception of your computer. A VirtualBox or VB is a software virtualization package that installs an operating system as an application. This allows additional operating system to be installed on it as a Guest and run in an virtual environment.
Vagrant is a software that is used to manage a development environment. Using this tool from a command line we can grab any available OS, install, configure, run and work inside it. The first thing to create a development environment is by creating a vagrant file or by downloading a vagrant box.
To create a Ose all-in-box , lets create a Vagrantfile as below,
[root@testing-machine vagrant]# cat Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "openshift/origin-all-in-one"
end
Save the file and run “vagrant up” command as below,
[root@testing-machine vagrant]# vagrant up
It will take some time to download a Ose all-in-one box and start the machine. Once the machine is up and running, we can
Once the box has deployed, you can log in using admin and a password, as follows:
$ oc login
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y
Username: admin
Password: admin
Login successful.
You have access to the following projects and can switch between them with 'oc project <projectname>':
cockpit
* default
kube-system
openshift
openshift-infra
Using project "default".
Welcome! See 'oc help' to get started.
The OpenShift cluster is up. You may want to check the cluster status as shown in the following command:
$ oc get node
NAME STATUS AGE
origin Ready 1d
No comments :
Post a Comment