Created
July 3, 2013 06:38
-
-
Save thapakazi/5915894 to your computer and use it in GitHub Desktop.
Virtualisation Cookings with kvm,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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