Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONiC container VM issues - sshd not running and missing admin user #319

Open
natsvn opened this issue Feb 3, 2025 · 5 comments
Open

SONiC container VM issues - sshd not running and missing admin user #319

natsvn opened this issue Feb 3, 2025 · 5 comments

Comments

@natsvn
Copy link

natsvn commented Feb 3, 2025

Hello,

Running into couple of issues when deploying SONiC container VM (built using this repo) via containerlab.

Host Platform: Apple Silicon
Docker Mgmt: OrbStack

Repo: https://github.com/hellt/vrnetlab/tree/master/sonic
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5dff58988964 sonic:202411 "/bin/bash" 16 hours ago Up 16 hours (unhealthy) 22/tcp, 443/tcp, 5000/tcp, 8080/tcp clab-sonic-test-sonic1
428ca0274813 sonic:202411 "/bin/bash" 16 hours ago Up 16 hours (unhealthy) 22/tcp, 443/tcp, 5000/tcp, 8080/tcp clab-sonic-test-sonic2

SSH not running:
root@sonic2:/# service ssh status
sshd is not running ... failed!

ssh admin@clab-sonic-test-sonic2
ssh: connect to host clab-sonic-test-sonic2 port 22: Connection refused

admin user not present
root@sonic2:/# cat /etc/passwd | egrep admin
root@sonic2:/#
root@sonic2:/# exit

Thanks.

@hellt
Copy link
Owner

hellt commented Feb 3, 2025

I think nested virtualization is not supported in orbstack

@natsvn
Copy link
Author

natsvn commented Feb 3, 2025

Thanks for the quick response. Is there an alternate way to get this working?

@hellt
Copy link
Owner

hellt commented Feb 3, 2025

I think today running VMs on mac is a challenge. You can try Colima or UTM as your VM provider on a mac, but chances are low.

@natsvn
Copy link
Author

natsvn commented Feb 3, 2025

Got it. I went by the YT instructions that you’ve put together - https://www.youtube.com/watch?v=_BTa-CiTpvI
Is it fair to assume that these instructions work for native containers on ARM but not for containerized VMs?

Thanks.

@hellt
Copy link
Owner

hellt commented Feb 4, 2025

I think in this video I call out that nested virtualization is a challenge still on macOS and thus the VM based routers likely won't work.

Orbstack will add support for nested virtualization in the future and maybe then the performance would be tolerable

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

No branches or pull requests

2 participants