KVM virt-install 安裝各個系統配置
阿新 • • 發佈:2017-09-15
install virt 創建 --console pty,target_type=serial \
--location ‘http://mirror.i3d.net/pub/centos/7/os/x86_64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
CentOS 6
virt-install \
--accelerate \
--name centos6 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/centos6.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant centos6 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://mirror.i3d.net/pub/centos/6/os/x86_64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
CentOS 5
virt-install \
--accelerate \
--name centos5 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/centos5.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant centos5 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://mirror.i3d.net/pub/centos/5/os/x86_64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
windows 7
virt-install \
--accelerate \
--name windows7 \
--ram 2048 \
--vcpus=2 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/windows7.qcow2,size=50,sparse=true,cache=none,bus=virtio \
--cdrom=/home/iso/windows7.iso \
--graphics vnc,listen=0.0.0.0,port=5900,password=123456 \
--network bridge=br0 \
--os-type=windows \
--os-variant=win7
----------------------------------------------------------------------------------
Debian 8
virt-install \
--accelerate \
--name debian8 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/debian8.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Debian 7
virt-install \
--accelerate \
--name debian7 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/debian7.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant debian7 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Debian 6
virt-install \
--accelerate \
--name debian6 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/debian6.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant debian6 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://ftp.nl.debian.org/debian/dists/squeeze/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Ubuntu 14.04
virt-install \
--accelerate \
--name ubuntu1404 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/ubuntu1404.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Ubuntu 12.04
virt-install \
--accelerate \
--name ubuntu1204 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/ubuntu1204.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant ubuntu12.04 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Ubuntu 10.04
virt-install \
--accelerate \
--name ubuntu1004 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/ubuntu1004.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant ubuntu10.04 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
OpenSUSE 13
virt-install \
--accelerate \
--name opensuse13 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/opensuse13.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://download.opensuse.org/distribution/13.2/repo/oss/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
OpenSUSE 12
virt-install \
--accelerate \
--name opensuse12 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/opensuse12.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://download.opensuse.org/distribution/12.3/repo/oss/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
OpenSUSE 11
virt-install \
--accelerate \
--name opensuse11 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/opensuse11.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://download.opensuse.org/distribution/11.4/repo/oss/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
KVM virt-install 安裝各個系統配置
記錄一下,謹防忘記。
CentOS 7
virt-install \
--accelerate \
--name centos7 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/centos7.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant centos7 \
--network bridge=br0 \
--graphics none \
--location ‘http://mirror.i3d.net/pub/centos/7/os/x86_64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
CentOS 6
virt-install \
--accelerate \
--name centos6 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--vcpus 1 \
--os-type linux \
--os-variant centos6 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://mirror.i3d.net/pub/centos/6/os/x86_64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
CentOS 5
virt-install \
--accelerate \
--name centos5 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/centos5.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant centos5 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://mirror.i3d.net/pub/centos/5/os/x86_64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
windows 7
virt-install \
--accelerate \
--name windows7 \
--ram 2048 \
--vcpus=2 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/windows7.qcow2,size=50,sparse=true,cache=none,bus=virtio \
--cdrom=/home/iso/windows7.iso \
--graphics vnc,listen=0.0.0.0,port=5900,password=123456 \
--network bridge=br0 \
--os-type=windows \
--os-variant=win7
----------------------------------------------------------------------------------
Debian 8
virt-install \
--accelerate \
--name debian8 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/debian8.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Debian 7
virt-install \
--accelerate \
--name debian7 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/debian7.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant debian7 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Debian 6
virt-install \
--accelerate \
--name debian6 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/debian6.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant debian6 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://ftp.nl.debian.org/debian/dists/squeeze/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Ubuntu 14.04
virt-install \
--accelerate \
--name ubuntu1404 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/ubuntu1404.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Ubuntu 12.04
virt-install \
--accelerate \
--name ubuntu1204 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/ubuntu1204.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant ubuntu12.04 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
Ubuntu 10.04
virt-install \
--accelerate \
--name ubuntu1004 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/ubuntu1004.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant ubuntu10.04 \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
OpenSUSE 13
virt-install \
--accelerate \
--name opensuse13 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/opensuse13.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://download.opensuse.org/distribution/13.2/repo/oss/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
OpenSUSE 12
virt-install \
--accelerate \
--name opensuse12 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/opensuse12.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://download.opensuse.org/distribution/12.3/repo/oss/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
OpenSUSE 11
virt-install \
--accelerate \
--name opensuse11 \
--ram 1024 \
--controller type=scsi,model=virtio-scsi \
--disk path=/home/date/opensuse11.qcow2,size=10,sparse=true,cache=none,bus=scsi \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=br0 \
--graphics none \
--console pty,target_type=serial \
--location ‘http://download.opensuse.org/distribution/11.4/repo/oss/‘ \
--extra-args ‘console=ttyS0,115200n8 serial‘
----------------------------------------------------------------------------------
本文出自 “網絡技術天地” 博客,請務必保留此出處http://1364952.blog.51cto.com/1354952/1965362
KVM virt-install 安裝各個系統配置