Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howto:use_qemu [2014/08/14 21:58] (current)
yehuda created
Line 1: Line 1:
 +====== Use QEMU ======
 +
 +<code bash>
 +sudo apt-get install qemu
 +</​code>​
 +
 +Create disk
 +<code bash>
 +# Create base VM image
 +qemu-img create -f qcow2 debian.qcow2 2G
 +
 +# Install Debian
 +qemu -enable-kvm -k tr -cdrom debian-504-i386-businesscard.iso -hda debian.qcow2 -boot d
 +
 +
 +dpkg-reconfigure console-data
 +aptitude install ssh sudo
 +
 +# Create the actual VM's disk
 +qemu-img create -f qcow2 -o backing_file=debian.qcow2 actual.qcow2
 +
 +qemu -enable-kvm -k tr -hda actual.qcow2 -net user -net nic \
 +                                         ​-redir tcp:​5022::​22 \
 +                                         ​-redir tcp:​9080::​80
 +
 +# SSH into the VM
 +ssh -p 5022 [email protected]
 +
 +</​code>​
 +
  
howto/use_qemu.txt ยท Last modified: 2014/08/14 21:58 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0