VMWAREAPI: Problem with starting Windows instances on ESXi 5.1

Bug #1187853 reported by STM
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Sabari Murugesan
Grizzly
Fix Released
High
Sabari Murugesan
VMwareAPI-Team
Fix Committed
High
Sabari Murugesan

Bug Description

After creating an win2k8r2 64bit instance, it can't boot and there is no drivers for ethernet adapter card.
The problem is in disk adapter type, which is configurated in *.vmx file "scsi0.virtualDev = "lsilogic""
Windows 7 or greater does not support this adapter to resolve this I had to change script: /usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py in line 113
113 'ns0:VirtualLsiLogicController')
to
113 'ns0:VirtualLsiLogicSASController')
and restart nova-compute.
Another thing is network adapter type "VirtualPCNet32". There is no windows(7 or greater) drivers for this card. To resolve this change line 130 in the same script.
130 net_device = client_factory.create('ns0:VirtualPCNet32')
to
130 net_device = client_factory.create('ns0:VirtualE1000')

STM (s-marcin)
description: updated
description: updated
Revision history for this message
Shawn Hartsock (hartsock) wrote :

please use the tag "vmware"

tags: added: vmware
Changed in nova:
importance: Undecided → High
status: New → Confirmed
Tracy Jones (tjones-i)
Changed in nova:
assignee: nobody → Tracy Jones (tjones-i)
Revision history for this message
Tracy Jones (tjones-i) wrote :

we should add these properties as types passed to glance which can then be use in nova to create the appropriate device types when the image it booted

Revision history for this message
Tracy Jones (tjones-i) wrote :

Is it possible for you to try this again with the current havana code? You'll want to add this to the glance image properties

glance image-update --property vmware_diskadaptor="lsilogicsas"

The default nw adaptor has been changed (already) to e1000. I have a feeling this will fix things for you and this will turn into a documentation bug. I'm trying to hunt up an image to test it with myself.

Gary Kotton (garyk)
Changed in nova:
status: Confirmed → Incomplete
status: Incomplete → Confirmed
Revision history for this message
keepmoving89 (registerwebsite89) wrote :

Did you solve your problem? i changed hypervisor of grizzly to vmware esxi5 and when i created a windows (vmdk) instance , 'blue screen' came , would someone help me please?

Revision history for this message
STM (s-marcin) wrote : Re: [Bug 1187853] Re: VMWAREAPI: Problem with starting Windows instances on ESXi 5.1

The solution is in bug description. You have to change 2 lines
Windows 7 or greater does not support this adapter to resolve this I had
to change script:
/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py in line 113
  113 'ns0:VirtualLsiLogicController')
  to
  113 'ns0:VirtualLsiLogicSASController')
  and restart nova-compute.
  Another thing is network adapter type "VirtualPCNet32". There is no
windows(7 or greater) drivers for this card. To resolve this change line
130 in the same script.
  130 net_device = client_factory.create('ns0:VirtualPCNet32')
  to
  130 net_device = client_factory.create('ns0:VirtualE1000')
Remember you must restart nova compute after all changes
On Aug 15, 2013 10:11 AM, "keepmoving89" <registerwebsite89@126.com> wrote:

> Did you solve your problem? i changed hypervisor of grizzly to vmware
> esxi5 and when i created a windows (vmdk) instance , 'blue screen' came
> , would someone help me please?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1187853
>
> Title:
> VMWAREAPI: Problem with starting Windows instances on ESXi 5.1
>
> Status in OpenStack Compute (Nova):
> Confirmed
>
> Bug description:
> After creating an win2k8r2 64bit instance, it can't boot and there is
> no drivers for ethernet adapter card.
> The problem is in disk adapter type, which is configurated in *.vmx file
> "scsi0.virtualDev = "lsilogic""
> Windows 7 or greater does not support this adapter to resolve this I
> had to change script:
> /usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py in line 113
> 113 'ns0:VirtualLsiLogicController')
> to
> 113 'ns0:VirtualLsiLogicSASController')
> and restart nova-compute.
> Another thing is network adapter type "VirtualPCNet32". There is no
> windows(7 or greater) drivers for this card. To resolve this change line
> 130 in the same script.
> 130 net_device = client_factory.create('ns0:VirtualPCNet32')
> to
> 130 net_device = client_factory.create('ns0:VirtualE1000')
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1187853/+subscriptions
>

Revision history for this message
Jacob Cherkas (jcherkas) wrote :

Glance support image metadata so you easily specify that you want an e1000 instead of pcnet32.

Please see the documentation on to update the metadata for an image @ http://docs.openstack.org/trunk/openstack-compute/admin/content/vmware.html.

Revision history for this message
Tracy Jones (tjones-i) wrote :

For Havana i am creating a patch which allows the disk_adaptertype of lsisas and attaches the property virtual controller.

Changed in nova:
assignee: Tracy Jones (tjones-i) → Sabari Kumar Murugesan (smurugesan)
status: Confirmed → In Progress
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
importance: Undecided → High
assignee: nobody → Sabari Kumar Murugesan (smurugesan)
status: New → In Progress
Revision history for this message
Sabari Murugesan (smurugesan) wrote :

Not sure why the review is not available here.

https://review.openstack.org/#/c/45349/

Changed in nova:
milestone: none → havana-rc1
Revision history for this message
Tracy Jones (tjones-i) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/45349

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/45349
Committed: http://github.com/openstack/nova/commit/16a9853fe3924ccaf987b2a1628f27bb9c03b950
Submitter: Jenkins
Branch: master

commit 16a9853fe3924ccaf987b2a1628f27bb9c03b950
Author: Sabari Kumar Murugesan <email address hidden>
Date: Thu Sep 5 15:36:42 2013 -0700

    Fix problem with starting Windows 7 instances using VMware Driver

    The default controller for a Windows 7 virtual machine is the
    LSI Logic SAS. When the disk adapter type is specified as 'lsiLogic'
    via glance image metadata, VMware driver defaults to LSI Logic Parallel
    controller. With this fix the driver will honor a property 'lsiLogicsas'
    to distinguish the right adapter and enable booting Windows instances.

    Fixes: bug #1187853
    Change-Id: Idb36a784a31e4938e8951adeb83335b3890dac85

Changed in nova:
status: In Progress → Fix Committed
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
status: In Progress → Fix Committed
Gary Kotton (garyk)
tags: added: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/49849

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/grizzly)

Reviewed: https://review.openstack.org/49849
Committed: http://github.com/openstack/nova/commit/b0afcca6810d883ac717d2c584b818d8906c367d
Submitter: Jenkins
Branch: stable/grizzly

commit b0afcca6810d883ac717d2c584b818d8906c367d
Author: Sabari Kumar Murugesan <email address hidden>
Date: Thu Sep 5 15:36:42 2013 -0700

    Fix problem with starting Windows 7 instances using VMware Driver

    The default controller for a Windows 7 virtual machine is the
    LSI Logic SAS. When the disk adapter type is specified as 'lsiLogic'
    via glance image metadata, VMware driver defaults to LSI Logic Parallel
    controller. With this fix the driver will honor a property 'lsiLogicsas'
    to distinguish the right adapter and enable booting Windows instances.

    Fixes: bug #1187853
    Change-Id: Idb36a784a31e4938e8951adeb83335b3890dac85
    (cherry picked from commit 16a9853fe3924ccaf987b2a1628f27bb9c03b950)

tags: added: in-stable-grizzly
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-rc1 → 2013.2
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential in-stable-grizzly
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.