9月 022013
 

Usage: virt-install –name NAME –ram RAM STORAGE INSTALL [options]

Options:
–version             show program’s version number and exit
-h, –help            show this help message and exit
–connect=URI         Connect to hypervisor with libvirt URI

General Options:
-n NAME, –name=NAME
Name of the guest instance
-r MEMORY, –ram=MEMORY
Memory to allocate for guest instance in megabytes
–vcpus=VCPUS       Number of vcpus to configure for your guest. Ex:
–vcpus 5
–vcpus 5,maxcpus=10
–vcpus sockets=2,cores=4,threads=2
–cpuset=CPUSET     Set which physical CPUs domain can use.
–cpu=CPU           CPU model and features. Ex: –cpu coreduo,+x2apic
–description=DESCRIPTION
Human readable description of the VM to store in the
generated XML.
–security=SECURITY
Set domain security driver configuration.
–numatune=NUMATUNE
Tune NUMA policy for the domain process.

Installation Method Options:
-c CDROM, –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
–init=INIT         Path to init binary for container guest. Ex:
–init /path/to/app (to contain an application)
–init /sbin/init (for a full OS container)
–livecd            Treat the CD-ROM media as a Live CD
-x EXTRA, –extra-args=EXTRA
Additional arguments to pass to the install kernel
booted from –location
–initrd-inject=INITRD_INJECTIONS
Add given file to root of initrd from –location
–os-type=DISTRO_TYPE
The OS type being installed, e.g. ‘linux’, ‘unix’,
‘windows’
–os-variant=DISTRO_VARIANT
The OS variant being installed guests, e.g. ‘fedora6’,
‘rhel5’, ‘solaris10’, ‘win2k’
–boot=BOOTOPTS     Optionally configure post-install boot order, menu,
permanent kernel boot, etc.

Storage Configuration:
–disk=DISKOPTS     Specify storage with various options. Ex.
–disk path=/my/existing/disk
–disk path=/my/new/disk,size=5 (in gigabytes)
–disk vol=poolname:volname,device=cdrom,bus=scsi,…
–nodisks           Don’t set up any disks for the guest.
–filesystem=FILESYSTEMS
Pass host directory to the guest. Ex:
–filesystem /my/source/dir,/dir/in/guest
–filesystem template_name,/,type=template

Networking Configuration:
-w NETWORK, –network=NETWORK
Configure a guest network interface. Ex:
–network bridge=mybr0
–network network=my_libvirt_virtual_net
–network network=mynet,model=virtio,mac=00:11…
–nonetworks        Don’t create network interfaces for the guest.

Graphics Configuration:
–graphics=GRAPHICS
Configure guest display settings. Ex:
–graphics vnc
–graphics spice,port=5901,tlsport=5902
–graphics none
–graphics vnc,password=foobar,port=5910,keymap=ja
–noautoconsole     Don’t automatically try to connect to the guest
console

Device Options:
–serial=SERIALS    Configure a guest serial device
–parallel=PARALLELS
Configure a guest parallel device
–channel=CHANNELS  Configure a guest communication channel
–console=CONSOLES  Configure a text console connection between the guest
and host
–host-device=HOSTDEVS
Configure physical host devices attached to the guest
–soundhw=SOUNDHW   Configure guest sound device emulation
–watchdog=WATCHDOG
Configure a guest watchdog device
–video=VIDEO       Configure guest video hardware.
–smartcard=SMARTCARD
Configure a guest smartcard device. Ex:
–smartcard mode=passthrough

Virtualization Platform Options:
-v, –hvm           This guest should be a fully virtualized guest
-p, –paravirt      This guest should be a paravirtualized guest
–container         This guest should be a container guest
–virt-type=HV_TYPE
Hypervisor name to use (kvm, qemu, xen, …)
–arch=ARCH         The CPU architecture to simulate
–machine=MACHINE   The machine type to emulate
–noapic            Disables APIC for fully virtualized guest (overrides
value in os-type/os-variant db)
–noacpi            Disables ACPI for fully virtualized guest (overrides
value in os-type/os-variant db)
-u UUID, –uuid=UUID
UUID for the guest.

选项

Miscellaneous Options:
 --autostart         Have domain autostart on host boot up.
 --print-xml         Print the generated domain XML rather than define the
 guest.
 --print-step=XMLSTEP
 Print XML of a specific install step (1, 2, 3, all)
 rather than define the guest.
 --noreboot          Don't boot guest after completing install.
 --wait=WAIT         Time to wait (in minutes)
 --dry-run           Run through install process, but do not create devices
 or define the guest.
 --force             Forces 'yes' for any applicable prompts, terminates
 for all others
 -q, --quiet         Suppress non-error output
 --prompt            Request user input for ambiguous situations or
 required options.
 -d, --debug         Print debugging information

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据