Created
July 9, 2014 08:13
-
-
Save yuuichi-fujioka/44abfa1eddc4bdec2d77 to your computer and use it in GitHub Desktop.
install ubuntu to kvm with virt-isntall
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
#!/bin/bash | |
wget http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso -O ubuntu-14.04-server-amd64.iso | |
qemu-img create -f qcow2 ubuntu.img 40G | |
virt-install --name ubuntu --ram=1024 --vcpus=1 --os-type=linux --hvm --virt-type=kvm --disk=ubuntu.img,format=qcow2,bus=virtio --cdrom=ubuntu-14.04-server-amd64.iso --vnc --vncport=5911 --vnclisten=127.0.0.1 --network=bridge:brex --keymap=ja |
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
#!bin/bash | |
virt-install --name ubuntu --ram=1024 --vcpus=1 --os-type=linux --hvm --virt-type=kvm --disk=ubuntu.img,format=qcow2,bus=virtio --vnc --vncport=5911 --vnclisten=127.0.0.1 --network=bridge:brex --keymap=ja --boot hd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment