Author: eau

ESXI linux guest install tools

Ubuntu Server with only a command line interface

  1. Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).Note: If you are running the light version of Fusion, or a version of Workstation without VMware Tools, or VMware Player, you are prompted to download the Tools before they can be installed. Click Download Now to begin the download.
  2. In the Ubuntu guest, run these commands:
    1. Run this command to create a directory to mount the CD-ROM:sudo mkdir /mnt/cdrom

      When prompted for a password, enter your Ubuntu admin user password.

      Note: For security reasons, the typed password is not displayed. You do not need to enter your password again for the next five minutes.

    2. Run this command to mount the CD-ROM:sudo mount /dev/cdrom /mnt/cdrom or sudo mount /dev/sr0 /mnt/cdrom
    3. The file name of the VMware Tools bundle varies depending on your version of the VMware product. Run this command to find the exact name:ls /mnt/cdrom
    4. Run this command to extract the contents of the VMware Tools bundle:tar xzvf /mnt/cdrom/VMwareTools-x.x.x-xxxx.tar.gz -C /tmp/

      Notex.x.x-xxxx is the version discovered in the previous step.

    5. Run this command to change directories into the VMware Tools distribution:cd /tmp/vmware-tools-distrib/
    6. Run this command to install VMware Tools:sudo ./ -d

      Note: The -d switch assumes that you want to accept the defaults. If you do not use -d, press Return to accept each default or supply your own answers.

  3. Run this command to reboot the virtual machine after the installation completes:sudo reboot
# ip addr show
# ip a s
2: enp1s3:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:15:38:b7 brd ff:ff:ff:ff:ff:ff
inet brd scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe15:38b7/64 scope link 
valid_lft forever preferred_lft forever

Step 0: Getting to the Recovery Console

  1. Insert Windows DVD* and after selecting language and keyboard, select “Repair your computer”
  2. Wait for system recovery to run and fail
  3. Click “No” to apply any changes
  4. Cick “Next” to look for a recovery image
  5. Click “Cancel” on the cannot find system image dialogue
  6. Click “Cancel” to exit system image dialogue
  7. Click Command Prompt

Step 1: Ensure your system partition is marked as active

As a reminder – this is a typed command
And this is a comment.

  1. Boot into the recovery console as per step 0
  2. diskpart
  3. select disk 0
  4. list partition
  5. Select the first primary partition. In the screenshot below, the partition to select is partition 2, so select partition 2:

BCD Error Diskpart

  1. detail partition
  2. Ensure that the partition is marked as Active: Yes

BCD Error Active

  1. If not, then active to set the partition active
  2. exit to exit diskpart
  3. exit to exit recovery console
  4. Restart to reboot
  5. Boot and follow step 0 to enter the recovery console again

Step 2: Repair Master Boot Record and Repair Boot Sector

  1. Boot back into the recovery console, as per step 0, run the following commands
  2. bootrec /fixmbr
  3. bootrec /fixboot

Step 3: Rebuild Boot files

You need to know where your Windows folder is mounted within the recovery console. Sometimes it is at C:\Windows, sometimes D:\Windows, sometimes somewhere else. If you have no idea, use the following to get you a list of drive letters currently in use:

1. diskpart
2. select disk 0
3. list volume

Then it’s just a matter of looking for Windows directories on each of those volumes.

So to rebuild the boot files:
bcdboot C:\Windows /s C:
Reboot and you should be done.

  • 1
  • 2
  • 5
г. Москва, Ленинский проспект, д.9 +7 (495) 979-6776
2017(c) ООО "АИДКОРП"