test hyperstart from hypercontainer

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
Lai Jiangshan
2016-10-11 10:29:55 +08:00
parent eb59290a59
commit 7e64971357
2 changed files with 34 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
###########################
# test hyperstart from hyper
export HYPER_RUNTIME=/var/lib/hyper
sudo mkdir -p ${HYPER_RUNTIME}
sudo cp build/kernel ${HYPER_RUNTIME}/kernel
sudo cp build/hyper-initrd.img ${HYPER_RUNTIME}/hyper-initrd.img
mkdir -p ${GOPATH}/src/github.com/hyperhq
git clone https://github.com/hyperhq/hyperd.git ${GOPATH}/src/github.com/hyperhq/hyperd
cd ${GOPATH}/src/github.com/hyperhq/hyperd
./autogen.sh
./configure
make
hack/test-cmd.sh