Coder Social home page Coder Social logo

Comments (8)

pb8o avatar pb8o commented on May 29, 2024

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.

lebron8dong avatar lebron8dong commented on May 29, 2024

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.

image

image

from firecracker.

pb8o avatar pb8o commented on May 29, 2024

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.

lebron8dong avatar lebron8dong commented on May 29, 2024

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.

lebron8dong avatar lebron8dong commented on May 29, 2024

Thank you so much. I have successfully used configuration files to change the memory size.

from firecracker.

lebron8dong avatar lebron8dong commented on May 29, 2024

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.

But I can ping
image

from firecracker.

pb8o avatar pb8o commented on May 29, 2024

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.

lebron8dong avatar lebron8dong commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.