Difference between revisions of "Virtual Machine"

From Maemo Leste Wiki
Jump to navigationJump to search
(Add VirtualBox instructions)
(→‎Running on VirtualBox: VirtualBox first run: add ssh host keys)
Line 33: Line 33:


The image is archived, we need to unpack it first:
The image is archived, we need to unpack it first:
  mkdir -p ~/VirtualBox\ VMs/maemo-leste
  mkdir -p ~/VirtualBox\ VMs/maemo-leste
  tar xzf maemo-leste-1.0-amd64-virtual-20180425.box -C ~/VirtualBox\ VMs/maemo-leste
  tar xzf maemo-leste-1.0-amd64-virtual-20180425.box -C ~/VirtualBox\ VMs/maemo-leste
Line 40: Line 39:


Unpacked files may now be removed:
Unpacked files may now be removed:
rm -r ~/VirtualBox\ VMs/maemo-leste


  rm -r ~/VirtualBox\ VMs/maemo-leste
On the first run you may want to generate ssh host keys to be able to login remotely. To do so open the "X Terminal" application and run:
  sudo su -
dpkg-reconfigure openssh-server


== Running on QEMU ==
== Running on QEMU ==

Revision as of 03:28, 5 October 2018

This page or section is a stub. Ask how you can help improve leste.maemo.org by visiting #maemo-leste, look at the bugtracker (https://github.com/maemo-leste/bugtracker) or if you are able to contribute to the current page, then you are welcome to do so.

Virtual Machine
Manufacturer Generic
Specifications
Hardware Features
Software Features

Generic virtual machine target. This is particularly useful when doing development and testing.

Installation

https://maedevu.maemo.org/images/virtual-machines/

There are three different types of images: VirtualBox (.box), QEMU (.qcow2, .vdi) and Vagrant. The VirtualBox image may be converted to a VMware VMDK image which has been reported to perform better and have good hardware acceleration. Converting the qcow2 image to raw allows it to be used on real hardware.

Running on VirtualBox

The image is archived, we need to unpack it first:

mkdir -p ~/VirtualBox\ VMs/maemo-leste
tar xzf maemo-leste-1.0-amd64-virtual-20180425.box -C ~/VirtualBox\ VMs/maemo-leste

Start VirtualBox, File -> Import Appliance... -> VirtualBox VMs/maemo-leste/box.ovf -> Import. The virtual machine name is devuan-ascii-prevagrant.

Unpacked files may now be removed:

rm -r ~/VirtualBox\ VMs/maemo-leste

On the first run you may want to generate ssh host keys to be able to login remotely. To do so open the "X Terminal" application and run:

sudo su -
dpkg-reconfigure openssh-server

Running on QEMU

To run image on qemu, you can do:

xz -d maemo-leste-1.0-amd64-virtual-20180425.vdi.xz

qemu-system-x86_64 maemo-leste-1.0-amd64-virtual-20180425.vdi

Note that unaccelerated qemu is too slow to run maemo leste in an useful way.

Running on real hardware

xz -d maemo-leste-1.0-amd64-virtual-20180425.qcow2.xz qemu-img convert -f qcow2 -O raw maemo-leste-1.0-amd64-virtual-20180425.qcow2 delme.img

Now you can copy delme.img ... to a spare harddrive? I tried with USB stick and could not get that to work.