Este conteúdo não está disponível no idioma selecionado.

Chapter 7. Troubleshooting


This section contains solutions to common problems that you might encounter while using Minishift.

7.1. Special characters cause passwords to fail

Depending on your operating system and shell environment, certain special characters can trigger variable interpolation and therefore cause passwords to fail.

Workaround: When creating and entering passwords, wrap the string with single quotes in the following format: '<password>'

7.2. Undefining virsh snapshots fail

If you use virsh on KVM/libvirt to create snapshots in your development workflow, and then use minishift delete to delete the snapshots along with the VM, you might encounter the following error:

~]$ minishift delete
Deleting the {mshift} VM...
Error deleting the VM:  [Code-55] [Domain-10] Requested operation is not valid: cannot delete inactive domain with 4 snapshots
Copy to Clipboard Toggle word wrap

Cause: The snapshots are stored in ~/.minishift/machines, but the definitions are stored in var/lib/libvirt/qemu/snapshot/minishift.

Workaround: To delete the snapshots you need to perform the following steps.

  1. Delete the definitions.

    $ sudo virsh snapshot-delete --metadata minishift <snapshot-name>
    Copy to Clipboard Toggle word wrap
  2. Undefine the Minishift domain.

    ~]$ sudo virsh undefine minishift
    Copy to Clipboard Toggle word wrap

    You can now run minishft delete to delete the VM and restart Minishift.

    Note

    In case the above steps do not resolve the issue, you can also use the following command to delete the snapshots:

    ~]$ rm -rf ~/.minishift/machines
    Copy to Clipboard Toggle word wrap

It is recommended to avoid using metadata when you create snapshots. To make sure of this, you can specify the --no-metadata flag. For example:

~]$ sudo virsh snapshot-create-as --domain vm1 overlay1 --diskspec vda,file=/export/overlay1.qcow2 --disk-only --atomic --no-metadata
Copy to Clipboard Toggle word wrap

7.3. KVM: Error creating new host: dial tcp: missing address

  • The problem is likely that the libvirtd service is not running. You can check this with the following command:
~]$ systemctl status libvirtd
Copy to Clipboard Toggle word wrap

If libvirtd is not running, start it and enable it to start on boot:

~]$ systemctl start libvirtd
~]$ systemctl enable libvirtd
Copy to Clipboard Toggle word wrap
  • It is also possible that you are running an unsupported version of libvirt, leading to the same error. Ensure that you’re using at least version 1.3. Older operating systems (like the unsupported Fedora 23) may use an earlier version of libvirt that is incompatible with Red Hat Container Development Kit 3.0

7.4. KVM: Failed to connect socket to /var/run/libvirt/virtlogd-sock

The problem is likely that the virtlogd service is not running. You can check this with the following command:

~]$ systemctl status virtlogd
Copy to Clipboard Toggle word wrap

If virtlogd is not running, start it and enable it to start on boot:

~]$ systemctl start virtlogd
~]$ systemctl enable virtlogd
Copy to Clipboard Toggle word wrap

7.5. KVM: Domain 'minishift' already exists…​

If you try minishift start and hit the above error, ensure that you use minishift delete to delete the VMs created earlier by you. However if this fails and you wish to completely clean up Minishift and start fresh do the following:

  1. Check if any existing Minishift VM are running:

    ~]$ sudo virsh list --all
    Copy to Clipboard Toggle word wrap
  2. If any Minishift VM is running, stop it:

    ~]$ sudo virsh destroy minishift
    Copy to Clipboard Toggle word wrap
  3. Delete the VM:

    ~]$ sudo virsh undefine minishift
    Copy to Clipboard Toggle word wrap
  4. Delete the .minishift/machines directory using:

    ~]$ rm -rf ~/.minishift/machines
    Copy to Clipboard Toggle word wrap

7.6. xhyve: Could not create vmnet interface

The problem is likely that the xhyve driver is not able to clean up vmnet when a VM is removed. vmnet.framework determines the IP address based on the following files:

  • /var/db/dhcpd_leases
  • /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist

Reset the minishift-specific IP database, make sure to remove the minishift entry section from the dhcpd_leases file, and reboot your system.

{
  ip_address=192.168.64.2
  hw_address=1,2:51:8:22:87:a6
  identifier=1,2:51:8:22:87:a6
  lease=0x585e6e70
  name=minishift
}
Copy to Clipboard Toggle word wrap
Note

You can completely reset the IP database by removing the files manually but this is very risky.

7.7. VirtualBox: Error machine does not exist

If you use Windows, make sure that you set the --vm-driver virtualbox flag in the minishift start command. Alternatively, the problem might be an outdated version of VirtualBox.

To avoid this issue, it is recommended to use VirtualBox 5.1.12 or later.

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat