msm-code c0801541b3
Fix random panics during autoballonning. (#17)
There is a race condition, when good behaving VMs will temporarily
truncate .memory_used to 0 bytes (update is not atomic).

Also, as a matter of principle, VMs should not crash the host,
ever.

Co-authored-by: msm <msm@cert.pl>
2020-03-30 21:53:02 +00:00
2020-02-02 01:43:35 +00:00
2020-01-22 01:18:25 +00:00
2020-01-05 06:12:18 +00:00
2020-01-07 20:01:52 +00:00
2020-02-02 02:13:57 +00:00
2020-01-08 11:16:14 +00:00
2020-01-08 20:52:29 +00:00
2020-02-02 02:55:37 +00:00
2020-01-28 00:12:48 +00:00

Documentation Status Donate Donate

Nix application VMs: security through virtualization

Simple application VMs (hypervisor-based sandbox) based on Nix package manager.

Uses one read-only /nix directory for all appvms. So creating a new appvm (but not first) is just about one minute.

appvm screenshot

Installation

See related documentation.

Usage

Search for applications

$ appvm search chromium

Run application

$ appvm start chromium
$ # ... long wait for first time, because we need to collect a lot of packages

Synchronize remote repos for applications

$ appvm sync

You can customize local settings in ~/.config/appvm/nix/local.nix.

Default hotkey to release cursor: ctrl+alt.

Shared directory

$ ls appvm/chromium
foo.tar.gz
bar.tar.gz

Close VM

$ appvm stop chromium

Automatic ballooning

Add this command:

$ appvm autoballoon

to crontab like that:

$ crontab -l
* * * * * /home/user/dev/go/bin/appvm autoballoon
Description
Simple application VMs (hypervisor-based sandbox) based on Nix package manager.
Readme 6 MiB
Languages
Go 84.5%
Nix 13.3%
Makefile 2.2%