virtio_console: interrupted_transfer test tweak

hibernate test on powerful machines fails very often. It is due to
short timeouts. To fix it I changed the check logic. Acceptable loss
is set to (almost) infinity. On the other hand it's set to 0 when
the initial loss after resume is over (at least 100 chars transferred
without any error).

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt test: Check windows bsod dump when unattended_install fail.

If unattended_install fail for windows guest and rename_error_image
set, image_copy will call rename the fail image. Then call
win_bsod_catch.py to check whether dump file is created in guest.
If yes, will try to analyze dump file with Windbg.

resolved conflict in  tests/image_copy.py and remove a blank space.

Signed-off-by: Feng Yang <fyang@redhat.com>
signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt test: Add win_bsod_catch test case

This case will check whether guest could create dump file, when sending
nmi to guest.

This case will configure windows guest, and make could create dump file.
Also add dump_control.au3 script to auto run.
After this case, when windows guest reboot, it will check whether bsod
dump file is available. If yes, will try to analyze it with windbg.

Update the interface in scripts

Signed-off-by: Feng Yang <fyang@redhat.com>
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt test: autoit script used to analyze bsod dump file

This file will install windbg if not available.
By default, it will save windbg output to c:\ in guest.
And will copy the dump file and windbg output to
nfs server used to store the dump files.

This link can be set in third parameter of this script.

Signed-off-by: Feng Yang <fyang@redhat.com>
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt test: Configure guest to save and analyze bsod in installation

put command in finish.bat, because do not want to always add command
to unattended install anster file.

reg add "HKLM\System\CurrentControlSet\Control\CrashControl" /v AutoReboot /d 0 /t REG_DWORD /f
reg add "HKLM\System\CurrentControlSet\Control\CrashControl" /v CrashDumpEnabled /d 2 /t REG_DWORD /f
reg add "HKLM\System\CurrentControlSet\Control\CrashControl" /v NMICrashDump  /d 1 /t REG_DWORD /f
reg add "HKLM\System\CurrentControlSet\Control\CrashControl" /v DumpFile /d %SystemRoot%\Memory.dmp /t REG_EXPAND_SZ /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v bsod /d "D:\autoit3.exe D:\dump_control.au3" /t REG_SZ /f
reg add "HKLM\System\CurrentControlSet\Control\CrashControl" /v AlwaysKeepMemoryDump /d 1 /t REG_DWORD /f
25G.
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting" /v Disabled /d 1 /t REG_DWORD /f

Signed-off-by: Feng Yang <fyang@redhat.com>
virt test: Update Windows bsod related configure

This patch add win_bsod_catch sample configure.
Also add bsod related configure to unattended_install.

Signed-off-by: Feng Yang <fyang@redhat.com>
guest-os.cfg.sample: Change password of Windows guests

Files in winutils.iso actually set the password to
1q2w3eP, but guest-os.cfg has 123456 as a password.
Most of the time, this is not a problem, because
rss.exe does not require auth, but it might be a
problem if telnet is being used.

So, change it in the cfg file and explain that
changing it is not supported, unless you really
want to change winutils.iso and remaster it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Fix error determining qemu-img and qemu-io paths

Usually qemu-img and qemu-io are one dir level up
the path where the target qemu is. The code was trying
to find them in the same dir as the qemu-bin, which
is wrong. Fix this.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>