-
Notifications
You must be signed in to change notification settings - Fork 194
Description
Hi Guys,
I 'm trying to use unik to create vms for firecracker and run them. I can build the image following the steps on github but when i 'm running the image I 'm getting errors.
Build:
ubuntu@ip-172-35-102-151:~/unik$ unik build --name writeOS_miVM --path ./demo/ --base firecracker --language go --provider firecracker --force
INFO[0000] running unik build args= base=firecracker force=true host="localhost:3000" language=go mountPoints="[]" name=writeOS_miVM path=./demo/ provider=firecracker
INFO[0000] App packaged as tarball: /tmp/sources.tar.gz.708149797
NAME ID INFRASTRUCTURE CREATED SIZE(MB) MOUNTPOINTS
writeOS_miVM writeOS_miVM FIRECRACKER 2019-03-05 07:08:02.081358097 50
Run:
ubuntu@ip-172-35-102-151:~/unik$ unik run --instanceName writeOS_vm1 --imageName writeOS_miVM
INFO[0000] running unik run env="map[]" host="localhost:3000" imageName=writeOS_miVM instanceName=writeOS_vm1 mounts="map[]"
ERRO[0003] failed running instance: [cmd/run.go:98] running image failed: %v: {[client/instances.go:103] failed with status 500: Firecracker did not create API socket /home/ubuntu/.unik/firecracker/instances/writeOS_vm1/firecracker.sock: context deadline exceeded}
Debug logs from Unik.
time="2019-03-05T07:13:20Z" level=debug msg="Started POST /instances/run for 127.0.0.1:46952"
time="2019-03-05T07:13:20Z" level=debug msg="Received run request" request={writeOS_vm1 writeOS_miVM map[] map[] 0 false false}
time="2019-03-05T07:13:20Z" level=info msg="running instance writeOS_vm1" env=map[] image-id="writeOS_miVM" mounts=map[]
time="2019-03-05T07:13:20Z" level=debug msg="creating firecracker vm"
INFO[0945] Called startVMM(), setting up a VMM on /home/ubuntu/.unik/firecracker/instances/writeOS_vm1/firecracker.sock
time="2019-03-05T07:13:23Z" level=error msg="Firecracker Init returned error Firecracker did not create API socket /home/ubuntu/.unik/firecracker/instances/writeOS_vm1/firecracker.sock: context deadline exceeded"
time="2019-03-05T07:13:23Z" level=error msg="error handling request" error="Firecracker did not create API socket /home/ubuntu/.unik/firecracker/instances/writeOS_vm1/firecracker.sock: context deadline exceeded"
time="2019-03-05T07:13:23Z" level=debug msg="Completed 500 Internal Server Error in 3.001619102s\n"
I 'm using target as local and this is my config file.
providers:
firecracker:
- name: firecracker
binary: /home/ubuntu/firecracker
kernel: /home/ubuntu/hello-vmlinux.bin
console: xterm
Also I can see the vm has been created.
ubuntu@ip-172-35-102-151:~/.unik$ ll firecracker/images/writeOS_miVM/boot.img
Please help.