Create a virtual machine using the syntax:
create Vm
memory=
value
memoryLimit=
value
cpuCountLimit=
value
cpuCount=
value
cpuPriority=
value
cpuUtilizationCap=
value
highAvailability=
{ yes
| no
}
osType=
{ WIN_2003
| WIN_2008
| WIN_7
| WIN_VISTA
| OTHER_WIN
| OL_4
| OL_5
| OL_6
| RHL_4
| RHL_5
| RHL_6
| LINUX_RECOVERY
| OTHER_LINUX
| SOLARIS_10
| SOLARIS_11
| OTHER_SOLARIS
| NONE
}
mouseType=
{ 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
} networkBootPath=
value
repository=
value
name=
[value
description=
] { value
on Server
| instance
ServerPool
}instance
For example:
OVM> create Vm name=MyVM repository=MyRepository domainType=XEN_HVM on ServerPool \ name=MyServerPool
For more information on the syntax and usage, see Section A.31, “create Vm” .
Create a virtual disk to use as the boot disk using the syntax:
create VirtualDisk
size=
value
shareable=
{ yes
| no
} sparse=
{ yes
| no
} name=
[value
description=
] value
on Repository
instance
For 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.28, “create VirtualDisk” .
Map the virtual disk to the virtual machine using the syntax:
create VmDiskMapping
slot=
[value
storageDevice=
] value
name=
[value
description=
] value
on Vm
instance
For example:
OVM> create VmDiskMapping slot=0 storageDevice=MyVMDisk name=BootDisk on Vm name=MyVM
For more information on the syntax and usage, see Section A.32, “create VmDiskMapping” .
Map an ISO file to the virtual machine using the syntax:
create VmDiskMapping
slot=
[value
storageDevice=
] value
name=
[value
description=
] value
on Vm
instance
For example:
OVM> create VmDiskMapping slot=1 storageDevice=OracleLinux-R6-U2-Server-x86_64-dvd.iso \ name=CDROM on Vm name=MyVM
For more information on the syntax and usage, see Section A.32, “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
[instance
memory=
] [value
memoryLimit=
] [value
cpuCountLimit=
] [value
cpuCount=
] [value
cpuPriority=
] [value
cpuUtilizationCap=
] [value
highAvailability=
{ yes
| no
}]
[osType=
{ WIN_2003
| WIN_2008
| WIN_7
| WIN_VISTA
| OTHER_WIN
| OL_4
| OL_5
| OL_6
| RHL_4
| RHL_5
| RHL_6
| LINUX_RECOVERY
| OTHER_LINUX
| SOLARIS_10
| SOLARIS_11
| OTHER_SOLARIS
| NONE
}]
[mouseType=
{ 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
}] [networkBootPath=
] [value
name=
] [value
description=
]value
For example:
OVM> edit Vm name=MyVM bootOrder='CDROM,DISK'
For more information on the syntax and usage, see Section A.55, “edit Vm”.
Add a VNIC to the virtual machine using the syntax:
add Vnic
instance
to Vm
instance
For example:
OVM> add Vnic name=00:21:f6:00:00:00 to Vm name=MyVM
For more information on the syntax and usage, see Section A.15, “add Vnic”.