New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root image file parameter to qvm-create limited to free space in /tmp (2GiB) #3422

Open
daniel-ayers opened this Issue Dec 23, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@daniel-ayers

daniel-ayers commented Dec 23, 2017

Qubes OS version:

4.0RC3

Affected TemplateVMs:

dom0


Steps to reproduce the behavior:

in dom0:

# qvm-create --label=yellow -C StandaloneVM --root-move-from /var/tmp/root.img newvm
....
OSError: [Errno 28] No space left on device

Expected behavior:

New VM created using given root image file (in my example, 40GiB raw image).

Actual behavior:

qvm-create pipes root image file to a temp file in /tmp and therefore runs out of space on /tmp if root.img > 2GiB.

Same behaviour regardless for --root-copy-from and --root-move-from

General notes:

The root.img I am using was converted vdi -> raw using qemu-img -O raw.

Given the semantics implied by both --root-copy-from and --root-move-from it does not appear necessary to write any file to /tmp.


Related issues:

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 23, 2017

Member

The file is not piped to /tmp, but to the target location (LVM volume in default installation). The problem is somewhere else - it does not check its size and by default root volume have 10G. It should resize it first to the size of source file.

Member

marmarek commented Dec 23, 2017

The file is not piped to /tmp, but to the target location (LVM volume in default installation). The problem is somewhere else - it does not check its size and by default root volume have 10G. It should resize it first to the size of source file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment