Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Category Archive VMWare Workstation

VMware ‘I moved it’ ‘I copied it’ meaning

May 13, 2014 Comments Off on VMware ‘I moved it’ ‘I copied it’ meaning By MANOJ AGARWAL

VMware ‘I moved it’ ‘I copied it’ meaning

I have a virtual machine made in VMware Workstation.  When I move this virtual machine to a new location, and power on the machine, I get a message : “The virtual machine might have been moved or copied”, as shown in figure below:

When we chose the option button: “I moved it”, it means that the virtual machine has been copied to a different location and it can start with same uuid and mac address for the virtual machine.  If you have copied the virtual machine and wish to access it along with the original virtual machine simultaneously, then there could be a conflict due to same uuid, mac address and network settings.  Thus, if you have copied the virtual machine, chose the option button: “I copied it” so that a new uuid and mac address is assigned to the machine and you need to configure the network to avoid any conflicts.

 

For a detailed reference on Changing or Keeping a UUID for a moved virtual machine, you may refer the following link from VMWare Knowledge base:

,

VMWare Workstation powering on virtual machine error: “Failed to lock the file”

May 12, 2014 Comments Off on VMWare Workstation powering on virtual machine error: “Failed to lock the file” By MANOJ AGARWAL


VMWare Workstation powering on virtual machine error: “Failed to lock the file”

When I powered on a Virtual machine in VMWare Workstation 10, I got this error: “Failed to lock the file”.  The problem occurred when the PC was powered off due to some power issues while the Virtual machine was up and running.  When I tried to power on the Virtual machine, it gave this error and halted.

The screenshot of the error is as follows:

This is due the fact that the files are in use by some other application and the locks on these files are still active.  Then, I checked the files in the filesystem for this virtual machine and found some lock files, like the ones given below:

564d10be-b62c-927b-6434-5c7cecffeb69.vmem.lck

Red Hat Linux.vmdk.lck

Red Hat Linux.vmdk.lck

I deleted these lock files from the Virtual machine filesystem directory and tried to boot the virtual machine.

It worked fine and the virtual machine booted successfully.

,

“Device eth0 does not seem to be present” error when we move or clone a CentOS 6.3 virtual machine in vSphere

May 11, 2014 Comments Off on “Device eth0 does not seem to be present” error when we move or clone a CentOS 6.3 virtual machine in vSphere By MANOJ AGARWAL

When we move or clone a CentOS 6.3 Virtual machine made in vSphere5.5, and boot the machine once it is moved/cloned, we get the following error:

“Device eth0 does not seem to be present”.

This is due the fact that whenever we move or clone a Virtual machine, vSphere changes the MAC Address and CentOS renames the NIC from eth0 to eth1.  CentOS stores the network interface hardware configuration using udev.  The file is:

/etc/udev/rules.d/70-persistent-net.rules

Open this file in vi editor and delete the old entry for eth0 and edit the new entry for eth1 to eth0.

Then you need to edit the following file:

/etc/sysconfig/network-scripts/ifcfg-eth0

Record the HWADDR from the 70-persistent-net.rules configuration file and replace it with the existing HWADDR in ifcfg-eth0 configuration file.

Reboot the machine.

,

Installation of CentOS 6.4 in VMWare Workstation 9.0.2

May 16, 2013 Comments Off on Installation of CentOS 6.4 in VMWare Workstation 9.0.2 By MANOJ AGARWAL


Installation of CentOS 6.4 in VMWare Workstation 9.0.2

We have seen in our previous post how to Create a CentOS 6.4 Virtual machine in VMWare Workstation 9.0.2. Now we will look into the installation steps of CentOS 6.4 operating system inside VMWare Workstation.

In Virtual machine ‘Edit settings’ option, chose CD/DVD option to select the installation Disk/ISO images from CentOS.  Remember to check the option ‘Connect at power on’, so that the CD/DVD/ISO is connected to the machine when we boot it.  When we start the Virtual machine, we get the Figure-1 as shown below.  Select ‘Install or upgrade an existing system’ to do a fresh installation of Centos 6.4.

                                                                   [Figure-1]

