Difference between revisions of "Virtual Machine"

From Maemo Leste Wiki
Jump to navigationJump to search
(→‎VirtualBox: Update instructions)
Line 32: Line 32:
=== VirtualBox ===
=== VirtualBox ===


The image is archived, we need to unpack it first:
Download latest .vdi.xz image, unpack it with "xz -d" command.
mkdir -p ~/VirtualBox\ VMs/maemo-leste
Create new Virtual Machine, select "Debian (64-bit)" and 1024MB RAM. Use the downloaded file as virtual hard disk.
tar xzf maemo-leste-1.0-amd64-virtual-20180425.box -C ~/VirtualBox\ VMs/maemo-leste
You are done!
 
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
 
As the memory of virtual machine is limited to 256M some applications will have troubles with it. One example is aptitude. To increase the memory limit you should add the swap partion or change the memory settings in the VirtualBox menu.
 
For newer versions, .box file is not available. You can still use virtualbox, select "Debian (64-bit)" and 1024MB RAM.


=== QEMU ===
=== QEMU ===

Revision as of 23:43, 19 November 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.

VirtualBox

Download latest .vdi.xz image, unpack it with "xz -d" command. Create new Virtual Machine, select "Debian (64-bit)" and 1024MB RAM. Use the downloaded file as virtual hard disk. You are done!

QEMU

Not all QEMU versions might work, see this issue for a known working version, as well as a working qemu command line: https://github.com/maemo-leste/bugtracker/issues/198

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.

Initial configuration

On the first run you may want to generate ssh host keys and set the timezone. To do so open the "X Terminal" application and run:

sudo su -
dpkg-reconfigure openssh-server
dpkg-reconfigure tzdata

Make the system up-to-date:

apt-get update
apt-get upgrade
apt-get install linux-image-amd64
reboot

To get networking to work (at least in virtualbox), launch a shell and do

sudo ifconfig eth0 up
sudo dhclient eth0