Showing posts with label VMWare. Show all posts
Showing posts with label VMWare. Show all posts

Wednesday, November 23, 2022

Slow VMWare Player after upgrade to Windows 11

Recently my Windows 10 PC was upgraded to Windows 11. One problem which I noticed after that was slowness of VMWare Player on Windows 11 comparing with Windows 10. There are several posts about similar problem which may be found in internet - almost all of them suggest few things: turn off Hyper-V Windows feature, run command "bcdedit /set hypervisorlaunchtype off", disable memory integrity in Windows Security > Device Security > Core Isolation details. I tried them but it didn't help.

I also tried to update to the latest VMWare Player 17 which according to it's description fully supports Windows 11 as host operating system. That didn't help either.

Also some posts suggested obvious things like increasing memory and CPU. I tried to increase memory a bit (virtual machine already had 16Gb RAM and 8 processor cores which should be enough. Remember that on Windows 10 it worked very fast) without success.

Then I tried opposite thing: reduce number of processor cores from 8 to 4:

and surprisingly it helped! VMWare Player became fast again. This solution may look non logical but may help someone so I decided to share it.

Wednesday, June 1, 2022

One solution for solving VM starting error in VMware Player

If you use VMware Workstation Player you may face with the following error when try to resume/start VM:

Error while powering on: Virtualized performance counters require at least one available functioning counter.
Module 'VPMC' power on failed.
Failed to start the virtual machine.

 


If you faced with this error try to do the following: go to VM settings > Processors and uncheck "Virtualize CPU performance counters" checkbox:

After that try to run VM again. It should start this time.

Thursday, April 18, 2013

How to test Sharepoint sites on iPad, iPhone and other mobile devices

In Sharepoint development we often use VMWare images for development environments. In most of the projects in my practice we used this model. It is useful when there are configured ready for use development images, so developers only need to get the image and start to work. But how we can test sites which are developed on the VMWare images on mobile devices? At the current moment role of mobile devices in web development is growing and Sharepoint 2013 reflects this fact with new features like device channels for improving user experience for using sites on smartphones or tablets. Responsive design becomes more and more popular, and it became a trend in the public web sites development. If some time ago the usual situation was that site has good design for desktop browser, but poor design for mobile, then now I already saw sites which looks nice on mobile and awful on desktop. Fun example, but it is true.

If you develop new site on Sharepoint 2013 (or any other version of Sharepoint) and want to test it against real devices (not simulators), there are several ways:

  1. configure DNS – add A record like foo.example.com which points to some external IP address of your organization (you need to use IP address of organization because in most cases in our daily work we use organization network and domain) and then ask administrators to configure proxy servers to forward requests for this domain name to your development image. It is possible, but has risks, especially if you are working in big organization and this process requires approval on several levels;
  2. setup builds on separate build server with configured DNS as in previous step. But it is also problematic when during development you need to test small changes. Build can take time, so deploying changes to another server will make the process slower;
  3. configure ports forwarding and use IP address instead of domain name for testing.

In this post I will describe how to make it using 2nd way.

Step 1. Connect to the WiFi network (guest network) of your organization.

If you want to test your dev sites on mobile devices you need to connect your host machine to the WiFi network (I don’t know is it possible to use LAN e.g. on iPhone, but knowing how technologies are growing, it won’t be surprise for me if there is some gadget which allows to do that). Many organizations have guest networks with limited access and we may use this network for our need.

Step 2. Get IP address of the host in the guest network.

Once you have connected to the WiFi get IP address of the host machine using the ipconfig command. You need to copy “IPv4 Address” property of the WiFi connection. For our example suppose that it will be the following:

10.20.30.40

Step 3. Allow incoming requests to 81 port on the host and guest.

For testing it is simpler to use some port which differs from default http 80 port, which can be used on the host for other purposes. In our example we will use port 81. In order to allow connections using this port go to Administrative tools > Windows Firewall with Advanced Security > Inbound Rules > New Rule:

On the 1st step choose “Port” and click Next:

image

On 2nd step add 81 to “Specify local ports”:

image

On 3rd step leave “Allow connection”:

image

On the 4th step leave all options checked:

image

On the last 5th step specify name for the new rule:

image

Make the same configuration on guest.

