Виртуальная машина arm на windows

I’m interested in developing some programs that use OpenCV, but I want them to run on an ARM environment.

Can I virtualize the ARM under a Windows environment with VMWare or VirtualBox or something?

Mithical's user avatar

Mithical

3211 gold badge3 silver badges14 bronze badges

asked Sep 3, 2012 at 8:50

edsonlp1's user avatar

2

As pointed Geoffroy, you can’t virtualize ARM, but you can emulate it.
You can try QEMU — generic and open source machine emulator and virtualizer.

answered Sep 3, 2012 at 8:58

1

I’ve found this!

http://sourceforge.net/projects/rpiqemuwindows/files/latest/download

It’s an image with Raspberry Pi with QEMU. You only have to double click on run.bat and follow instructions.

Runs perfect.

Thanks for your answers!

answered Sep 3, 2012 at 9:49

edsonlp1's user avatar

edsonlp1edsonlp1

3791 gold badge2 silver badges9 bronze badges

2

answered Sep 3, 2012 at 8:58

Superman's user avatar

2

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

I’m interested in developing some programs that use OpenCV, but I want them to run on an ARM environment.

Can I virtualize the ARM under a Windows environment with VMWare or VirtualBox or something?

Mithical's user avatar

Mithical

3211 gold badge3 silver badges14 bronze badges

asked Sep 3, 2012 at 8:50

edsonlp1's user avatar

2

As pointed Geoffroy, you can’t virtualize ARM, but you can emulate it.
You can try QEMU — generic and open source machine emulator and virtualizer.

answered Sep 3, 2012 at 8:58

1

I’ve found this!

http://sourceforge.net/projects/rpiqemuwindows/files/latest/download

It’s an image with Raspberry Pi with QEMU. You only have to double click on run.bat and follow instructions.

Runs perfect.

Thanks for your answers!

answered Sep 3, 2012 at 9:49

edsonlp1's user avatar

edsonlp1edsonlp1

3791 gold badge2 silver badges9 bronze badges

2

answered Sep 3, 2012 at 8:58

Superman's user avatar

2

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.

Install QEMU

Install for Windows from https://qemu.weilnetz.de/w64/ (I used qemu-w64-setup-20181211.exe)

Put C:\Program Files\qemu on your PATH, and run the below to check it’s working (which will list out
the CPUs the AArch64 emulator can emulate):

qemu-system-aarch64 -M virt -cpu help

Copy the Firmware and OS images

Into your working directory…

  • Copy the ubuntu-16.04-server-cloudimg-arm64-uefi1.img OS image from https://cloud-images.ubuntu.com/releases/16.04/release/
  • Copy the QEMU_EFI.fd firmware image from https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/

Create the configuration data image

The Ubuntu server images require configuration data be provided as an image, such as setting auth credentials.

The tool used to convert the config text file into an image file only runs on Linux, so I’ve attached a user-data.img
file (and the text file used to create it) in a zip file to this Gist.
Extract the user-data.img file to the working directory.

The user-data.img file was created for password authentication as outlined in https://stackoverflow.com/a/53373376

Launch the emulator from the working directory

Run the below to boot the image, you will some some benign errors at startup. Wait until the output settles down (even after you see the login prompt, as the post-boot config may not have completed yet).

qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt -nographic -bios QEMU_EFI.fd -drive if=none,file=ubuntu-16.04-server-cloudimg-arm64-uefi1.img,id=hd0 -device virtio-blk-device,drive=hd0 -drive file=user-data.img,format=raw -device virtio-net-device,netdev=net0 -netdev user,hostfwd=tcp:127.0.0.1:2222-:22,id=net0

To break down these lines:

  • qemu-system-aarch64 -m 2048 -cpu cortex-a72 -smp 4 -M virt -nographic — run the ARM64 virtual platform emulator with 2GB RAM and 4 Cortex-A72 cores with no GUI support.
  • -bios QEMU_EFI.fd — use the firmware downloaded above.
  • -drive if=none,file=ubuntu-16.04-server-cloudimg-arm64-uefi1.img,id=hd0 — use the Ubuntu image file
  • -device virtio-blk-device,drive=hd0 — mount drive from above as a block device
  • -drive file=user-data.img,format=raw — use the configuration data image file
  • -device virtio-net-device,netdev=net0 — create a virtual network device
  • -netdev user,hostfwd=tcp:127.0.0.1:2222-:22,id=net0 — set up the networking stack and forward the SSH port

Then from a good Terminal emulator (I recommend the new Windows Terminal app with one of the Powerline fonts) you can connect over SSH with the below, and the configured password (asdfqwer):

ssh ubuntu@localhost -p 2222

QEMU — свободная программа с открытым исходным кодом для эмуляции аппаратного обеспечения различных платформ.
Включает в себя эмуляцию процессоров Intel x86 и устройств ввода-вывода. Может эмулировать 80386, 80486, Pentium, Pentium Pro, AMD64 и другие x86-совместимые процессоры; ARM, MIPS, RISC-V, PowerPC, SPARC, SPARC64 и частично m68k.

