Page MenuHomePhabricator

KVMProject
ActivePublic

Watchers

  • This project does not have any watchers.

Recent Activity

Dec 9 2018

Patrick lowered the priority of T605: speed up libvirt tarball creation time from High to Wishlist.
Dec 9 2018, 6:52 AM · Whonix, build, KVM

Dec 7 2018

Patrick removed a project from T530: CPU-induced latency Covert Channel Countermeasures: Whonix 15.
Dec 7 2018, 12:06 PM · virtualizer, VMware, VirtualBox, KVM, Qubes, security, Whonix, research

Oct 15 2018

toxdosvyqydtexlr added a comment to T872: mouse does not work in Whonix-Workstation 14 KVM.

By running packages from your distro there is a higher chance that bugs are more visible for more people and more likely to be fixed.

Oct 15 2018, 1:41 AM · Whonix, Whonix 14, KVM

Oct 13 2018

HulaHoop closed T872: mouse does not work in Whonix-Workstation 14 KVM as Invalid.

Sorry not reproducible on my end. May be related to the fact that you are running a non-standard setup with custom compiled binaries. By running packages from your distro there is a higher chance that bugs are more visible for more people and more likely to be fixed.

Oct 13 2018, 12:37 AM · Whonix, Whonix 14, KVM

Oct 12 2018

toxdosvyqydtexlr added a comment to T872: mouse does not work in Whonix-Workstation 14 KVM.

made no difference.

Oct 12 2018, 1:17 PM · Whonix, Whonix 14, KVM
HulaHoop added a comment to T872: mouse does not work in Whonix-Workstation 14 KVM.

It could be the VM is confused because apparently there are two types of mice attached. I assumed that by adding virtio-mouse it would override and replace the emulated one. Turns out its not this way and I went ahead and reverted this config which should be effective in the next release.

Oct 12 2018, 12:11 AM · Whonix, Whonix 14, KVM

Oct 8 2018

Patrick assigned T872: mouse does not work in Whonix-Workstation 14 KVM to HulaHoop.
Oct 8 2018, 8:01 AM · Whonix, Whonix 14, KVM
toxdosvyqydtexlr triaged T872: mouse does not work in Whonix-Workstation 14 KVM as High priority.
Oct 8 2018, 1:20 AM · Whonix, Whonix 14, KVM

Aug 9 2018

Patrick added a project to T774: [Revised] Clock Drift Correction Proposal: KVM.
Aug 9 2018, 5:19 PM · KVM, Whonix, research

Jul 24 2018

Patrick renamed T388: document Spoof the Initial Virtual Hardware Clock Offset for KVM (biossystemtimeoffset) from document Spoof the Initial Virtual Hardware Clock Offset for KVM to document Spoof the Initial Virtual Hardware Clock Offset for KVM (biossystemtimeoffset).
Jul 24 2018, 11:52 AM · user documentation, enhancement, security, KVM, Whonix

Jun 30 2018

Patrick closed T790: Reducing the size of raw files as Resolved.
Jun 30 2018, 12:34 PM · build, KVM, VirtualBox, Whonix, Whonix 15

Apr 30 2018

Onion_Knight added a comment to T790: Reducing the size of raw files.

virt-sparsify solution dropped because needs booting the image with qemu-system (not clean, to much unknown consequences, see attached ouptut).

Apr 30 2018, 3:50 PM · build, KVM, VirtualBox, Whonix, Whonix 15
Onion_Knight added a comment to T790: Reducing the size of raw files.
Apr 30 2018, 11:54 AM · build, KVM, VirtualBox, Whonix, Whonix 15

Apr 26 2018

Patrick triaged T790: Reducing the size of raw files as Normal priority.
Apr 26 2018, 9:25 AM · build, KVM, VirtualBox, Whonix, Whonix 15

Mar 1 2018

HulaHoop added a comment to T550: Clock Drift Detection.

NB for the record: with qemu-ga a guest can still shut itself off via crafted input to the agent. So besides removing timer access to the guest, there was no other advantage to removing ACPI.