In the next step, it asks to do a media test before beginning the installation.  We may chose to go for a media test to verify the installation Disk/ISO image, or we may skip this test.  Select ‘Skip’ as shown in figure-2.

                                                                   [Figure-2]

In the next figurre, it displays the logo of CentOS 6, as shown in figure-3.

                                                                   [Figure-3]

In the next step, we need to chose the language that we would like to use during the installation process.  The default selection is Engish (English).  If we need to select any different language, we may do the selection from the given list, else we may leave the default language and clieck Next as shown in figure-4.

                                                                   [Figure-4]

We have to now select the appropriate keyboard based on regional settings.  The keyboard, by default, is shown as U.S. English.  If we prefer ‘United Kingdom’, we may chose that or any other option from the given list, based on our keyboard.  We may leave the default selection as ‘U.S. English’ for now and click ‘Next’ as shown in figure-5.

                                                                   [Figure-5]

In the next step, we need to specify the storage device for this installation.  We may chose ‘Basic Storage Device’, that is by default, or we may chose ‘Specialized Storage Devices’ for SAN storage or other such specialized storage.  Chose the default option and click on ‘Next’ as shown in figure-6.

                                                                   [Figure-6]

Next, we get a warning for Storage Device, that it may contain data, we may chose to ‘Discard any data’ that is  in it, or we may chose to keep the data, if we think, the virtual disk contains some data.  In this case, it is a new virtual disk, so we may chose ‘Yes, discard any data’, also we need to check the option ‘Apply my choice to all devices with undetected partitions or filesystems’ to make it applicable as shown in figure-7.

                                                                   [Figure-7]

Specify the hostname for this machine.  We may chose any hostname, for this installation, we may use ‘centos64’ as the hostname as shown in figure-8.  We may also use a fully qualified domain name as hostname.  We may Configure network at this stage or leave it for now, as we can do it later once installation is done.  Click on ‘Next’ to continue.

                                                                   [Figure-8]

Next, we need to select the timezone, we may chose the appropriate timezone, in this case, ‘Asis/Kolkata’ as shown in figure-9 and click on ‘Next’ to continue.

                                                                   [Figure-9]

We need to give a password for ‘root’ account.  ‘root’ account is the administrator account in CentOS.  Try to give a strong password and click on ‘Next’ to continue as shown in figure-10.

                                                                   [Figure-10]

The next screen provides the options to use disk space.  We may chose to ‘Use all space’, which means that all partitions will be removed and the complete disk will be available for use.  We may also chose to replace only the linux system, and leave other partitions such as VFAT or FAT32 as such.  We may chose to ‘Shrink current system’ to make room for new installation.  We may chose not to touch the existing partitioning layout and use only the free space for new installation.  We may also chose to create a custom layout as per our requirement.  As it is a new virtual disk, click on ‘Use all space’ as shown in figure-11 and click ‘Next’ to continue.

                                                                   [Figure-11]

Next step is to create a partitioning layout for this new installation.  We may chose to create a Volume Group and Logical Volumes inside this Volume Group.  We have taken a virtual disk size of 100GB, so we can allocate this size among various Physical partitions, Volume Groups and Logical Volumes.  The next screen ‘Please select a Device’ as shown in figure-12 is used for this.

                                                                   [Figure-12]

To take an example, we may define the following partitioning layout:

Filesystem Mounted on Size
 /dev/sda1 /boot 500mb
 vg_centos64 100000mb
   lv_var /var  20000mb
   lv_htdocs /htdocs  35000mb
   lv_root /  10000mb
   lv_home /home  3000mb
   lv_tmp /tmp  3000mb
   lv_mondo /mondo  10000mb

                                                                  [Table-1]

After creating the structure as per Table-1, we get the figure-13 as shown below:

                                                                   [Figure-13]

