http://dev.man-online.org/man1/virt-install/
# virt-install --help
Usage: virt-install --name NAME --ram RAM STORAGE INSTALL [options]
show program's version number and exit
--version
0.600.0
show this help message and exit
-h, --help
Connect to hypervisor with libvirt URI : 인터넷 식별자(Uniform Resource Identifier, URI)의 하이퍼바이저에 연결합니다.
※ http://libvirt.org/uri.html
--connect=URI
# virsh uri
qemu:///system
--connect=qemu:///system ## connects to a system mode daemon.
# virsh -c qemu:///system
Id Name State
----------------------------------------------------
5 guest01 running
--connect=qemu:///session ## connects to a session mode daemon.
# virsh -c qemu:///session list
Id Name State
----------------------------------------------------
5 guest01 running
Guest OS 이름
-n NAME, --name=NAME
# virt-install --name=guest01 ~~
or
# virt-install -n guest01 ~~
Guest OS에 할당할 메모리 양(MB)
-r MEMORY, --ram=MEMORY
# virt-install --ram=1024
or
# virt-install -r 1024
Guest OS에 할당할 CPU 수
--vcpus=VCPUS
## 가상 CPU 5개, 미지정 시 1개
# virt-install --vcpus 5
## 가상 CPU 5개, 최대 가상 CPU 10개(If 'maxvcpus' is specified, the guest will be able to hotplug up to MAX vcpus while the guest is running, but will startup with VCPUS.)
# virt-install --vcpus 5,maxvcpus=10
# virt-install --vcpus sockets=2,cores=4,threads=2
Set which physical CPUs domain can use.
--cpuset=CPUSET
### processors 0,1,3,7
# virt-install --cpuset=0,1,3,7
### processors 1,2,5,7,8,9
# virt-install --cpuset=1-2,5,7-9
CPU model and features. Ex: --cpu coreduo,+x2apic
--cpu=CPU
Human readable description of the VM to store in the generated XML.
--description=DESCRIPTION
# virt-install --name guest01 ~~
# virsh desc guest01
No description for domain: guest01
# virt-install --name guest02 --description 'Test host' ~~
# virsh desc guest02
Test host
Set domain security driver configuration.
--security=SECURITY
--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
'CLOUD > OpenStack 이미지' 카테고리의 다른 글
RCB OpenStack Image List (0) | 2013.07.05 |
---|
최근댓글