You can make VMs run like containers if you combine Pouch with runV.
runV is a hypervisor-based implement for OCI runtime. With runV, you can easily boot a VM with speed of container.
Pouch work with runV will provide a container which has the security of VM and the fast boot speed as container. Traditionally, VMs get heavy dependency and are slow to boot(seconds), through containers get the fast boot speed but not have good solutions for resource isolation and secury. Using pouch, you can enjoy the advantages of both vm and container.
qemu is required to run VMs.
sudo apt-get install -y qemu qemu-kvm
runv does not provide binary package, build runv from source code.
- download runv from github
export GOPATH=$HOME/go
mkdir -p $GOPATH
go get -u github.com/hyperhq/runv
- build runv
cd $GOPATH/src/github.com/hyperhq/runv
./autogen.sh
./configure
sudo make
sudo make install
- install hyperstart to provide guest kernel and initrd
git clone https://github.com/hyperhq/hyperstart.git
cd hyperstart
./autogen.sh
./configure
sudo make