Coder Social home page Coder Social logo

hyperd's Introduction

Build Status

HyperContainer - Hypervisor-agnostic Docker Runtime

This repo contains two parts: the daemon of HyperContainer hyperd and the CLIhyperctl.

What is HyperContainer?

HyperContainer is a hypervisor-agnostic technology that allows you to run Docker images on plain hypervisor.

Why HyperContainer?


HyperContainer combines the best from both worlds: VM and Container.

- Container VM HyperContainer
Isolation Weak, shared kernel Strong, HW-enforced Strong, HW-enforced
Portable Yes, but kernel dependent sometimes No, hypervisor dependent Yes, hypervisor agnostic and portable image
Boot Fast, sub-second Slow, tens of seconds Fast, sub-second
Performance Great OK Good, minimal resource footprint and overhead
Immutable Yes No, configuration management required Yes, only kernel+image
Image Size Small, MBs Big, GBs Small, MBs
Compatibility No, need new tools Great, everything just works Good, it is still a "Machine", much less changes
Mature Not yet Production ready, SDN, SDS, LiveMigration, etc. Yes, just plug-&-play
ROI Rebuild everything with container - Reuse your virtual infrastructure

*BYOK = bring your own kernel

Requirements

  • QEMU 2.0 or later (QEMU 2.6 or later for ARM64 Architecture)
  • Xen 4.5 and VT enabled host (for Xen support)

Installation

Ensure you are running Linux (kernel 3.8 or later) and have QEMU (version 2.0 or later) installed. Then download the binaries and install them (hyper-container and hyperstart) directly.

For the detail of installation, please refer to the documents.

For information on using the command line, just type hyperctl. You may use hyperctl <command> --help for detailed information on any specific command.

Build From Source

Clone hyperd in GoPath

> mkdir -p ${GOPATH}/src/github.com/hyperhq
> cd ${GOPATH}/src/github.com/hyperhq
> git clone https://github.com/hyperhq/hyperd.git hyperd

And make sure you have go (>= 1.7) , device-mapper-devel, and autotools, go into the hyperd dir

> ./autogen.sh
> ./configure
> make

Then you can find the binaries hyperd daemon and hyperctl cmdline tool in current directory. Before running those commands, a config file needs to be placed at /etc/hyper/config directory, and you can find a sample under ${TOP}/package/dist/etc/hyper/config. Kernel and Initrd are required for starting the hyperd daemon, you can find those files from HyperStart project.

Find out more

Contact Us

Found a bug, want to suggest a feature, or have a question? File an issue. When reporting a bug, please include which version of hyperd you are running, as shown by hyperctl --version.

hyperd's People

Contributors

allencloud avatar andresgottlieb avatar bergwolf avatar bketelsen avatar carmark avatar crazykev avatar crook avatar daehyeok avatar feiskyer avatar gao-feng avatar gnawux avatar gnep avatar hzmangel avatar jgillich avatar jimmy-xu avatar laijs avatar liubin avatar minzcmu avatar philips avatar ptptptptptpt avatar resouer avatar spearl avatar tbronchain avatar teawater avatar vitan avatar xiaods avatar xlgao-zju avatar yaozengzeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyperd's Issues

hyperd daemon crash when qemu not started

[HYPER INFO  0603 18:43:02 04546 server.go] Calling POST /pod/run
[HYPER INFO  0603 18:43:02 04546 job.go] +job podRun({"id":"ubuntu:14.04-7631605141","containers":[{"name":"ubuntu:14.04-7631605141","image":"ubuntu:14.04","command":["/bin/sh"],"workdir":"/","entrypoint":[],"ports":[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""})
[HYPER INFO  0603 18:43:02 04546 pod.go] {"id":"ubuntu:14.04-7631605141","containers":[{"name":"ubuntu:14.04-7631605141","image":"ubuntu:14.04","command":["/bin/sh"],"workdir":"/","entrypoint":[],"ports":[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""}
[HYPER ERROR 0603 18:43:02 04546 vm_states.go] Qemu did not start up properly, go to cleaning up
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x561b46]

goroutine 59 [running]:
runtime.panic(0x8b13a0, 0xbd7dd3)
        /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
hyper/qemu.func·012(0x0, 0x0)
        /data/go/src/hyper/qemu/qmp_handler.go:335 +0x86
hyper/qemu.qmpHandler(0xc2085c4120)
        /data/go/src/hyper/qemu/qmp_handler.go:374 +0x2be
created by hyper/qemu.QemuLoop
        /data/go/src/hyper/qemu/qemu.go:45 +0x13a

Base CentOS7.

Add SSL/TLS support to client and daemon

It would be great if the hyper client and daemon supported TLS for communication. This would allow me to do remote administration without the need to setup a VPN or SSH / SSL tunnel.

Nice to have would be if this worked with the same command line options as docker or it could use the docker machine / swarm setup in '~/.docker/machine' I.e client certificates etc.

Hyper(for Mac) doesn't support "http" when pull image from private registry server

Start private registry server( ip 192.168.1.141 )

$ docker run -d -p 5000:5000 --restart=always --name registry -v $(pwd)/data:/tmp/registry registry

hyper for mac (not support http)

OS: Mac OS X 10.10.3
Hyper: Download Install package from https://docs.hyper.sh/get_started/install/mac.html

$ hyper pull 192.168.1.141:5000/mrbot/nginx:1.9.4

hyper ERROR: invalid registry endpoint https://192.168.1.141:5000/v0/: unable to ping registry endpoint https://192.168.1.141:5000/v0/
v2 ping attempt failed with error: Get https://192.168.1.141:5000/v2/: EOF
 v1 ping attempt failed with error: Get https://192.168.1.141:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 192.168.1.141:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/192.168.1.141:5000/ca.crt

docker for linux (support http)

OS: Centos 7.1.1503
Docker: 1.8.1

$vi /etc/sysconfig/docker
#add "--insecure-registry"
other_args="--insecure-registry 192.168.1.141:5000 --selinux-enabled"

$ sudo service docker restart

$ docker pull 192.168.1.141:5000/mrbot/nginx:1.9.4
Pulling repository 192.168.1.141:5000/mrbot/nginx
e3991d05f7ab: Download complete 
e3991d05f7ab: Pulling image (1.9.4) from 192.168.1.141:5000/mrbot/nginx 
2c49f83e0b13: Download complete 
...
a661f0049c0e: Download complete 
Status: Image is up to date for 192.168.1.141:5000/mrbot/nginx:1.9.4

It's better for Hyper to support http.

Unable to launch Docker image "danielbodart/crazyfast.build"

Dockerfile: https://github.com/bodar/crazyfast.build/blob/master/Dockerfile

Build image: https://hub.docker.com/r/danielbodart/crazyfast.build/

Tried running either:

sudo hyper run danielbodart/crazyfast.build

or

create / run / attach

Logs:

[HYPER INFO 0915 07:37:41 02828 server.go] Calling POST /pod/start
[HYPER INFO 0915 07:37:41 02828 job.go] +job podStart(pod-TBbcHKIYuU, )
[HYPER INFO 0915 07:37:41 02828 pod.go] pod:%s, vm:%spod-TBbcHKIYuU
[HYPER INFO 0915 07:37:41 02828 vm_states.go] got spec, prepare devices
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] got new session during initializing
[HYPER INFO 0915 07:37:41 02828 init_comm.go] Wating for init messages...
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] begin qmp init...
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] got qmp welcome, now sending command qmp_capabilities
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] waiting for response
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] got for response
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] QMP connection initialized
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] QMP initialzed, go into main QMP loop
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] Begin receive QMP message
[HYPER INFO 0915 07:37:41 02828 qmp_handler.go] session finished, buffer size 1
[HYPER INFO 0915 07:37:42 02828 init_comm.go] Get init ready message
[HYPER INFO 0915 07:37:42 02828 vm_states.go] begin to wait vm commands
[HYPER INFO 0915 07:37:42 02828 vm_states.go] pod start success
[HYPER INFO 0915 07:37:42 02828 job.go] -job podStart(pod-TBbcHKIYuU, ) OK
[HYPER INFO 0915 07:37:42 02828 qmp_handler.go] Shutdown, quit QMP receiver
[HYPER INFO 0915 07:37:42 02828 qmp_handler.go] got QMP shutdown event, quit...
[HYPER INFO 0915 07:37:42 02828 vm_states.go] Got VM shutdown event while terminating, go to cleaning up
[HYPER ERROR 0915 07:37:42 02828 tty.go] read tty data failed
[HYPER ERROR 0915 07:37:42 02828 init_comm.go] read init data failed
[HYPER INFO 0915 07:37:42 02828 vm_states.go] resources reclaimed, quit...
[HYPER INFO 0915 07:37:42 02828 init_comm.go] vm channel closed, quit

hyper ERROR: the out tar file is not exist

Hello,

I tried to build an image and got the following error:

hyper build -t image_name .
Sending build context to Docker daemon 365.7 MB
hyper ERROR: the out tar file is not exist

I'm on OSX 10.9.5 and I have Virtualbox 5.0. I also tried it with sudo and/or without giving a name for the image but I got the same result.

Is there any network options for hyper?

I start the pod and find the pod using the private network, can not access it from ouside. What's the network models of the hyper? Do you have the network options for the pod just like docker and vagrant? :)

Resource isolation between hyper-created VMs.

In a multi-tenant environment, there should be resource isolation between VMs created by hyper.

The most obvious way to do this, to me at least, is to run each VM that is created by hyper within a different host-OS cgroup.

One way to do this is to give the hyper run command an argument like --into_cgroup=path, and then when hyperd starts the process(es) that are the VM, it puts those into --into_cgroup. I think this works for KVM. I don't know the other hypervisors well enough to know how well it works for them: if they have a single shared support process for multiple VMs, then resource charging won't work right.

hyper hello-world tutorial

could you please create a hello-world tutorial? i tried doing this myself but i couldn't get it running. here's what i'm using:

  • osx
  • virtualbox
  • vagrant with chef/debian-7.8
  • installed docker
  • ran docker run hello-world
  • installed hyper dependencies

when i try to run sudo hyper run hello-world:latest i get the following error:
hyper ERROR: QEMU response data is nil

thanks

we need keep consistent user experience for hyper run and docker run

hyper is difference than docker. but there is a defacto integration with docker images. then here is broken user experience.

case:
hyper run ubuntu:latest
the cli will broken when ubuntu images is not download and cached in local

but if you run blow cmd:

docker run httpd:latest
Unable to find image 'httpd:latest' locally

the cli will continue download images and run the ubuntu step by step.

So i proposal apply this feature to improve user experience.

My ENV:

$ sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.10.5
BuildVersion:   14F27

$ docker version
Client:
 Version:      1.8.1
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   d12ea79
 Built:        Thu Aug 13 02:49:29 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.8.1
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   d12ea79
 Built:        Thu Aug 13 02:49:29 UTC 2015
 OS/Arch:      linux/amd64

$ hyper version
The hyper version is 0.3

mysql Docker image is failed to launch

I tried to launch mysql Docker image, but this image is failed to launch.

My Podfile is the following.

{
  "name": "mysql",
  "resource": {
    "vcpu": 1,
    "memory": 1024
  },
  "containers": [
    {
      "image": "mysql:5.6",
      "envs":  [{
        "env": "MYSQL_ALLOW_EMPTY_PASSWORD",
        "value": "yes"
      }]
    }
  ]
}