Ответ написан


Комментировать

EDIT (March 8, 2014): Updated for the 1.6.0 QEMU version.

The recent release of the Raspberry Pi board raised a new wave of interest for the ARM platforms. As Red/System is already running on ARMv5+ platforms, a number of Red followers might want to test it on these platforms, so this article aims at giving you a quick way to setup a QEMU emulator for ARM and install a Debian GNU/Linux on top of it.

QEMU

First thing first, let’s setup the platform. QEMU is the tool we want for that job. As explained on the QEMU web site: «QEMU is a generic and open source machine emulator and virtualizer.» The nice thing about QEMU is that it is able to emulate a good range of ARM platforms with different CPU versions.

QEMU is distributed as a source package, like most of open source tools, however this is not always convenient for Windows users, so you will also find a link to Windows pre-compiled binaries.

  • UNIX users: download and compile QEMU from sources. 
  • Windows users: download the binaries from this page, or from this direct link to 1.6.0 zip package (52MB)

Installing GNU/Linux

The simplest and quickest way to get a Linux/ARM distribution running on top of QEMU is to used pre-installed Debian images. These Virtual Machine images can be found there along with additional useful information (be sure to read them all). As you can see, there are two kind of images: standard and desktop. The desktop one gives you the full Debian GUI environment pre-installed, but be warned, it is extremely slow, even on my Core i7 box with a medium-level graphic card, so I recommend using the standard version pre-installed with Debian Squeeze (latest Debian release).

The files you need from the debian.org site are (direct links provided for convenience):

  • debian_squeeze_armel_standard.qcow2 (169MB)
  • initrd.img-2.6.32-5-versatile (2.4MB)
  • vmlinuz-2.6.32-5-versatile (1.2MB)

Put them all somewhere in the same folder.

The command line for starting QEMU with the pre-installed VM is provided on the debian.org page, here is a copy of the right command line for the standard VM with 2.6.32 kernel:

qemu-system-armw -L Bios -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda debian_squeeze_armel_standard.qcow2 -append "root=/dev/sda1"

For Windows users, the easiest way to start it is to make a shortcut on qemu-system-arm , add the command-line arguments and insert the path to the VM files in the «working folder» field.


You can now just run the emulator and boot on Debian to test your environment.

For purists, it is also possible to install the Debian distro from scratch following this step-by-step tutorial.

Making the Virtual Machine communicate

As you will quickly discover, the network connection is not working out of the box, so you need to add more parameters to the command-line to make it work. From my own experience, it is a black art to make it work properly (the documentation is really poor and obscure on that topic), but I ended up making the network work (and the Internet connection through the host platform) by using these additional arguments:

    -net nic -net user

Once the VM is rebooted, you can test it using a ping and then issue an `apt-get update` command. In case the ping test passes but not the apt-get, you might have wrong apt source URL, so you can change them by editing the /etc/apt/sources.list config file.

You have now a working ARM virtual platform, but in order to make it useful for Red/System testing, you need a simple way to pass compiled files to the guest OS (Red/System can only cross-compile to ARM due to the lack of a suitable REBOL interpreter).

In order to achieve that, you need to add new parameters to the command-line in order to map a guest OS TCP port to a host OS port. For example, to map guest OS port 22 (SSH) to port 1222 on host OS, just add:

    -redir tcp:2222::22

So, the VM internal port 22 is now reachable from localhost:1222 on your host OS. You can now use your favorite SSH/SFTP/SCP client to get a remote shell and transfer files to the VM. You might need to setup a SSH server in the VM (I seem to recall that it is not installed by default in the above images), you can achieve that using the following command:

    # sudo apt-get install openssh-client openssh-server

I use SSH for moving files in and out the VM using the still excellent SSH Secure Shell tool for Windows, but you could as well use FTP or any other TCP-based suitable protocol.

Additional settings

You can improve your experience with QEMU by adding more memory to the default emulated ARM platform which only has 128MB. Pushing it to 256MB (same as Raspberry PI Model A board now has) is highly recommended, just add to the command-line:

    -m 256

If you are using a non-english keyboard like myself, you can also emulate your preferred keyboard layout using for example, the following command:

    -k fr

will setup the keyboard with a french layout, other country codes are available here. In case you get an error message about the keymap not being found, just copy the Bios/keymaps folder one level up, so that it is just above your qemu-* binaries.

That’s all folks, I hope this would have help you get started! Let me know if there is any error or missing info in this article, and let me know if it worked well for you.

  • Виртуалка для windows 10 vmware
  • Виртуальная машина android для windows 10
  • Випнет не устанавливается на windows 10
  • Виртуалка для windows 10 ubuntu
  • Виртуальная клавиатура скачать бесплатно для компьютера windows 10 на русском