Problems with adt-virt-qemu and copydown

Martin Pitt mpitt at debian.org
Tue Jul 22 03:22:46 UTC 2014


Hey Iustin,

Iustin Pop [2014-07-21 20:51 +0200]:
> I found a weird problem with adt-virt-qemu: copydown creates zero-length
> files, without copying the contents.
> 
> $ adt-virt-qemu adt-sid.img 
> ok
> open
> ok /tmp/adt-run.UrjlcT
> print-execute-command
> ok /tmp/adt-virt-qemu.ochiuli_/runcmd

When you are at this step, can you try to call e. g.

  /tmp/adt-virt-qemu.ochiuli_/runcmd whoami

you should get "root" and exit status 0. Does that part work?

> copydown /etc/passwd /tmp/foo
> ok
> 
> But:
> /tmp/adt-virt-qemu.ochiuli_/runcmd ls -l /tmp/foo
> -rw-r--r-- 1 root root 0 Jul 21 19:58 /tmp/foo
> 
> So the file is created, but zero-length. Has anyone seen this before? Is
> it due to some missing dependencies (I have a custom built kernel)? I
> have 9p and 9pnet_virtio built as modules.

The first thing that comes to my mind is that runcmd calls an internal
helper script "eofcat" that it installs into the VM overlay. That
needs python3 or python; if neither is present, this would fail. can
you check that in your VM? If that's it, I'll see to providing a
proper error message.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140722/630c5b1f/attachment.sig>


More information about the autopkgtest-devel mailing list