Created
June 27, 2012 02:01
-
-
Save orita/3000835 to your computer and use it in GitHub Desktop.
virt-install ubuntu 12.04 with virtio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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