Skip to content

Instantly share code, notes, and snippets.

@lemonlatte
Created December 7, 2012 02:55
Show Gist options
  • Save lemonlatte/4230356 to your computer and use it in GitHub Desktop.
Save lemonlatte/4230356 to your computer and use it in GitHub Desktop.
virt-install ubuntu 12.04 precise with XEN
qemu-img create -f qcow2 /var/lib/xen/images/node1.img 10G
virt-install --connect xen:/// \
--arch=x86_64 \
--accelerate \
--name node1 \
--ram=512 \
--vcpus=1 \
--os-type=Linux \
--os-variant=ubuntuprecise \
--disk path=/var/lib/xen/images/node1.img,format=qcow2,size=10 \
--network bridge=br0:1 \
--graph vnc --noautoconsole\
--location http://tw.archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment