From: bancfc@openmailbox.org Subject: Isolating the Guest clock from Host Date: Thu, 20 Mar 2014 02:32:00 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail.openmailbox.org ([62.210.189.180]:33744 "EHLO mail.openmailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750873AbaCTChZ (ORCPT ); Wed, 19 Mar 2014 22:37:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 0B32DA4751 for ; Thu, 20 Mar 2014 03:32:03 +0100 (CET) Received: from mail.openmailbox.org ([127.0.0.1]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3XcZsBhrCva3 for ; Thu, 20 Mar 2014 03:32:01 +0100 (CET) Sender: kvm-owner@vger.kernel.org List-ID: Hi, let me introduce what I do in order to give context to my questions. I am currently working on porting the Whonix project to KVM (Whonix.org). We use virtualization for its isolation properties to guarantee that all traffic from the workstation vm is forced through TOR that runs in the second, network-facing, gateway vm. Timing and clock skews are very important in maintaining anonymity and our objective is to make sure the guest clock is isolated from the host's, so a network adversary would be unable to induce and correlate active time modification in the host NTP to result in a skew inside the Whonix vm. First Question: Is there a way to configure clock=vm in a machine's xml file via virsh? Second Question: What are all the possible ways to accomplish this? Is there another equivalent attribute we can use with virsh or any other means? Third Question: If not and its only possible through qemu-kvm commandline as noted here: https://doc.opensuse.org/products/draft/SLES/SLES-kvm_sd_draft/cha.qemu.running.html#cha.qemu.running.gen_opts.rtc Is there a configuration file of some type to tell kvm to start a vm with clock=vm or could it only be done through scripting? Fourth Question: . I am not familiar with using qemu-kvm directly to start whonix with all the settings I have applied to it from the GUI. Is there a way to apply these settings automatically without referencing them besides the -rtc clock=vm command? Thanks In Advance