## QEMU 536 mini HOWTO sudo apt-get install qemu # install qemu if it does not exist sudo apt-get install debootstrap # create a minimal debian # now create a debian image 400Mb dd if=/dev/zero of=debian-img bs=1024 count=400000 mkfs.ext3 -L debian debian-img # approve the next question #mount it sudo mount debian-img /mnt # create a minimal debian system on image sudo debootstrap sid /mnt ftp://ftp.linux.org.tr/debian # edit /mnt/etc/shadow, delete the ⋆ in root entry like root::.... sudo umount /mnt #optional: # you can create a compressed image (edit the following command -hda) qemu-img convert -O qcow2 debian-img debian-img.qcow # start qemu if 32 bit system, use qemu # replace XXX with the appropriate files under boot qemu-system-x86_64 -kernel /boot/vmlinuzXXX \ -initrd /boot/initrd.imgXXX -hda debian-img -append root=/dev/sda ######## ON GUEST ############################ #login to emulated machine by root/no password # then: dhclient eth0 apt-get install ssh # now you can use sftp,ssh to 10.0.2.2 to transfer files from host