virtualization

WPF ListBox Virtualization and Mulltiple types in the ItemsControl

牧云@^-^@ 提交于 2019-12-06 09:37:43
I've got a ListBox that is used to show items of multiple types (all derived from the same base type) that are bound to the ItemsSource through an ObservableCollection<T> . The performance of said ListBox is terrible. It appears that virtualization is disabled. According to: http://msdn.microsoft.com/en-us/library/cc716879(v=vs.110).aspx it seems that adding items of multiple types to the ItemsControl may be the problem. Here's my ListBox's style: <Style x:Key="{x:Type ListBox}" TargetType="{x:Type ListBox}"> <Setter Property="ScrollViewer.CanContentScroll" Value="true" /> <Setter Property=

How to mitigate privilege escalation in Docker Containers to secure the host FS

只谈情不闲聊 提交于 2019-12-06 07:50:33
A question on secuity. I want to allow non-root users to deploy containers on say a cluster, I'd be concerned if they could mount host directories and then escalate to root privileges inside the container. I gather from the articles below that the feature for mapping a container-root-user to a host-non-root-user is still in the ether? The article itself seems to be relatively old, I'm curious to know how developed these features are. "Recent improvements in Linux namespaces will soon allow to run full-featured containers without root privileges, thanks to the new user namespace. This is

Is it possible to use VMX CPU instructions inside VM?

怎甘沉沦 提交于 2019-12-06 06:26:12
问题 Is it possible that a Process inside a VM guest uses the VMX (AMD-V, VT-x) CPU instructions, that are then processed by the outer VMM instead of directly on the CPU? Edit: Assume that the outer VM uses VMX itself to manage its virtual guest machine (i.e. it runs in Ring -1). If it is possible are there any implementations of VMMs that support emulating/intercepting VMX calls (VMware, Parallels, KVM,...)? 回答1: Nor the Intel's VT-x nor the AMD's AMD-V support a fully recursive virtualization in

How to create an Amazon EC2 AMI from an instance? [closed]

半世苍凉 提交于 2019-12-06 05:37:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . How to create an EC2 AMI from an instance? Ok, so I got an EC2 account. I launched an instance with Fedora 8, Apache, MySQL PHP. I also configured some things and installed Piwik. "Cool...", I thought, "... I should now be able to create an AMI with that custom configuration. Instead, all I can find are guides

How to check if Intel Virtualization is enabled without going to BIOS in Windows 10 [closed]

泄露秘密 提交于 2019-12-06 05:35:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 months ago . I want to check if Intel virtualization is enabled in my laptop or not (Lenovo Thinkpad, Win 10 64 bit). Is there any way available to check it without going to BIOS? 回答1: Right-click Start > Run > msinfo32 The first page shows whether virtualization is enabled in BIOS (firmware). 回答2: First method – Easiest

System Virtualization : Understanding IO virtualization and role of hypervisor [closed]

ぐ巨炮叔叔 提交于 2019-12-06 05:06:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I would like to obtain a correct understanding of I/O virtualization. The context is pure/full virtualization and not para-virtualization. My understanding is that a hypervisor virtualizes hardware and offers virtual resources to each sandboxed application. Each sandbox thinks its accessing the underlying

Why would anyone use the same network namespace for two docker containers?

天大地大妈咪最大 提交于 2019-12-06 03:39:30
Why would you connect two docker containers via network namespace, and not just through one network? As far as I know the only difference is that you can call the other container using localhost. I don't see any use case where this would be necessary. Does anyone have experience with this? One reason I can think of is for using a tool or command that is not available in your container. This example below comes directly from the docker run docs : NETWORK: CONTAINER Example running a Redis container with Redis binding to localhost then running the redis-cli command and connecting to the Redis

VMWare how to prevent a virtual machine from updating its date and time

只谈情不闲聊 提交于 2019-12-06 02:36:45
问题 I want to know how virtual machines (VMWare) updates their date and time and how to disable this; because i noticed that even if i suspend/shutdown a virtual machine for a year when i'll turn it on again, it will have the right time and date. For physical machines i know there is a little battery inside the Central Unit fixed on the Motherboard that helps to keep date when the computer is turned off and disconnected from powersupply. But what about virtual machines how do they keep their time

How to package files with a Vagrant box?

爱⌒轻易说出口 提交于 2019-12-06 01:29:49
问题 So I created a Vagrant box with the following command: vagrant package --base box_name_here --vagrantfile Vagrantfile --include manifests/ manifests/ is a directory with a puppet manifest and some subdirectories with some files used during the provisioning process. Puppet is called in the Vagrantfile like so: config.vm.provision :puppet do |puppet| puppet.manifests_path = "manifests" puppet.manifest_file = "web-dev.pp" end When I explore the packaged .box archive Vagrant creates, I see the

Multi-machine ansible setup with vagrant on windows

爱⌒轻易说出口 提交于 2019-12-05 21:51:04
Purpose I want ansible to provision virtual box vm's on my windows 8 machine [via Vagrant]. Everything needs to run locally and since Ansible doesn't run on Windows, I bootstrap a debian vm with ansible as the control machine. This code served as an example. After struggling with the system I got it somewhat working, but not completely (although ansible doesn't tell me). Question What configuration is required for a multi-machine setup using ansible [in a vm], vagrant and virtualbox [on windows host] if we want: ssh acces from the host machine to the ansible-vm as well as all the slaves ssh