# Create qcow2 disk image
qemu-img create -f qcow2 /var/lib/libvirt/images/debian.qcow2 16G
# Install VM
virt-install --name "debian" \
--ram "2048" \
--vcpus "2" \
--accelerate \
--os-type "linux" \
--os-variant "generic" \
--network "model=virtio,bridge=virbr0" \
--disk "bus=virtio,path=/var/lib/libvirt/images/debian.qcow2,format=qcow2" \
--graphics "none" \
--console "pty,target_type=serial" \
--location "http://ftp.halifax.rwth-aachen.de/debian/dists/jessie/main/installer-amd64/" \
--extra-args "console=ttyS0,115200n8 serial"
Created
September 21, 2016 08:11
-
-
Save jkullick/c641e617c756bdff6dff3ee8e25269bd to your computer and use it in GitHub Desktop.
Install Debian Jessie VM in KVM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment