Comments (8)
The rootfs are small on purpose to avoid downloading/copying large files. You can tweak the ext4 rootfs with something like:
truncate -s 2G build/img/x86_64/ubuntu-22.04.ext4
resize2fs -f build/img/x86_64/ubuntu-22.04.ext4
from firecracker.
I have allocated 10G, but an error occurred when installing python3-pip :
[2077.545011] Out of memory: Killed process 2115 (apt-get) total-vm:84300kB, anon-rss:66288kB, file-rss:0kB, shmem-rss: 0kB, UID:0 pgtables:204kB oom_score_adj:0
Killed.
from firecracker.
Looks like the guest does not have enough memory to run apt-get
. You would need to launch the guest with more memory, 256MB for example.
Just for the record, we have never tried unminimize
in our rootfs. I am not sure it will work with the current one.
from firecracker.
Thank you so much. The command I executed is apt-get install python3 python3-pip, and the python3-pip installation process will be killed. How to increase memory in firecracker?
from firecracker.
Thank you so much. I have successfully used configuration files to change the memory size.
from firecracker.
When I use config-file to start firecracker and bring up the network, I get an error when trying to transfer files:
scp /home/aiot/cat.jpg [email protected]:/root/firecracker
error
ssh: connect to host 172.16.0.2 port 22: Connection refused.
I get the same error using ssh connection:
ssh -i ./ubuntu-22.04.id_rsa [email protected]
error:
ssh: connect to host 172.16.0.2 port 22: Connection refused.
from firecracker.
When I use config-file to start firecracker and bring up the network
What config file are you using? if it's the one referenced here then that makes sense, there's no network interfaces configured. We should fix that.
from firecracker.
https://github.com/firecracker-microvm/firecracker/blob/main/docs/network-setup.md
I configured the network according to the tutorial and can download it with git, but the host cannot transfer files through ssh connection or scp.
scp /home/aiot/cat.jpg [email protected]:/root/firecracker
error
ssh: connect to host 172.16.0.2 port 22: Connection refused.
I get the same error using ssh connection:
ssh -i ./ubuntu-22.04.id_rsa [email protected]
error:
ssh: connect to host 172.16.0.2 port 22: Connection refused.
from firecracker.
Related Issues (20)
- Use `core::mem::offset_of!()` macro (after moving to Rust 1.77.0)
- [Bug] Booting the VM kernel gives "Internal error: undefined instruction: 0 [#1] SMP" on Volterra HOT 2
- Implement a solution for unmapping guest memory from kernel address space
- Rustify Snapshot Module HOT 7
- Wrong pasword HOT 4
- Remove multi irq support for mmio devices HOT 2
- Refactoring of devices management
- Diff Snapshotting feature does not take into account full snapshots
- Ensure errors types make use of `displaydoc::Display` and`thiserror::Error` HOT 2
- Taking Diff Snapshots is not transactional HOT 2
- Refactor `vmm` builder code to simplify logic that creates the microVM to boot
- Use `u32` to describe descriptor chain lengths HOT 2
- Avoid IoVecBuffer allocations in the TX network data path HOT 1
- [Feature Request] Core Scheduling HOT 1
- Interact with the MicroVM in jail environment and daemon mode. HOT 1
- This error cannot be resolved when I measure boot time๏ผ HOT 3
- no internet inside the VM HOT 2
- [Kernel Bug] io_uring_register() syscall exits with EBADF on 5.10.214
- Use `u32` to describe vsock related buffer sizes 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 firecracker.