Skip to content

Instantly share code, notes, and snippets.

@thapakazi
Created July 3, 2013 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thapakazi/5915894 to your computer and use it in GitHub Desktop.
Save thapakazi/5915894 to your computer and use it in GitHub Desktop.
Virtualisation Cookings with kvm,
'debian-release' 'lucid'
#tweaking other-config
xe template-param-set other-config:debian-release=precise other-config:disks: <provision><disk device="0" size="16106127360" sr="" bootable="true" type="system"/></provision>
#Templating Ubuntu 12.04
TEMPLATE_UUID=`xe template-list name-label="Ubuntu Lucid Lynx 10.04 (64-bit)" params=uuid --minimal`
NEW_TEMPLATE_UUID=`xe vm-clone uuid=$TEMPLATE_UUID new-name-label="Ubuntu Precise Pangolin 12.04 (64-bit)"`
xe template-param-set other-config:default_template=true other-config:debian-release=precise uuid=$NEW_TEMPLATE_UUID
#installation of Ubuntu 12.04,virtual Machine with KVM
virt-install -n ubuntu002 -r 2048 --vcpus=2 --os-type=linux --os-variant=ubuntuprecise --disk /var/lib/libvirt/images/ubuntu2_boot.img,device=disk,bus=virtio,size=20,sparse=true,format=raw -w bridge=br0,model=virtio --vnc --noautoconsole --location /var/lib/libvirt/images/ubuntu-12.04-server-amd64.iso --extra-args='console=tty0 console=ttyS0,115200n8 serial'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment