VMware Communities
jisakiel
Contributor
Contributor

vctl fails to start containers with more than 8 volumes

Trying here as https://github.com/VMwareFusion/vctl-docs/issues/44 did not get any eyeballs...

 

On a cleaned ~/.vctl:

vctl system start
vctl pull lineageos4microg/docker-lineage-cicd
vctl run --entrypoint /bin/bash -it lineageos4microg/docker-lineage-cicd

results in the following:

ERROR failed to stop a sandbox, err:error code:exit status 255, message:Error: The virtual machine is not powered on: /Users/jisakiel/.vctl/.r/vms/docker-lineage-cicd-2154/docker-lineage-cicd-2154.vmx  module=libcrx package=sandbox
ERROR failed to create container: error code:exit status 255, message:2021-01-28T23:16:35.217| ServiceImpl_Opener: PID 84021
Error: The operation was canceled

(deeper) logs show the following error:

2021-01-28T23:16:35.484Z| vix-poll| I005: FoundryVMDBPowerOpCallback: VMDB reports power op failed for VM /Users/jisakiel/.vctl/.r/vms/docker-lineage-cicd-2154/docker-lineage-cicd-2154.vmx with error msg = "Unable to configure virtual device 'scsi0:7', whose type is disk. This virtual device is assigned a SCSI ID which is reserved for the virtual SCSI adapter. Move the virtual device to an unused SCSI ID and try again.

From which I could find the similar hashicorp/packer#3411

Indeed that image creates more than 8 volumes: https://github.com/lineageos4microg/docker-lineage-cicd/blob/master/Dockerfile#L124

A simple repro therefore:

FROM ubuntu:20.04
VOLUME /srv/ONE
VOLUME /srv/TWO
VOLUME /srv/THREE
VOLUME /srv/FOUR
VOLUME /srv/FIVE
VOLUME /srv/SIX
VOLUME /srv/SEVEN
VOLUME /srv/EIGHT

ENV DEBIAN_FRONTEND noninteractive
ENV USER root

RUN mkdir -p /srv/ONE /srv/TWO /srv/THREE /srv/FOUR /srv/FIVE /srv/SIX /srv/SEVEN /srv/EIGHT

ENTRYPOINT /bin/bash

That fails to start, but works if I remove the eighth container.

 

Big sur FWIW.

0 Kudos
0 Replies