From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb7mH-00082q-7f for qemu-devel@nongnu.org; Tue, 29 Oct 2013 07:48:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb7mD-0005CX-0J for qemu-devel@nongnu.org; Tue, 29 Oct 2013 07:48:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb7mC-0005CA-OP for qemu-devel@nongnu.org; Tue, 29 Oct 2013 07:48:00 -0400 Date: Tue, 29 Oct 2013 11:47:47 +0000 From: "Daniel P. Berrange" Message-ID: <20131029114747.GI2724@redhat.com> References: <526F8457.5040907@kamp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <526F8457.5040907@kamp.de> Subject: Re: [Qemu-devel] Prohibit Windows from running in QEMU Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: "qemu-devel@nongnu.org" On Tue, Oct 29, 2013 at 10:48:07AM +0100, Peter Lieven wrote: > Hi all, > > this question might seem a bit weird, but does anyone see a good way to avoid > that Windows is able to boot inside qemu? > > We have defined several profiles for different operation systems and I want > to avoid that someone chooses Linux and then installs Windows within > a VM. Reason is licensing. Do you have todo the check in QEMU itself, or is it possible to add a hook into your installation method ? If so, then you could use the virt-inspector tool that comes with libguestfs to probe the install media and/or disk image to detect the operating system type, and then avoid starting QEMU at all if not what was expected Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|