Comments (3)
Rebuilt the image with:
FROM arm64v8/ubuntu:18.04
...
And I could spin up the cluster but couldn't ssh into it -- the SSH service was not properly bootstrapped.
$ cat ubuntu18.04-1-arm64.yaml
cluster:
name: sandbox
privateKey: cluster-key
machines:
- count: 1
spec:
image: brightzheng100/footloose-ubuntu18:arm64
name: ubuntu-%d
networks:
- footloose-cluster
portMappings:
- containerPort: 22
privileged: true
volumes:
- type: volume
destination: /var
$ footloose create -c ubuntu18.04-1-arm64.yaml
$ footloose start -c ubuntu18.04-1-arm64.yaml
$ footloose show -c ubuntu18.04-1-arm64.yaml
NAME HOSTNAME PORTS IP IMAGE CMD STATE BACKEND
sandbox-ubuntu-0 ubuntu-0 0->{22 49154} brightzheng100/footloose-ubuntu18:arm64 /sbin/init Running
$ footloose ssh ubuntu-0 -c ubuntu18.04-1-arm64.yaml
kex_exchange_identification: Connection closed by remote host
Connection closed by 127.0.0.1 port 49154
FATA[0000] exit status 255
Of course, since it's just a Docker container, I still could docker exec
into it.
While further checking, I realized that the systemd
might not be running properly:
$ docker exec -it sandbox-ubuntu-0 bash
root@ubuntu-0:/# systemctl list-units
System has not been booted with systemd as init system (PID 1). Can't operate.
root@ubuntu-0:/# ls /etc/systemd/system/
console-getty.service dev-hugepages.mount multi-user.target.wants sysinit.target.wants timers.target.wants
dbus-org.freedesktop.resolve1.service getty.target.wants sshd.service systemd-tmpfiles-setup.service
default.target instana-agent.service.d sys-fs-fuse-connections.mount systemd-update-utmp.service
from footloose.
I just figured out the root cause which is related to cgroups
compatibility issues.
The workaround is to remove one line of these parameters, like this:
runArgs := []string{
"-it",
"--label", "works.weave.owner=footloose",
"--label", "works.weave.cluster=" + c.spec.Cluster.Name,
"--name", name,
"--hostname", machine.Hostname(),
"--tmpfs", "/run",
"--tmpfs", "/run/lock",
"--tmpfs", "/tmp:exec,mode=777",
//"-v", "/sys/fs/cgroup:/sys/fs/cgroup:ro",
}
I'm thinking to dive deeper into cgroups
and see whether a PR may make sense.
from footloose.
I believe the cgroup issue you are seeing is fixed with this PR: #272
from footloose.
Related Issues (20)
- Couldn't downloads 0.6.4 from release page
- Ignite inspect package needs update for new Ignite VM Status version
- Ubuntu 20.04 image is not available HOT 2
- Creation fail doesn't emit error
- Failure when customizing the OS image with a complex RUN step HOT 1
- Global status command
- Stopping a footloose container leaves the system in hard to recover state
- footloose container binds to different ports on ipv4 and ipv6 for ssh HOT 1
- How DNS works in footloose powered container VMs? HOT 1
- support for apple silicon linux/arm64/v8 platform // multi-arch build HOT 2
- Footloose not working on WSL? HOT 5
- support static IP address in network config?
- footloose container fails to start after upgrading to Docker 4.3 HOT 3
- Ubuntu 22.04 - not accessible HOT 1
- Suggest to add "user" into Machine spec HOT 1
- Passing 'platform' to Docker daemon? HOT 1
- kex_exchange_identification: Connection closed by remote host HOT 1
- Non-unique /etc/machine-id on debian10
- Project still active? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from footloose.