15 Commits

Author SHA1 Message Date
Abiola Ibrahim ffb36052b0 net: update vmnet (#1152)
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
2024-10-04 10:36:14 +01:00
Abiola Ibrahim f36ff1e3e5 v0.6.0 refactor (#848)
* core: begin migration to ubuntu

* core: update cloud image link

* k3s: update version

* core: fix boot for ubuntu

* vm: add ability to set custom hostname

* core: checkpoint: remove qemu wrapper

* core: checkpoint: remove qemu wrapper

* cli: minor bug fix for terminal output

* cli: fix broken terminal output for deb download

* cli: improve terminal output for deb download

* vm: fix docker permission on initial create

* net: remove gvproxy, migrate to user-v2

* docker: fix host-gateway address

* vm: avoid re-installing packages

* k3s: fix broken coredns

* core: improve downloader

* vm: add binfmt for cross-platform containers

* containerd: fix for ubuntu

* containerd: fix broken working directory detection

* chore: remove obsolete env var

* chore: minor refactor for binfmt

* cli: fix ip address for colima list

* docker: add daemon support for proxy env vars

* vm: add more utilities

* ci: remove obsolete ubuntu layer

* ci: move to gh from hub

* core: use custom directory for Lima

* chore: minor factor, remove obsolete variable

* docker: workaround initial user permission issue

* chore: remove obsolete code

* vm: fix binfmt cache

* core: enforce Lima version requirement

* docker: workaround permission issue

* vm: enable inotify by default

* core: enable binfmt only on host arch

* docs: prepare for v0.6.0

* nix: update Go version in shell

* nix: update build

* build: add integration test script

* ci: remove aarch64, defer until proper m1 support

* build: fix colima path in integration test script
2023-11-12 11:28:30 +01:00
Abiola Ibrahim 5f30c83963 net: update vmnet (#694) 2023-04-13 05:42:32 +01:00
Abiola Ibrahim 7ebcf14a69 net: switch to socket_vmnet (#459)
* net: fix vmnet build script

* net: modify vmnet build script

* net: add socket_vmnet binary

* misc: remove inefficient code

* net: fix vmnet build script

* net: port to socket_vmnet

* net: fix vmnet_socket

* net: fix network socket when gvproxy is enabled
2022-10-29 21:01:28 +04:00
tricktron 656ae6d66b chore: refactor Makefile (#354)
* refactor: extract build logic from build.sh to Makefile

* chore: add test rule to Makefile

* apply review suggestion

Co-authored-by: Abiola Ibrahim <git@abiosoft.com>

* fix: use defined `OUTPUT_DIR` variable

* chore: remove -race flag from test as it needs CGO_ENABLED=1

* chore: generate sha in binaries directory

* chore: propagate Go build environment variables

Co-authored-by: Abiola Ibrahim <git@abiosoft.com>
2022-06-28 18:35:41 +01:00
Abiola Ibrahim 3c03f809f9 chore: refactor daemon (#312)
* chore: refactor network daemon
2022-05-30 10:11:24 +01:00
Abiola Ibrahim c42a673589 multiple fixes pre 0.4.0 (#251)
* misc: general refactor

* docker: reduce deamon file error to warning

* core: breaking change! change folder structure

* dns: more fixes

* net: make vmnet optional

* net: limit vmnet to macOS

* net: fix flag check for non-macOS

* ci: fix go version

* ci: fix golang ci

* ci: fix lint error

* ci: increase delay for kubernetes integration test

* k8s: fix flannel route when slirp is enabled

* k3s: enable traefik

* ci: fix lint error

* k3s: fix intermitent kubeconfig issue

* misc: support config folder structure of v <0.4.0

* misc: fix regression, improve log messages

* net: replace launchagent with daemon library

* ci: fix lint error

* ci: change macos version for runner

* ci: attempt macos 12 github runner

* ci: revert macos version for github runner

* net: fix vmnet directory bug

* docs: update readme

* cli: add docker socket path to status

* net: improve vmnet process management

* chore: move embedded file

* checkpoint: config file support

* chore: use global cache directory

* core: add iso with 9p mount support

* core: add support for 9p mounts

* conf: update default config

* core: add config file support

* k3s: configurable version

* k3s: fix bug due to configuration version

* k3s: make ingress (traefik) configurable

* net: ignore network check on non-macOS at shutdown

* chore: code refactor

* ci: fix failed build

* chore: fix false negative error message

* ci: add more tests

* chore: improve error output for commands

* k3s: fix regression due to file transfer method

* cli: do not truncate outputs

* cli: improve list output

* core: add support for docker config, mount type

* cli: add --edit flag to start

* chore: use temp file for startup edit

* cli: new template command for default settings

* net: delay during vmnet process termination

* ci: fix lint error

* net: refactor vmnet daemon, remove symlink hack

* net: improve vmnet daemon shutdown

* net: add gvproxy as additional network option

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* net: fix gvproxy for multiple instances

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* net: fix regression due to gvproxy

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* net: disable network address by default

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* chore: fix lint error

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* cli: rename network-gateway to network-driver

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* chore: prompt before restarting on config edit

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* k8s: fix broken kubeconfig after network address toggle

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* core: update iso image

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* ci: add cross-architecture to integration test

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* docs: update readme

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* chore: ignore already running instances for `start` command

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* chore: handle code and siblings when specified in `colima start --edit --editor`

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* docs: update README.md

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* chore: handle input validation for mount type

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* net: make gvproxy the default driver

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* docs: update readme

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>

* chore: fix minor typo in template

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
2022-05-03 18:10:16 +01:00
Abiola Ibrahim 3fc20b25c3 net: fix embedded vde_vmnet for m1 devices (#235) 2022-03-23 07:10:09 +01:00
Abiola Ibrahim 5e2e41310e network: more fixes(#231)
* network: ensure network process has started

* network: more checks to ensure the network process has started before starting Lima
2022-03-20 08:47:06 +01:00
Abiola Ibrahim 02932da230 network: fix embedded library (#228)
* net: fix embedded library

* net: update embedded libs
2022-03-19 19:32:21 +01:00
Abiola Ibrahim f944599fea add ptp based network (#227)
* build: add vmnet script

* chore: minor refactors and fixes

* net: begin ptp network

* net: embed vmnet

* chore: remove obsolete dry-run command

* net: vmnet support checkpoint

* net: vmnet works

* net: add ip address to colima list

* net: make network instance dynamic

* net: fix embedded archives

* net: ptp network works

* net: route fixed, general refactor

* misc: minor refactor

* cli: enable force stop

* cli: add json to colima list

* k8s: bind to VM ip address

* fix lint
2022-03-19 16:39:09 +01:00
Matej Spiller Muys 784cec04dc chore: remove external dependency for build script on macOS (#132)
Co-authored-by: Matej Spiller Muys <matej.spiller-muys@bitstamp.net>
2022-01-18 14:52:05 +01:00
Abiola Ibrahim 57469b9e8c kubernetes: fix containerd runtime for M1 devices (#78)
* kubernetes: fix containerd runtime for M1 devices

* fix ci
2021-12-05 12:45:46 +01:00
Abiola Ibrahim d99e306af1 switch distro to alpine, prepare for v0.3.0 (#76)
* core: begin switching to Alpine

Signed-off-by: Abiola Ibrahim <abiola89@gmail.com>

* core: embedded binaries checkpoint

* core: embedded binaries checkpoint

* core: add new features

ssh: support ssh agent forwarding
cli: add --list flag to list instances
distro: migrate fully to alpine

* core: general updates

deps: update nerdctl and k3s versions
lima: support LIMA_HOME env var

* core: make binary embed optional

* chore: cleanups

* chore: cleanups

* chore: update readme and build instructions

* ci: update workflow and builds

* nerdctl: add profile to alias script

* chore: remove redundant import

* ci: fixed ci build
2021-12-03 11:24:09 +01:00
Abiola Ibrahim 96646cfd82 chore: change folder structure a bit
Signed-off-by: Abiola Ibrahim <abiola89@gmail.com>
2021-10-13 10:51:29 +01:00