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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘

----------------------------------------------------------------------------------

本文出自 “网络技术天地” 博客,请务必保留此出处http://1364952.blog.51cto.com/1354952/1965362

以上是关于KVM virt-install 安装各个系统配置的主要内容,如果未能解决你的问题,请参考以下文章

Linux KVM 安装使用手册

KVM安装配置CentOS7开机网卡自动变为eth0

请教centos 7安装qemu-kvm之后,用virt-install来安装虚拟机报错

kvm中虚拟机xml文件释义

KVM 安装windows XP 系统

自定义虚拟机安装(KVM)