I personally prefer virt-manager. But, virt-manager is not always available. So, This post demonstrates how to install a ubuntu 12.04 LTS using virt-install without graphical user interface.
sudo virt-install --name testVM --ram 512 --vcpus=1 --disk ~/testVM.img,size=8 --location http://archive.ubuntu.net/ubuntu/dists/precise/main/installer-amd64/
If you want to use paravirtualization. You have to use network install url, as the example above.
If you want to use hvm or full virtualization. You can use a local media. Ex,
--cdrom ~/ubuntu-12.04.2-server-amd64.isoType "man virt-insall" to see the manual of virt-install for explanations of parameters and more information.
During the installation, I had this problem:
ERROR Could not start storage pool: cannot open path '/var/lib/xen': No such file or directoryA solution/workaround is
sudo mkdir /var/lib/xen
References:
http://perso.univ-lemans.fr/~brichard/logiciels/?doc=Xen
http://www.techotopia.com/index.php/Installing_a_Xen_Guest_OS_from_the_Command-line_(virt-install)
Ending picture today:
Night view of Washington Monument and Jefferson Memorial.[courtesy of my dear wife - Claire Huang]
No comments:
Post a Comment