Create a virtual machine using the syntax:
create Vm[memory=] [valuememoryLimit=] [valuecpuCount=] [valuecpuCountLimit=] [valuecpuPriority=] [valuecpuUtilizationCap=] [valuehighAvailability={Yes|No} ] [hugePagesEnabled={Yes|No} ] [osType=] [valuemouseType={OS_DEFAULT|PS2_MOUSE|USB_MOUSE|USB_TABLET} ]domainType={XEN_HVM|XEN_HVM_PV_DRIVERS|XEN_PVM|LDOMS_PVM|UNKNOWN} [keymapName={en-us|ar|da|de|de-ch|en-gb|es|et|fi|fo|fr|fr-be|fr-ca|fr-ch|hr|hu|is|it|ja|lt|lv|mk|nl|nl-be|No|pl|pt|pt-br|ru|sl|sv|th|tr} ] [bootOrder={PXE|DISK|CDROM} ] [networkInstallPath=]valuerepository=[valueserver=] [valuestartPolicy={BEST_SERVER|CURRENT_SERVER|USE_POOL_POLICY} ]name=[valuedescription=]valueonServerPoolinstanceFor example:
OVM> create Vm name=MyVM repository=MyRepository domainType=XEN_HVM \ server=MyServer startPolicy=USE_POOL_POLICY on ServerPool name=MyServerPool
For more information on the syntax and usage, see Section A.51, “create Vm” .
Create a virtual disk to use as the boot disk using the syntax:
create VirtualDisksize=valueshareable={Yes|No}sparse={Yes|No}name=[valuedescription=]valueon RepositoryinstanceFor example:
OVM> create VirtualDisk name=MyVMDisk size=10 sparse=Yes shareable=No on Repository \ name=MyRepository
For more information on the syntax and usage, see Section A.49, “create VirtualDisk” .
Map the virtual disk to the virtual machine using the syntax:
create VmDiskMappingslot={valuephysicalDisk=|valuevirtualDisk=|valuevirtualCd={|valueEMPTY_CDROM} }name=[valuedescription=]valueon VminstanceFor example:
OVM> create VmDiskMapping slot=0 virtualDisk=MyVMDisk name="Boot Disk" on Vm name=MyVM
For more information on the syntax and usage, see Section A.55, “create VmDiskMapping” .
Map an ISO file to the virtual machine using the syntax:
create VmDiskMappingslot={valuephysicalDisk=|valuevirtualDisk=|valuevirtualCd={|valueEMPTY_CDROM} }name=[valuedescription=]valueon VminstanceFor example:
OVM> create VmDiskMapping slot=1 virtualCd=OracleLinux-dvd.iso \ name="CDROM Drive" on Vm name=MyVM
For more information on the syntax and usage, see Section A.55, “create VmDiskMapping”.
Set up the disk boot order as the CDROM (ISO file) as the first disk, then the virtual disk as the secondary disk, using the syntax:
edit Vm[instancememory=] [valuememoryLimit=] [valuecpuCount=] [valuecpuCountLimit=] [valuecpuPriority=] [valuecpuUtilizationCap=] [valuehighAvailability={Yes|No} ] [hugePagesEnabled={Yes|No} ] [osType=] [valuemouseType={OS_DEFAULT|PS2_MOUSE|USB_MOUSE|USB_TABLET} ] [domainType={XEN_HVM|XEN_HVM_PV_DRIVERS|XEN_PVM|LDOMS_PVM|UNKNOWN} ] [keymapName={en-us|ar|da|de|de-ch|en-gb|es|et|fi|fo|fr|fr-be|fr-ca|fr-ch|hr|hu|is|it|ja|lt|lv|mk|nl|nl-be|No|pl|pt|pt-br|ru|sl|sv|th|tr} ] [bootOrder={PXE|DISK|CDROM} ] [networkInstallpath=] [valuestartPolicy={BEST_SERVER|CURRENT_SERVER|USE_POOL_POLICY} ] [name=] [valuedescription=]valueFor example:
OVM> edit Vm name=MyVM bootOrder='CDROM,DISK' startPolicy=BEST_SERVER
For more information on the syntax and usage, see Section A.90, “edit Vm”.
Create a VNIC and add it to the virtual machine using the syntax:
create Vnic[macAddress=]valuenetwork=valuename=[valuedescription=]valueon VminstanceFor example:
OVM> create Vnic name=00:21:f6:00:00:18 network=MyVMNetwork on Vm name=MyVM
For more information on the syntax and usage, see Section A.56, “create Vnic”.

