CPU does not support KVM but I want to run andriod emulator in AWS Linux instance - android-emulator

I wanted to run headless android emulator on my EC2 instance - Amazon linux 2, but I am getting this error while executing ./emulator -avd my_avd_31 -no-audio -no-window
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
CPU acceleration status: KVM requires a CPU that supports vmx or svm
More info on configuring VM acceleration on Linux:
https://developer.android.com/studio/run/emulator-acceleration#vm-linux
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.
I tried adding hardware acceleration, kvm , virtualisation etc using different commands but it is not working.since almost all threads are using apt/apt-get i.e ubuntu distribution, I didn't find out anyone setting up hardware acceleration using yum, except one(yum install #virtualization), which is not working.
Please help me in this, stuck on this from past few hrs.
THanks

Related

virtual machine could not be started because hypervisor is not running

I'm new to the virtualization world, just trying to install Redis on windows 10
I keep getting this error
virtual machine could not be started because hypervisor is not running
even though virtualization is enabled in bios, windows features and task manager shows the virtualization is enabled
I've no idea what's wrong
my CPU is intel core 2 quad q9650 idk if it matters or it's the right place to ask

Problem Putting Alpine Linux in Sys Mode on Raspberry Pi Zero

I'm trying to setup Alpine Linux on a Raspberry Pi Zero W in Sys Mode (normal Desktop mode) but it doesn't seem to be working.
I've followed all the instructions given on the Alpine website for installations.
After setting up the setup-alpine setups, I'm choosing the "Sys" mode in the mmcblk0p1 disk (SD Card). It creates a boot partition (FAT FS) then says installation is complete, please reboot. But after reboot the Alpine doesn't boot and it throws a big "Kernel Panic not Syncing" error or something like that.
I'm even having trouble installing packages as all the installations seem to be going to the RAM memory instead of ROM.
Can somebody please help me with this.
I'm not all that good with Linux systems and OS/Kernels but can learn really quick.

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I have Ubuntu 16.04 running and Nvidia drivers and CUDA and cud installed a long time ago. Yesterday the server was rebooted, and after I login through ssh, I wanted to check the GPU using nvidia-smi but failed.
The error message was "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."
The server has:
Ubuntu 16.04
Nvidia k80c x4
CUDA 9.0
Has anyone faced this problem and can offer a possible solution? I don't really want to reinstall the driver as it could cause other problems.
This problem is eventually solved by re-installing the Nvidia GPU driver. The root cause of this error is because the server has shut down due to unstable power supply while running using the GPU.

failed to enable VT-x in bios system in ubuntu 16.04 LTS(AMD FX(tm)-4100 Quad-Core Processor)

I am trying to install android studio in my ubuntu system.But when I open the AVD manager it shows following warning message
after searching on internet I understand that I need to goto bios setup->advanced->intel virtualization technology(enable it if it is disabled),
but I can't find intel virtualization technology option in my bios setup.
bios menu
how can I solve this issue?
It seems that your board doesn't support VT-x. You are looking at the right spot I beleive. I must say, it has been a long time since I've seen such a board.
Have you correctly checked if your board supports VT-x ? Best way to find out is to check the specs of your computer/motherboard online.
Keep us posted, and good luck,
Clovel
EDIT : AMD-V / AMD IOMMU
It seems here that for AMD processors, the option you are looking for is AMD-V (VT-x counterpart) & AMD IOMMU (VTd counterpart ?). See if you can enable either one of these options in Advanced -> CPU Options

Windows Phone 7 emulator on a VM?

