Difference: CreatingKVMImages (5 vs. 6)

Revision 62011-08-02 - rrusnak

Line: 1 to 1
META TOPICPARENT name="UvicKVMResources"
Line: 33 to 33
  --extra-args="serial console=tty0 console=ttyS0,115200"
The following example will create a 5GB guest image and start a net based install of ubuntu 10.10. Once again the --nographics option will be used.

sudo virt-install --connect qemu:///system --name maverick --disk path=/tmp/maverick.img --file-size=5 --ram=512 --accelerate --network=bridge:virbr0 --location http://ftp.ubuntu.com/ubuntu/dists/maverick/main/installer-i386/ --nographics --extra-args="console=ttyS0"

(Note: I seem to have more luck creating guests while using net installs as opposed to iso files. Here are some common locations:

Fedora: http://download.fedoraproject.org/pub/fedora/linux/releases/13/Fedora/i386/os/ Change "13" to the Fedora release, and "i386" to x86_64 for a 64 bit guest. 
Debian: http://ftp.us.debian.org/debian/dists/stable/main/installer-i386/ Change "us" to your country code (for faster access to a local mirror), and "i386" to amd64 for a 64 bit guest. 
Ubuntu: http://ftp.ubuntu.com/ubuntu/dists/maverick/main/installer-i386/ Change "maverick" to the name of the version of Ubuntu to install, and "i386" to amd64 for a 64 bit guest.
  • The --accelerate option used in previous versions of this document is now depreciated in new versions of virt-install.
  • the --cdrom option can point to an actual drive (ie, /dev/hdc), or a iso file on your local machine.
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback