Commit Graph

34 Commits (hwdef/master)

Author SHA1 Message Date
Francis Laniel aa63b4fc94 Add back service to mount VirtualBox host directory into the guest.
Fixes: 770d41f21b ("Use kernel 5.10 for minikube.iso.")
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
2022-08-23 15:55:35 +02:00
Blaine Gardner 8f05ee00e1
Add ability to create extra disks on hyperkit vms
Add the ability to create and attach extra disks to hyperkit vms.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-07-28 09:57:20 -06:00
Anders F Björklund 2b5ad68359 Add persistent storage for /var/lib/buildkit
Mostly to not fill up the tmpfs (RAM), most of the contents
are expendable (although the cache can of course be useful)
2020-12-13 16:00:58 +01:00
Anders F Björklund e525118976 Create missing target directory before installing 2020-05-17 13:19:56 +02:00
Medya Gh 214bf4308c address review comments 2020-04-22 14:41:14 -07:00
Medya Gh 679e4ca1cb remove extra line 2020-04-22 13:04:08 -07:00
Medya Gh 27e5690c80 moviong containerd and kublet pods to presistant mount 2020-04-22 13:03:23 -07:00
Anshul Sirur 270756e93d Bind mount /var/tmp for Podman
When the CRI-O container storage backend is used, loading images using
`podman load` creates temporary files in /var/tmp. As /var/tmp is
mounted as tmpfs, these temporary files rapidly consume the available memory
and cause processes on the minikube VM to be OOM-killed.

Instead, bind mount /var/tmp like we do with /var/log, which will write
temporary files to disk instead of memory.
2020-04-17 09:53:04 +02:00
Anders F Björklund e6c684e19e Switch from MBR to GPT for the ISO partitioning 2020-01-12 15:02:15 +01:00
James Peach 7cb9d643af Replace BR2_EXTERNAL_MINIKUBE_PATH with PKGDIR.
Buildroot support the `_PKGDIR` variable to refer to the package
configuration directory. This means that we can replace all uses
of `BR2_EXTERNAL_MINIKUBE_PATH/package/foo` with `FOO_PKGDIR`.
2019-10-03 14:14:22 +10:00
Thomas Strömberg cc5d4e9724
Merge branch 'master' into rkt-remove 2019-03-25 11:31:09 -07:00
Anders F Björklund 71b3e3ec5d Store the toolbox on the disk instead of rootfs
There was a lack of "disk" space, when using memory.

This also makes the toolbox persistent over reboots.
2019-03-25 07:41:21 +01:00
Anders F Björklund 2590fc7b9a Remove the rkt container runtime
It has not been updated since kubernetes 1.9 or so
2019-03-24 08:50:58 +01:00
Thomas Stromberg 089e1c9cc2 Remove where a swap partition is created and activated 2019-03-20 20:50:49 -07:00
Thomas Strömberg 5d9311bcdf
Merge pull request #3190 from afbjorklund/crio
Improve the default crio-bin configuration
2019-01-15 17:02:12 -08:00
Anders F Björklund c64b423304 Add /var/lib/containers to the list of bindmounts 2018-10-02 22:15:55 +02:00
David Genest bb07acdc90 ensure that /dev has settled before operating
Minikube automount relies on a VM disk to be mounted (usually /dev/sda)
to provide .ssh credentials.

This commit adds a dependency on systemd-udev-settle to ensure that all devices
(including disks) are up and available before executing the mount
script.

We use systemd-udev-settle
https://github.com/systemd/systemd/blob/master/units/systemd-udev-settle.service.in

To ensure this. Note that in the above link, we can read a comment
stating that systemd-udev-settle is used to ensure a populated /dev
during bootup, which is exaclty what we want.

Signed-off-by: David Genest <david.genest@gmail.com>
2018-10-01 15:57:45 -04:00
Aaron Prindle a4606583e4 remove all localkube references from code, change /var/lib/localkube to /var/lib/minikube 2018-07-24 12:36:42 -07:00
Vincent Batts 2788714cc5
minikube-iso: add cri-o runtime
https://github.com/kubernetes-incubator/cri-o

Updated the runc version to its latest master commit.
Got crio into the automounter to get off the tmpfs

This feature bubbles up to the minikube command by reusing the
`--container-runtime=` flag, by enabling the value of "`crio`"
(`minikube start --container-runtime=crio`), while the flags/config
passed to localkube are more like k8s (`--container-runtime=remote
--remote-runtime-endpoint=/var/run/crio.sock`)

This is mostly ready for review. It is still lacking having
--insecure-registry plumbed through, but for now the policy.json is
open.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-09-27 09:12:15 -04:00
Praveen Kumar ee49cebaf7 Update minishift directory structure to automout script 2017-09-21 15:47:01 +05:30
Praveen Kumar 35bba7a4ac Use bind mount instead symlink
- Removed extra (prefix/sufix)spaces
2017-09-18 10:17:31 +05:30
dlorenc a26d41399c Automount fixes. 2017-07-31 16:02:10 -07:00
Aaron Prindle 287c568c68 Revert "Ensure that data block device is ready before formatting"
This reverts commit c769ef46ed.
2017-05-08 14:59:38 -07:00
Dale Hamel c769ef46ed Ensure that data block device is ready before formatting 2017-05-03 18:28:19 -04:00
Bryan Larsen eb16a5b66a Increase number of inodes
fixes #1443
2017-05-03 13:10:20 -04:00
Thomas Graf 23660cb1bb minikube-iso: Use buildroot branch 2017-02 (#1412)
This rebases minikube-iso to the release 2017-02.

A change in buildroot required the introduction of a `external.desc` as
multiple external trees are supported in modern buildroot versions. This
required change is described here [0].

[0] https://buildroot.org/downloads/manual/manual.html#br2-external-converting

The existing isolinux.cfg was not included in the config and thus
ignored, include it.

The 4.9.13 kernel included in buildroot 2017-02 is not compatible with
VBox guest additions 5.1.6, thus bump guest additions to 5.1.18.

The defconfig of 4.9.13 has been cleaned up.

systemd 232 included in buildroot 2017-02 is incompatible with docker <
17.03 without boot parameter systemd.legacy_systemd_cgroup_controller=yes

Signed-off-by: Thomas Graf <tgraf@suug.ch>
2017-05-03 08:25:01 -07:00
dlorenc cebea5ffbd Persist the new hostpath location. 2017-03-02 09:03:49 -08:00
Matt Rickard 2b7adb5535 Add bootlocal script as custom startup script 2017-02-24 15:57:51 -08:00
Tom von Schwerdtner e4d62f1028 Persist /tmp/hostpath_pv 2017-02-13 12:32:46 -05:00
dlorenc 80fdb4020b Move the swapon instructions to run on every boot. 2017-01-30 10:36:28 -08:00
Aaron Prindle e0605fbef3 Fixed mount permissions with new iso 2017-01-19 17:27:34 -08:00
Matt Rickard b01a97c549 Add back persistent /data directory in ISO 2017-01-12 09:54:47 -08:00
Matt Rickard 18bbdb1726 Fix logs Integration test
Journalctl has not been logging properly in the minikube-iso because of
the absence of /var/log on startup.  This is an issue now that we are
using systemd for localkube.  This commit links and persists the directory
/var/log like we do for other folders.
2016-12-15 21:13:32 -08:00
Sergiusz Urbaniak ec5d707a59
minikube-iso: move to deploy/iso/minikube-iso 2016-10-13 19:59:25 +02:00