Comments (1)
I was able to create/exec into a container using the following patch:
diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go
index 0b46f85..b6b836d 100644
--- a/pkg/cluster/cluster.go
+++ b/pkg/cluster/cluster.go
@@ -328,6 +328,10 @@ func (c *Cluster) createMachineRunArgs(machine *Machine, name string, i int) []s
runArgs = append(runArgs, "--privileged")
}
+ if (machine.spec.Platform != "") {
+ runArgs = append(runArgs, "--platform", machine.spec.Platform)
+ }
+
if len(machine.spec.Networks) > 0 {
network := machine.spec.Networks[0]
log.Infof("Connecting %s to the %s network...", name, network)
diff --git a/pkg/config/machine.go b/pkg/config/machine.go
index d51bea4..b87e35e 100644
--- a/pkg/config/machine.go
+++ b/pkg/config/machine.go
@@ -73,6 +73,7 @@ type Machine struct {
Backend string `json:"backend,omitempty"`
// Ignite specifies ignite-specific options
Ignite *Ignite `json:"ignite,omitempty"`
+ Platform string `json:"platform,omitempty"`
}
func (m *Machine) IgniteConfig() Ignite {
I then ran ./footloose create
, set platform, and ./footloose start
and got a container, but things like ssh don't work and while init is there, it doesn't seem to be doing very much.
This is the following used config:
cluster:
name: cluster
privateKey: cluster-key
machines:
- count: 1
spec:
platform: "amd64"
backend: docker
image: quay.io/footloose/centos7:latest
name: node%d
portMappings:
- containerPort: 22
root@lima-default:/footloose# docker exec -it 9c902ebe6325 /bin/bash
[root@node0 /]# uname -a
Linux node0 5.13.0-44-generic #49-Ubuntu SMP Wed May 18 13:33:01 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@node0 /]# ps faux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 49 0.7 0.3 161336 12772 pts/1 Ssl 17:57 0:00 /usr/bin/qemu-x86_64 /bin/bash /bin/bash
root 81 0.0 0.2 200748 9764 ? Rl+ Jun24 0:00 \_ ps faux
root 1 0.0 0.2 191296 9148 pts/0 Ssl+ 17:55 0:00 /usr/bin/qemu-x86_64 /sbin/init /sbin/init
This doesn't seem to line up with the tutorial though. Wondering if anyone else has gone down this road yet?
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
- Any available images on Mac with M1 chip? HOT 3
- Ubuntu 22.04 - not accessible HOT 1
- Suggest to add "user" into Machine spec 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.