It seems that the Windows Phone 7 SDK doesn't support running inside a VM. On Parallels, the entire VM simply crashes when the emulator is starting up.
Around the web, though, a few people have reported that they were able to use it by changing a lot of the VM settings.
What do I have to change to be able to run it? I'm specially interested in Parallels, but VMWare or any other simulator that run on OSX if fine for me!
The WinPhone7 (and WinPhone8) emulator is itself a VM and few (if any) general-purpose VM's will host another VM infrastructure, which is why it crashes Parallels etc.
If you want to have the emulator run from within a different VM to the one MS provides, then you're into the realm of extracting images, toggling bits and trying to tack it into your VM of choice. Of course, the chances of the emulator then working as expected with no residual issues is as close to nil as makes no difference ;)
[Update 2013-01-30] VMWare5 & Parallels Desktop 8 now support running Hyper-V guest VM's. This is particularly useful for those wanting to develop against the Windows Phone 8 SDK which runs Windows Phone 8 guest VM's on Hyper-V.
Here's a guide to how to run Visual Studio 2012 & Windows 8 SDK (inc. the Windows Phone 8 Hyper-V-based emulator) in VMWare5 or Parallels desktop 5: Link
Note: Running Windows & Hyper-V inside a VM will be slower than running natively. Dual-booting into Windows (using Boot Camp on OSX) is stil the recommended method of developing for the Windows platform, especially if you want to use Hyper-V guest VM's.
I'm working in VMware Fusion with Expression Blend 4 RC AND the emulator.
works like a charm!
As others have said, WP7 is itself a virtual machine. Even if you can get it to run inside a virtual machine like Parallels, the performance will be abysmal. If your computer supports hardware virtualization, the emulator runs really smooth, without it it's very very sluggish. Running it inside another VM will make it even more sluggish - I am guessing to the point that it's unusable.
I know this is not the answer you want to hear, but I would recommend running Windows in Bootcamp, you will have much better experience developing and emulating.
I'm not so sure about compatibility for long term development, but in last september, I remembering trying the Windows Phone 7.1beta SDK on VirtualBox (I'm using mac SL), a free virtual machine from oracle (previously by Sun) and it works well there.
I just do a regular install of Windows 7 Home Basic (any Win7 except Starter will do, CMIIW) in the VBox with no tweaking at all, install the GuestAddition inside win7 (provided by VBox), then install the SDK. I create new WP project, arrange UI, make some codes as usual, then run it in emulator. Surprisingly, the emulator works fairly well and showing the app I've developed.
I'm not even experience any lag (my macbook is i5, 4GB ram, the VBox setting is dual core, 2GB ram, note that no other heavy mac process is on the run, so I solely run the VBox ... and iTunes for listening musics).
So if you still want to try WP SDK 7.1 on VM, why don't you try VirtualBox? My current VBox is installed with Windows 8 and have no extra space to reinstall the win7+WPSDK. If you do give a try on VBox, please report the result here to inform everyone.
I've run the Android emulator inside a VM before. It was slower, but still usable to test basic apps. Also, the Android emulator was then slow to where you couldn't tell a difference from between native or from within running Eclipse from within a virtual machine running Linux
x86-to-x86 emulation tends to be pretty fast nowadays due to both Intel and AMD CPUs having hardware to help it along. A lot of x86-to-x86 emulation also doesn't do a full emulation (see Android's emulator to see how a full emulator runs in comparison). In the x86-to-x86 case, the faster ones will try to pass as many instructions to the host OS so that a chunk of the code runs natively
People have made claims like 80-95% performance, which is pretty good. If you have a 3.2 GHz CPU, you get knocked down to around a 2.4 GHz equivalent of your CPU. That's not bad at all, and I honestly don't notice that much overhead running in a good x86-to-x86 VM
The biggest reason why the WP emulator has problems with VMs doesn't have to deal with it being a VM-in-a-VM, but it's most likely that it requires DirectX 10. This might have to do with XNA, which is Microsoft's really nifty gaming API that lets you easily port between Windows, WP, and the Xbox 360. A lot of VM programs don't support hardware 3d acceleration
On another note: if you want to use a low-end system, AMD CPUs may fare better since AMD doesn't tend to disable hardware virtualization features in their lower-end CPUs
If you're deploying to a device, you should be able to use a VM, since it's the emulator that has issues being a VM itself.
We have successfully deployed, and performance is acceptable in our environment, virtual Windows 8.1 Pro Desktop under VMware vSphere 5.5 (ESXi 5.5), and have the Windows 8 SDK and Emulator working correctly with no performance issues. (In Education - to University Labs for Windows Phone development).
The issue experienced by most, is you most have the Hypervisor pass through the Intel-VT into the VM, to effecticely create Nested Hypervisors. This is possible using VMware vSphere 5.5.
This option is available in virtual machine version 10, enabled in the vSphere Web Client - Enable Hardware Virtualisation.