<p>One option to solve this issue is a suggestion as provided by <a href="https://stackoverflow.com/a/51889996/2777965">@AndreasGajdosik</a>, i.e. deleting the <code>.minishift</code> directory.</p>

<p>Once <code>rm -rf ~/.minishift</code> was issued and <code>minishift status</code> was run, the issue has been solved:</p>

<pre><code>user@host$ minishift status
Does Not Exist
</code></pre>

CC BY-SA 4.0
2019-12-07T22:33:23.207Z
2019-12-07T22:33:23.207Z
030
<pre><code>minishift start
</code></pre>

<p>was issued and openshift started:</p>

<pre><code>Login to server ...
Creating initial project "myproject" ...
Server Information ...
OpenShift server started.

The server is accessible via web console at:
    https://192.168.42.37:8443/console

You are logged in as:
    User:     developer
    Password: &lt;any value&gt;

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


-- Exporting of OpenShift images is occuring in background process with pid 32067.
</code></pre>

<p>At a certain moment, the laptop ran out of free disk space. Once this issue was solved, an attempt was done to restart the minishift, but all commands return:</p>

<pre><code>Error creating config for VM: Invalid JSON
</code></pre>

<p><strong>Attempts to solve the issue</strong></p>

<ol>
<li>It turned out that a minishift process was still running. Killing this process and subsequently run <code>minishift status</code> returned the same issue.</li>
<li><code>sudo systemctl restart libvirtd</code> did not solve the issue</li>
<li><a href="https://stackoverflow.com/a/52025920/2777965">@tm1701</a> suggested <code>minishift delete --clear-cache</code>, but that does not solve the issue either</li>
</ol>

<openshift><minishift>
How to solve `Error creating config for VM: Invalid JSON` in minishift?
030
# How to solve `Error creating config for VM: Invalid JSON` in minishift?

(Asked by: username_0 on 2019-12-07)

minishift start

was issued and openshift started:
Login to server ...
Creating initial project "myproject" ...
Server Information ...
OpenShift server started.

The server is accessible via web console at:
    https://192.168.42.37:8443/console

You are logged in as:
    User:     developer
    Password: 

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


-- Exporting of OpenShift images is occuring in background process with pid 32067.

At a certain moment, the laptop ran out of free disk space. Once this issue was solved, an attempt was done to restart the minishift, but all commands return:
Error creating config for VM: Invalid JSON

Attempts to solve the issue

It turned out that a minishift process was still running. Killing this process and subsequently run minishift status returned the same issue.
sudo systemctl restart libvirtd did not solve the issue
@tm1701 suggested minishift delete --clear-cache, but that does not solve the issue either

**Tags:** openshift, minishift


---

## 1 answers

### Answer by username_0 on 2019-12-07. Score: 0 | Accepted answer

One option to solve this issue is a suggestion as provided by @AndreasGajdosik, i.e. deleting the .minishift directory.
Once rm -rf ~/.minishift was issued and minishift status was run, the issue has been solved:
user@host$ minishift status
Does Not Exist


---