Clicking on Next button shows the figure-14, that gives Format warnings that /dev/sda will be formatted and all data inside it will be destroyed.  Click on Format to continue.

                                                                   [Figure-14]

The next screen Figure-15 shows the warning about Writing storage configuration to disk. It displays a message that the partitioning options will be written to disk and data on it will be lost.  Click on ‘Write changes to disk’ button.

                                                                   [Figure-15]

The  next figure-16 shows that the formatting is being done on the disk.

                                                                   [Figure-16]

The next figure-17 shows the options to set Boot loader operating system, It will be installed on /dev/sda and on vg_centos64-lv_root.  We also get an option to define a boot loader password, if required.  Click on ‘Next’ to continue.

                                                                   [Figure-17]

On clicking ‘Next’ button, it starts to process the installation and tries to retrieve the installation information for CentOS as shown in figure-18.

                                                                   [Figure-18]

This step is important as we can define in this step what to install.  The default installation is Minimal install.  We may chose other options such as Basic server, Database server, Web server etc. based on our requirement.  Chosing these options decide what packages will be installed and what not.  We can also do a Customized installation, now or later, where we may chose what packages should be installed from the list.  We may chose Minimal install option for our example case and click on ‘Next’ as shown in figure-19.

                                                                   [Figure-19]

When we click on ‘Next’ button, we see the message ‘Installation starting’ and the installation process starts for minimal installation of CentOS as shown in figure-20.

                                                                   [Figure-20]

After the installation is finished, we get the following screen as shown in figure-21, that your CentOS installation is complete.  Click on ‘Reboot’ to restart the virtual machine.

                                                                   [Figure-21]

,

CentOS 6.4 Virtual Machine installation in VMWare Workstation 9.0.2

May 13, 2013 Comments Off on CentOS 6.4 Virtual Machine installation in VMWare Workstation 9.0.2 By MANOJ AGARWAL


CentOS 6.4 Virtual Machine in VMWare Workstation 9.0.2

To create a Centos 6.4 Virtual Machine in VMWare Workstation 9.0.2, we need to follow the steps given below:

  • Open VMWare Workstation 9.0.2.
  • From File->New Virtual Machine.  The following figure-1 is displayed.

                                              [Figure-1]

In Hardware compatibility, chose compatibility for Workstation 6.5-7.x, to make this virtual machine compatible with these former versions of VMWare Workstation as shown in Figure-2.  You have other options also for backward compatibility.

                                              [Figure-2]

In Figure-3, you need to specify how you will install the guest operating system, either from installer disc or ISO images or you will install it later.  If you wish to do an easy install of Centos 6.4, you should select either the disc or ISO image.  If you wish to do a selective Centos 6.4 installation, chose the third option – ‘I will install the operating system later’, as shown in Figure-3.

                                              [Figure-3]

In Figure-4, you need to select the guest operating system, in this case, it is Centos 6.4, chose Linux and in Version, chose Centos, as shown below.

                                              [Figure-4]

In Figure-5, you need to name the Virtual machine, provide name of the Virtual machine as CentOS and specify the location of the Virtual machine, either by writing it in the textbox or selecting it by clicking Browse button.

                                              [Figure-5]

In Figure-6, you need to chose the number of processors and cores that will be allocated to this Virtual machine.  This option is valid, if you have multiple processors with multiple cores per processor.  In this case there is one processor with one core for that processor.

                                              [Figure-6]

In Figure-7, you need to specify the amount of virtual memory to be allocated to this Virtual machine.  You will see Guest OS recommended minimum memory, Recommended memory and Maximum recommended memory. It is good to chose Recommended memory as shown below.

                                              [Figure-7]

In Figure-8, you need to chose the network type, that can be either Bridged, NAT or Host only.  In this case, you may chose ‘Bridged’ network to provide guest operating system direct access to the external network.  You will need to configure the IP address of this guest machine later.

                                              [Figure-8]

In Figure-9, you need to chose the SCSI controller, chose LSI logic, that is the recommended option for this.

                                              [Figure-9]