I was operated as follows.

vagrant@vagrant-ubuntu-trusty-64:/vagrant/hyper-rails-example$ sudo hyper create mysql.pod 
Pod ID is pod-uDuCYEwAVG
vagrant@vagrant-ubuntu-trusty-64:/vagrant/hyper-rails-example$ sudo hyper list
         POD ID                      POD Name             VM name    Status
 pod-uDuCYEwAVG                    m14h7ivlpg                       pending
vagrant@vagrant-ubuntu-trusty-64:/vagrant/hyper-rails-example$ sudo hyper start pod-uDuCYEwAVG
Successfully started the Pod(pod-uDuCYEwAVG)

After a few minutes , it became as follows.

vagrant@vagrant-ubuntu-trusty-64:/vagrant/hyper-rails-example$ sudo hyper list
         POD ID                      POD Name             VM name    Status
 pod-uDuCYEwAVG                    m14h7ivlpg                        failed

Log output is as follows.

[HYPER INFO  0703 14:17:�59 02868 xen.go] Xen Driver Load failed: failed to initialize xen context
[HYPER INFO  0703 14:17:�59 02868 vm.go] Qemu Driver Loaded
[HYPER INFO  0703 14:17:�59 02868 hyperd.go] [:50] The config file is 
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:204] The config: kernel=/var/lib/hyper/kernel, initrd=/var/lib/hyper/hyper-initrd.img
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:207] The config: bridge=, ip=
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:210] The config: bios=/var/lib/hyper/bios-qboot.bin, cbfs=/var/lib/hyper/cbfs-qboot.rom
[HYPER INFO  0703 14:17:�59 02868 network.go] [:251] bridge exist
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t nat -C POSTROUTING -s 192.168.123.1/24 ! -o hyper0 -j MASQUERADE]
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -N HYPER]
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t filter -C FORWARD -o hyper0 -j HYPER]
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t filter -C FORWARD -i hyper0 -j ACCEPT]
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t filter -C FORWARD -o hyper0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT]
[HYPER INFO  0703 14:17:�59 02868 network.go] [:168] modprobe br_netfilter failed modprobe br_netfilter failed
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t nat -N HYPER]
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t nat -C OUTPUT -m addrtype --dst-type LOCAL ! -d 127.0.0.1/8 -j HYPER]
[HYPER INFO  0703 14:17:�59 02868 iptables.go] [:140] /sbin/iptables, [--wait -t nat -C PREROUTING -m addrtype --dst-type LOCAL -j HYPER]
[HYPER INFO  0703 14:17:�59 02868 docker.go] [:174] Finish the client request
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= info
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= version
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= create
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= podRun
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= list
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= podStart
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= vmCreate
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= vmKill
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= exec
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= attach
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= serveapi
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= acceptconnections
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= podRm
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= pull
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= podCreate
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= podInfo
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= podStop
[HYPER INFO  0703 14:17:�59 02868 daemon.go] [:107] Engine Register: name= tty
[HYPER INFO  0703 14:17:�59 02868 hyperd.go] [:76] Hyper daemon: 0.2 0
[HYPER INFO  0703 14:17:�59 02868 job.go] [:78] +job acceptconnections()
[HYPER INFO  0703 14:17:�59 02868 job.go] [:84] -job acceptconnections() OK
[HYPER INFO  0703 14:17:�59 02868 hyperd.go] [:108] Daemon has completed initialization
[HYPER INFO  0703 14:17:�59 02868 job.go] [:78] +job serveapi(unix:///var/run/hyper.sock)
[HYPER INFO  0703 14:17:�59 02868 server.go] [:840] Listening for HTTP on unix (/var/run/hyper.sock)
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering GET, /list
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering GET, /info
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering GET, /pod/info
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering GET, /version
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /container/create
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /image/create
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /pod/create
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /pod/start
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /pod/remove
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /pod/stop
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /vm/create
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /vm/kill
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /tty/resize
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /pod/run
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /exec
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering POST, /attach
[HYPER INFO  0703 14:17:�59 02868 server.go] [:703] Registering OPTIONS, 
[HYPER INFO  0703 14:18:�04 02868 server.go] [:604] Calling POST /pod/create
[HYPER INFO  0703 14:18:�04 02868 server.go] [:378] Args string is {
  "name": "mysql",
  "resource": {
    "vcpu": 1,
    "memory": 1024
  },
  "containers": [
    {
      "image": "mysql:5.6",
      "envs":  [{
        "env": "MYSQL_ALLOW_EMPTY_PASSWORD",
        "value": "yes"
      }]
    }
  ]
}

[HYPER INFO  0703 14:18:�04 02868 job.go] [:78] +job podCreate({
  "name": "mysql",
  "resource": {
    "vcpu": 1,
    "memory": 1024
  },
  "containers": [
    {
      "image": "mysql:5.6",
      "envs":  [{
        "env": "MYSQL_ALLOW_EMPTY_PASSWORD",
        "value": "yes"
      }]
    }
  ]
}
)
[HYPER INFO  0703 14:18:�04 02868 pod.go] [:190] leveldb: not found
[HYPER INFO  0703 14:18:�04 02868 pod.go] [:198] Process the Containers section in POD SPEC
[HYPER INFO  0703 14:18:�04 02868 create.go] [:108] The Repository is mysql, and the tag is 5.6
[HYPER INFO  0703 14:18:�04 02868 docker.go] [:174] Finish the client request
[HYPER INFO  0703 14:18:�04 02868 create.go] [:110] The returned status code is 201!
[HYPER INFO  0703 14:18:�04 02868 job.go] [:84] -job podCreate({
  "name": "mysql",
  "resource": {
    "vcpu": 1,
    "memory": 1024
  },
  "containers": [
    {
      "image": "mysql:5.6",
      "envs":  [{
        "env": "MYSQL_ALLOW_EMPTY_PASSWORD",
        "value": "yes"
      }]
    }
  ]
}
) OK
[HYPER INFO  0703 14:18:�11 02868 server.go] [:604] Calling GET /list
[HYPER INFO  0703 14:18:�11 02868 server.go] [:179] List type is pod
[HYPER INFO  0703 14:18:�11 02868 job.go] [:78] +job list(pod)
[HYPER INFO  0703 14:18:�11 02868 job.go] [:84] -job list(pod) OK
[HYPER INFO  0703 14:18:�18 02868 server.go] [:604] Calling POST /pod/start
[HYPER INFO  0703 14:18:�18 02868 job.go] [:78] +job podStart(pod-uDuCYEwAVG, )
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:63] pod:%s, vm:%spod-uDuCYEwAVG
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:288] The config: kernel=/var/lib/hyper/kernel, initrd=/var/lib/hyper/hyper-initrd.img
[HYPER INFO  0703 14:18:�18 02868 container.go] [:62] ready to get the container(1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb) info
[HYPER INFO  0703 14:18:�18 02868 qemu.go] [:171] kvm not exist change to no kvm mode
[HYPER INFO  0703 14:18:�18 02868 qemu_process.go] [:176] cmdline arguments: -machine pc-i440fx-2.0,usb=off -cpu core2duo -drive if=pflash,file=/var/lib/hyper/bios-qboot.bin,readonly=on -drive if=pflash,file=/var/lib/hyper/cbfs-qboot.rom,readonly=on -realtime mlock=off -no-user-config -nodefaults -no-hpet -rtc base=utc,driftfix=slew -no-reboot -display none -boot strict=on -m 1024 -smp 1 -qmp unix:/var/run/hyper/vm-NFoFbPQjrt/qmp.sock,server,nowait -serial unix:/var/run/hyper/vm-NFoFbPQjrt/console.sock,server,nowait -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x2 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x3 -chardev socket,id=charch0,path=/var/run/hyper/vm-NFoFbPQjrt/hyper.sock,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charch0,id=channel0,name=sh.hyper.channel.0 -chardev socket,id=charch1,path=/var/run/hyper/vm-NFoFbPQjrt/tty.sock,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charch1,id=channel1,name=sh.hyper.channel.1 -fsdev local,id=virtio9p,path=/var/run/hyper/vm-NFoFbPQjrt/share_dir,security_model=none -device virtio-9p-pci,fsdev=virtio9p,mount_tag=share_dir
[HYPER INFO  0703 14:18:�18 02868 docker.go] [:174] Finish the client request
[HYPER INFO  0703 14:18:�18 02868 qemu_process.go] [:107] qemu daemon pid 2902.
[HYPER INFO  0703 14:18:�18 02868 qemu_process.go] [:59] I am the parent, exit, ps: child 2902
[HYPER INFO  0703 14:18:�18 02868 qemu_process.go] [:206] starting daemon with pid: 2902
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:480] Parsing envs for container 0: 4 Evs
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:481] The fs type is dir
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:482] WorkingDir is 
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:483] Image is /1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:494] Container Info is 
&{1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb  /1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs dir  [/entrypoint.sh] [mysqld] map[MYSQL_MAJOR:5.6 MYSQL_VERSION:5.6.25 MYSQL_ALLOW_EMPTY_PASSWORD:yes PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]}
[HYPER INFO  0703 14:18:�18 02868 pod.go] [:496] container 0 created 1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb, workdir , env: map[MYSQL_VERSION:5.6.25 MYSQL_ALLOW_EMPTY_PASSWORD:yes PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin MYSQL_MAJOR:5.6]
POD id is pod-uDuCYEwAVG
[HYPER INFO  0703 14:18:�18 02868 qemu_process.go] [:90] collect child 2901
[HYPER INFO  0703 14:18:�18 02868 hypervisor.go] [:19] main event loop got message 20(COMMAND_RUN_POD)
[HYPER INFO  0703 14:18:�18 02868 vm_states.go] [:315] got spec, prepare devices
[HYPER INFO  0703 14:18:�18 02868 context.go] [:265] #0 Container Info:
[HYPER INFO  0703 14:18:�18 02868 context.go] [:268] 
{
...|    "Id": "1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb",
...|    "Rootfs": "",
...|    "Image": "/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs",
...|    "Fstype": "dir",
...|    "Workdir": "",
...|    "Entrypoint": [
...|        "/entrypoint.sh"
...|    ],
...|    "Cmd": [
...|        "mysqld"
...|    ],
...|    "Envs": {
...|        "MYSQL_ALLOW_EMPTY_PASSWORD": "yes",
...|        "MYSQL_MAJOR": "5.6",
...|        "MYSQL_VERSION": "5.6.25",
...|        "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
...|    }
...|}
[HYPER INFO  0703 14:18:�18 02868 vm_states.go] [:60] initial vm spec: {
        "hostname": "guihvtsh5d",
        "containers": [
            {
                "id": "1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb",
                "rootfs": "",
                "image": "/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs",
                "workdir": "/",
                "cmd": [
                    "/entrypoint.sh",
                    "mysqld"
                ],
                "envs": [
                    {
                        "env": "MYSQL_ALLOW_EMPTY_PASSWORD",
                        "value": "yes"
                    },
                    {
                        "env": "PATH",
                        "value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
                    },
                    {
                        "env": "MYSQL_MAJOR",
                        "value": "5.6"
                    },
                    {
                        "env": "MYSQL_VERSION",
                        "value": "5.6.25"
                    }
                ],
                "restartPolicy": "never"
            }
        ],
        "interfaces": null,
        "routes": null,
        "shareDir": "share_dir"
    }
