virttest.bootstrap: Don't change a list when transversing it

Currently, when creating config files, autotest tries to find out
the config files that need to be overridden in testdir/cfg/*.cfg.

But it tries to pop the element for the list during traversing
itself, this is very dangerous, and it might cause an error when
running get_started.py, because the list wasn't updated yet, but
the transverse index wasn't updated.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
virttest.qemu_installer: Autodetect qemu based on host arch

When detecting appropriate qemu names by default to run the
test suite, right now x86_64 is assumed. So, in order to
support other host architectures, such as ppc64, guess the
appropriate qemu name based on the host architecture.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
virt-libvirt: virsh.net_state_dict() bugfix

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: add virsh function for virsh {at|de}tach-disk.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: add virsh function for virsh update-device

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: Add configuration for virsh schedinfo(posix on qemu/kvm).

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add configuration for virsh schedinfo(credit on xen).

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add test module for virsh schedinfo(posix on qemu/kvm)

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Add test module for virsh schedinfo(credit on xen)

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Ubuntu preseed: Change the network and domain names

Change the default hostname and domain names to something
more palatable.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
unattended_install: Use fakeroot to remaster initrd

In order to install Ubuntu, we've been relying on cpio
directly. However, it needs root access for its operations.

So, in order to avoid failures when running as nonroot,
use fakeroot instead. This introduces a new dependency,
but hopefully it is not a huge one. And moreover, this
should only affect people looking to install Ubuntu or
Debian.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
guest support: Add Debian 6.0.7 x86_64

Introduce support to Debian 6.0.7 x86_64. I happened to
be working on a related subject, so I took the chance and
added support to it. It comes with a download asset file,
which means you can conveniently download it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Guest support: Add Fedora 17 asset file

It's an older guest, but frequently useful for tests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu_vm: Make command logging copy+paste friendly

This logs the command as a single blog with properly escaped
line breaks, which allows copy+pasting the command. Helps for
manually reproducing a test.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Acked-by: Lukáš Doktor <ldoktor@redhat.com>
qemu: unittest: Tweak log message

quote the unittest name to make it more obvious when reading logs.

Acked-by: Lukáš Doktor <ldoktor@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
qemu: unittest: Adding -S is redundant

Since qemu_vm.py does it unconditionally. Adapt the code to handle
empty extra_params.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
qemu: unittest: Make missing build a SKIP, not ERROR

Acked-by: Lukáš Doktor <ldoktor@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
qemu: Add config for ./run --type qemu --test unittest

This allows the basic unittest config to be shared between

./run --type qemu --test unittest        and
./run --config qemu/cfg/unittests.cfg

While the latter may be the preferred invocation, I don't see any
reason to arbitrarily restrict things, especially when 'unittest'
shows up the --list-tests output.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
.gitignore: Ignore qemu/unittests

qemu/unittests symlink is required to run the 'unittest', so makes
sense to .gitignore it.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
virttest.qemu_vm: Raise VMConfigMissingError for 9p cfgs

The original VMCreateError exception arguments are incorrect.
And actually these 2 places should raise a VMConfigMissingError.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>