virt-installの使い方
ヘルプを見てみる。
# virt-install -h
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 全般のオプション: -n NAME, --name=NAME ゲストの実体の名前 -r MEMORY, --ram=MEMORY ゲストの実体のために割り当てる、メガ バイトでのメモリー --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 インストールメディア -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. ストレージの設定: --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 ゲスト用にディスクを設定しないでくだ さい。 --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 ゲスト用にネットワークインタフェース を作成できません。 グラフィカルな設定: --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 ゲストコンソールに自動的に接続しよう としないでください デバイスのオプション: --controller=CONTROLLER Configure a guest controller device. Ex: --controller type=usb,model=ich9-ehci1 --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 --redirdev=REDIRDEV Configure a guest redirection device. Ex: --redirdev usb,type=tcp,server=192.168.1.1:4000 仮想化プラットフォームのオプション: -v, --hvm このゲストは完全仮想化ゲストでなけれ ばなりません -p, --paravirt このゲストは準仮想化ゲストでなければ なりません --container This guest should be a container guest --virt-type=HV_TYPE Hypervisor name to use (kvm, qemu, xen, ...) --arch=ARCH シミュレートする CPU アーキテクチャー --machine=MACHINE The machine type to emulate --noapic 完全仮想化ゲストの APIC を無効にします (os-タイプ/os-種別の db の値を上書きします) --noacpi 完全仮想化ゲストの ACPI を無効にします (os-タイプ/os-種別の db の値を上書きします) -u UUID, --uuid=UUID 新しいゲストの UUID その他のオプション: --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 デバッグ情報を印刷
キーワード:
参照: