Qemu: How-To Share Network Access With the Ghest OS

Qemu Network Sharing

Create a file /etc/qemu-ifup that contain:

sudo modprobe tun
sudo /sbin/ifconfig $1 up netmask broadcast

# IP masquerade
sudo echo "1" > /proc/sys/net/ipv4/ip_forward
sudo /sbin/iptables -N nat
sudo /sbin/iptables -t …
➟ Read more

Qemu Commands

Some useful command to help running and setup qemu…

  • Create an empty compressed 10 Go disk image (in qcow2 format):

    $ qemu-img create -f qcow2 /home/kevin/qemu-disk-image.qcow 10G
  • Boot on your machine’s CD-Rom in qemu with previous disk image as primary HDD:

    $ qemu -cdrom /dev/cdrom -hda …
➟ Read more

How-To Mount a File System Binary Image

Obtain a Binary Image

We have a USB key with a file system on it, and we want to save its content. We do a binary image using:

$ dd if=/dev/sda1 of=/home/kevin/usb_key.img

Mount the Image File

Get informations about the file system of the image …

➟ Read more

Remote Backup With Rsync

This little article describe how to setup an automatic backup procedure to a remote machine via the rsync tool.


  • A distant server, where backup will be stored ( in this case),

  • A user account on this server (mine was kevin),

  • A ssh deamon running on the server that …

➟ Read more