Mar 1 2018, 6:13 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

Actually we don't have to suspend the guest. Execution of any command on the host after resume is enough to create a uniqu event in the qemu-ga's log file.

Mar 1 2018, 4:34 AM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

The proper and direct way to use virsh to communicate with guest agent:

Mar 1 2018, 12:53 AM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

The YAJL parser used in libvirt is tiny, modern (written in2007) and has no CVEs. It is an SAX type event-driven parser unlike the vulnerable, top-down recursive descent type that was used in QEMU.

Mar 1 2018, 12:03 AM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix

Feb 28 2018

HulaHoop added a comment to T550: Clock Drift Detection.

https://wiki.libvirt.org/page/Qemu_guest_agent

Feb 28 2018, 11:39 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

It turns out the QEMU guest agent warning was not relevant to those who use libvirt. With libvirt a safe parser is used. Breakouts can only happen if a process on the host is designed to parse guest input because there is no way to control that otherwise it should be safe for our uses. This potentially simplifies the design in many respects but a host package will still be needed. I will update the task list.

Feb 28 2018, 8:40 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

https://www.redhat.com/archives/libvirt-users/2018-February/msg00083.html
[libvirt-users] QEMU guest-agent safety in hostile VM?

Feb 28 2018, 7:40 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix

Feb 23 2018

Patrick closed T559: Securing/Removing DHCPClient from GW (was: Netstat Gateway log) as Resolved.
Feb 23 2018, 2:41 PM · Whonix 14, Physical Isolation, KVM, VirtualBox, whonix-gw-network-conf, anon-gw-dhcp-conf, research, Whonix

Feb 14 2018

HulaHoop added a comment to T550: Clock Drift Detection.

Yes there are less moving parts especially when multiple WSs share a GW. Some way to exempt timesync traffic from the WS would be needed though.

Feb 14 2018, 1:12 AM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix

Feb 12 2018

Patrick added a comment to T550: Clock Drift Detection.

HulaHoop (HulaHoop):

HulaHoop added a comment.

With qemu-ga code the whole clock drift detection code becomes redundant. If a
suspend event is triggered the GW should assume clocks are out of sync and
trigger lockdown.

Feb 12 2018, 11:01 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

With qemu-ga code the hwclock drift detection code becomes redundant. If a suspend event is triggered the GW should assume clocks are out of sync and trigger lockdown.

Feb 12 2018, 5:23 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
HulaHoop added a comment to T550: Clock Drift Detection.

Oops didn't realize ntpdate requires query of remote servers. ntpdate is obsolete anyhow but the newer clockdiff still talks to online servers instead of comparing local values. hwclock can give us that:

Feb 12 2018, 4:52 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
Patrick added a comment to T550: Clock Drift Detection.

It's a very good rehash!

Feb 12 2018, 10:43 AM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix

Feb 11 2018

HulaHoop added a comment to T550: Clock Drift Detection.

@Patrick I wrote a rehash. If you think is too complicated, let me know. It was the simplest and most reliable way I could think of:

Feb 11 2018, 6:09 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix

Feb 4 2018

Patrick added a comment to T550: Clock Drift Detection.

Didn't rehash. What's next here? Looks like we learned a lot, but then things stalled. Could you please rehash, and then create a follow-up ticket with the way forward? @HulaHoop

Feb 4 2018, 4:17 PM · Whonix-Host, VirtualBox, KVM, sdwdate, Whonix
Patrick added a project to T559: Securing/Removing DHCPClient from GW (was: Netstat Gateway log): Whonix 14.
Feb 4 2018, 4:11 PM · Whonix 14, Physical Isolation, KVM, VirtualBox, whonix-gw-network-conf, anon-gw-dhcp-conf, research, Whonix

Apr 13 2017

Patrick edited projects for T530: CPU-induced latency Covert Channel Countermeasures, added: Whonix 15; removed Whonix 14.
Apr 13 2017, 11:11 AM · virtualizer, VMware, VirtualBox, KVM, Qubes, security, Whonix, research

