Commit Graph

130 Commits (db08552f10366702429ad7d7a37a942affb7ee8b)

Author SHA1 Message Date
klaases db08552f10 drop reference 2022-08-12 16:11:28 -07:00
klaases 150b506a01 update url 2022-08-12 16:08:00 -07:00
klaases 2e4c616b89 add qemu2 redirect 2022-08-12 16:01:30 -07:00
Akihiro Suda 140e3e2057
rootless: recommend containerd over cri-o
containerd seems more stable for rootless

Workaround for issue 14400

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-06-30 12:47:22 +09:00
Steven Powell 32f940d470 auto install cri-dockerd for none tests and docs 2022-06-16 12:23:00 -07:00
Steven Powell ee65efc891 Fix typo in the documentation of virtualbox CIDR 2022-06-10 16:02:40 -07:00
klaases 30a5264720 Update OpenSUSE Documentation URL 2022-05-31 13:44:52 -07:00
Peter Becich a4572112c9
correct GPU flag in documentation 2022-05-28 17:50:18 -07:00
Sharif Elgamal 5b39a46773 Merge branch 'master' of github.com:kubernetes/minikube into anders-qemu2 2022-05-03 14:01:09 -07:00
Akihiro Suda 92ab555928
Support rootless Podman driver, take 2
Usage:
```
minikube config set rootless true
minikube start --driver=podman --container-runtime=(cri-o|containerd)`
```

Tested on Podman 4.0.2, Ubuntu 21.10.

Needs cgroup v2 (as in Rootless Docker): https://rootlesscontaine.rs/getting-started/common/cgroup2/
See also `site/content/en/docs/drivers/includes/podman_usage.inc`

Fix issue 8719
Fix issue 12460
Replace PR 12901

Changes from PR 12901: `rootless` is now a config property.
In the previous PR, `--rootless` was implemented as a flag for `minikube start`

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-04-05 18:49:40 +09:00
Anders F Björklund 284ad62394 Add the qemu driver to the minikube registry
Since the machine drivers are hardcoded in minikube,
drivers need to be added to the registry to be tested.

Add a basic sanity check for the qemu-system binary,
and set up the basic configuration such as cpus/memory.
2022-04-04 20:15:22 +02:00
Medya Ghazizadeh 23841c4385
Merge pull request #13828 from AkihiroSuda/drop-fuse-overlayfs
KIC rootless: drop fuse-overlayfs; bump kernel requirement to 5.11
2022-03-25 11:57:11 -07:00
Steven Powell 4f6747b1b2 implemented minimum and recommended Docker versions 2022-03-23 15:16:29 -07:00
Akihiro Suda 7204b1db3e
KIC rootless: drop fuse-overlayfs; bump kernel requirement to 5.11
minikube 1.23 (PR 12359) added fuse-overlayfs snapshotter for rootless Docker driver,
but got broken in minikube 1.25 (issue 13534).

We can drop fuse-overlayfs for kernel >= 5.11.

Fix issue 13534

We may add back fuse-overlayfs later if there is a huge demand to
support kernel < 5.11.
That will require packing preloadable tarballs for fuse-overlayfs
snapshotter.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-03-22 18:08:14 +09:00
Daniel Helfand b5d71cf8f2 docs: remove vmware_windows_usage.inc from vmware driver mac section 2022-02-06 11:20:20 -06:00
Sahan Serasinghe 71a41d00d0 Remove additional line break 2022-02-03 09:32:23 +10:30
Steven Powell 39c89f364d make tab for rootless docker 2022-01-19 09:33:12 -08:00
Steven Powell 099c61f42d add docs for setting up WSL 2 & Docker 2022-01-13 10:14:32 -08:00
Anders F Björklund d3eb773d35 Add some clarification on mounts needed for none
Normally these are provided by "minikube-automount",
but with the none driver you are on your own (as usual)
2021-11-29 18:37:26 +01:00
Medya Ghazizadeh bb4031a92e
Merge pull request #12914 from mpuckett159/fix-docs-start-vmware-name
Specify VMware application names used in documentation
2021-11-12 12:22:18 -08:00
Marcus Puckett d2db54e666 Typo fix in vmware_windows_usage.inc
Typo causing a bullet render issue in the VMware driver description page.
2021-11-09 17:57:50 -08:00
Marcus Puckett 9687491c96 Specify VMware applications available for use instead of "VMware"
As VMware's a company and we're dealing with specific applications of said company, updating the start docs to be more specific about those applications.

site/content/en/docs/drivers/_index.md:
 * Updated macOS reference from VMware to VMware Fusion
 * Updated Windows reference from VMware to VMware Workstation

site/content/en/docs/start/_index.md:
 * Update reference from VMware to VMware Fusion/Workstation.
2021-11-09 17:04:43 -08:00
Akihiro Suda d7e728487c
Support CRI-O runtime with Rootless Docker driver
Follow-up to PR 12359 (containerd runtime with Rootless Docker driver).

Usage (needs cgroup v2):
```
dockerd-rootless-setuptool.sh install
docker context use rootless
minikube start --driver=docker --container-runtime=cri-o
```

See site/content/en/docs/drivers/includes/docker_usage.inc

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-11-09 16:09:52 +09:00
Nicolas Busseneau 02a43c52e2
virtualbox: change default `host-only-cidr`
We change the default `--host-only-cidr` to `192.168.59.1/24` in order
to be compatible with the new default host-only networking restrictions
implemented in VirtualBox 6.1.28.

This fixes access denied errors on `minikube start` when using
VirtualBox >= 6.1.28:

```
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp
```

More details:

VirtualBox 6.1.28 introduced new restrictions on host-only networking:
https://www.virtualbox.org/wiki/Changelog-6.1#v28

Manual: https://www.virtualbox.org/manual/ch06.html#network_hostonly

> On Linux, Mac OS X and Solaris Oracle VM VirtualBox will only allow IP
> addresses in 192.68.56.0/21 range to be assigned to host-only
> adapters. For IPv6 only link-local addresses are allowed. If other
> ranges are desired, they can be enabled by creating
> /etc/vbox/networks.conf and specifying allowed ranges there. For
> example, to allow 10.0.0.0/8 and 192.168.0.0/16 IPv4 ranges as well as
> 2001::/64 range put the following lines into /etc/vbox/networks.conf:
>
>      * 10.0.0.0/8 192.168.0.0/16
>      * 2001::/64
>
> Lines starting with the hash # are ignored. Next example allows any
> addresses, effectively disabling range control:
>
>      * 0.0.0.0/0 ::/0

These new restrictions manifest in the form of the following issue on
`minikube start` due to the default `--host-only-cidr` used by the
VirtualBox driver being `192.168.99.1/24`:

```console
😄  minikube v1.23.2 on Ubuntu 18.04
  Using the virtualbox driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