[HYPER INFO  0703 14:18:�18 02868 context.go] [:239] VM vm-NFoFbPQjrt: state change from  to 'STARTING'
[HYPER INFO  0703 14:18:�18 02868 hypervisor.go] [:19] main event loop got message 12(EVENT_INTERFACE_ADD)
[HYPER INFO  0703 14:18:�18 02868 qmp_wrapper.go] [:74] send net to qemu at 16
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:373] got new session during initializing
[HYPER INFO  0703 14:18:�18 02868 init_comm.go] [:110] Wating for init messages...
[HYPER INFO  0703 14:18:�18 02868 init_comm.go] [:73] trying to read 8 bytes
[HYPER INFO  0703 14:18:�18 02868 tty.go] [:126] tty socket connected
[HYPER INFO  0703 14:18:�18 02868 tty.go] [:69] tty: trying to read 12 bytes
[HYPER INFO  0703 14:18:�18 02868 init_comm.go] [:30] connected to /var/run/hyper/vm-NFoFbPQjrt/console.sock
[HYPER INFO  0703 14:18:�18 02868 init_comm.go] [:37] connected /var/run/hyper/vm-NFoFbPQjrt/console.sock as telnet mode.
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:166] connected to /var/run/hyper/vm-NFoFbPQjrt/qmp.sock
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:176] begin qmp init...
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:185] got qmp welcome, now sending command qmp_capabilities
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:200] waiting for response
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:101] got a message {"return": {}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:209] got for response
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:212] QMP connection initialized
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:349] QMP initialzed, go into main QMP loop
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:135] Begin receive QMP message
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:224] Begin process command session
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:237] send cmd with scm (24 bytes) (1) {"execute":"getfd","arguments":{"fdname":"fdeth0"}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:101] got a message {"return": {}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:242] sending command (1) {"execute":"netdev_add","arguments":{"fd":"fdeth0","id":"eth0","type":"tap"}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:101] got a message {"return": {}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:242] sending command (1) {"execute":"device_add","arguments":{"addr":"0x5","bus":"pci.0","driver":"virtio-net-pci","id":"eth0","mac":"52:54:b9:7e:ef:f1","netdev":"eth0"}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:101] got a message {"return": {}}
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:301] session finished, buffer size 1
[HYPER INFO  0703 14:18:�18 02868 qmp_handler.go] [:304] success 
[HYPER INFO  0703 14:18:�18 02868 hypervisor.go] [:19] main event loop got message 14(EVENT_INTERFACE_INSERTED)
[HYPER INFO  0703 14:18:�18 02868 vm_states.go] [:331] device ready, could run pod.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Initializing cgroup subsys cpu
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Linux version 4.0.0-rc5+ (root@thinkdonkey) (gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) ) #15 SMP Sat Apr 11 13:03:47 CST 2015
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Command line: console=ttyS0,panic=1
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] 
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] e820: BIOS-provided physical RAM map:
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] BIOS-e820: [mem 0x00000000000d0000-0x00000000000effff] ACPI NVS
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] NX (Execute Disable) protection: active
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] DMI not present or invalid.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] e820: last_pfn = 0x40000 max_arch_pfn = 0x400000000
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PAT configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- UC  
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] CPU MTRRs all blank - virtualized system.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] init_memory_mapping: [mem 0x00000000-0x000fffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] init_memory_mapping: [mem 0x3fc00000-0x3fdfffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] init_memory_mapping: [mem 0x20000000-0x3fbfffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] init_memory_mapping: [mem 0x00100000-0x1fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] init_memory_mapping: [mem 0x3fe00000-0x3fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] RAMDISK: [mem 0x3ff09000-0x3fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Early table checksum verification disabled
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: RSDP 0x00000000000F2AE0 000014 (v00 BOCHS )
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: RSDT 0x00000000000EFB95 000034 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: FACP 0x00000000000EF1C0 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: DSDT 0x00000000000EE040 001180 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: FACS 0x00000000000EE000 000040
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: SSDT 0x00000000000EF234 0008E9 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: APIC 0x00000000000EFB1D 000078 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: RSDT 0x00000000000EFB95 000034 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] No NUMA configuration found
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Faking a node at [mem 0x0000000000000000-0x000000003fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] NODE_DATA(0) allocated [mem 0x3fef5000-0x3ff08fff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Zone ranges:
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]   DMA32    [mem 0x0000000001000000-0x000000003fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]   Normal   empty
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Movable zone start for each node
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Early memory node ranges
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]   node   0: [mem 0x0000000000100000-0x000000003fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PM-Timer IO Port: 0x608
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Using ACPI (MADT) for SMP configuration information
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] e820: [mem 0x40000000-0xffffffff] available for PCI devices
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Booting paravirtualized kernel on bare hardware
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PERCPU: Embedded 28 pages/cpu @ffff88003fc00000 s77144 r8192 d29352 u2097152
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258441
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Policy zone: DMA32
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Kernel command line: console=ttyS0,panic=1
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] 
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PID hash table entries: 4096 (order: 3, 32768 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Memory: 1025724K/1048184K available (3566K kernel code, 437K rwdata, 1160K rodata, 892K init, 680K bss, 22460K reserved, 0K cma-reserved)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Hierarchical RCU implementation.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]     RCU dyntick-idle grace-period acceleration is enabled.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] NR_IRQS:4352 nr_irqs:256 16
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]     Offload RCU callbacks from all CPUs
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console]     Offload RCU callbacks from CPUs: 0.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Console: colour *CGA 80x25
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] console [ttyS0] enabled
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] tsc: Fast TSC calibration failed
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] tsc: Unable to calibrate against PIT
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] tsc: using PMTIMER reference calibration
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] tsc: Detected 2202.296 MHz processor
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Calibrating delay loop (skipped), value calculated using timer frequency.. 4404.59 BogoMIPS (lpj=2202296)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pid_max: default: 32768 minimum: 301
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Core revision 20150204
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: All ACPI Tables successfully acquired
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Freeing SMP alternatives memory: 16K (ffffffff815ed000 - ffffffff815f1000)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] APIC calibration not consistent with PM-Timer: 104ms instead of 100ms
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] APIC delta adjusted to PM-Timer: 6250395 (6522340)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] smpboot: CPU0: Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz (fam: 06, model: 0f, stepping: 0b)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Performance Events: unsupported p6 CPU model 15 no PMU driver, software events only.
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] x86: Booted up 1 node, 1 CPUs
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] smpboot: Total of 1 processors activated (4404.59 BogoMIPS)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] devtmpfs: initialized
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] NET: Registered protocol family 16
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: bus type PCI registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PCI: Using configuration type 1 for base access
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Added _OSI(Module Device)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Added _OSI(Processor Device)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Added _OSI(3.0 _SCP Extensions)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Added _OSI(Processor Aggregator Device)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Interpreter enabled
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: (supports S0 S5)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Using IOAPIC for interrupt routing
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [2] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [3] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [4] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [5] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [6] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [7] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [8] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [9] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [10] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [11] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [12] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [13] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [14] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [15] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [16] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [17] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [18] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [19] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [20] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [21] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [22] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [23] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [24] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [25] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [26] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [27] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [28] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [29] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [30] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] acpiphp: Slot [31] registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PCI host bridge to bus 0000:00
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [bus 00-ff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [io  0x0d00-0xadff window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [io  0xae0f-0xaeff window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [io  0xaf20-0xafdf window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [io  0xafe4-0xffff window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci_bus 0000:00: root bus resource [mem 0x40000000-0xfebfffff window]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACPI
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] ACPI: Enabled 16 GPEs in block 00 to 0F
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] vgaarb: loaded
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] SCSI subsystem initialized
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] PCI: Using ACPI for IRQ routing
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Switched to clocksource refined-jiffies
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pnp: PnP ACPI init
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pnp: PnP ACPI: found 5 devices
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Switched to clocksource acpi_pm
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:05.0: BAR 6: assigned [mem 0x40000000-0x4003ffff pref]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:02.0: BAR 1: assigned [mem 0x40040000-0x40040fff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:03.0: BAR 1: assigned [mem 0x40041000-0x40041fff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:04.0: BAR 1: assigned [mem 0x40042000-0x40042fff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:05.0: BAR 1: assigned [mem 0x40043000-0x40043fff]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:03.0: BAR 0: assigned [io  0x1000-0x103f]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:04.0: BAR 0: assigned [io  0x1040-0x107f]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:02.0: BAR 0: assigned [io  0x1080-0x109f]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:05.0: BAR 0: assigned [io  0x10a0-0x10bf]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.1: BAR 4: assigned [io  0x10c0-0x10cf]
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] NET: Registered protocol family 2
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] TCP: Hash tables configured (established 8192 bind 8192)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] TCP: reno registered
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] UDP hash table entries: 512 (order: 2, 16384 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] NET: Registered protocol family 1
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Trying to unpack rootfs image as initramfs...
[HYPER INFO  0703 14:18:�19 02868 init_comm.go] [:45] [console] Freeing initrd memory: 988K (ffff88003ff09000 - ffff880040000000)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] futex hash table entries: 256 (order: 2, 16384 bytes)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 9p: Installing v9fs 9p2000 file system support
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] alg: No test for stdrng (krng)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] io scheduler noop registered
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] io scheduler cfq registered (default)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:02.0: virtio_pci: leaving for legacy driver
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:03.0: enabling device (0000 -> 0003)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:04.0: enabling device (0000 -> 0003)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:05.0: enabling device (0000 -> 0003)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] virtio-pci 0000:00:05.0: virtio_pci: leaving for legacy driver
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] brd: module loaded
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] loop: module loaded
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] scsi host0: Virtio SCSI HBA
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] serio: i8042 KBD port at 0x60,0x64 irq 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] serio: i8042 AUX port at 0x60,0x64 irq 12
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] device-mapper: uevent: version 1.0.3
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] device-mapper: ioctl: 4.30.0-ioctl (2014-12-22) initialised: [email protected]
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] TCP: cubic registered
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] NET: Registered protocol family 17
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 9pnet: Installing 9P2000 support
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] registered taskstats version 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] Freeing unused kernel memory: 892K (ffffffff8150e000 - ffffffff815ed000)
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /dev
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /sys
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /proc
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] uptime 0.73 0.14
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /dev/pts
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /dev
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] open hyper channel /dev/vport0p1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] send ready message
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper send type 8, len 0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:83] read 8/8 [length = 0]
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:87] data length is 8
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:120] Get init ready message
[HYPER INFO  0703 14:18:�20 02868 hypervisor.go] [:19] main event loop got message 5(EVENT_INIT_CONNECTED)
[HYPER INFO  0703 14:18:�20 02868 vm_states.go] [:345] begin to wait vm commands
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:227] send command 1 to init, payload: '{"hostname":"guihvtsh5d","containers":[{"id":"1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb","rootfs":"","image":"/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs","workdir":"/","cmd":["/entrypoint.sh","mysqld"],"envs":[{"env":"MYSQL_ALLOW_EMPTY_PASSWORD","value":"yes"},{"env":"PATH","value":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},{"env":"MYSQL_MAJOR","value":"5.6"},{"env":"MYSQL_VERSION","value":"5.6.25"}],"restartPolicy":"never"}],"interfaces":[{"device":"eth0","ipAddress":"192.168.123.2","netMask":"255.255.255.0"}],"routes":[{"dest":"0.0.0.0/0","gateway":"192.168.123.1","device":"eth0"}],"shareDir":"share_dir"}'.
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:232] message sent, set pong timer
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:73] trying to read 8 bytes
[HYPER INFO  0703 14:18:�20 02868 pod.go] [:658] Get the response from QEMU, VM id is vm-NFoFbPQjrt!
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] channel sh.hyper.channel.1, directory sh.hyper.channel.0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] open hyper channel /dev/vport0p2
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event hyper channel event 0x60e518, ops 0x60e300, fd 4
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 4, 0x60e300
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event hyper ttyfd event 0x60e4f0, ops 0x60e2e0, fd 5
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 5, 0x60e2e0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event hyper signal event 0x60e4c8, ops 0x60e2c0, fd 3
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 3, 0x60e2c0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_loop epoll_wait 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_event_read
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] read 696 bytes data, total data 0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] get length 696
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 0 0 0 1 0 0 2 b8 7b 22 68 6f 73 74 6e 61 6d 65 22 3a 22 67 75 69 68 76 74 73 68 35 64 22 2c 22 63 6f 6e 74 61 69 6e 65 72 73 22 3a 5b 7b 22 69 64 22 3a 22 31 61 36 39 63 37 64 62 61 36 65 38 33 33 34 61 32 65 63 31 65 31 33 38 61 33 61 31 64 34 30 64 35 34 33 37 64 30 34 37 65 64 65 66 35 37 30 65 32 63 66 37 61 31 31 34 64 62 63 30 38 65 62 62 22 2c 22 72 6f 6f 74 66 73 22 3a 22 22 2c 22 69 6d 61 67 65 22 3a 22 2f 31 61 36 39 63 37 64 62 61 36 65 38 33 33 34 61 32 65 63 31 65 31 33 38 61 33 61 31 64 34 30 64 35 34 33 37 64 30 34 37 65 64 65 66 35 37 30 65 32 63 66 37 61 31 31 34 64 62 63 30 38 65 62 62 2f 72 6f 6f 74 66 73 22 2c 22 77 6f 72 6b 64 69 72 22 3a 22 2f 22 2c 22 63 6d 64 22 3a 5b 22 2f 65 6e 74 72 79 70 6f 69 6e 74 2e 73 68 22 2c 22 6d 79 73 71 6c 64 22 5d 2c 22 65 6e 76 73 22 3a 5b 7b 22 65 6e 76 22 3a 22 4d 59 53 51 4c 5f 41 4c 4c 4f 57 5f 45 4d 50 54 59 5f 50 41 53 53 57 4f 52 44 22 2c 22 76 61 6c 75 65 22 3a 22 79 65 73 22 7d 2c 7b 22 65 6e 76 22 3a 22 50 41 54 48 22 2c 22 76 61 6c 75 65 22 3a 22 2f 75 73 72 2f 6c 6f 63 61 6c 2f 73 62 69 6e 3a 2f 75 73 72 2f 6c 6f 63 61 6c 2f 62 69 6e 3a 2f 75 73 72 2f 73 62 69 6e 3a 2f 75 73 72 2f 62 69 6e 3a 2f 73 62 69 6e 3a 2f 62 69 6e 22 7d 2c 7b 22 65 6e 76 22 3a 22 4d 59 53 51 4c 5f 4d 41 4a 4f 52 22 2c 22 76 61 6c 75 65 22 3a 22 35 2e 36 22 7d 2c 7b 22 65 6e 76 22 3a 22 4d 59 53 51 4c 5f 56 45 52 53 49 4f 4e 22 2c 22 76 61 6c 75 65 22 3a 22 35 2e 36 2e 32 35 22 7d 5d 2c 22 72 65 73 74 61 72 74 50 6f 6c 69 63 79 22 3a 22 6e 65 76 65 72 22 7d 5d 2c 22 69 6e 74 65 72 66 61 63 65 73 22 3a 5b 7b 22 64 65 76 69 63 65 22 3a 22 65 74 68 30 22 2c 22 69 70 41 64 64 72 65 73 73 22 3a 22 31 39 32 2e 31 36 38 2e 31 32 33 2e 32 22 2c 22 6e 65 74 4d 61 73 6b 22 3a 22 32 35 35 2e 32 35 35 2e 32 35 35 2e 30 22 7d 5d 2c 22 72 6f 75 74 65 73 22 3a 5b 7b 22 64 65 73 74 22 3a 22 30 2e 30 2e 30 2e 30 2f 30 22 2c 22 67 61 74 65 77 61 79 22 3a 22 31 39 32 2e 31 36 38 2e 31 32 33 2e 31 22 2c 22 64 65 76 69 63 65 22 3a 22 65 74 68 30 22 7d 5d 2c 22 73 68 61 72 65 44 69 72 22 3a 22 73 68 61 72 65 5f 64 69 72 22 7d 
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console]  hyper_channel_handle, type 1, len 696
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] call hyper_start_pod, json {"hostname":"guihvtsh5d","containers":[{"id":"1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb","rootfs":"","image":"/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs","workdir":"/","cmd":["/entrypoint.sh","mysqld"],"envs":[{"env":"MYSQL_ALLOW_EMPTY_PASSWORD","value":"yes"},{"env":"PATH","value":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},{"env":"MYSQL_MAJOR","value":"5.6"},{"env":"MYSQL_VERSION","value":"5.6.25"}],"restartPolicy":"never"}],"interfaces":[{"device":"eth0","ipAddress":"192.168.123.2","netMask":"255.255.255.0"}],"routes":[{"dest":"0.0.0.0/0","gateway":"192.168.123.1","device":"eth0"}],"shareDir":"share_dir"}, len 688
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] call hyper_start_pod, json {"hostname":"guihvtsh5d","containers":[{"id":"1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb","rootfs":"","image":"/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs","workdir":"/","cmd":["/entrypoint.sh","mysqld"],"envs":[{"env":"MYSQL_ALLOW_EMPTY_PASSWORD","value":"yes"},{"env":"PATH","value":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},{"env":"MYSQL_MAJOR","value":"5.6"},{"env":"MYSQL_VERSION","value":"5.6.25"}],"restartPolicy":"never"}],"interfaces":[{"device":"eth0","ipAddress":"192.168.123.2","netMask":"255.255.255.0"}],"routes":[{"dest":"0.0.0.0/0","gateway":"192.168.123.1","device":"eth0"}],"shareDir":"share_dir"}, len 688
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] jsmn parse successed, n is 62
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] token 0, type is 1, size is 5
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] token 1, type is 3, size is 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hostname is guihvtsh5d
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] token 3, type is 3, size is 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container count 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] next container 7
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 2 name id
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container id 1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 4 name rootfs
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container rootfs 
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 6 name image
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container image /1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 8 name workdir
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container workdir /
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 10 name cmd
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container init arg 0 /entrypoint.sh
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container init arg 1 mysqld
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 14 name envs
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs num 4
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 0 env MYSQL_ALLOW_EMPTY_PASSWORD
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 0 value yes
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 1 env PATH
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 1 value /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 2 env MYSQL_MAJOR
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 2 value 5.6
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 3 env MYSQL_VERSION
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] envs 3 value 5.6.25
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 36 name restartPolicy
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] restartPolicy never
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] token 42, type is 3, size is 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] network interfaces num 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net device is eth0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net ipaddress is 192.168.123.2
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net mask is 255.255.255.0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] token 51, type is 3, size is 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] network routes num 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] route 0 dest is 0.0.0.0/0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] route 0 gateway is 192.168.123.1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] route 0 device is eth0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] token 60, type is 3, size is 1
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 9p tag is share_dir
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/proc
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] finish rescan
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net device eth0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net device sys path is /sys/class/net/eth0/ifindex
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] get ifindex 2
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] interface get netamsk 24 255.255.255.0
[HYPER INFO  0703 14:18:�20 02868 qmp_handler.go] [:101] got a message {"timestamp": {"seconds": 1435933100, "microseconds": 426423}, "event": "NIC_RX_FILTER_CHANGED", "data": {"name": "eth0", "path": "/machine/peripheral/eth0/virtio-backend"}}
[HYPER INFO  0703 14:18:�20 02868 qmp_handler.go] [:105] got event: NIC_RX_FILTER_CHANGED
[HYPER INFO  0703 14:18:�20 02868 qmp_handler.go] [:326] got QMP event NIC_RX_FILTER_CHANGED
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net device eth0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] net device sys path is /sys/class/net/eth0/ifindex
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] get ifindex 2
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/shared
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/devpts/
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/devpts
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] pod init pid 35
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_container_init in
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] path /sys/class/scsi_host/host0/scan
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] finish scan scsi
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container root directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] src directory /tmp/hyper/shared//1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs/
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] root directory for container is /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root//, init task /entrypoint.sh
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] list /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get ..
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get .
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get .dockerenv
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get .dockerinit
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get dev
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get etc
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get entrypoint.sh
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get run
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get bin
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get var
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get tmp
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get usr
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get lib
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get mnt
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get opt
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get root
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get media
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get sys
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get selinux
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get boot
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get srv
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get home
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get sbin
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get lib64
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root/ get proc
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root///.oldroot
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root//
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] create directory /dev/pts
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/root
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/proc
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/tmp/hyper/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/devpts
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/tmp/hyper/shared
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/dev/pts
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/dev
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot/sys
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] umount /.oldroot
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] setup pty device /dev/null for exec
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper send type 8, len 0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] container 1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb init pid is 2
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] pod ctl_pipe 8
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper send type 8, len 0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event container pts event 0x15da8b0, ops 0x60e460, fd 0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 0, 0x60e460
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event hyper ctl pipe fd 7
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event hyper ctl pipe fd 7
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event pod ctl pipe event 0x60e420, ops 0x60e360, fd 8
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 7, 0x60e320
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 8, 0x60e360
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event pod signal event 0x60e3f8, ops 0x60e340, fd 3
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_init_event pod signal event 0x60e3f8, ops 0x60e340, fd 3
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] uptime 1.08 0.16
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] 
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper_add_event add event fd 3, 0x60e340
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] hyper send type 9, len 0
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:83] read 8/8 [length = 0]
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:87] data length is 8
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:73] trying to read 8 bytes
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:182] ack got, clear pong timer
[HYPER INFO  0703 14:18:�20 02868 hypervisor.go] [:19] main event loop got message 29(COMMAND_ACK)
[HYPER INFO  0703 14:18:�20 02868 vm_states.go] [:359] [starting] got init ack to 1
[HYPER INFO  0703 14:18:�20 02868 context.go] [:239] VM vm-NFoFbPQjrt: state change from STARTING to 'RUNNING'
[HYPER INFO  0703 14:18:�20 02868 vm_states.go] [:372] pod start success 
[HYPER INFO  0703 14:18:�20 02868 pod.go] [:658] Get the response from QEMU, VM id is vm-NFoFbPQjrt!
[HYPER INFO  0703 14:18:�20 02868 daemon.go] [:549] Add or Update the VM info for pod(pod-uDuCYEwAVG)
[HYPER INFO  0703 14:18:�20 02868 daemon.go] [:567] success to add or  update the VM info for pod(pod-uDuCYEwAVG)
[HYPER INFO  0703 14:18:�20 02868 job.go] [:84] -job podStart(pod-uDuCYEwAVG, ) OK
[HYPER INFO  0703 14:18:�20 02868 init_comm.go] [:45] [console] tsc: Refined TSC clocksource calibration: 2202.361 MHz
[HYPER INFO  0703 14:18:�22 02868 init_comm.go] [:45] [console] Switched to clocksource tsc
[HYPER INFO  0703 14:18:�23 02868 init_comm.go] [:45] [console] random: mysql_install_d urandom read with 95 bits of entropy available
[HYPER INFO  0703 14:18:�25 02868 init_comm.go] [:45] [console] random: nonblocking pool is initialized
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:189] Send ping message to init
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:227] send command 12 to init, payload: ''.
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:232] message sent, set pong timer
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console] hyper_loop epoll_wait 1
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console] hyper_event_read
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console] read 8 bytes data, total data 0
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console] get length 8
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console] 0 0 0 c 0 0 0 8 
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console]  hyper_channel_handle, type 12, len 8
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:45] [console] hyper send type 9, len 0
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:83] read 8/8 [length = 0]
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:87] data length is 8
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:73] trying to read 8 bytes
[HYPER INFO  0703 14:18:�50 02868 init_comm.go] [:182] ack got, clear pong timer
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] pod_init_loop epoll_wait 1
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] signal_loop write to 8
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] pid 2 exit normally, status 1
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper send type 7, len 5
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper_loop epoll_wait 1
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper_event_read
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] read 8 bytes data, total data 0
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] get length 13
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] read 5 bytes data, total data 8
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper_ctl_pipe_handle
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] exec pid 2, pid 2
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper_send_exec_eof exec pid 2, seq 0, container 1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper_release_exec exit code 1
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper_release_exec container init exited, type 12, remains 1, policy 0
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] hyper send type 13, len 4
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:83] read 8/8 [length = 0]
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:87] data length is 12
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:73] trying to read 4 bytes
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:83] read 12/12 [length = 12]
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:73] trying to read 8 bytes
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:220] Pod finished, returned 1 values
[HYPER INFO  0703 14:19:�01 02868 hypervisor.go] [:19] main event loop got message 4(EVENT_POD_FINISH)
[HYPER INFO  0703 14:19:�01 02868 context.go] [:239] VM vm-NFoFbPQjrt: state change from RUNNING to 'TERMINATING'
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:227] send command 4 to init, payload: ''.
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:232] message sent, set pong timer
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] umount /tmp/hyper/shared
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] Sending SIGTERM
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 103
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 35
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] pod_init_loop epoll_wait -1
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 34
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 33
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 32
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 31
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 30
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 29
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 23
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 22
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 21
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 20
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 19
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 18
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 17
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 16
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 15
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 14
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 13
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 12
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 11
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 10
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 9
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 8
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 7
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 6
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 5
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 4
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 3
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] kill process 2
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] ACPI: Preparing to enter system sleep state S5
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:45] [console] reboot: Power down
[HYPER INFO  0703 14:19:�01 02868 qmp_handler.go] [:101] got a message {"timestamp": {"seconds": 1435933141, "microseconds": 588803}, "event": "SHUTDOWN"}
[HYPER INFO  0703 14:19:�01 02868 qmp_handler.go] [:105] got event: SHUTDOWN
[HYPER INFO  0703 14:19:�01 02868 qmp_handler.go] [:151] Shutdown, quit QMP receiver
[HYPER INFO  0703 14:19:�01 02868 qmp_handler.go] [:326] got QMP event SHUTDOWN
[HYPER INFO  0703 14:19:�01 02868 qmp_handler.go] [:328] got QMP shutdown event, quit...
[HYPER INFO  0703 14:19:�01 02868 hypervisor.go] [:19] main event loop got message 1(EVENT_VM_EXIT)
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:478] Got VM shutdown event while terminating, go to cleaning up
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:21] qemu has exit...
[HYPER INFO  0703 14:19:�01 02868 devicemap.go] [:418] need unmount aufs /1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs
[HYPER INFO  0703 14:19:�01 02868 devicemap.go] [:455] remove network card 0: 192.168.123.2
[HYPER INFO  0703 14:19:�01 02868 context.go] [:239] VM vm-NFoFbPQjrt: state change from TERMINATING to 'DESTROYING'
[HYPER INFO  0703 14:19:�01 02868 tty.go] [:304] Input byte chan closed, close the output string chan
[HYPER ERROR 0703 14:19:�01 02868 tty.go] [:72] read tty data failed
[HYPER INFO  0703 14:19:�01 02868 tty.go] [:133] tty socket closed, quit the reading goroutine EOF
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:47] console output end
[HYPER ERROR 0703 14:19:�01 02868 init_comm.go] [:76] read init data failed
[HYPER INFO  0703 14:19:�01 02868 hypervisor.go] [:19] main event loop got message 32(ERROR_INTERRUPTED)
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:583] Connection interrupted while destroying
[HYPER INFO  0703 14:19:�01 02868 hypervisor.go] [:19] main event loop got message 32(ERROR_INTERRUPTED)
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:583] Connection interrupted while destroying
[HYPER INFO  0703 14:19:�01 02868 tty.go] [:100] tty chan closed, quit sent goroutine
[HYPER INFO  0703 14:19:�01 02868 aufs.go] [:221] Ready to unmount the target : /var/run/hyper/vm-NFoFbPQjrt/share_dir/1a69c7dba6e8334a2ec1e138a3a1d40d5437d047edef570e2cf7a114dbc08ebb/rootfs
[HYPER INFO  0703 14:19:�01 02868 hypervisor.go] [:19] main event loop got message 13(EVENT_INTERFACE_DELETE)
[HYPER INFO  0703 14:19:�01 02868 devicemap.go] [:343] interface 0 released
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:245] Unplug interface return with true
[HYPER INFO  0703 14:19:�01 02868 hypervisor.go] [:19] main event loop got message 7(EVENT_CONTAINER_DELETE)
[HYPER INFO  0703 14:19:�01 02868 devicemap.go] [:325] container 0 umounted
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:242] Unplug container return with true
[HYPER INFO  0703 14:19:�01 02868 context.go] [:226] no more device to release/remove/umount, quit
[HYPER INFO  0703 14:19:�01 02868 vm_states.go] [:566] resources reclaimed, quit...
[HYPER INFO  0703 14:19:�01 02868 qemu_process.go] [:23] quit watch dog.
[HYPER INFO  0703 14:19:�01 02868 init_comm.go] [:157] vm channel closed, quit
[HYPER INFO  0703 14:19:�37 02868 server.go] [:604] Calling GET /list
[HYPER INFO  0703 14:19:�37 02868 server.go] [:179] List type is pod
[HYPER INFO  0703 14:19:�37 02868 job.go] [:78] +job list(pod)
[HYPER INFO  0703 14:19:�37 02868 job.go] [:84] -job list(pod) OK

