Re: Cloudstack with vsphere and distributed vswitch deployment
Hi Sergei, Check the global config parameter "vmware.use.dvswitch", set this to false. When you enable this config, CloudStack would look for dvSwitch with name defaulted to "dvSwitch0". - Suresh On Thu, Mar 14, 2019 at 8:59 PM Sergei Hanus wrote: > Hi, Paul. > > I looked at config - and it is as expected, regular vswitch is configured: > > VMware traffic labelvSwitch0,,vmwaresvs > On Thu, Mar 14, 2019 at 5:54 PM Paul Angus wrote: > Hi Sergei, > > If you look in the UI in the infrastructure tab and navigate through: > > Infrastructure > Zones > [YOUR_ZONE] > Physical Network > > [NETWORK_WITH_MGMT_ON] > management. > > what is the vmware traffic label? > > It should be something like: > > vSwitch0,6,vmwaresvs > NAME_OF_VSWITCH, VLAN , TYPE_OF_VSWITCH > > the type vSwitch will be vmwaresvs or vmwaredvs > > > From: Sergei Hanus > Sent: 14 March 2019 09:27 > To: users@cloudstack.apache.org > Subject: Cloudstack with vsphere and distributed vswitch deployment > > Good day. > > I have deployed Cludstack together with vsphere. After creating of first > zone I noticed, that Cloudstack is trying to deploy system vm, but > attempts is unsuccessful. > > My management network is configured with standard switch. But in logs I > see, that service vm creation fails, because it cannot find distributed > vswitch named dvSwitch0, while in configuration it doesn't even mentionn > this distributed vswitch. I indeed do have distributed vswitch > configured, but it is named vm_dvs, and it is used only for guest > network, not management. This situation looks like a bug to me. Here is > the log I see: > > > Processing: { Ans: , MgmtId: 2886799893, via: 2(172.17.18.28), Ver: > v1, Flags: 110, > > [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":18,"name":"s-18-VM","bootloader":"HVM","state":"Starting","type":"SecondaryStorageVm","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"hostName":"s-18-VM","arch":"x86_64","os":"Other > Linux (64-bit)","bootArgs":" template=domP type=secstorage > host=localhost port=8250 name=s-18-VM zone=1 pod=1 guid=s-18-VM > workers=5 > resource=com.cloud.storage.resource.PremiumSecondaryStorageResource > instance=SecStorage sslcopy=false role=templateProcessor mtu=1500 > eth2ip=10.255.255.52 eth2mask=255.255.255.0 gateway=10.255.255.1 > public.network.device=eth2 eth0mask=0.0.0.0 eth0ip=0.0.0.0 > eth1ip=172.17.18.34 eth1mask=255.255.255.0 localgw=172.17.18.1 > private.network.device=eth1 internaldns1=172.17.17.11 dns1=172.17.17.11 > > nfsVersion=null","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"OY8SHIPa6sZ0sM-E2xtjyA","params":{"vmware.reserve.cpu":"false","nicAdapter":"E1000","vmware.reserve.mem":"false"},"uuid":"7ec256e7-ab71-4875-b948-1ca29ad6aaca","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"18e502c3-2990-45e0-9444-53ea3934288d","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fadaba61-7c07-3308-9fd3-780810ab2e86","id":1,"poolType":"VMFS","host":"VMFS > datastore: > /DC1/lab-vms","path":"/DC1/lab-vms","port":0,"url":"VMFS://VMFS > datastore: > > /DC1/lab-vms/DC1/lab-vms/?ROLE=Primary=fadaba61-7c07-3308-9fd3-780810ab2e86","isManaged":false}},"name":"ROOT-18","size":0,"path":"ROOT-18_2","volumeId":18,"vmName":"s-18-VM","accountId":1,"format":"OVA","provisioningType":"THIN","id":18,"deviceId":0,"bytesReadRate":0,"bytesWriteRate":0,"iopsReadRate":0,"iopsWriteRate":0,"hypervisorType":"VMware"}},"diskSeq":0,"path":"ROOT-18_2","type":"ROOT","_details":{"storageHost":"VMFS > datastore: > > /DC1/lab-vms","managed":"false","storagePort":"0","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,&quo
Cloudstack with vsphere and distributed vswitch deployment
Hi, Paul. I looked at config - and it is as expected, regular vswitch is configured: VMware traffic label vSwitch0,,vmwaresvs
Re: Cloudstack with vsphere and distributed vswitch deployment
Hi, Paul. I looked at config - and it is as expected, regular vswitch is configured: VMware traffic labelvSwitch0,,vmwaresvs
Re: Cloudstack with vsphere and distributed vswitch deployment
Hi Sergei, If you look in the UI in the infrastructure tab and navigate through: Infrastructure > Zones > [YOUR_ZONE] > Physical Network > [NETWORK_WITH_MGMT_ON] > management. what is the vmware traffic label? It should be something like: vSwitch0,6,vmwaresvs NAME_OF_VSWITCH, VLAN , TYPE_OF_VSWITCH the type vSwitch will be vmwaresvs or vmwaredvs From: Sergei Hanus Sent: 14 March 2019 09:27 To: users@cloudstack.apache.org Subject: Cloudstack with vsphere and distributed vswitch deployment Good day. I have deployed Cludstack together with vsphere. After creating of first zone I noticed, that Cloudstack is trying to deploy system vm, but attempts is unsuccessful. My management network is configured with standard switch. But in logs I see, that service vm creation fails, because it cannot find distributed vswitch named dvSwitch0, while in configuration it doesn't even mentionn this distributed vswitch. I indeed do have distributed vswitch configured, but it is named vm_dvs, and it is used only for guest network, not management. This situation looks like a bug to me. Here is the log I see: Processing: { Ans: , MgmtId: 2886799893, via: 2(172.17.18.28), Ver: v1, Flags: 110, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":18,"name":"s-18-VM","bootloader":"HVM","state":"Starting","type":"SecondaryStorageVm","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"hostName":"s-18-VM","arch":"x86_64","os":"Other Linux (64-bit)","bootArgs":" template=domP type=secstorage host=localhost port=8250 name=s-18-VM zone=1 pod=1 guid=s-18-VM workers=5 resource=com.cloud.storage.resource.PremiumSecondaryStorageResource instance=SecStorage sslcopy=false role=templateProcessor mtu=1500 eth2ip=10.255.255.52 eth2mask=255.255.255.0 gateway=10.255.255.1 public.network.device=eth2 eth0mask=0.0.0.0 eth0ip=0.0.0.0 eth1ip=172.17.18.34 eth1mask=255.255.255.0 localgw=172.17.18.1 private.network.device=eth1 internaldns1=172.17.17.11 dns1=172.17.17.11 nfsVersion=null","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"OY8SHIPa6sZ0sM-E2xtjyA","params":{"vmware.reserve.cpu":"false","nicAdapter":"E1000","vmware.reserve.mem":"false"},"uuid":"7ec256e7-ab71-4875-b948-1ca29ad6aaca","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"18e502c3-2990-45e0-9444-53ea3934288d","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fadaba61-7c07-3308-9fd3-780810ab2e86","id":1,"poolType":"VMFS","host":"VMFS datastore: /DC1/lab-vms","path":"/DC1/lab-vms","port":0,"url":"VMFS://VMFS datastore: /DC1/lab-vms/DC1/lab-vms/?ROLE=Primary=fadaba61-7c07-3308-9fd3-780810ab2e86","isManaged":false}},"name":"ROOT-18","size":0,"path":"ROOT-18_2","volumeId":18,"vmName":"s-18-VM","accountId":1,"format":"OVA","provisioningType":"THIN","id":18,"deviceId":0,"bytesReadRate":0,"bytesWriteRate":0,"iopsReadRate":0,"iopsWriteRate":0,"hypervisorType":"VMware"}},"diskSeq":0,"path":"ROOT-18_2","type":"ROOT","_details":{"storageHost":"VMFS datastore: /DC1/lab-vms","managed":"false","storagePort":"0","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,"defaultNic":true,"pxeDisable":true,"nicUuid":"e981f219-5e10-4770-85fb-6b25c97f2849","details":{"MacAddressChanges":"true","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkDisabled":false,"uuid":"b08c11ce-8e25-4772-8b55-dcdc42bd3193","ip":"10.255.255.52","netmask":"255.255.255.0","gateway":"10.255.255.1","mac":"1e:00:d2:00:00:38","dns1":"172.17.17.11","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://untagged","isolationUri":"vlan://untagged","isSecurityGroupEnabled":false},{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"pxeDisable":true,"nicUuid":"031ac70f-9350-4eac-a05c-8ea1ffd9cd0e","details":{"MacAddressChanges":"true","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkDisabled":false,"uuid":"6c37cab9-b5e6-4731-a8aa-75d50459e1c6","mac":"02:00:75:2d:00:12","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false,"*name":"vSwitch0,,vmwaresvs*"},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"pxeDisable":true,"nicUuid":"32297819-967c-4f93-8ebf-ed4cc2372ba3","details":{"MacAddressChanges":"true","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkDisabled":false,"uuid":"97bb426a-7530-4ae1-9c8a-04cceabceeae","ip":"172.17.18.34","netmask":"255.255.255.0","gateway":"172.17.18.1","mac":"1e:00:2f:00:00:01","broadcastType":"Native","type":"Management","isSecurityGroupEnabled":false,"*name":"vSwitch0,,vmwaresvs"*}],"guestOsDetails":{},"extraConfig":{}},"result":false,"details":"StartCommand failed due to Exception: java.lang.Exception\nMessage: *Unable to find distributed vSwitch dvSwitch*0\n","wait":0}}] } Could anybody, please, comment - how to further troubleshoot this situation? paul.an...@shapeblue.com www.shapeblue.com Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue
Cloudstack with vsphere and distributed vswitch deployment
Good day. I have deployed Cludstack together with vsphere. After creating of first zone I noticed, that Cloudstack is trying to deploy system vm, but attempts is unsuccessful. My management network is configured with standard switch. But in logs I see, that service vm creation fails, because it cannot find distributed vswitch named dvSwitch0, while in configuration it doesn't even mentionn this distributed vswitch. I indeed do have distributed vswitch configured, but it is named vm_dvs, and it is used only for guest network, not management. This situation looks like a bug to me. Here is the log I see: Processing: { Ans: , MgmtId: 2886799893, via: 2(172.17.18.28), Ver: v1, Flags: 110, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":18,"name":"s-18-VM","bootloader":"HVM","state":"Starting","type":"SecondaryStorageVm","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"hostName":"s-18-VM","arch":"x86_64","os":"Other Linux (64-bit)","bootArgs":" template=domP type=secstorage host=localhost port=8250 name=s-18-VM zone=1 pod=1 guid=s-18-VM workers=5 resource=com.cloud.storage.resource.PremiumSecondaryStorageResource instance=SecStorage sslcopy=false role=templateProcessor mtu=1500 eth2ip=10.255.255.52 eth2mask=255.255.255.0 gateway=10.255.255.1 public.network.device=eth2 eth0mask=0.0.0.0 eth0ip=0.0.0.0 eth1ip=172.17.18.34 eth1mask=255.255.255.0 localgw=172.17.18.1 private.network.device=eth1 internaldns1=172.17.17.11 dns1=172.17.17.11 nfsVersion=null","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"OY8SHIPa6sZ0sM-E2xtjyA","params":{"vmware.reserve.cpu":"false","nicAdapter":"E1000","vmware.reserve.mem":"false"},"uuid":"7ec256e7-ab71-4875-b948-1ca29ad6aaca","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"18e502c3-2990-45e0-9444-53ea3934288d","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fadaba61-7c07-3308-9fd3-780810ab2e86","id":1,"poolType":"VMFS","host":"VMFS datastore: /DC1/lab-vms","path":"/DC1/lab-vms","port":0,"url":"VMFS://VMFS datastore: /DC1/lab-vms/DC1/lab-vms/?ROLE=Primary=fadaba61-7c07-3308-9fd3-780810ab2e86","isManaged":false}},"name":"ROOT-18","size":0,"path":"ROOT-18_2","volumeId":18,"vmName":"s-18-VM","accountId":1,"format":"OVA","provisioningType":"THIN","id":18,"deviceId":0,"bytesReadRate":0,"bytesWriteRate":0,"iopsReadRate":0,"iopsWriteRate":0,"hypervisorType":"VMware"}},"diskSeq":0,"path":"ROOT-18_2","type":"ROOT","_details":{"storageHost":"VMFS datastore: /DC1/lab-vms","managed":"false","storagePort":"0","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,"defaultNic":true,"pxeDisable":true,"nicUuid":"e981f219-5e10-4770-85fb-6b25c97f2849","details":{"MacAddressChanges":"true","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkDisabled":false,"uuid":"b08c11ce-8e25-4772-8b55-dcdc42bd3193","ip":"10.255.255.52","netmask":"255.255.255.0","gateway":"10.255.255.1","mac":"1e:00:d2:00:00:38","dns1":"172.17.17.11","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://untagged","isolationUri":"vlan://untagged","isSecurityGroupEnabled":false},{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"pxeDisable":true,"nicUuid":"031ac70f-9350-4eac-a05c-8ea1ffd9cd0e","details":{"MacAddressChanges":"true","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkDisabled":false,"uuid":"6c37cab9-b5e6-4731-a8aa-75d50459e1c6","mac":"02:00:75:2d:00:12","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false,"*name":"vSwitch0,,vmwaresvs*"},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"pxeDisable":true,"nicUuid":"32297819-967c-4f93-8ebf-ed4cc2372ba3","details":{"MacAddressChanges":"true","PromiscuousMode":"false","ForgedTransmits":"true"},"dpdkDisabled":false,"uuid":"97bb426a-7530-4ae1-9c8a-04cceabceeae","ip":"172.17.18.34","netmask":"255.255.255.0","gateway":"172.17.18.1","mac":"1e:00:2f:00:00:01","broadcastType":"Native","type":"Management","isSecurityGroupEnabled":false,"*name":"vSwitch0,,vmwaresvs"*}],"guestOsDetails":{},"extraConfig":{}},"result":false,"details":"StartCommand failed due to Exception: java.lang.Exception\nMessage: *Unable to find distributed vSwitch dvSwitch*0\n","wait":0}}] } Could anybody, please, comment - how to further troubleshoot this situation?