记录一下,谨防忘记。
Debian 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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' |
CentOS 7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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' |
Ubuntu 14.04
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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' |
windows 7
1 2 3 4 5 6 7 8 9 10 11 12 | 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 |