Able to isolate networks?

Is there a way to isolate what networks QEMU uses on the host?

For example, specifying in the podfile to use vnet0 or vnet1, etc, similar to how libvirt does it with the xml formatting.

If there isn't, I'm willing to contribute in adding the ability to specify a specific public / private IP + network.

Also, wouldn't:

network.go

const (
    defaultBridgeIface  = "hyper0"
    defaultBridgeIP     = "192.168.123.0/24"
)

cause the max amount of IP's be 253, only being able to run 253 appcontainers. Shouldn't we make this more dynamic?

Where can I download bios.bin and cbfs.rom?

# ./hyperd --logtostderr
[HYPER INFO  0601 17:53:39 03555 hyperd.go] The config file is 
[HYPER INFO  0601 17:53:39 03555 daemon.go] The config: kernel=/var/lib/hyper/kernel, initrd=/var/lib/hyper/initrd.img
[HYPER INFO  0601 17:53:39 03555 daemon.go] The config: bridge=hyper0, ip=192.168.123.1/24
[HYPER INFO  0601 17:53:39 03555 daemon.go] The config: bios=, cbfs=
[HYPER ERROR 0601 17:53:39 03555 hyperd.go] The hyperd create failed, An error encountered returned from Docker daemon, client and server don't have same version (client : 1.17, server: 1.15)

