Commit Graph
34 Commits
Author SHA1 Message Date
Abiola Ibrahim 44716fac27 net: add support for bridge mode
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
2025-08-19 20:08:12 +01:00
Abiola Ibrahim 8be3d56dc4 incus: add extra reachable IP addresses
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
2024-08-25 08:05:28 +01:00
Abiola Ibrahim 3d8dd0e234 chore: code refactor (#1072)
* chore: code refactor

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

* docs: update instructions

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

* chore: update refactor

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

---------

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
2024-07-21 11:01:35 +01:00
Abiola Ibrahim a8d533d83a vm: inotify: monitor all containerd namespaces for volumes (#923)
* vm: inotify: monitor all containerd namespaces for volumes

* docker: ensure user added to group, reduce wait interval
2023-12-10 11:58:22 +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
guangwu 1ffc951f7b chore: fix typo in logs (#816)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-09-27 07:13:10 +01:00
Abiola Ibrahim ce79bf3991 vm: mount: inotify: improve error messages and reduce noise (#671)
* vm: mount: improve error messages and reduce noise

* vm: mount: prevent double events
2023-03-27 11:43:59 +01:00
Abiola Ibrahim bb08b72124 vm: mounts: scope events to container volumes (#668)
* vm: mount: limit to container volumes

* vm: mount: validate file before running chmod

* ci: fix lint error
2023-03-27 08:53:42 +01:00
Abiola Ibrahim 8e2a0e0515 vm: mount: also listen for create and rename event 2023-03-26 21:04:51 +01:00
Abiola Ibrahim 9e533eb9c4 vm: mount: reduce noise for inotify events 2023-03-26 20:23:00 +01:00
Abiola Ibrahim d45c3485cc vm: mount: reduce inotify rate limit 2023-03-26 20:14:07 +01:00
Abiola Ibrahim 02d01d9260 vm: mount: listen for filesystem events (#666)
* vm: mount: listen for filesystem events

* vm: mount: validate file before running chmod
2023-03-26 16:12:53 +01:00
Abiola Ibrahim ad6ef9655c vm: mount: inotify: ignore node_modules 2023-03-25 17:22:37 +01:00
Abiola Ibrahim 85f8c19150 vm: mount: revert "improve file latency check"
This reverts commit 083d2032e2.
2023-03-25 16:13:56 +01:00
Abiola Ibrahim 083d2032e2 vm: mount: improve file latency check 2023-03-25 12:14:46 +01:00
Abiola Ibrahim f37dd6a7b3 chore: fix dnshost tests 2023-03-25 12:08:04 +01:00
Abiola Ibrahim a9f4e9c251 vm: alternative approach to trigger inotify (#665)
* vm: add ftime script

* vm: add ftime to embed

* chore: refactor file copy to vm to use []byte

* vm: mount: hotreload fix checkpoint

* vm: mount: use chmod for hotreload

* chore: remove obsolete build
2023-03-25 10:56:11 +01:00
Abiola Ibrahim eceb851136 vm: daemons: read initial settings from config 2023-03-21 18:39:31 +00:00
Abiola Ibrahim 84b598c341 vm: fix duplicate inotify events 2023-03-21 13:09:24 +00:00
Abiola Ibrahim cb9810a2eb vm: fix startup delay for inotify (#658) 2023-03-20 21:28:26 +01:00
Abiola Ibrahim f946b00e25 vm: extend inotify to VZ (#657)
* vm: add inotify support to vz

* vm: fix inotify mutex bug

* vm: refactor inotify
2023-03-20 20:30:04 +01:00
Abiola Ibrahim e60e11652f vm: improve inotify file comparison (#656) 2023-03-20 16:01:31 +01:00
Abiola Ibrahim 30efd6c7bb vm: add experimental long-polling based filesystem inotify events (#655)
* vm: mounts: begin inotify implementation

* chore: update deps

* ci: upgrade to Go 1.20

* vm: mounts: rename to inotify

* vm: mounts: it works but erratic

* vm: mounts: improved performance

* vm: add polling based file system inotify event

* vm: fix containerd for inotify

* ci: fix Go version

* ci: fix linter
2023-03-19 22:23:13 +01:00
Abiola Ibrahim 898867f914 daemon: ensure correct pkill is called (#591)
* daemon: ensure correct pkill is called

* vm: make deamon error non-fatal on stop

* ci: increase delay for aarch64 boot

* ci: fix format error
2023-01-22 13:35:15 +01:00
Abiola Ibrahim 22c46ca3bc net: propagate custom dns hosts to gvproxy (#543) 2022-12-27 19:10:54 +01:00
Arty Gus d8a51b8011 net: reinstate gvproxy (#537)
* cherr-pick gvproxy changes from 40bf7bf79d

* fix gvproxy injection into colima provisioning
2022-12-22 07:09:23 +01:00
Abiola Ibrahim 40bf7bf79d vm: add support for macOS Virtualization.Framework (#504)
* vm: add support for virtualization.framework

* vm: add support for Rosetta on m1 devices

* vm: manually enable rosetta, fixes #494

* vm: enable reachable address for VZ driver

* vm: disable qemu when rosetta is enabled

* vm: fix dns error for ip address

* misc: minor refactor - network address

* cli: add vm driver to status command

* vm: fix default mount type for qemu driver

* chore: rename driver to vmType in config

* k3s: update to v1.25.4+k3s1

* cli: fix broken flag due to refactor
ci: use Go version 1.19

* cli: fix broken flag due to refactor

* ci: use go 1.19 and macOS 12
2022-12-13 12:06:22 +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
Abiola Ibrahim 73c9ad18b8 net: fix dns regression with network address (#432)
* net: fix dns regression with network address

* net: consider gvproxy condition

* net: make gvproxy the default for consistency
2022-09-25 15:38:25 +04:00
Abiola Ibrahim 84fae1ce76 net: use customised qemu binaries for lima (#357)
* net: refactor qemu wrapper

* net: switch qemu wrapper usage to env var

* chore: minor refactor
2022-06-29 21:55:49 +01:00
Abiola Ibrahimandtricktron 3a85204fa7 net: fix #344 qemu process missing gvproxy config (#352)
* chore: move CGO_ENABLE arg to makefile

* chore: use actual current executable path

* chore: fix generated binary on M1 mac

* net: fix #344 qemu process missing gvproxy config

* chore: update gitignore

* chore: refactor, mock filesystem in tests

* chore: update nix environment

* 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>

* chore: disable CGO

* chore: remove empty file

Co-authored-by: tricktron <tgagnaux@gmail.com>
2022-06-29 08:02:32 +01:00
MOYO a49e55489d chore: set gvisor-tap-vsock debug if verbose (#333) 2022-06-14 08:08:03 +01:00
Abiola Ibrahim d3777350f3 fix #316: find qemu with platform specific binary (#317) 2022-06-03 15:58:54 +01:00
Abiola Ibrahim 3c03f809f9 chore: refactor daemon (#312)
* chore: refactor network daemon
2022-05-30 10:11:24 +01:00