Bug#800845: autopkgtest: Add support for nested VMs

Christian Seiler christian at iwakd.de
Fri Mar 4 00:19:47 UTC 2016


Hi again,

On 03/03/2016 10:18 PM, Christian Seiler wrote:
> I've created a patch that does just that and tested it: with
> setup-testbed from current git master it properly installs the udev
> rule, *then* adds the drive, and we have:
> 
>  - /dev/baseimage exists
>  - /dev/disk/by-{part,}uuid/* don't point to the baseimage disk.
> 
> Patch is attached.

I've thought about this a bit more and came to the conclusion that it'd
be best to run udevadm settle in the VM after adding the disks to QEMU.
On my system without load this was not an issue, but if the system where
this is run on is under a bit of load, not waiting for udev may result
in the tests thinking that /dev/baseimage doesn't exist and thus
skipping the nested tests.

I've updated the patch to let udev settle. See attachment to this email.

> Would still like to hear a comment about the CPU issue.

Regards,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-adt-virt-qemu-Implement-support-for-nested-base-imag.patch
Type: text/x-diff
Size: 4649 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20160304/c1046efd/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20160304/c1046efd/attachment-0001.sig>


More information about the autopkgtest-devel mailing list