Hi, qemu-img doesn't work on MS Windows, when compiled with MinGW Runtime package >= 3.15 According to http://sourceforge.net/tracker/index.php?func=detail&aid=2222263&group_id=2435&atid=102435 , qemu-img shouldn't skip the first argument (command name) by doing optind++. Attached patch fixes the problems, and repairs qemu-img parsing with MinGW Runtime package >= 3.15 Signed-off-by: Hervé Poussineau Hervé