hyper ERROR: Cannot connect to the Hyper daemon. Is 'hyperd' running on this host?

After I hyper run -p pod.json, my hyper shutdown, and no hyperd service.

root@bjwj:/home/ubuntu/volumes# hyper run -p myweb.json
hyper ERROR: An error occurred trying to connect: Post http:///var/run/hyper.sock/v0.2/pod/run?podArgs=%7B%22id%22%3A+%22myweb%22%2C%22tty%22%3A+true%2C%22resource%22%3A+%7B%22vcpu%22%3A+1%2C%22memory%22%3A+128%7D%2C%22containers%22+%3A+%5B%7B%22name%22%3A+%22myweb%22%2C%22image%22%3A+%22jdeathe%2Fcentos-ssh%22%2C%22command%22%3A+%5B%22%2Fbin%2Fsh%22%5D%2C%09%22workdir%22%3A+%22%2Froot%22%2C%22envs%22%3A++%5B%7B%22env%22%3A+%22JAVA_OPT%22%2C+%22value%22%3A+%22-XMx%3D256m%22+%7D%5D%2C%22ports%22%3A%5B%7B%22containerPort%22%3A+80%2C%09%22hostPort%22%3A+8000+%7D%5D%2C%22volumes%22%3A+%5B%7B%22path%22%3A+%22%2Fhome%2Fubuntu%2Fvolumes%2Fvol_test_1%22%2C%22volume%22%3A+%22name%22%2C%22readOnly%22%3A+false%7D%5D+%7D%5D%7D%0A%0A: EOF
root@bjwj:/home/ubuntu/volumes# hyper list
hyper ERROR: Cannot connect to the Hyper daemon. Is 'hyperd' running on this host?
root@bjwj:/home/ubuntu/volumes# service hyperd status

  • hyperd is not running

My pod.json is :
{"id": "myweb","tty": true,"resource": {"vcpu": 1,"memory": 128},"containers" : [{"name": "myweb","image": "jdeathe/centos-ssh","command": ["/bin/sh"], "workdir": "/root","envs": [{"env": "JAVA_OPT", "value": "-XMx=256m" }],"ports":[{"containerPort": 80, "hostPort": 8000 }],"volumes": [{"path": "/home/ubuntu/volumes/vol_test_1","volume": "name","readOnly": false}] }]}

Cannot run multiple images in a pod

Abhishek@abhi-devstack:~$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
nginx               latest              a785ba7493fd        36 hours ago        132.9 MB
rails               latest              7846d45fd502        3 days ago          885.4 MB
ubuntu              latest              07f8e8c5e660        4 weeks ago         188.3 MB
Abhishek@abhi-devstack:~$ sudo hyper run -p nginx:latest rails:latest
hyper ERROR: stat nginx:latest: no such file or directory
Abhishek@abhi-devstack:~$ sudo hyper run -p nginx rails
hyper ERROR: stat nginx: no such file or directory

Also:

Abhishek@abhi-devstack:~$ uname -a
Linux abhi-devstack 3.16.0-31-generic #43~14.04.1-Ubuntu SMP Tue Mar 10 20:13:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

podInfo should return IPs except loopback

podInfo should return IPs except loopback, for example:

