Simple application VMs (hypervisor-based sandbox) based on Nix package manager.
Go to file
2018-06-30 21:13:35 +00:00
bin Keep bin directory 2018-06-30 19:37:32 +00:00
nix Add chromium app vm description 2018-06-30 20:50:33 +00:00
qemu Shared directory 2018-06-30 20:42:11 +00:00
share Shared directory 2018-06-30 20:42:11 +00:00
.gitignore Shared directory 2018-06-30 20:42:11 +00:00
appvm.sh Setsid && nohup for qemu process 2018-06-30 20:24:44 +00:00
README.md Add note about PoC 2018-06-30 21:13:35 +00:00

Nix app vms

Simple application VM's based on Nix package manager.

Designed primarily for full screen usage without guest additions.

By default uses 3840x2160, so you need to change appvm/nix/base.nix monitorSection. Autodetection based on host resolution will be done after.

It's a proof-of-concept, but you can still use it. Also there is a lot of strange things inside, don't afraid of :)

Install Nix package manager

$ su -c 'mkdir -m 0755 /nix && chown user /nix'
$ curl https://nixos.org/nix/install | sh

Dependencies

$ su -c 'USE="spice virtfs" emerge qemu virt-manager'

Add appvm to PATH

$ echo 'PATH=$PATH:$HOME/appvm/bin' >> ~/.bashrc

(if you clone appvm to home directory)

Create VM

$ $HOME/appvm/appvm.sh chromium

Run application

$ appvm.chromium

Shared directory

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