balena-os / balena-qemu

Balena support for QEMU boards
Apache License 2.0
8 stars 6 forks source link

Push simple python application #82

Open agherzan opened 6 years ago

agherzan commented 6 years ago

From @agherzan on August 17, 2016 8:45

Description

Push an a simple python application to the device

Steps to reproduce issue

git clone https://github.com/alexandrosm/hello-python cd hello-python git remote add resin YYY (copy the link from the application's dashboard) git push resin master

Expected result

In the device's logs you should see: "hello python!"

Actual result

Can't download application. In the logs:

17.08.16 16:39:40 [+0800] Downloading application 'registry.resinstaging.io/qemu1/fd6c30d376a865a76b2ce8af9fb085b842ba55f1'
17.08.16 16:45:00 [+0800] Failed to download application 'registry.resinstaging.io/qemu1/fd6c30d376a865a76b2ce8af9fb085b842ba55f1' due to 'Error pulling image (latest) from registry.resinstaging.io/qemu1/fd6c30d376a865a76b2ce8af9fb085b842ba55f1, failed to register layer: ApplyLayer exit status 1 stdout: stderr: write /usr/lib/gcc/i586-linux-gnu/4.9/cc1plus: no space left on device'

and repeatedly try to download.

Started with the default command recommended from the dashboard: qemu-system-i386 -drive file=resin.img,media=disk,cache=none,format=raw -net nic,model=virtio -net user -m 512 -machine type=pc,accel=kvm -smp 4 -cpu host

Other information

Reported by: Gergely Imreh

Test configuration: QEMU X86 32bit

Test case number: TC06

Test run: https://resinio.testlodge.com/projects/16238/runs/221686?tab=2&run_section_id=231829&executed_case_id=10347326#executed_case_10347326

Copied from original issue: resin-os/meta-resin#248

agherzan commented 6 years ago

From @jnv on September 4, 2016 20:24

As a workaround, you can resize the image using qemu-img and Resin automatically resizes the partition, e.g.:

qemu-img resize -f raw resin-image-qemux86-64.img +4G

249 is duplicate.

agherzan commented 6 years ago

CC @lifeeth i think we should have this instruction in qemu machines. Cause my default docker disk is only 1G which might be insufficient for some apps.

agherzan commented 6 years ago

Or... I would actually vote to start shipping qemu images with 4G of docker disk (most of the boards we have use that disk size). CC @petrosagg

agherzan commented 6 years ago

From @petrosagg on September 5, 2016 12:10

SGTM