🔥  Deleting "minikube" in virtualbox ...
🤦  StartHost failed, but will try again: creating host: create: creating: Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
😿  Failed to start virtualbox VM. Running "minikube delete" may fix it: creating host: create: creating: Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet1 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

  Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: creating: Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet1 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

╭───────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                           │
│    😿  If the above advice does not help, please let us know:                             │
│    👉  https://github.com/kubernetes/minikube/issues/new/choose                           │
│                                                                                           │
│    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
│                                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
```

While the above is the primary error, other errors will be reported if
the adapter already exists (this happens when the adapter was created
before updating to VirtualBox 6.1.28, on a version of VirtualBox without
the new restrictions). Some examples:

```
 Exiting due to IF_VBOX_NOT_VISIBLE: Failed to start host: creating host: create: creating: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
```

```
  minikube is unable to connect to the VM: dial tcp 192.168.99.112:22: i/o timeout

	This is likely due to one of two reasons:

	- VPN or firewall interference
	- virtualbox network configuration issue

	Suggested workarounds:

	- Disable your local VPN or firewall software
	- Configure your local VPN or firewall to allow access to 192.168.99.112
	- Restart or reinstall virtualbox
	- Use an alternative --vm-driver
	- Use --force to override this connectivity check

  Exiting due to GUEST_PROVISION: Failed to validate network: dial tcp 192.168.99.112:22: i/o timeout
