Create a VM in VMware

Here, we’ll look at how to create a VM in VMware.

First, there’s one important thing to know about VMware: there are two ways to manage it:

Here, I’ll mainly be using the web interface because I think that’s the future of VMware, which is increasingly moving away from the thick client (in fact, none of the new features introduced since version 5.1 are compatible with the thick client).

Also note that the web interface is still being rolled out at VMware, so you’ll likely encounter a few bugs or slowdowns, but just refresh the page and it’ll work fine again.

Logging in to the web interface

Go to IP_ESXI/ui in your web browser; you should see:

vmware.createvm3

Note

If you don’t have anything set up yet, I recommend installing the web interface; all the information here

Enter your ESXi login credentials:

vmware.createvm4

As you can see, the interface is pretty cool and lets you do quite a few things. I won’t go into detail, but from this screen alone, you can already:

Sending the installation ISO

After downloading your installation ISO (here for example, for Debian 11.8 via netinstall), you’ll need to place it on your datastore.

To do this, click on “datastore”:

vmware.createvm18

Select your datastore (usually named datastore1):

vmware.createvm19

Click “Database Browser”:

vmware.createvm20

Click “Download” (the first one):

vmware.createvm21

Select the previously downloaded ISO file and confirm:

vmware.createvm22

You can then track the progress of the shipment:

vmware.createvm23

Once it’s finished, you can see that your ISO has been successfully uploaded to the datastore:

vmware.createvm24

Creating Your First VM

Click the “Create/Save a VM” button:

vmware.createvm5

Click Next:

vmware.createvm6

Next, give your machine a name and specify its operating system (here we’ll be installing Debian):

vmware.createvm7

Specify the target datastore:

vmware.createvm8

Here you can configure your machine’s settings (hard drive, CPU, memory, etc.):

vmware.createvm9

Note

All of these settings can be changed later without any issues. Note, however, that it’s not truly possible to reduce the size of a hard drive; you can increase it (but you’ll need to manage that at the OS level afterward), but not decrease it.

In the CD/DVD drive, select “Database ISO File”:

vmware.createvm10

Next, select the location where your ISO file is stored (see the previous section) and confirm:

vmware.createvm11

Next, do the following:

vmware.createvm12

You will then see a summary of your configuration; click “Finish”:

vmware.createvm13

A message at the top will let you know that everything is set; then click on “Virtual Machines”:

vmware.createvm14

You should see your virtual machine (if not, click “Refresh”); click on it:

vmware.createvm15

You should see a page of this type; click the play button:

vmware.createvm16

Your machine will start up, and you’ll be able to install your operating system:

vmware.createvm17

Important

Once your machine is installed, you MUST install the VMware Tools (this allows VMware to access information about your VM and shut it down properly). On Debian, simply run “sudo apt-get -y install open-vm-tools”.

For the rest of the installation, please read this tutorial

Mount USB devices in the VM

Note

If you don’t see the options below, you need to update the ESXi Embedded Host Client. All the information here

This is a fairly rare need, but I had to use it for Jeedom. In fact, I have Z-Wave, RFXcom, Edisio, enOcean, and GSM devices connected to my ESXi server, and I needed to link them to my Jeedom VM in order to use them.

Note

For Z-Wave, RFXcom, Edisio, and enOcean, there are no issues; for GSM dongles, you’ll need to follow these tutorial First, force the key to modem-only mode; otherwise, it won’t be recognized properly on ESXi.

Go to your VM and click “Edit Settings”:

vmware.createvm25

Click “Add Another Device,” then select USB controller:

vmware.createvm26

Note

The following step must be repeated for each USB device you want to connect

Save, go back to “Edit Settings,” then select “Add Another Device” and “USB Device”:

vmware.createvm27

Select your USB device from the drop-down list:

vmware.createvm28

There you go—your device is now connected to your VM. Every time you reboot, it will automatically reconnect to the VM, and if you physically disconnect or reconnect it, it will reconnect to your VM. In other words, using it is now completely seamless.

Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web. Si vous continuez à utiliser ce site, nous supposerons que vous en êtes satisfait.