KVM virt-install 安装各个系统配置

简介:

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 \
--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'





      本文转自rshare 51CTO博客,原文链接:http://blog.51cto.com/1364952/1965362,如需转载请自行联系原作者





相关文章
|
存储 运维 IDE
|
1月前
|
Ubuntu
一分钟在Ubuntu 20.04安装QEMU-KVM + Virt-Manage
一分钟在Ubuntu 20.04安装QEMU-KVM + Virt-Manage
|
4月前
|
Ubuntu
ubuntu 安装 virt-manager 虚拟机
ubuntu 安装 virt-manager 虚拟机
221 1
|
4月前
|
Linux
Linux重装qemu和libvirt
Linux重装qemu和libvirt
|
存储 Linux 网络安全
KVM安装
uname -r yum install qemu virt librbdl-devel -y
175 0
KVM安装
|
存储 Linux KVM
CentOS 7 安装KVM,并创建虚拟机
CentOS 7 安装KVM,并创建虚拟机 使用KVM(基于内核的虚拟机)+ QEMU的虚拟化。 需要具有Intel VT或AMD-V功能的CPU。 安装KVM[root@kvm-centos7 ~]# yum -y install qemu-kvm libvirt virt-install.
2644 0
|
KVM 虚拟化 机器学习/深度学习
|
网络协议 Linux 虚拟化