1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
| Debian 8 virt-install \ --name debian8 \ --ram 1024 \ --disk path=./debian8.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant generic \ --network bridge=virbr0 \ --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 \ --name debian7 \ --ram 1024 \ --disk path=./debian7.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant debian7 \ --network bridge=virbr0 \ --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 \ --name debian6 \ --ram 1024 \ --disk path=./debian6.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant debian6 \ --network bridge=virbr0 \ --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 virt-install \ --name centos7 \ --ram 1024 \ --disk path=./centos7.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant centos7 \ --network bridge=virbr0 \ --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 \ --name centos6 \ --ram 1024 \ --disk path=./centos6.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant centos6 \ --network bridge=virbr0 \ --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 \ --name centos5 \ --ram 1024 \ --disk path=./centos5.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant centos5 \ --network bridge=virbr0 \ --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 virt-install \ --name ubuntu1404 \ --ram 1024 \ --disk path=./ubuntu1404.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant generic \ --network bridge=virbr0 \ --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 \ --name ubuntu1204 \ --ram 1024 \ --disk path=./ubuntu1204.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant ubuntu12.04 \ --network bridge=virbr0 \ --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 \ --name ubuntu1004 \ --ram 1024 \ --disk path=./ubuntu1004.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant ubuntu10.04 \ --network bridge=virbr0 \ --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 \ --name opensuse13 \ --ram 1024 \ --disk path=./opensuse13.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant generic \ --network bridge=virbr0 \ --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 \ --name opensuse12 \ --ram 1024 \ --disk path=./opensuse12.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant generic \ --network bridge=virbr0 \ --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 \ --name opensuse11 \ --ram 1024 \ --disk path=./opensuse11.qcow2,size=8 \ --vcpus 1 \ --os-type linux \ --os-variant generic \ --network bridge=virbr0 \ --graphics none \ --console pty,target_type=serial \ --location 'http://download.opensuse.org/distribution/11.4/repo/oss/' \ --extra-args 'console=ttyS0,115200n8 serial' Generic ISO Download an ISO file and give the filename to the --cdrom= parameter. This is used instead of --location. A VNC console is available on localhost, port 5999 for you to use.
An example for FreeBSD 10. First download the ISO:
wget http: Then start virt-install:
virt-install \ --name freebsd10 \ --ram 1024 \ --disk path=./freebsd10.qcow2,size=8 \ --vcpus 1 \ --os-type generic \ --os-variant generic \ --network bridge=virbr0 \ --graphics vnc,port=5999 \ --console pty,target_type=serial \ --cdrom ./FreeBSD-10.1-RELEASE-amd64-dvd1.iso \ You need to start up a VNC client to do the installation.
|