virtual-machine

How to connect to SQL Server in Win7 virtual machine from Mac host?

主宰稳场 提交于 2019-12-22 03:48:42
问题 I restored a MSSQL backup to SQL Server Express in a Windows 7 virtual machine under Virtualbox. I am attempting to connect to this SQL Server instance from the host (Mac OS) using a user inside the imported database that has credentials to connect. The virtual machine is configured to use a Host-Only adapter. SQL Server express is running inside the VM at WIN7VM/SQLEXPRESS, port 1433. I am able to connect to Apache in the VM on port 8080 from the Mac host without a problem. I can also telnet

Store Vagrant VM in custom folder

只谈情不闲聊 提交于 2019-12-22 03:46:10
问题 I want to specify folder where Vagrant will store my VM. I need it only for one VM, so I don't want to modify VirtualBox.xml defaultMachineFolder or change VBOX_USER_HOME environment variable. What is the right way to do it in Vagrantfile? I've already tried to add the following lines: config.vm.provider "virtualbox" do |vb| vb.customize ["createvm", "--name", "name", "--basefolder", "path"] end It creates VM folder on the path I specified, but it also duplicate it in the ~/VirtualBox VMs

Store Vagrant VM in custom folder

只谈情不闲聊 提交于 2019-12-22 03:45:13
问题 I want to specify folder where Vagrant will store my VM. I need it only for one VM, so I don't want to modify VirtualBox.xml defaultMachineFolder or change VBOX_USER_HOME environment variable. What is the right way to do it in Vagrantfile? I've already tried to add the following lines: config.vm.provider "virtualbox" do |vb| vb.customize ["createvm", "--name", "name", "--basefolder", "path"] end It creates VM folder on the path I specified, but it also duplicate it in the ~/VirtualBox VMs

Virtual Machine Acceleration for Android Emulator [closed]

吃可爱长大的小学妹 提交于 2019-12-21 12:58:26
问题 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 years ago . I'm attempting to configure the new Android Virtual Machine Acceleration. I'm following the steps outlined here. I get to the point where I need to execute: <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe. When I try and run the installer for this, it fails and says " VT not present: Your

UILabel (CALayer) is using large amounts of virtual memory

半城伤御伤魂 提交于 2019-12-21 09:11:02
问题 In Xcode and Instruments I see UILabel (CALayer) using large amounts of virtual memory (Anonymous VM). I see about 235 KB of virtual memory per UILabel . I think this perhaps is a new issue with iOS 7.1 or 7.1.1. Is this expected? I created a simple program that creates 500 UILabels and Instruments shows 115MB of memory used. At about 1500 labels the application is terminated by the OS. for (int i = 0; i < 500; i++) { index = (int)[self.items count]; index++; frame = CGRectMake(10.0, 20, 300

How to control removable usb devices with VMware vmrun

早过忘川 提交于 2019-12-21 08:26:10
问题 I have VMware workstation 9 and 10, and I am wanting to use that to run some integration tests. Using the vmrun utility, I can copy scripts to and run them on the virtual machine guests. However, some of the integration tests will require interfacing with USB devices. Is there any way using vmrun, or any of the vmware API's to programmatically control the "Removable Devices" to connect and disconnect USB devices to virtual machines? I have tried looking at the readVariable and writeVariable

how does KVM virtualize performance counter (PMC)?

时光总嘲笑我的痴心妄想 提交于 2019-12-21 06:04:26
问题 I am using KVM-QEMU in Intel platform. And I am wondering how is the PMC/PMU being virtualized in KVM ? My understanding of vPMC is as follows. Since PMU is a shared physical resource, so hypervisor shall context save/restore PMC configurations and counters during VMExit/VMEnter. But in my testing, I got confused. (In my host Linux, the MSR of IA32_PERF_FIXed_CTRL is set to 0xb0) First of all, in a launched VM, I 'wrmsr IA32_PERF_FIXed_CTRL 0x0b ', to enable FIXed_CTR0 in VM. Then, I logged

Remote PowerShell to AzureRM Virtual Machines

若如初见. 提交于 2019-12-21 05:58:18
问题 I have successfully deployed a number of Azure virtual machines to an Azure Resource Group. That is, I'm using the new Azure Resource Manager deployment model to deploy the virtual machines and the related resources from a JSON template. My problem is how to do remote PowerShell scripting from my laptop computer against these VMs. I have combed through many articles already - but they all show how to do it with the classic virtual machines in Azure. This I already know and use with success.

Setting environment variable for a Compute Engine VM

牧云@^-^@ 提交于 2019-12-21 05:47:07
问题 I need to set an environment variable within my virtual machine on Google Compute Engine. The variable I need to set is called "GOOGLE_APPLICATION_CREDENTIALS" and according to Google documentation I need to set its value to the path of a json file. I have two questions: 1: Can I set this variable within the Google Compute Engine interface on GCP? 2: Can I use System.Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", Resources.googlecredentials.credentials); ? Whenever I try

How to detect Azure/Amazon VM

邮差的信 提交于 2019-12-21 05:24:09
问题 Is there any way to detect, in general, if your code is executing on an Azure or Amazon virtual machine. I am not referring to some sort of web or worker role in particular, I mean given any executable, is there anything that resolves that machine to a cloud VM - for example under Azure there is no domain so i cannot simply rely on a domain name. 回答1: @Dan's answer no longer works for Azure, use the following URL to get a better list http://msdn.microsoft.com/en-us/library/windowsazure