Installation
QEMU is a hypervisor, that can emulate many number of architectures.Some of the architectures include:
- i386
- x86_64
- Alpha
- Arm
- MIPS
- MIPS64
- PPC
- PPC64
- Sparc
- Sparc64
In this article lets look at, how to install QEMU on FreeBSD 10. By default, QEMU on FreeBSD supports the following architectures.
- i386
- x86_64
Install Qemu using the following command.
pkg install qemu
Testing the installation
Create a virtual HDD file.
qemu-img create -f qcow2 image.img 10G
Download ISO file of a current version of linux distribution say Debian
fetch http://cdimage.debian.org/debian-cd/8.3.0/amd64/iso-cd/debian-8.3.0-amd64-netinst.iso
Start off the installation of Debian from the ISO we just downloaded.
qemu -m 1024 -cdrom debian-8.3.0-amd64-netinst.iso -hda image.img -boot d -net nic -net user -nographic -vnc :0
Connect to the Virtual machine we ran just now using the following entry on any VNC client.
<ip-address-of-the-host-machine>:0
Once the Operating system is installed in the Virtual Machine, boot it using the following command.
qemu -m 1024 -cdrom debian-8.3.0-amd64-netinst.iso -hda image.img -boot c -net nic -net user -nographic -vnc :0