```

When switching to a valid CIDR, `minikube start` works as usual:

```console
😄  minikube v1.23.2 on Ubuntu 18.04
  Using the virtualbox driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🔥  Creating virtualbox VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.22.2 on Docker 20.10.8 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🔎  Verifying Kubernetes components...
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
```

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
2021-11-02 15:30:46 +01:00
Anders F Björklund 4b2ff8c79a Change podman to using the VM root socket 2021-09-26 15:54:16 +02:00
Anders F Björklund a9b74bbea2 Allow running podman as experimental driver 2021-09-26 10:16:46 +02:00
Akihiro Suda 323225483e
Support Rootless Docker
Requirements:
- Install rootless Docker 20.10 or later, see https://rootlesscontaine.rs/getting-started/docker/
- Enable cgroup v2 delegation, see https://rootlesscontaine.rs/getting-started/common/cgroup2/

Usage: `minikube start --driver=docker --container-runtime=containerd`.
The `--container-runtime` flag needs to be set to "containerd".
CRI-O can be also supported later.

Closes issue 10836 ("add support for rootless Docker").

Support for rootless Podman (issue 8719) is not covered in this commit.

---

Code reading guide:
- `deploy/kicbase/Dockerfile`: updated to install fuse-overlayfs and containerd-fuse-overlayfs, which is used
  instead of `overlayfs` snapshotter

- `deploy/kicbase/entrypoint`: updated to verify cgroup v2 delegation.
  Mostly from 8a83ee46b2/images/base/files/usr/local/bin/entrypoint

- `cmd/minikube/cmd/start_flags.go`: updated to set `KubeletInUserNamespace` feature gate when rootless

- `pkg/drivers/kic/oci`: updated to use port forwarding, because rootless container IPs are not reachable from the host

- `pkg/minikube/cruntime`: updated to generate `/etc/containerd/config.toml` with rootless support.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-08-27 17:21:53 +09:00
Rajwinder Mahal 6098bd3939
Update vmware driver install instructions for Mac 2021-06-29 19:45:52 -07:00
Evan Anderson 886a5d6b9f Add VMware as a provider for Linux & Windows
There are Linux & Windows tabs at https://minikube.sigs.k8s.io/docs/drivers/vmware/, connecting them here.
2021-05-14 12:45:12 -07:00
KushagraIndurkhya 6d4cc23eae updating hyperv doc with a troubleshooting 2021-05-11 19:35:10 +05:30
Medya Ghazizadeh 1f80bb3709
Update _index.md 2021-04-05 09:32:50 -07:00
Predrag Rogic 4e34b35479
kvm2 driver: update website 2021-03-28 09:33:39 +01:00
Predrag Rogic 1de79354c9
website: add "Troubleshooting KVM/libvirt networks" 2021-03-19 14:27:31 +00:00
Medya Ghazizadeh 4501e70295
Merge pull request #10458 from afbjorklund/podman-stable
Change podman priority to default on Linux
2021-03-02 14:41:02 -08:00
Anders F Björklund b7847cc91e The github label wasn't renamed like the driver
Accidentally changed it with a search and replace
2021-02-21 19:58:17 +01:00
Anders F Björklund fb90e7ee10 Change podman priority to default on Linux
Requires Podman 2.1 or greater (such as 3.0)

Podman is *not* yet supported for Mac or Win.
2021-02-12 17:33:16 +01:00
Ilya Zuyev 949dce6ef3 Merge branch 'master' into ilyaz/fix_docs_for_arm 2021-02-01 18:38:02 -08:00
Ilya Zuyev 4ca56afb03 site: update building instructions and known issues related to arm64 2021-02-01 16:56:50 -08:00
Daehyeok Mun 4500be129f Validate minimum docker version 2021-02-01 13:54:20 -08:00
Anders F Björklund 541193c945 Address review comments, rename to ssh-ip-address 2021-01-16 14:44:56 +01:00
Anders F Björklund b2121eae39 Rename the generic driver to the ssh driver
Now that we have forked the machine driver
2021-01-09 14:36:32 +01:00
Anders F Björklund fb6cf6b6b6 Add placeholder for docs for the generic driver
But most of it is identical to the "none" driver
2021-01-08 18:16:58 +01:00
AUT0R3V ffea4bb25d
Update vmware_windows_usage.inc 2020-12-29 01:31:16 +05:30
AUT0R3V 397dea8aef
Update vmware_windows_usage.inc 2020-12-23 10:12:04 +05:30
AUT0R3V da1ffdd8ff
Update vmware.md 2020-12-12 04:03:36 +05:30
AUT0R3V 94d3e510c8
Create vmware_windows_usage.inc 2020-12-12 04:03:24 +05:30
Anders F Björklund ebf37ad15f Fix whitespace issues in the site content markdown
Courtesy of markdownlint, but nothing to show on:

 git show --ignore-all-space --ignore-blank-lines

Ignore generated commands, with trailing whitespace.
Those need to be fixed in "generate-docs" instead...
2020-12-05 10:08:32 +01:00
Steven Powell 2b43ff9989 Auto detect user OS and default tabs to it 2020-11-30 15:46:05 -07:00
Ben Leggett 48b4db838d
Review comment 2020-11-12 10:58:34 -05:00
Ben Leggett e42bb2a235
Bug #9607 - No support for userns and rootless 2020-11-09 14:31:24 -05:00