virt-install --name NAME --ram RAM STORAGE INSTALL
Default installation may set Splice as default display. However then the application repeatedly asks SSH password. Before power up, set display to VNC.
-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
--description=DESCRIPTION
Human readable description of the VM to store in the
generated XML.
-c CDROM, --cdrom=CDROM
CD-ROM installation media
--import Build guest around an existing disk image
--livecd Treat the CD-ROM media as a Live CD
--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'
--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,...
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=GRAPHICS
Configure guest display settings. Ex:
--graphics vnc
--graphics spice,port=5901,tlsport=5902
--graphics none
--graphics vnc,password=foobar,port=5910,keymap=ja
--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
Miscellaneous Options:
--autostart Have domain autostart on host boot up.
--print-xml Print the generated domain XML rather than define the
guest.
--noreboot Don't boot guest after completing install.