install the first one with
virt-install --connect qemu:///system --name=lserver1 --os-type=linux --vcpus=3 --memory=746 --disk size=30,sparse=true,cache=unsafe,format=qcow2,bus=virtio,path=/home/guda/images/lserver1.qcow2 --virt-type=qemu --graphics spice --cdrom=/home/guda/Downloads/ubuntu-15.10-server-amd64.iso --os-variant=ubuntuutopic --network=default,model=virtio --boot cdrom,hd,network,menu=on
Then clone them
virt-clone --original lserver1 -n lserver3 -f /home/guda/images/lserver3.qcow2 --connect=qemu:///system
Notes:
check some values for the params for virt-install
- virt-type: virsh capabilities
- virt-install –os-variant list
- download image: http://ubuntu.osuosl.org/releases/15.10/ubuntu-15.10-server-i386.iso
If you don’t want to answer questions during the install here is more reading
Preseed
- https://gist.github.com/smoser/1057704
- http://blog.dustinkirkland.com/2011/03/ubuntu-server-quick-install-no.html
- https://help.ubuntu.com/lts/installation-guide/i386/ch04s06.html
Docker stuff
- https://github.com/dave-tucker/docker-network-demos/blob/master/multihost-local.sh
- https://docs.docker.com/machine/