Skip to content

Instantly share code, notes, and snippets.

@orita
Created June 27, 2012 02:01
Show Gist options
  • Save orita/3000835 to your computer and use it in GitHub Desktop.
Save orita/3000835 to your computer and use it in GitHub Desktop.
virt-install ubuntu 12.04 with virtio
mkdir -p /data/kvm/images/ubuntu12/
qemu-img create -f qcow2 /data/kvm/images/ubuntu12/boot.img 10G
virt-install --connect qemu:///system \
--arch=x86_64 \
--accelerate \
--name ubuntu12 \
--ram=1024 \
--vcpus=2 \
--hvm \
--os-type=Linux \
--os-variant=virtio26 \
--disk path=/data/kvm/images/ubuntu12/boot.img,format=qcow2,size=10 \
--network bridge=virbr0 \
--nographics \
--keymap ja \
--location http://ftp.riken.jp/Linux/ubuntu/dists/precise/main/installer-amd64/ \
--extra-args='console=tty0 console=ttyS0,115200n8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment