Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Can't create a container with "virtc container create --console=/dev/pts/XX ..." #282

Open
jodh-intel opened this issue Jun 12, 2017 · 0 comments

Comments

@jodh-intel
Copy link
Collaborator

$ sudo virtc container create --pod-id=34d33aa0-b9cb-4a4e-ba61-d063fcaaa144 --rootfs=/home/james/tmp/oci --cmd sh -id foo --console /dev/pts/4
INFO[0000] Info structure: {ID:34d33aa0-b9cb-4a4e-ba61-d063fcaaa144 Hooks:{PreStartHooks:[] PostStartHooks:[] PostStopHooks:[]} VMConfig:{VCPUs:0 Memory:0} HypervisorType:qemu HypervisorConfig:{KernelPath:/usr/share/clear-containers/vmlinux.container ImagePath:/usr/share/clear-containers/clear-containers.img HypervisorPath: KernelParams:[] HypervisorParams:[] HypervisorMachineType:pc-lite Debug:false} AgentType:hyperstart AgentConfig:map[SockCtlName:/tmp/hyper-pod-34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock SockTtyName:/tmp/tty-pod34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock Volumes:<nil> Sockets:[map[HostPath:/tmp/hyper-pod-34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock Name:sh.hyper.channel.0 DeviceID:channel0 ID:charch0] map[Name:sh.hyper.channel.1 DeviceID:channel1 ID:charch1 HostPath:/tmp/tty-pod34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock]] PauseBinPath:/usr/bin/pause] ProxyType:ccProxy ProxyConfig:map[URL:unix:///var/run/clear-containers/proxy.sock] ShimType:ccShim ShimConfig:map[Path:/usr/libexec/clear-containers/cc-shim] NetworkModel:CNI NetworkConfig:{NetNSPath: NumInterfaces:1} Volumes:[] Containers:[] Annotations:map[]}
INFO[0000] Hyperstart config &{/tmp/hyper-pod-34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock /tmp/tty-pod34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock [] [{channel0 charch0 /tmp/hyper-pod-34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock sh.hyper.channel.0} {channel1 charch1 /tmp/tty-pod34d33aa0-b9cb-4a4e-ba61-d063fcaaa144.sock sh.hyper.channel.1}] /usr/bin/pause}
FATA[0000] Could not create container: fork/exec /usr/libexec/clear-containers/cc-shim: operation not permitted

This seems to be the same problem as clearcontainers/runtime#158.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant