Use QEMU

sudo apt-get install qemu

Create disk

# 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 www@localhost
howto/use_qemu.txt · Last modified: 2022/01/03 16:03 by 127.0.0.1
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0