Virt-install: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
=Mandatory Options=
=Mandatory Options=


====--name====
==Guest Virtual Machine Name==


====--memory====
Specified with <tt>--name</tt>


The amount of memory allocated to the guest, in MiB.
==Memory Amount==


====Guest Storage Specification====
virt-install needs the amount of memory allocated to the guest, in MiB, which should be specified with <tt>--memory</tt>.
 
==Guest Storage Specification==


--disk, --filesystem --nodisks
--disk, --filesystem --nodisks
==Installation Method Option==
Installation Method Options:
  --cdrom CDROM        CD-ROM installation media
  -l LOCATION, --location LOCATION
                        Installation source (eg, nfs:host:/path,
                        http://host/path, ftp://host/path)
  --pxe                Boot from the network using the PXE protocol
  --import              Build guest around an existing disk image
  --livecd              Treat the CD-ROM media as a Live CD
  -x EXTRA_ARGS, --extra-args EXTRA_ARGS
                        Additional arguments to pass to the install kernel
                        booted from --location
  --initrd-inject INITRD_INJECT
                        Add given file to root of initrd from --location
  --os-variant DISTRO_VARIANT
                        The OS variant being installed guests, e.g.
                        'fedora18', 'rhel6', 'winxp', etc.
  --boot BOOT          Configure guest boot settings. Ex:
                        --boot hd,cdrom,menu=on
                        --boot init=/sbin/init (for containers)
  --idmap IDMAP        Enable user namespace for LXC container. Ex:
                        --idmap uid_start=0,uid_target=1000,uid_count=10


=Optional Configuration=
=Optional Configuration=


====--vcpus====
====--vcpus====

Revision as of 21:45, 26 June 2017

External

Internal

Overview

virt-install is a command-line utility for provisioning new virtual machines. It comes as part of the "virt-install" RPM package.

virt-install needs root privileges to work.

Documentation

virt-install --help

Mandatory Options

Guest Virtual Machine Name

Specified with --name

Memory Amount

virt-install needs the amount of memory allocated to the guest, in MiB, which should be specified with --memory.

Guest Storage Specification

--disk, --filesystem --nodisks

Installation Method Option

Installation Method Options:

 --cdrom CDROM         CD-ROM installation media
 -l LOCATION, --location LOCATION
                       Installation source (eg, nfs:host:/path,
                       http://host/path, ftp://host/path)
 --pxe                 Boot from the network using the PXE protocol
 --import              Build guest around an existing disk image
 --livecd              Treat the CD-ROM media as a Live CD
 -x EXTRA_ARGS, --extra-args EXTRA_ARGS
                       Additional arguments to pass to the install kernel
                       booted from --location
 --initrd-inject INITRD_INJECT
                       Add given file to root of initrd from --location
 --os-variant DISTRO_VARIANT
                       The OS variant being installed guests, e.g.
                       'fedora18', 'rhel6', 'winxp', etc.
 --boot BOOT           Configure guest boot settings. Ex:
                       --boot hd,cdrom,menu=on
                       --boot init=/sbin/init (for containers)
 --idmap IDMAP         Enable user namespace for LXC container. Ex:
                       --idmap uid_start=0,uid_target=1000,uid_count=10

Optional Configuration

--vcpus