nc -U /var/run/hyper.sock
GET /pod/info?podName=pod-YCfmWBNpcJ HTTP/1.1

HTTP/1.1 201 Created
Content-Type: application/json
Date: Mon, 28 Sep 2015 07:06:16 GMT
Transfer-Encoding: chunked

...
"podIP":["10.254.0.1","192.168.123.2"]
...

10.254.0.1 should not listed since it is configured on lo.

Failed to run centos:7

I got an error message when I tried to run CentOS7 using hyper. Specifying a command doesn't work either. More details as followed.

[root@registry ~]# docker --version
Docker version 1.6.0, build 8aae715/1.6.0

[root@registry ~]# hyper run centos:7
hyper ERROR: An error encountered returned from Docker daemon, No command specified

[HYPER INFO 0610 12:24:^@16 29888 server.go] Calling POST /pod/run
[HYPER INFO 0610 12:24:^@16 29888 job.go] +job podRun({"id":"centos:7-3761847811","containers":[{"name":"centos:7-3761847811","image":"centos:7","command":[],"workdir":"/","entrypoint":[],"ports":[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""})
[HYPER INFO 0610 12:24:^@16 29888 pod.go] {"id":"centos:7-3761847811","containers":[{"name":"centos:7-3761847811","image":"centos:7","command":[],"workdir":"/","entrypoint":[],"ports":[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""}
[HYPER ERROR 0610 12:24:^@16 29888 pod.go] An error encountered returned from Docker daemon, No command specified
[HYPER ERROR 0610 12:24:^@16 29888 pod.go] An error encountered returned from Docker daemon, No command specified
[HYPER INFO 0610 12:24:^@16 29888 vm_states.go] got shutdown command, shutting down
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] got new session during initializing
[HYPER INFO 0610 12:24:^@16 29888 init_comm.go] Wating for init messages...
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] begin qmp init...
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] got qmp welcome, now sending command qmp_capabilities
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] waiting for response
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] got for response
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] QMP connection initialized
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] QMP initialzed, go into main QMP loop
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] Begin receive QMP message
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] session finished, buffer size 1
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] Shutdown, quit QMP receiver
[HYPER INFO 0610 12:24:^@16 29888 qmp_handler.go] got QMP shutdown event, quit...
[HYPER INFO 0610 12:24:^@16 29888 vm_states.go] Got QMP shutdown event
[HYPER INFO 0610 12:24:^@16 29888 vm_states.go] VM Context closed.
[HYPER ERROR 0610 12:24:^@16 29888 pod.go] An error encountered returned from Docker daemon, No command specified
[HYPER INFO 0610 12:24:^@16 29888 job.go] -job podRun({"id":"centos:7-3761847811","containers":[{"name":"centos:7-3761847811","image":"centos:7","command":[],"workdir":"/","entrypoint":[],"ports":[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""}) ERR: An error encountered returned from Docker daemon, No command specified

[HYPER ERROR 0610 12:24:^@16 29888 server.go] Handler for POST /pod/run returned error: An error encountered returned from Docker daemon, No command specified
[HYPER ERROR 0610 12:24:^@16 29888 server.go] HTTP Error: statusCode=500 An error encountered returned from Docker daemon, No command specified
[HYPER INFO 0610 12:24:^@16 29888 qemu_process.go] console output end
[HYPER ERROR 0610 12:24:^@16 29888 tty.go] read tty data failed
[HYPER ERROR 0610 12:24:^@16 29888 init_comm.go] read init data failed
[HYPER ERROR 0610 12:24:^@16 29888 init_comm.go] read init message failed... EOF

Hyper pods don't use the hosts dns

Currently the only way to get pods to be able to resolve outside DNS names is to add the following to the pod config:

{
   ...
    "containers" : [{
      ....
        "files":  [{
            "path": "/etc/",
            "filename": "resolv.conf",
            "perm": "0755"
        }]
    }],
    "files": [{
        "name": "resolv.conf",
        "encoding": "raw",
        "content": "nameserver 8.8.8.8 " <- Google DNS etc
    }],
}

NB: I've removed (...) stuff for readability.

It would be good if hyperd by default used the host dns and maybe supported the same options as the docker daemon where you can set the dns and search prefix

Feature request: osx install with Homebrew

I was thinking it might be easier to install/upgrade the hyper cli via brew, and am trying to create a Homebrew formula, but I notice that you aren't tagging releases? The last one was 0.1?

Homebrew needs to d/l an artifact and compare it's hash locally, so tagging/releasing would be great!

Remove docker related pre-requirements

As far as I can see, what hyper needs from docker is only downloading images.

If this part of job can be done by registry API inside hyper, users can install less pre-requirement software. And this can really make "Hyper = Hypervisor + Kernel + Docker Image" concept more clearly. As for myself, the relation between docker and hyper confused me for a long time.

Environment variables can't be found

I created a pod using following spec:

{
    "containers": [
        {
            "envs": [
                {
                    "env": "SERVICE_HOST",
                    "value": "10.254.0.1"
                },
                {
                    "env": "SERVICE_PORT",
                    "value": "443"
                }
            ],
            "image": "nginx",
            "name": "nginx",
            "ports": [
                {
                    "containerPort": 80,
                    "protocol": "TCP"
                }
            ],
            "tty": false,
        }
    ],
    "resource": {
        "memory": 192,
        "vcpu": 1
    },
    "tty": true,
    "type": "pod",
}

But there is no SERVICE_HOST or SERVICE_PORT found in environment variables:

# hyper exec pod-TToRTANXBb env
HOME=/
TERM=linux
PATH=/bin:/sbin/:/usr/bin/:/usr/sbin/
PWD=/

Error on create pod: invalid argument

[HYPER ERROR 0820 01:28:^@26 42047 server.go] [:132] HTTP Error: statusCode=404 No such image: ubuntu (tag: latest)
[HYPER ERROR 0820 01:28:^@36 42047 pod.go] [:167] mkdir /var/lib/hyper/overlay/fb8ca8a983f6daca2289c5460992d7281d2a1d8f21d9eb6d91525042fd043ea9-init/merged/dev/shm: invalid argument
[HYPER ERROR 0820 01:28:^@36 42047 server.go] [:884] Handler for POST /pod/create returned error: mkdir /var/lib/hyper/overlay/fb8ca8a983f6daca2289c5460992d7281d2a1d8f21d9eb6d91525042fd043ea9-init/merged/dev/shm: invalid argument
[HYPER ERROR 0820 01:28:^@36 42047 server.go] [:132] HTTP Error: statusCode=500 mkdir /var/lib/hyper/overlay/fb8ca8a983f6daca2289c5460992d7281d2a1d8f21d9eb6d91525042fd043ea9-init/merged/dev/shm: invalid argument
[HYPER ERROR 0820 01:28:^@46 42047 pod.go] [:167] mkdir /var/lib/hyper/overlay/89a1e98aeb1a56498407592010d3747ed33ef962d6d1cf88c606a2a086bb3253-init/merged/dev/shm: invalid argument

Specify host IP for host ports

Hi,
I'm just discovering hyper and I noticed that there is no way to specify a host IP for a host port binding. We are using multiple public IPs on the host machine and want to assign ports to them. I can surely just change the iptables rules in the HYPER net chain, but thats a bit tedious.

I would propose to either a) add an extra "hostIP" value for the config or b) prepend the "hostPort" with the IP. The first one is surely easier to parse. I would add this myself and open a pull request if that's welcome. Do you agree this is useful and that option a) is a good implementation?

Hyper Fails to start pod

Ubuntu 15.04
docker 1.6

[HYPER INFO 0528 23:53:05 04155 hyperd.go] The config file is /etc/hyper/config
[HYPER INFO 0528 23:53:05 04155 daemon.go] The config: kernel=/var/lib/hyper/kernel, initrd=/var/lib/hyper/hyper-initrd.img
[HYPER INFO 0528 23:53:05 04155 daemon.go] The config: bridge=, ip=
[HYPER INFO 0528 23:53:05 04155 daemon.go] The config: bios=/var/lib/hyper/bios-qboot.bin, cbfs=/var/lib/hyper/cbfs-qboot.rom
[HYPER INFO 0528 23:53:05 04155 hyperd.go] Hyper daemon: 0.1 0
[HYPER INFO 0528 23:53:05 04155 job.go] +job acceptconnections()
[HYPER INFO 0528 23:53:05 04155 job.go] -job acceptconnections() OK
[HYPER INFO 0528 23:53:05 04155 hyperd.go] Daemon has completed initialization
[HYPER INFO 0528 23:53:05 04155 job.go] +job serveapi(unix:///var/run/hyper.sock)
[HYPER INFO 0528 23:53:05 04155 server.go] Listening for HTTP on unix (/var/run/hyper.sock)
[HYPER INFO 0528 23:53:05 04155 server.go] Registering GET, /info
[HYPER INFO 0528 23:53:05 04155 server.go] Registering GET, /pod/info
[HYPER INFO 0528 23:53:05 04155 server.go] Registering GET, /version
[HYPER INFO 0528 23:53:05 04155 server.go] Registering GET, /list
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /image/create
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /pod/remove
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /tty/resize
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /container/create
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /pod/create
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /pod/start
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /pod/run
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /pod/stop
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /vm/create
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /vm/kill
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /exec
[HYPER INFO 0528 23:53:05 04155 server.go] Registering POST, /attach
[HYPER INFO 0528 23:53:05 04155 server.go] Registering OPTIONS,

[HYPER INFO 0528 23:53:56 04155 server.go] Calling POST /pod/start
[HYPER INFO 0528 23:53:56 04155 job.go] +job podStart(pod-DnZyhANaAx, )
[HYPER INFO 0528 23:53:56 04155 pod.go] pod:%s, vm:%spod-DnZyhANaAx
POD id is pod-DnZyhANaAx
[HYPER INFO 0528 23:53:56 04155 vm_states.go] got spec, prepare devices
[HYPER INFO 0528 23:53:56 04155 qmp_handler.go] got new session during initializing
[HYPER ERROR 0528 23:53:57 04155 init_comm.go] Cannot connect to hyper socket dial unix /var/run/hyper/vm-sbJZGkBVOt/hyper.sock: connection refused
[HYPER ERROR 0528 23:53:57 04155 vm_states.go] Cannot connect to hyper socket dial unix /var/run/hyper/vm-sbJZGkBVOt/hyper.sock: connection refused
[HYPER ERROR 0528 23:53:57 04155 vm_states.go] Shutting down because of an exception: Fail during init pod running environment
[HYPER ERROR 0528 23:53:57 04155 tty.go] Cannot connect to tty socket dial unix /var/run/hyper/vm-sbJZGkBVOt/tty.sock: connection refused
[HYPER ERROR 0528 23:53:57 04155 qmp_handler.go] failed to connected to /var/run/hyper/vm-sbJZGkBVOt/qmp.sock dial unix /var/run/hyper/vm-sbJZGkBVOt/qmp.sock: connection refused
[HYPER ERROR 0528 23:53:57 04155 qemu_process.go] failed to connected to /var/run/hyper/vm-sbJZGkBVOt/console.sock dial unix /var/run/hyper/vm-sbJZGkBVOt/console.sock: no such file or directory
[HYPER ERROR 0528 23:53:57 04155 qmp_handler.go] QMP initialize failed
[HYPER WARN 0528 23:54:07 04155 vm_states.go] Qemu did not exit in time, try to stop it
[HYPER ERROR 0528 23:54:07 04155 vm_states.go] Shutting down because of an exception: vm terminating timeout
[HYPER INFO 0528 23:54:17 04155 qemu_process.go] kill Qemu... 4398
[HYPER INFO 0528 23:54:17 04155 vm_states.go] Got Qemu force killed message, go to cleaning up
[HYPER ERROR 0528 23:54:17 04155 pod.go] QEMU response data is nil
[HYPER INFO 0528 23:54:17 04155 job.go] -job podStart(pod-DnZyhANaAx, ) ERR: QEMU response data is nil
[HYPER ERROR 0528 23:54:17 04155 server.go] Handler for POST /pod/start returned error: QEMU response data is nil
[HYPER ERROR 0528 23:54:17 04155 server.go] HTTP Error: statusCode=500 QEMU response data is nil
[HYPER INFO 0528 23:55:17 04155 vm_states.go] Device removing timeout

pod create failed with files configured

[HYPER INFO  0825 17:39:55 26321 pod.go] [:162] Process the Containers section in POD SPEC
[HYPER INFO  0825 17:39:55 26321 tags.go] [:133] LookupImage Name is ubuntu:latest
[HYPER INFO  0825 17:39:56 26321 pod.go] [:518] The config: kernel=/home/gaofeng/git/hyperStart/build/kernel, initrd=/home/gaofeng/git/hyperStart/build/hyper-initrd.img
POD id is pod-jUOJEOaYkd
[HYPER INFO  0825 17:39:56 26321 container.go] [:10] ready to get the container(f5ea1ec52db1ee30af4f5d8225ba5c6c05a99f14d67ec3d18ec6993ebe46832f) info
[HYPER INFO  0825 17:39:56 26321 job.go] [:84] -job podRun({
    "id": "test-ubuntu-interface",
    "containers" : [{
        "name": "ubuntu-interface",
        "image": "ubuntu:latest",
        "workdir": "/",
        "command": ["/bin/bash"],
        "files": [{
        "filename": "dns",
        "path": "/etc/resolv.conf",
        "perm": "0755"
        }]
    }],
    "resource": {
        "vcpu": 1,
        "memory": 512
    },
    "files": [{
        "name": "dns",
        "encoding": "raw",
        "content": "nameserver: 114.114.114.114"
    }],
    "volumes": [],
    "tty": true
}
, no) OK
2015/08/25 17:39:56 http: panic serving @: runtime error: invalid memory address or nil pointer dereference
goroutine 129 [running]:
net/http.func·011()
    /usr/lib/golang/src/net/http/server.go:1130 +0xbb
github.com/hyperhq/hyper/daemon.(*Daemon).ParsePod(0xc2085ca1c0, 0xc2082410e0, 0xc20807c840, 0xc208374710, 0xd, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/daemon/pod.go:337 +0x52c6
github.com/hyperhq/hyper/daemon.(*Daemon).StartPod(0xc2085ca1c0, 0xc208379570, 0xe, 0xc2080bbc20, 0x1cc, 0x0, 0x0, 0x0, 0x0, 0x410000, ...)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/daemon/pod.go:572 +0xa2f
github.com/hyperhq/hyper/daemon.(*Daemon).CmdPodRun(0xc2085ca1c0, 0xc2082925a0, 0x0, 0x0)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/daemon/pod.go:102 +0x44b
github.com/hyperhq/hyper/daemon.*Daemon.CmdPodRun·fm(0xc2082925a0, 0x0, 0x0)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/daemon/daemon.go:88 +0x43
github.com/hyperhq/hyper/engine.(*Job).Run(0xc2082925a0, 0x0, 0x0)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/engine/job.go:95 +0x743
github.com/hyperhq/hyper/server.postPodRun(0xc2080be0e0, 0xc20825ce07, 0x5, 0x7f621c435998, 0xc208240dc0, 0xc20824c680, 0xc20830ac00, 0x0, 0x0)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/server/server.go:558 +0x337
github.com/hyperhq/hyper/server.func·001(0x7f621c435998, 0xc208240dc0, 0xc20824c680)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/server/server.go:883 +0x99d
net/http.HandlerFunc.ServeHTTP(0xc20821c540, 0x7f621c435998, 0xc208240dc0, 0xc20824c680)
    /usr/lib/golang/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc20818d220, 0x7f621c435998, 0xc208240dc0, 0xc20824c680)
    /home/gaofeng/go/src/github.com/hyperhq/hyper/Godeps/_workspace/src/github.com/gorilla/mux/mux.go:98 +0x297
net/http.serverHandler.ServeHTTP(0xc2082292c0, 0x7f621c435998, 0xc208240dc0, 0xc20824c680)
    /usr/lib/golang/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc208240c80)
    /usr/lib/golang/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
    /usr/lib/golang/src/net/http/server.go:1751 +0x35e

Hyper `run` command isn't working on OSX: "failed to create container by docker"

❯ hyper version && hyper images
The hyper version is 0.3
REPOSITORY     TAG                 IMAGE ID                           CREATED             VIRTUAL SIZE
puller         latest              100000000000                2015-07-17 18:01:13                 0 B
alpine         latest              31f630c65071                2015-06-12 15:38:15              5.0 MB

~
❯ hyper run --help
Usage:
  hyper run [OPTIONS] IMAGE [COMMAND] [ARG...]

create a pod, and launch a new VM to run the pod

Application Options:
  -p, --podfile=""       Create and Run a pod based on the pod file
  -k, --kubernetes=""    Create and Run a pod based on the kubernetes pod file
  -y, --yaml             Create a pod based on Yaml file
      --name=""          Assign a name to the container
      --attach           Attach the stdin, stdout and stderr to the container
      --workdir=""       Working directory inside the container
      --tty              Allocate a pseudo-TTY
      --cpu=1            CPU number for the VM
      --memory=128       Memory size (MB) for the VM
      --env=[]           Set environment variables
      --entrypoint=""    Overwrite the default ENTRYPOINT of the image
      --restart=""       Restart policy to apply when a container exits (never, onFailure, always)
      --rm               Automatically remove the pod when it exits

Help Options:
  -h, --help             Show this help message


~
❯ hyper run --attach alpine:latest /bin/ash
hyper ERROR: failed to create container by docker, No command specified

~
❯ uname -a
Darwin cnaje1ML1 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64 i386 MacBookPro11,3 Darwin

Kernel capabilities to run Docker in Hyper

It would be nice to extend kernel config to support: all cgroups, veth, iptables with filter, nat and conntrack.

That would allow to run docker in hyper VM, making the hyper best choice to be used as CI worker.

What do you think?

Hyper CLI does not build

I am trying to build Hyper CLI based on the instructions in README but it's failing as follows:

[penberg@nero hyperhq]$ git clone [email protected]:hyperhq/hyper.git
Cloning into 'hyper'...
remote: Counting objects: 262, done.
remote: Compressing objects: 100% (189/189), done.
remote: Total 262 (delta 69), reused 257 (delta 64), pack-reused 0
Receiving objects: 100% (262/262), 262.33 KiB | 0 bytes/s, done.
Resolving deltas: 100% (69/69), done.
Checking connectivity... done.
[penberg@nero hyperhq]$ cd hyper/
[penberg@nero hyper]$ ./make_deps.sh
Cloning into '/home/penberg/go/src/github.com/gorilla/context'...
remote: Counting objects: 110, done.
remote: Total 110 (delta 0), reused 0 (delta 0), pack-reused 110
Receiving objects: 100% (110/110), 20.50 KiB | 0 bytes/s, done.
Resolving deltas: 100% (51/51), done.
Checking connectivity... done.
Cloning into '/home/penberg/go/src/github.com/gorilla/mux'...
remote: Counting objects: 194, done.
remote: Total 194 (delta 0), reused 0 (delta 0), pack-reused 194
Receiving objects: 100% (194/194), 69.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (104/104), done.
Checking connectivity... done.
Cloning into '/home/penberg/go/src/github.com/syndtr/goleveldb'...
remote: Counting objects: 4006, done.
remote: Total 4006 (delta 0), reused 0 (delta 0), pack-reused 4006
Receiving objects: 100% (4006/4006), 1.46 MiB | 789.00 KiB/s, done.
Resolving deltas: 100% (2623/2623), done.
Checking connectivity... done.
Cloning into '/home/penberg/go/src/github.com/syndtr/gosnappy'...
remote: Counting objects: 119, done.
remote: Total 119 (delta 0), reused 0 (delta 0), pack-reused 118
Receiving objects: 100% (119/119), 44.00 KiB | 0 bytes/s, done.
Resolving deltas: 100% (69/69), done.
Checking connectivity... done.
Cloning into '/home/penberg/go/src/github.com/jessevdk/go-flags'...
remote: Counting objects: 1593, done.
remote: Total 1593 (delta 0), reused 0 (delta 0), pack-reused 1593
Receiving objects: 100% (1593/1593), 462.56 KiB | 807.00 KiB/s, done.
Resolving deltas: 100% (970/970), done.
Checking connectivity... done.
[penberg@nero hyper]$ go build hyperd.go
hyperd.go:10:2: cannot find package "hyper/engine" in any of:
    /home/penberg/golang/src/pkg/hyper/engine (from $GOROOT)
    /home/penberg/go/src/hyper/engine (from $GOPATH)
hyperd.go:13:2: cannot find package "hyper/hyperdaemon" in any of:
    /home/penberg/golang/src/pkg/hyper/hyperdaemon (from $GOROOT)
    /home/penberg/go/src/hyper/hyperdaemon (from $GOPATH)
hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
    /home/penberg/golang/src/pkg/hyper/lib/glog (from $GOROOT)
    /home/penberg/go/src/hyper/lib/glog (from $GOPATH)
hyperd.go:11:2: cannot find package "hyper/utils" in any of:
    /home/penberg/golang/src/pkg/hyper/utils (from $GOROOT)
    /home/penberg/go/src/hyper/utils (from $GOPATH)
[penberg@nero hyper]$ go build hyper.go
hyper.go:6:2: cannot find package "hyper/client" in any of:
    /home/penberg/golang/src/pkg/hyper/client (from $GOROOT)
    /home/penberg/go/src/hyper/client (from $GOPATH)

the introduction docker pull is very confuse for hyper starter

I know the docker pull concepts in hyper introduction, it mean hyper can use docker pulled images at once. but for cross platform, the hyper is agnostic docker alike container engine, not docker. so we don't need introduce duplicate docker cmd in hyper introduction.
so we need change the introduction in start page.

docker pull ubuntu:latest change to hyper pull ubuntu:latest
hyper run ubuntu:latest

done.

Add logging support [enhancement]

This is a feature request, it would be great if hyper supported logging much like docker logging:

https://docs.docker.com/reference/logging/overview/

Ideally I'd like to be able:

  1. See logs like 'docker logs ...'
  2. Plug in my own logger driver 'docker run --log-driver=...'

As GO supports structural typing maybe the docker logging drivers could be supported without actually adding the docker dependency back in or having to implement the drivers all over again!

https://github.com/docker/docker/blob/master/daemon/logger/logger.go

Or maybe we really should just go the more unix way and just make sure we can pipe from the TTY console.

cant live migrate hyper because of virtfs

Hi,@carmark I want to live miagrate hyper VM,but it seems impossible.When I use qemu-system-x86_64 monitor to savevm and then loadvm,I cant go into the shared folder any more.It seems that the VM thinks the virtfs is still mounted,but it's not in fact.So I want to know if I can live migrate hyper with virtfs?Thanks!

No such image: ubuntu

[HYPER ERROR 0820 01:10:^@23 42047 server.go] [:132] HTTP Error: statusCode=404 No such image: ubuntu (tag: latest)
[HYPER ERROR 0820 01:10:^@33 42047 tags.go] [:156] could not find image: no such id: ubuntu
[HYPER ERROR 0820 01:10:^@33 42047 create.go] [:61] could not find image: no such id: ubuntu
[HYPER ERROR 0820 01:10:^@33 42047 pod.go] [:167] No such image: ubuntu (tag: latest)
[HYPER ERROR 0820 01:10:^@33 42047 server.go] [:884] Handler for POST /pod/create returned error: No such image: ubuntu (tag: latest)

Hyper starts pod, I get console and after few commands xen destroy hyper vm (Small network load somehow kills vm/pod)

Hi,

i got some very strange issue, everything launch normaly, I get "vm/pod/container" shell and after while whole thing stuck, console die and xen destroy vm. Only hyper list give me that

     POD ID                      POD Name             VM name    Status
  pod-odraXDudfq             ubuntu-6296703420                     succeeded

Can someone help me, what I'am doing wrong or what I may be missing?

Thanks

Here is some basic info....

uname -a
Linux w1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u2 (2015-07-17) x86_64 GNU/Linux

xl info
host : w1
release : 3.16.0-4-amd64
version : #1 SMP Debian 3.16.7-ckt11-1+deb8u2 (2015-07-17)
machine : x86_64
nr_cpus : 2
max_cpu_id : 3
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 1821
hw_caps : bfebfbff:20100800:00000000:00000900:0000e3bd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 4095
free_memory : 3022
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 5
xen_extra : .2-pre
xen_version : 4.5.2-pre
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : placeholder dom0_mem=1024M
cc_compiler : gcc (Debian 4.9.2-10) 4.9.2
cc_compile_by : root
cc_compile_domain : nanox.cz
cc_compile_date : Wed Jul 29 12:16:20 CEST 2015
xend_config_format : 4

hyper info
Containers: 3
PODs: 1
Total Memory: 905072 KB
Operating System: Debian GNU/Linux 8 (jessie)

docker info
Containers: 3
Images: 4
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 10
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
CPUs: 2
Total Memory: 883.9 MiB
Name: w1
ID: IMNK:SD2T:EHW5:I4GK:FCGR:SENG:FZZ3:HAQI:IJ4K:KEPI:JRLK:XGS4
WARNING: No memory limit support
WARNING: No swap limit support

XEN log:
qemu: terminating on signal 1 from pid 5693

HYPER log:
[HYPER INFO 0804 15:31:.11 06045 server.go] Calling GET /list
[HYPER INFO 0804 15:31:.11 06045 job.go] +job list(pod)
[HYPER INFO 0804 15:31:.11 06045 job.go] -job list(pod) OK
[HYPER INFO 0804 15:31:.20 06045 server.go] Calling POST /pod/run
[HYPER INFO 0804 15:31:.20 06045 job.go] +job podRun({"id":"ubuntu-6296703420","containers":[{"name":"ubuntu-6296703420","image":"ubuntu","command":[],"workdir":"/","entrypoint":[],"ports":
[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""})
[HYPER INFO 0804 15:31:.20 06045 pod.go] {"id":"ubuntu-6296703420","containers":[{"name":"ubuntu-6296703420","image":"ubuntu","command":[],"workdir":"/","entrypoint":[],"ports":[],"envs":[]
,"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""}
[HYPER INFO 0804 15:31:.20 06045 init_comm.go] Wating for init messages...
[HYPER INFO 0804 15:31:.20 06045 xen.go] Start VM as domain 6
[HYPER INFO 0804 15:31:.26 06045 init_comm.go] Get init ready message
[HYPER INFO 0804 15:31:.26 06045 vm_states.go] begin to wait vm commands
[HYPER INFO 0804 15:31:.49 06045 vm_states.go] got spec, prepare devices
[HYPER INFO 0804 15:31:.50 06045 vm_states.go] pod start success
[HYPER INFO 0804 15:31:.50 06045 job.go] -job podRun({"id":"ubuntu-6296703420","containers":[{"name":"ubuntu-6296703420","image":"ubuntu","command":[],"workdir":"/","entrypoint":[],"ports":
[],"envs":[],"volumes":[],"files":[],"restartPolicy":"never"}],"resource":{"vcpu":1,"memory":128},"files":[],"volumes":[],"tty":true,"type":""}) OK
[HYPER INFO 0804 15:31:.50 06045 server.go] Calling GET /list
[HYPER INFO 0804 15:31:.50 06045 job.go] +job list(container)
[HYPER INFO 0804 15:31:.50 06045 job.go] -job list(container) OK
[HYPER INFO 0804 15:31:.50 06045 server.go] Calling POST /attach
[HYPER INFO 0804 15:31:.50 06045 job.go] +job attach(container, 0a919ef87a43a98efc3e18c8891b6062eae71073dfd57d9138323b329e69e2a5, y3ksovnx)
[HYPER INFO 0804 15:31:.50 06045 server.go] Calling POST /tty/resize
[HYPER INFO 0804 15:31:.50 06045 job.go] +job tty(pod-odraXDudfq, y3ksovnx, 51, 190)
[HYPER INFO 0804 15:31:.50 06045 job.go] -job tty(pod-odraXDudfq, y3ksovnx, 51, 190) OK
[HYPER INFO 0804 15:33:.20 06045 vm_states.go] Connection interrupted, quit...
[HYPER ERROR 0804 15:33:.20 06045 vm_states.go] Shutting down because of an exception: connection to VM broken
[HYPER WARN 0804 15:33:.30 06045 vm_states.go] Qemu did not exit in time, try to stop it
[HYPER ERROR 0804 15:33:.30 06045 vm_states.go] Shutting down because of an exception: vm terminating timeout
[HYPER ERROR 0804 15:33:.30 06045 init_comm.go] read init data failed
[HYPER ERROR 0804 15:33:.30 06045 tty.go] read tty data failed
[HYPER INFO 0804 15:33:.31 06045 job.go] -job attach(container, 0a919ef87a43a98efc3e18c8891b6062eae71073dfd57d9138323b329e69e2a5, y3ksovnx) OK
[HYPER INFO 0804 15:33:.32 06045 vm_states.go] Got VM shutdown event while terminating, go to cleaning up
[HYPER INFO 0804 15:33:.32 06045 vm_states.go] resources reclaimed, quit...
[HYPER INFO 0804 15:33:.32 06045 init_comm.go] vm channel closed, quit

Install hyper will affect the vagrant(virtualbox)?

My Host OS is ubuntu 15.0. I had install virtualbox and vagrant, they works well.

I install the hyper today, it works fine. But when I start the VMs created by vagrant, they all faied, the error informations are : The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff'

Does the hyper affect vagrant?

By the way, how uninstall the hyper? I only see installation guide for hyper.

hyper support checkpoint and restore

dibs Now I have already made hyper support checkpoint and restore.If you use aufs docker image,you cant do it because of virtfs.If you use devicemapper docker image, it will be OK.Then I plan to make migrate between two physical host possible.

Cannot connect to hyper socket dial unix /var/run/hyper/.../hyper.sock: connection refused

# ./hyper run ubuntu:14.04 /bin/sh
./hyper ERROR: QEMU response data is nil

# ./hyperd --logtostderr
[HYPER INFO  0603 18:46:27 04824 vm_states.go] got spec, prepare devices
[HYPER INFO  0603 18:46:27 04824 qmp_handler.go] got new session during initializing
[HYPER INFO  0603 18:46:27 04824 qmp_handler.go] got new session during initializing
[HYPER ERROR 0603 18:46:28 04824 init_comm.go] Cannot connect to hyper socket dial unix /var/run/hyper/vm-IRckSaWKCn/hyper.sock: connection refused
[HYPER ERROR 0603 18:46:28 04824 tty.go] Cannot connect to tty socket dial unix /var/run/hyper/vm-IRckSaWKCn/tty.sock: connection refused
[HYPER ERROR 0603 18:46:28 04824 qmp_handler.go] failed to connected to /var/run/hyper/vm-IRckSaWKCn/qmp.sock dial unix /var/run/hyper/vm-IRckSaWKCn/qmp.sock: connection refused
[HYPER ERROR 0603 18:46:28 04824 qemu_process.go] failed to connected to /var/run/hyper/vm-IRckSaWKCn/console.sock dial unix /var/run/hyper/vm-IRckSaWKCn/console.sock: connection refused
[HYPER ERROR 0603 18:46:28 04824 vm_states.go] Cannot connect to hyper socket dial unix /var/run/hyper/vm-IRckSaWKCn/hyper.sock: connection refused
[HYPER ERROR 0603 18:46:28 04824 vm_states.go] Shutting down because of an exception: Fail during init pod running environment
[HYPER ERROR 0603 18:46:28 04824 qmp_handler.go] QMP initialize failed
[HYPER WARN  0603 18:46:38 04824 vm_states.go] Qemu did not exit in time, try to stop it
[HYPER ERROR 0603 18:46:38 04824 vm_states.go] Shutting down because of an exception: vm terminating timeout
[HYPER INFO  0603 18:46:48 04824 qemu_process.go] kill Qemu... 4859
[HYPER INFO  0603 18:46:48 04824 vm_states.go] Got Qemu force killed message, go to cleaning up


# ls /var/run/hyper/vm-IRckSaWKCn/*  -lh
srwxrwxrwx. 1 root root 0 6月   3 18:46 /var/run/hyper/vm-IRckSaWKCn/console.sock
srwxrwxrwx. 1 root root 0 6月   3 18:46 /var/run/hyper/vm-IRckSaWKCn/hyper.sock
srwxrwxrwx. 1 root root 0 6月   3 18:46 /var/run/hyper/vm-IRckSaWKCn/qmp.sock
srwxrwxrwx. 1 root root 0 6月   3 18:46 /var/run/hyper/vm-IRckSaWKCn/tty.sock

Base CentOS7

no running container in `docker ps` after hyper started the pod

{
    "name": "myweb",
    "containers" : [{
        "image": "httpd",
        "ports": [{
            "containerPort": 80,
            "hostPort": 8080
        }]
    }],
    "resource": {
        "vcpu": 1,
        "memory": 512
    }
}
root@debian:~# hyper run -p pod-1 
POD id is pod-WXBmlQWfEf
Time to run a POD is 4577 ms
But no running container found in `docker ps`.

yum install not work in container

Hi
I have run a container successfully . Container is started but yum command is not working
in container.While on host server, I am able to connect to internet without any problem.

And I am getting this message

Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock10 error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"

One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

  1. Contact the upstream for the repository and get them to fix the problem.

  2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

  3. Disable the repository, so yum won't use it by default. Yum will then
    just ignore the repository until you permanently enable it again or use
    --enablerepo for temporary usage:

    yum-config-manager --disable <repoid>
    
  4. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

    yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
    

    Cannot find a valid baseurl for repo: base/7/x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.