Mar 13 2017

Patrick added a comment to T605: speed up libvirt tarball creation time.

Did you compare your --threads=30 archive with --threads=8 archive?

Mar 13 2017, 12:40 PM · Whonix, build, KVM

Mar 11 2017

anonymous1 added a comment to T605: speed up libvirt tarball creation time.

If you have time could you check how long it takes with 5 or 6 threads? I think it will be near equal to 8, not for reproducibility reasons just for efficient use of system resources. There is probably no reason to use 16 cores on a machine that supports it which would be overkill

Mar 11 2017, 4:13 PM · Whonix, build, KVM

Mar 10 2017

anonymous1 added a comment to T605: speed up libvirt tarball creation time.

Sorry for all this confusion, I think it is only a difference between whether the program "tries" to operate in a single-threaded mode or multi-threaded mode, when we use --threads=1 or don't specify it (default is 1) it compresses the whole file in a single block, however setting --threads 0 or bigger than 1 triggers the multi-threaded mode and the file is split into blocks depending on the compression level and then compressed resulting in a difference in the archive file. how many threads actually used is irrelevant. changing compression level or manually specifying the block sizes will change the outcome.

Mar 10 2017, 11:51 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

I will try this with xz utils binaries first in Windows host and then with half of the available cores in Windows VM

Mar 10 2017, 10:48 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

I may be wrong, the best way to test this is to maybe create the same archive with half of the available cores in a VM however I can't do this, I don't have debian stretch

Mar 10 2017, 10:36 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

I mean reproducibility "between" computers, not on the same one

Mar 10 2017, 10:22 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

Did you compare your --threads=30 archive with --threads=8 archive?

Mar 10 2017, 10:19 PM · Whonix, build, KVM
Patrick added a comment to T605: speed up libvirt tarball creation time.

anonymous1 (anonymous1):

anonymous1 added a comment.

Could you please check how long it takes with 4 threads, using %50 of
cpu is expected, it does mean it will take twice as long

Mar 10 2017, 10:13 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

This quoted part indicates physical cpu threads:

Mar 10 2017, 9:51 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

Could you please check how long it takes with 4 threads, using %50 of cpu is expected, it does not necessarily mean it will take twice as long

Mar 10 2017, 9:26 PM · Whonix, build, KVM
Patrick added a comment to T605: speed up libvirt tarball creation time.

I think the default settings are optimal

Mar 10 2017, 8:54 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

I think in the worst case you could care less about a perfectly reproducible end archive (tar.xz) and instead focus on the extracted (tar) file being reproducible, for example linux kernel files are compressed either xz or gz but only the tar itself is signed

Mar 10 2017, 8:38 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

If you have 8 threads and if using more than 8 produces same checksum as 8, then what I said would be true

Mar 10 2017, 8:20 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

I think the default settings are optimal

Mar 10 2017, 8:02 PM · Whonix, build, KVM
Patrick added a comment to T605: speed up libvirt tarball creation time.

anonymous1 (anonymous1):

anonymous1 added a comment.

you could also try lowering or increasing the compression dictionary size to see how it affects the size and speed, however I don't know the commands
Mar 10 2017, 7:22 PM · Whonix, build, KVM
Patrick added a comment to T605: speed up libvirt tarball creation time.

anonymous1 (anonymous1):

anonymous1 added a comment.

But I have a feeling it would produce different archives with different number of threads, single core vs dual core vs quad core vs custom vm cores
Mar 10 2017, 7:11 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

But I have a feeling it would produce different archives with different number of threads, single core vs dual core vs quad core vs custom vm cores

Mar 10 2017, 6:52 PM · Whonix, build, KVM
anonymous1 added a comment to T605: speed up libvirt tarball creation time.

awesome!

Mar 10 2017, 6:50 PM · Whonix, build, KVM
Patrick added a comment to T605: speed up libvirt tarball creation time.

set and export XZ_OPT="--threads=0" makes sense either way. Therefore added.

Mar 10 2017, 6:12 PM · Whonix, build, KVM