In Figure-10, you need to chose the Disk to be associated with this Virtual machine.  You may chose to create a new virtual disk, or use an existing virtual disk, if you already have one.  You also have the option to use a physical disk.  In this case, you may chose to create a new virtual disk and click on next button.

                                              [Figure-10]

In Figure-11, you have to select the Disk type, chose SCSI that is recommended option as IDE disks are not used anymore.

                                              [Figure-11]

In Figure-12, you need to specify the Disk capacity in GB.  You may chose the maximum disk size.  You have  the option to allocate all chosen disk space in advance, or you may leave it to expand when needed.  Also, you may chose to create only one virtual disk, or you may split it into multiple files for easy handling.

                                              [Figure-12]

In Figure-13, you need to specify a name for the Disk file.  You may name it as CentOS.vmdk, where vmdk is the file extension of a Disk file.

                                              [Figure-13]

In Figure-14, you get a final message, showing your selected settings with a message ‘Ready to create Virtual machine’.  Click on Finish and the Virtual machine will be created.

                                              [Figure-14]

 Once the Virtual machine is created, you can install Centos 6.4 operating system.  To know about this installation, you may visit:

Installing Centos 6.4 as a Guest operating system in VMWare Workstation 9.0.2

 

,

Disable Easy install of CentOS 6.4 in VMWare Workstation 7.1.3

May 9, 2013 Comments Off on Disable Easy install of CentOS 6.4 in VMWare Workstation 7.1.3 By MANOJ AGARWAL


Disable Easy install of CentOS 6.4 in VMWare Workstation 7.1.3

VMWare Workstation is used for Desktop Virtualization.  When we create a new CentOS 6.4 guest machine insdie it, among other screens, we get the following screen shown in Fig-1, to select the installer disc.

                                              Fig-1

If we select the installer disc, either from DVD or an ISO image and complete creation of this new CentOS 6.4 virtual machine, This machine starts with an easy install feature and the linux operating system is automatically installed.

To stop ‘EASY INSTALL’ of CentOS 6.4, we need to select the third option ‘I will install the operating system later’ as shown in the following screen shown in Fig-2.

                                                 Fig-2

Once the CentOS 6.4 virtual machine is created, we can start this virtual machine.  Once we start the virtual machine, we get an option to provide the Installer disc/image, wherein we may select the disc/ISO image from CentOS 6.4 and Reboot the virtual machine.

Once rebooted, the EASY INSTALL is gone now and we get the following screen as shown in Fig-3.

                                                                         Fig-3

We can now proceed with the installation of CentOS 6.4.

 

,

VMWare Workstation – The virtual machine is in use. Even can’t take ownership. – Fixed

May 3, 2013 Comments Off on VMWare Workstation – The virtual machine is in use. Even can’t take ownership. – Fixed By MANOJ AGARWAL


VMWare Workstation – The virtual machine is in use.  Even can’t take ownership. – Fixed

I have Centos 4.6 operating system installed in VMWare Workstation 7.1.5.  The host operating system is Windows 7.  While I was working on this virtual machine, the system halted for some reason, and I had to do a hard boot.  After restarting Windows 7, when I tried to open this virtual machine in VMWare Workstation, I got the error: ‘The virtual machine appears to be in use.  Take ownership’.  I clicked on ‘Take ownership’, it displayed a message ‘Can’t take ownership’ of this virtual machine’.

I couldn’t open the virtual machine.

How to fix the issue:

The virtual machine creates a lock file in a separate folder, while it is in use.  In this case, the name of vmdk file was ‘Red Hat Linux’, so a lock folder is created by the name ‘Red Hat Linux.vmdk.lck’ and another lock folder is created by the name ‘Red Hat Linux.vmx.lck’.  These folders are created within the same directory, that contains other virtual machine related files.

These two lock folders should be deleted, to open the Centos virtual machine in VMWare Workstation.

I deleted these two folders, tried to open the virtual machine and the issue got fixed.

 

x Close

Like Us On Facebook

You cannot copy content of this page.