---
title: vmware-vsphere-install-centos-8-and-run-minishift - Codenotary
description: MONITOR & MANAGE THE RISK EXPOSURE OF YOUR APPLICATIONS WITH TRUESBOM®
image: https://codenotary.com/hubfs/Imported_Blog_Media/Blog-Default-MnL-Feb-10-2023-10-34-53-7737-AM.jpg
---

**$ protect --distro linux --machines 25 --free**

[Start now](https://apps.codenotary.com/linux)

[![cn-logo-black-nobg](https://codenotary.com/hubfs/cn-logo-black-nobg.svg)](https://codenotary.com/)

- Product
  
  #### [![AgentMon Start](https://codenotary.com/hubfs/AgentMon%20Start.svg) **AgentMon Start** Organization-wide AI agent spend, security and device fleet TRY NOW →](https://apps.codenotary.com/agentmon-start)
  
  #### [![AgentMon for Enterprise](https://codenotary.com/hubfs/AgentMon%20for%20Enterprise.svg) **AgentMon** Currently monitors more \> 7 million agent interactions/day. TRY NOW →](https://codenotary.com/agentmon)
  
  #### [![AgentX](https://codenotary.com/hubfs/AgentX.svg) **AgentX** Agentic network control middleware. TRY NOW →](https://codenotary.com/agent-network-control)
  
  #### [![Autonomous Security](https://codenotary.com/hubfs/Autonomous%20Security.svg) **Autonomous Security** AI Agents keep your servers secure. TRY NOW →](https://codenotary.com/trust)
- Use Cases
  
  #### [**AI Agent Risk Monitoring** Continuous oversight of autonomous agents across every environment.](https://codenotary.com/use-cases#risk)
  
  #### [**Autonomous Security Operations** Self-healing defenses that detect, contain, and remediate threats.](https://codenotary.com/use-cases#agentops)
  
  #### [**AI Coding Governance & Performance Monitoring** AI-generated code reviewed, tracked, and held to quality standards.](https://codenotary.com/use-cases#performance)
  
  #### [**AI Tool Cost & Usage Optimization** Spend and consumption optimized across every AI service in use.](https://codenotary.com/use-cases#cost)
  
  #### [**AI Tool Security & Policy Enforcement** Approved AI usage enforced with guardrails and policy controls.](https://codenotary.com/use-cases#security#security)
  
  #### [**Shadow AI Governance** Unsanctioned AI tools discovered, surfaced, and brought under control.](https://codenotary.com/use-cases#shadowit)
- [Blog](https://codenotary.com/blog)
- [Press](https://codenotary.com/press)
- Resources
  
  #### [**Integrations** Connect with your favorite tools and platforms. LEARN MORE →](https://codenotary.com/integrations)
  
  #### [**Support** Get help from our dedicated support team. GET HELP →](https://support.codenotary.com)
  
  #### [**Success Stories** Read how customers achieve their goals. READ MORE →](https://codenotary.com/success)
  
  #### [**Learn** Access documentation and learning resources. EXPLORE →](https://codenotary.com/learn)

[Login](https://apps.codenotary.com/auth/login)

[All posts](https://codenotary.com/blog/all)

 Oct 29, 2019

# vmware-vsphere-install-centos-8-and-run-minishift

 By  [Dennis](https://codenotary.com/blog/author/dennis)  ·   3 minute read

## VMware vSphere – install Centos 8 and run minishift

Many companies are running OpenShift on top of VMware vSphere to deploy, run and manage their container lifecycle. OpenShift uses the container orchestration platform Kubernetes to do so.

Especially when developing applications for OpenShift or if you just want to run a local test environment to play around, you should definitely check out [minishift](https://github.com/minishift/minishift).

This blog posts covers the creation of a virtual machine and the installation of the Centos 8 operating system as well as the first steps installing minishift.

## Creation of the virtual machine

You can pretty much create a completely standardized VM and select Centos 8 (x64) as the operating system. As we want to run it based on KVM in that VM, you need to export the hardware virtualization feature.

![Centos 8 os](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

![enable hardware virtualization](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

## Installation of Centos 8

We don’t dig into the installation of Centos 8 itself, as its pretty straightforward. You can simply download the dvd image here, connect it and run the installer:

<http://isoredirect.centos.org/centos/8/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso>[http://isoredirect.centos.org/centos/8/isos/x86\_64/CentOS-8-x86\_64-1905-dvd1.iso](http://isoredirect.centos.org/centos/8/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso)

## First start Centos 8

The real interesting part starts with the first configuration steps of your fresh installed operating system. Especially if you’re not used to RedHat OS or used to older versions, there are some changes in the command line.

**Setup your network**

\# set your hostname  
 nmtui-hostname# configure your network  
 nmtui-edit# connect your network  
 nmtui-connect

**Update packages**

dnf check-update  
 dnf update  
 dnf clean all# install some basic tools  
 dnf install nano vim wget curl net-tools lsof bash-completion

**Create a new user account with sudo permissions**

useradd user  
 passwd user  
 usermod -aG wheel user

## Install kvm

Start by configuring a bridge network

\# create and edit the following file  
 vi /etc/sysconfig/network-scripts/ifcfg-br0# file content  
 DEVICE=br0  
 TYPE=Bridge  
 IPADDR=192.168.10.100  
 NETMASK=255.255.255.0  
 GATEWAY=192.168.10.1  
 DNS=192.168.10.1  
 ONBOOT=yes  
 BOOTPROTO=static  
 DELAY=0

and the default network adapter

\# create or change the interface config (check the interface name, i. e. ens192)  
 /etc/sysconfig/network-scripts/ifcfg-ens192# file content  
 DEVICE=eth0  
 TYPE=Ethernet  
 BOOTPROTO=none  
 BRIDGE=br0  
 NAME=ens192  
 DEVICE=ens192  
 ONBOOT=yes

Reboot the system and it should come up with a bridge network and the configured ip address.

\# install required packages  
 dnf install qemu-kvm qemu-img libvirt virt-install libvirt-client# check the kvm module  
 lsmod | grep kvm# start and enable the libvirtd  
 systemctl start libvirtd  
 systemctl enable libvirtd

That’s it, KVM is installed and should be up and running.

## Preparation

As virtualbox is used by default, we need to install the minishift KVM driver first:

sudo usermod -a -G libvirtd $(whoami)  
 newgrp libvirt  
 curl -L [https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-centos7](https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-centos7) -o docker-machine-driver-kvm  
 sudo mv docker-machine-driver-kvm /usr/local/bin/docker-machine-driver-kvm  
 sudo chmod +x /usr/local/bin/docker-machine-driver-kvm

Then start the default network

sudo virsh net-start default  
 sudo virsh net-autostart default

## Installation

Check the latest release and change the release number accordingly: 

<https://github.com/minishift/minishift/releases/latest>[https://github.com/minishift/minishift/releases/latest](https://github.com/minishift/minishift/releases/latest)

export VER="1.34.1"  
 curl -L [https://github.com/minishift/minishift/releases/download/v$VER/minishift-$VER-linux-amd64.tgz](https://github.com/minishift/minishift/releases/download/v$VER/minishift-$VER-linux-amd64.tgz) -o minishift-$VER-linux-amd64.tgz  
 tar xvf minishift-$VER-linux-amd64.tgz# copy the executable to /usr/local/bin  
 sudo mv minishift-$VER-linux-amd64/minishift /usr/local/bin # check the version  
 minishift version

### First start

\# start minishift  
 minishift start# get minishift console url  
 minishift console –url# stop minishift  
 minishift stop

![minishift start](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png)

The last message should show the console url that can be opened using a browser

Server Information …  
 OpenShift server started.The server is accessible via web console at:  
 https://192.168.42.144:8443/console

## Install cli (oc)

To control and manage Openshift using the command line, you should install the oc command as well. The oc command is already integrated and you can simply copy it into your default path, like /usr/local/bin

sudo cp ~/.minishift/cache/oc/v3.11.0/linux/oc /usr/local/bin

### oc commands

check if oc is working: ***oc version***

login as administrator: ***oc login -u system:admin***

check your running configuration: ***oc config view***

## Next steps

You should now have a running installation and the oc command should give you meaningful responses. Within a next blog post we’re going to cover steps like kubectl installation, addon installation and running your first application.

[![Share on twitter](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/01-marketplace/twitter-color.png?width=35&height=35&name=twitter-color.png)](https://twitter.com/intent/tweet?original_referer=https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift&utm_medium=social&utm_source=twitter&url=https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift&utm_medium=social&utm_source=twitter&source=tweetbutton&text=) [![Share on facebook](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/01-marketplace/facebook-color.png?width=35&height=35&name=facebook-color.png)](http://www.facebook.com/share.php?u=https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift&utm_medium=social&utm_source=facebook) [![Share on linkedin](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/01-marketplace/linkedin-color.png?width=35&height=35&name=linkedin-color.png)](http://www.linkedin.com/shareArticle?mini=true&url=https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift&utm_medium=social&utm_source=linkedin) [![Share on pinterest](https://4059529.fs1.hubspotusercontent-na1.net/hub/4059529/hubfs/pinterest.jpg?width=35&height=35&name=pinterest.jpg)](http://pinterest.com/pin/create/button/?url=https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift&utm_medium=social&utm_source=pinterest&media=)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Dennis",
    "url" : "https://codenotary.com/blog/author/dennis"
  },
  "dateModified" : "2023-02-14T21:16:17.992Z",
  "datePublished" : "2019-10-29T21:41:39.000Z",
  "headline" : "vmware-vsphere-install-centos-8-and-run-minishift - Codenotary",
  "image" : [ "https://codenotary.com/hubfs/Imported_Blog_Media/Blog-Default-MnL-Feb-10-2023-10-34-53-7737-AM.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://codenotary.com/hubfs/logo-light.svg"
    },
    "name" : "Codenotary, Inc."
  }
}
```

```json
{
  "@context" : "http://schema.org",
  "@type" : "Article",
  "author" : {
    "@type" : "Person",
    "name" : [ "Dennis" ],
    "url" : "https://codenotary.com/blog/author/dennis"
  },
  "datePublished" : "2019-10-29T21:41:39+0000",
  "description" : "MONITOR & MANAGE THE RISK EXPOSURE OF YOUR APPLICATIONS WITH TRUESBOM®",
  "headline" : "vmware-vsphere-install-centos-8-and-run-minishift",
  "image" : "https://23873599.fs1.hubspotusercontent-na1.net/hubfs/23873599/Imported_Blog_Media/Blog-Default-MnL-Feb-10-2023-10-34-53-7737-AM.jpg",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://cdn2.hubspot.net/hubfs/23873599/logo-light.svg"
    },
    "name" : ""
  },
  "url" : "https://codenotary.com/blog/vmware-vsphere-install-centos-8-and-run-minishift"
}
```