FreeSBC:Cloud:VmWare Launching an Instance
From TBwiki
Revision as of 15:42, 18 December 2019 by Luc Morissette (Talk | contribs)
Launching an instance using ESXi web interface
- Log in using the Vmware web interface
- Select 'Virtual Machines' from the left menu
- Click on 'Create / Register VM'
- Select 'Deploy a virtual machine from an OVF or OVA file' then press 'next'
- Enter the name. Drag the file or browse to the location of the FreeSBC-SW image obtained from TelcoBridges. 'Click 'Next'
- Select a datastore (if more than one are available) then click 'Next'
- Choose your network. Select 'Thick' disk provisioning. Uncheck 'Power on automatically'. Click 'Next'
- Click 'Next'
- Do not refresh your browser and wait until the machine is deployed.
- Once deployed, edit the VM
- Edit network adapters to connect on proper networks. Make sure that at least one of the adapter connects to the private management network of the setup from which WebPortal access will be granted. Do not press the 'Save' button yet.
- If system requires 1+1 configuration or more network interfaces follow these steps: How to add VMware Network Interfaces
- If system requires high performance, Passthrough interface can be configured. See Configuring VMware Passtrough interfaces
- Click on 'CPU' to open the details. Set 'Shares' to 'high', enter the maximum number of MHz corresponding to your number of CPU cores in 'Reservation' (See Calculating Reserved CPU) and make sure the 'Unlimited' option is selected. Do not press the 'Save' button yet.
- Open the 'Memory' details and check-mark the 'Reserve all guest memory (All locked)' option, set Limit to 'Unlimited' and Shares to 'High'. Do not press the 'Save' button yet.
- Open the 'Hard disk 1' details and set the 'Shares' to 'High'. Do not press the 'Save' button yet.
- Click on the second tab 'VM Options', expand 'Advanced' and set 'Latency Sensitivity' to 'High' then press the 'Save' button.
- Back to the main screen, click on "Power On" to start the new VM.
- Once the VM had completely booted, its assigned DHCP IPs will be displayed in General Information -> Networking. Note this IP address to access the Web Portal configuration interface later.
Calculating Reserved CPU MHz
To get the MHz per core, you need to figure out the total number of available MHz that your system has and divide by the total number of cores.
- Select 'Host' on the left menu
- Take note of the number of cores this system has. (In this example: 12) Also take a look at the 'CAPACITY', but is is not precise down to the MHz (In this example 36.7 GHz)
- When editing the VM, in the disk details, expand the 'Reservation' combobox. There should be a number in exact MHz for the maximum capacity of the system (In this example: 36708)
- Calculate your VM CPU MHz Reservation requirement
- mhz_per_core = total_system_mhz / total_system_cpus (In this example: 3059 = 36708 / 12 )
- vm_reserved_mhz = vm_cpus * mhz_per_core (In this example: 12236 = 3059 * 4 )