Step 4. Configure port forwarding in VMWare virtual network editor.

In order to configure port forwarding your virtual image should use NAT network connection. Go to VMWare > Edit > Virtual network editor, choose the network connection used by your image and click NAT Settings button. In the opened window click Add under “Port Forwarding”:

image

In the opened “Map Incoming Port” window specify the following values:

  • Host port: 81 – port which will be used for accessing the site from mobile device;
  • Type: TCP;
  • Virtual machine IP address: 11.22.33:44 – here you should specify IP address of the virtual image. You may check it using ipconfig inside the guest image. For our example we will assume that it will be 11.22.33.44;
  • Virtual machine port: 81 – it is also better to use different than default 80 port on the guest image, because when you setup port forwarding for port 80 in VMWare, you loose internet connection on the guest.

Window with values should look like this after all:

image

After that click Ok on all windows so changes will take effect.

Step 5. Setup bindings in IIS site.

Inside virtual image go to IIS manager, select your Sharepoint web site, click Bindings > Add:

image

In IP address you need to specify IP address of the virtual images, the same as was specified on step 4 in the “Map Incoming Ports” window. Port should be set to 81: also the same which was used on steps 3 and 4.

Step 6. Add alternate access mappings in Central Administration.

Go to CA > Configure alternate access mappings and filter AAM collection for your Sharepoint site. Then click “Edit public URLs”. In some free zone add the following URL: http://10.20.30.40:81 (i.e. use IP address of the host as it will be used for opening the site in mobile device’s browser):

image

After that click “Add Internal URLs” and add URL http://11.22.33.44:81 (i.e. use IP address of guest system here) for zone where you specified public URL above – Intranet in our example. So alternate access mappings should look like this:

image

After that get your iPhone, connect it to the guest WiFi, enter http://10.20.30.40:81 in the browser and test your Sharepoint site in real mobile browser. Hope this guide will help you in development of sites with great user experience for mobile devices.

Tuesday, October 25, 2011

VMWare became slow on SSD

Some time ago I faced with strange problem: I have SSD with 200 Gb, 16 Gb of memory and 8 CPUs. Who works with Sharepoint knows that it is not so big for development :) Also I use VMWare for development. Everything was fine until someday my host computer was hang. After that virtual machine became very slow. It used 12 Gb and 6 CPUs, so I suspected hard drive (Task manager also showed that there were many unused resources). However disk usage was also not very extensive.

I stopped all services, including Sql server which used IO operations very intensively. It didn’t help. Also I reinstalled VMWare tools – no luck also. I tried to defragment disks on VMWare guest OS, via VMWare workstation, also tried defragment disk on the host – without viewable effect. Tried to restart host without success.

Then I scheduled Check disk for the host OS (for guest it didn’t help). After restarting when Check disk finished work I started VMWare – and fortunately it helped. Virtual machine became much more faster (even faster before hang). This was strange keeping in mind that chkdsk utility didn’t show any errors or warnings – just regular traces. Anyway if you will face with similar problem try to do the same, hope it will help you as well.

Monday, January 10, 2011

What to do if Take snapshot option is disabled in VMWare

We often use virtual environments for Sharepoint development (VMWare and VirtualPC are most frequently used virtualization platforms in our case). I also often use snapshot feature of VMWare if some risky configuration changes are required. It is really useful when you can rollback system changes to the last stable snapshot in a few minutes comparing with spending hours on restoring failed system from scratch.

Recently I encountered with strange situation: “Take Snapshot…” option in menu was disabled (grayed):

image

After some investigation I found that hard disk drives were configured in Independent persistent mode (VM > Settings > Hard disk > Advanced):

image

As documentation says:

Independent – For independent disks, the data on the disk is not recorded when you take a snapshot of the virtual machine. If the Independent check box is unavailable, it might mean that the virtual machine currently has snapshots. After you delete the snapshots, the check box becomes available.

I had several HDD – all with independent mode. So I uncheck “Independent” checkbox for all drives, and after that “Take Snapshot…” option became available:

image

It is important to note that you should uncheck “Independent” checkbox for all disks, because if there will be at least one disk in independent mode snapshots will be still disabled. Hope it will economy your time if you will face with similar problem.