RE: hyper-v VR does not have management network

2014-12-19 Thread Rajesh Battala
For Hyper-V linkLocal network is never used and configured. 


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com] 
Sent: Friday, December 19, 2014 2:14 PM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Sorry, SSVM with this parameter:

{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.2.132,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:02:84,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}


-邮件原件-
发件人: 穆凯辉 [mailto:k...@landhightech.com]
发送时间: 2014年12月19日 16:40
收件人: 'dev@cloudstack.apache.org'
主题: 答复: hyper-v VR does not have management network

There is no failure in agent and mgmt. logs.

We checked the cpvm,ssvm and VR vm creation parameters, and found that:

Cpvm with devcieID 0 nic:
{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.3.155,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:03:9b,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}

Ssvm with device ID 0 nic:
{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.3.155,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:03:9b,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}

VR with device ID 1 nic:
{deviceId:1,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:192.168.10.117,netmask:255.255.255.0,gat
eway:192.168.10.254,mac:02:00:72:a9:00:01,broadcastType:Native,t
ype:Control,isSecurityGroupEnabled:false}

The broadcastType of VR is Native, but the broadcastType of the other two is  
LinkLocal.

Is this the problem?

-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 12:22
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

It works completely different for VMWare and HyperV.
Currently on which virtual switch the control nic of hyperv is present?
Is there any failure while creating VR on hyper-V?
Share the agent and mgmt. logs at the time of failure.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 9:21 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Hyper-v nics without name parameter:
{deviceId:1,networkRateMbps:
-1,defaultNic:false,uuid:dbc356b5-79ca-4f83-9df9-038f89290c89,ip:19
2.168.10.110,netmask:255.255.255.0,gateway:192.168.10.254,mac:02
:00:40:6f:00:06,broadcastType:Native,type:Control,isSecurityGroupE
nabled:false}


VMware exsi nics with name parameter vSwitch0.

{deviceId:1,networkRateMbps:-1,d
efaultNic:false,uuid:f1ea1c22-e4fa-4a25-9e75-221920982c76,ip:192.168
.10.150,netmask:255.255.255.0,gateway:192.168.10.254,mac:02:00:5
d:40:00:07,broadcastType:Native,type:Control,isSecurityGroupEnable
d:false,name:vSwitch0}


We have management virtual switch in Hyper-v host for the management and 
storage network traffic.


Thank you very much


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 11:37
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

When I checked in the pasted log,
In the nic json details all the nics have names .
Name value is present in each nic details. All the nics have either public
or guest names.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 6:11 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

We also check the cloud agent status in VR vm, the process of which also exists 
in VR.


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月18日 22:17
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

Are you using traffic lables?
Hyperv will work only in dedicated zone only , you cannot replace esx host with 
hyperv host and make the zone to work. 

There are no issues with VR to run on Hyperv. It works well.
If you are using traffic lables, make sure the traffic lable matches to vswitch 
name on the hyperv host. If there is not matching vswitch name it can fail 
creating the VM.

Thanks
Rajesh Battala


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Thursday, December 18, 2014 3:38 PM
To: dev@cloudstack.apache.org
Subject: hyper-v VR does not have management network

Hi,

 

We use hyper-v as the hypervisor for cloudstack 4.4.1. The ssvm and cpvm start 
successfully.

But the VR vm can not connect to the cloudstack management. We found that the 
VR vm used guest virtual switch for the first and second network, and public 
virtual switch for the third network, and several network without virtual 
switch. So we checked the log in cloudstack management, and found the 
parameters to create the CR vm, shown as follows:

 

2014-12-18 16:48

RE: hyper-v VR does not have management network

2014-12-19 Thread Anshul Gangwar
Please attach Hyper-V agent logs even if you are not seeing any error in them.

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com] 
Sent: Friday, December 19, 2014 2:44 PM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Do you mean our configuration about cloudstack has something wrong? This 
network linkLocal exists in our cloudstack networks table in DB, which has 
traffic_type Control, broadcast_domain_type LinkLocal, gateway 169.254.
0.0/16

How can we make the right configuration?



-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 16:54
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

For Hyper-V linkLocal network is never used and configured. 


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 2:14 PM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Sorry, SSVM with this parameter:

{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.2.132,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:02:84,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}


-邮件原件-
发件人: 穆凯辉 [mailto:k...@landhightech.com]
发送时间: 2014年12月19日 16:40
收件人: 'dev@cloudstack.apache.org'
主题: 答复: hyper-v VR does not have management network

There is no failure in agent and mgmt. logs.

We checked the cpvm,ssvm and VR vm creation parameters, and found that:

Cpvm with devcieID 0 nic:
{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.3.155,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:03:9b,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}

Ssvm with device ID 0 nic:
{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.3.155,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:03:9b,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}

VR with device ID 1 nic:
{deviceId:1,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:192.168.10.117,netmask:255.255.255.0,gat
eway:192.168.10.254,mac:02:00:72:a9:00:01,broadcastType:Native,t
ype:Control,isSecurityGroupEnabled:false}

The broadcastType of VR is Native, but the broadcastType of the other two is  
LinkLocal.

Is this the problem?

-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 12:22
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

It works completely different for VMWare and HyperV.
Currently on which virtual switch the control nic of hyperv is present?
Is there any failure while creating VR on hyper-V?
Share the agent and mgmt. logs at the time of failure.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 9:21 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Hyper-v nics without name parameter:
{deviceId:1,networkRateMbps:
-1,defaultNic:false,uuid:dbc356b5-79ca-4f83-9df9-038f89290c89,ip:19
2.168.10.110,netmask:255.255.255.0,gateway:192.168.10.254,mac:02
:00:40:6f:00:06,broadcastType:Native,type:Control,isSecurityGroupE
nabled:false}


VMware exsi nics with name parameter vSwitch0.

{deviceId:1,networkRateMbps:-1,d
efaultNic:false,uuid:f1ea1c22-e4fa-4a25-9e75-221920982c76,ip:192.168
.10.150,netmask:255.255.255.0,gateway:192.168.10.254,mac:02:00:5
d:40:00:07,broadcastType:Native,type:Control,isSecurityGroupEnable
d:false,name:vSwitch0}


We have management virtual switch in Hyper-v host for the management and 
storage network traffic.


Thank you very much


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 11:37
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

When I checked in the pasted log,
In the nic json details all the nics have names .
Name value is present in each nic details. All the nics have either public
or guest names.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 6:11 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

We also check the cloud agent status in VR vm, the process of which also exists 
in VR.


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月18日 22:17
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

Are you using traffic lables?
Hyperv will work only in dedicated zone only , you cannot replace esx host with 
hyperv host and make the zone to work. 

There are no issues with VR to run on Hyperv. It works well.
If you are using traffic lables, make sure the traffic lable matches to vswitch 
name on the hyperv host. If there is not matching vswitch

RE: hyper-v VR does not have management network

2014-12-19 Thread Rajesh Battala
Network configuration in DB is correct. 
What I mean to convey is, even linklocal network is present hyperv won't use 
that linklocal network .

Can you please let us know what is that actual problem you are facing when 
deploying the VR in Hyper-V setup. 
So that we can help you looking at the logs and solve the issue.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com] 
Sent: Friday, December 19, 2014 2:44 PM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Do you mean our configuration about cloudstack has something wrong? This 
network linkLocal exists in our cloudstack networks table in DB, which has 
traffic_type Control, broadcast_domain_type LinkLocal, gateway 169.254.
0.0/16

How can we make the right configuration?



-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 16:54
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

For Hyper-V linkLocal network is never used and configured. 


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 2:14 PM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Sorry, SSVM with this parameter:

{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.2.132,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:02:84,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}


-邮件原件-
发件人: 穆凯辉 [mailto:k...@landhightech.com]
发送时间: 2014年12月19日 16:40
收件人: 'dev@cloudstack.apache.org'
主题: 答复: hyper-v VR does not have management network

There is no failure in agent and mgmt. logs.

We checked the cpvm,ssvm and VR vm creation parameters, and found that:

Cpvm with devcieID 0 nic:
{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.3.155,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:03:9b,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}

Ssvm with device ID 0 nic:
{deviceId:0,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:169.254.3.155,netmask:255.255.0.0,gatewa
y:169.254.0.1,mac:0e:00:a9:fe:03:9b,broadcastType:LinkLocal,type
:Control,isSecurityGroupEnabled:false}

VR with device ID 1 nic:
{deviceId:1,networkRateMbps:-1,defaultNic:false,uuid:25d5daa8-7ee0-
494c-93c9-05d2125778e6,ip:192.168.10.117,netmask:255.255.255.0,gat
eway:192.168.10.254,mac:02:00:72:a9:00:01,broadcastType:Native,t
ype:Control,isSecurityGroupEnabled:false}

The broadcastType of VR is Native, but the broadcastType of the other two is  
LinkLocal.

Is this the problem?

-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 12:22
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

It works completely different for VMWare and HyperV.
Currently on which virtual switch the control nic of hyperv is present?
Is there any failure while creating VR on hyper-V?
Share the agent and mgmt. logs at the time of failure.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 9:21 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Hyper-v nics without name parameter:
{deviceId:1,networkRateMbps:
-1,defaultNic:false,uuid:dbc356b5-79ca-4f83-9df9-038f89290c89,ip:19
2.168.10.110,netmask:255.255.255.0,gateway:192.168.10.254,mac:02
:00:40:6f:00:06,broadcastType:Native,type:Control,isSecurityGroupE
nabled:false}


VMware exsi nics with name parameter vSwitch0.

{deviceId:1,networkRateMbps:-1,d
efaultNic:false,uuid:f1ea1c22-e4fa-4a25-9e75-221920982c76,ip:192.168
.10.150,netmask:255.255.255.0,gateway:192.168.10.254,mac:02:00:5
d:40:00:07,broadcastType:Native,type:Control,isSecurityGroupEnable
d:false,name:vSwitch0}


We have management virtual switch in Hyper-v host for the management and 
storage network traffic.


Thank you very much


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 11:37
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

When I checked in the pasted log,
In the nic json details all the nics have names .
Name value is present in each nic details. All the nics have either public
or guest names.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 6:11 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

We also check the cloud agent status in VR vm, the process of which also exists 
in VR.


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月18日 22:17
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

Are you using traffic lables?
Hyperv will work only in dedicated zone only , you cannot

RE: hyper-v VR does not have management network

2014-12-18 Thread Rajesh Battala
Are you using traffic lables?
Hyperv will work only in dedicated zone only , you cannot replace esx host with 
hyperv host and make the zone to work. 

There are no issues with VR to run on Hyperv. It works well.
If you are using traffic lables, make sure the traffic lable matches to vswitch 
name on the hyperv host. If there is not matching vswitch name it can fail 
creating the VM.

Thanks
Rajesh Battala


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com] 
Sent: Thursday, December 18, 2014 3:38 PM
To: dev@cloudstack.apache.org
Subject: hyper-v VR does not have management network

Hi,

 

We use hyper-v as the hypervisor for cloudstack 4.4.1. The ssvm and cpvm start 
successfully.

But the VR vm can not connect to the cloudstack management. We found that the 
VR vm used guest virtual switch for the first and second network, and public 
virtual switch for the third network, and several network without virtual 
switch. So we checked the log in cloudstack management, and found the 
parameters to create the CR vm, shown as follows:

 

2014-12-18 16:48:21,045 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
(DirectAgent-152:ctx-17dca502) POST response is 
[{com.cloud.agent.api.StartAnswer:{result:true,details:null,vm:{id
:27,name:r-27-VM,type:DomainRouter,cpus:1,minSpeed:500,maxSpeed
:500,minRam:134217728,maxRam:134217728,arch:x86_64,os:Debian
GNU/Linux 5.0 (64-bit),bootArgs: template=domP name=r-27-VM
eth2ip=192.168.20.154 eth2mask=255.255.255.0 gateway=192.168.20.254
eth0ip=10.1.1.1 eth0mask=255.255.255.0 domain=cs2cloud.internal cidrsize=24
dhcprange=10.1.1.1 eth1ip=192.168.10.110 eth1mask=255.255.255.0
mgmtcidr=192.168.20.0/24 localgw=192.168.10.254 type=router 
disable_rp_filter=true extra_pubnics=2 dns1=61.177.7.1 dns2=192.168.10.3
nic_macs=02:00:3d:47:00:02|02:00:40:6f:00:06|06:96:80:00:00:37|02:00:48:ab:0
0:1a|02:00:18:2f:00:1b|02:00:78:3c:00:1c|02:00:1b:aa:00:1d|02:00:79:37:00:1e
,rebootOnCrash:false,enableHA:true,limitCpuUse:false,enableDynamical
lyScaleVm:false,vncPassword:aa9ef9b5fb278d27,params:{},uuid:af08f8
42-49a9-4c24-8eb9-9e8fb89aea7c,disks:[{data:{org.apache.cloudstack.sto
rage.to.VolumeObjectTO:{uuid:22b14554-2172-4502-a125-4b2a4e0228c1,volu
meType:ROOT,dataStore:{org.apache.cloudstack.storage.to.PrimaryDataSto
reTO:{uuid:88e26dcb-f058-36a7-a616-1f876b837977,id:4,poolType:SMB
,host:192.168.10.6,path:/primary?user=cloudadmindomain=cloud,port
:445,url:SMB://192.168.10.6/primary?user=cloudadmindomain=cloud/?ROLE=Pr
imarySTOREUUID=88e26dcb-f058-36a7-a616-1f876b837977}},name:ROOT-27,si
ze:1124355072,path:22b14554-2172-4502-a125-4b2a4e0228c1,volumeId:28,
vmName:r-27-VM,accountId:2,format:VHD,id:28,deviceId:0,hypervi
sorType:Hyperv}},diskSeq:0,path:22b14554-2172-4502-a125-4b2a4e0228c1
,type:ROOT,_details:{managed:false,storagePort:445,storageHo
st:192.168.10.6,volumeSize:1124355072}}],nics:[{deviceId:2,netwo
rkRateMbps:200,defaultNic:true,uuid:be7dc9f2-eff8-4a7e-8229-ffb3be8f04
af,ip:192.168.20.154,netmask:255.255.255.0,gateway:192.168.20.25
4,mac:06:96:80:00:00:37,dns1:61.177.7.1,dns2:192.168.10.3,broa
dcastType:Vlan,type:Public,broadcastUri:vlan://untagged,isolatio
nUri:vlan://untagged,isSecurityGroupEnabled:false,name:public},{de
viceId:0,networkRateMbps:200,defaultNic:false,uuid:b31abe5f-5f6d-414
3-9581-05f7ab68906a,ip:10.1.1.1,netmask:255.255.255.0,mac:02:00:
3d:47:00:02,dns1:61.177.7.1,dns2:192.168.10.3,broadcastType:Vlan
,type:Guest,broadcastUri:vlan://397,isolationUri:vlan://397,is
SecurityGroupEnabled:false,name:guest},{deviceId:1,networkRateMbps:
-1,defaultNic:false,uuid:dbc356b5-79ca-4f83-9df9-038f89290c89,ip:19
2.168.10.110,netmask:255.255.255.0,gateway:192.168.10.254,mac:02
:00:40:6f:00:06,broadcastType:Native,type:Control,isSecurityGroupE
nabled:false},{deviceId:3,networkRateMbps:-1,defaultNic:false,ip:0
.0.0.0,netmask:255.255.255.255,gateway:192.168.20.254,mac:02:00:
48:ab:00:1a,dns1:61.177.7.1,dns2:192.168.10.3,broadcastType:Vlan
,type:Public,broadcastUri:vlan://untagged,isolationUri:vlan://un
tagged,isSecurityGroupEnabled:false,name:public},{deviceId:4,netwo
rkRateMbps:-1,defaultNic:false,ip:0.0.0.0,netmask:255.255.255.255
,gateway:192.168.20.254,mac:02:00:18:2f:00:1b,dns1:61.177.7.1,d
ns2:192.168.10.3,broadcastType:Vlan,type:Public,broadcastUri:v
lan://untagged,isolationUri:vlan://untagged,isSecurityGroupEnabled:fa
lse,name:public},{deviceId:5,networkRateMbps:-1,defaultNic:false,
ip:0.0.0.0,netmask:255.255.255.255,gateway:192.168.20.254,mac:
02:00:78:3c:00:1c,dns1:61.177.7.1,dns2:192.168.10.3,broadcastType
:Vlan,type:Public,broadcastUri:vlan://untagged,isolationUri:vla
n://untagged,isSecurityGroupEnabled:false,name:public},{deviceId:6,
networkRateMbps:-1,defaultNic:false,ip:0.0.0.0,netmask:255.255.25
5.255,gateway:192.168.20.254,mac:02:00:1b:aa:00:1d,dns1:61.177.7
.1,dns2:192.168.10.3,broadcastType:Vlan,type:Public,broadcastU
ri:vlan://untagged,isolationUri:vlan://untagged,isSecurityGroupEnabl
ed:false,name:public},{deviceId:7,networkRateMbps:-1,defaultNic:f

RE: hyper-v VR does not have management network

2014-12-18 Thread Rajesh Battala
When I checked in the pasted log, 
In the nic json details all the nics have names .
Name value is present in each nic details. All the nics have either public or 
guest names.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com] 
Sent: Friday, December 19, 2014 6:11 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

We also check the cloud agent status in VR vm, the process of which also exists 
in VR.


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月18日 22:17
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

Are you using traffic lables?
Hyperv will work only in dedicated zone only , you cannot replace esx host with 
hyperv host and make the zone to work. 

There are no issues with VR to run on Hyperv. It works well.
If you are using traffic lables, make sure the traffic lable matches to vswitch 
name on the hyperv host. If there is not matching vswitch name it can fail 
creating the VM.

Thanks
Rajesh Battala


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Thursday, December 18, 2014 3:38 PM
To: dev@cloudstack.apache.org
Subject: hyper-v VR does not have management network

Hi,

 

We use hyper-v as the hypervisor for cloudstack 4.4.1. The ssvm and cpvm start 
successfully.

But the VR vm can not connect to the cloudstack management. We found that the 
VR vm used guest virtual switch for the first and second network, and public 
virtual switch for the third network, and several network without virtual 
switch. So we checked the log in cloudstack management, and found the 
parameters to create the CR vm, shown as follows:

 

2014-12-18 16:48:21,045 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
(DirectAgent-152:ctx-17dca502) POST response is 
[{com.cloud.agent.api.StartAnswer:{result:true,details:null,vm:{id
:27,name:r-27-VM,type:DomainRouter,cpus:1,minSpeed:500,maxSpeed
:500,minRam:134217728,maxRam:134217728,arch:x86_64,os:Debian
GNU/Linux 5.0 (64-bit),bootArgs: template=domP name=r-27-VM
eth2ip=192.168.20.154 eth2mask=255.255.255.0 gateway=192.168.20.254
eth0ip=10.1.1.1 eth0mask=255.255.255.0 domain=cs2cloud.internal cidrsize=24
dhcprange=10.1.1.1 eth1ip=192.168.10.110 eth1mask=255.255.255.0
mgmtcidr=192.168.20.0/24 localgw=192.168.10.254 type=router 
disable_rp_filter=true extra_pubnics=2 dns1=61.177.7.1 dns2=192.168.10.3
nic_macs=02:00:3d:47:00:02|02:00:40:6f:00:06|06:96:80:00:00:37|02:00:48:ab:0
0:1a|02:00:18:2f:00:1b|02:00:78:3c:00:1c|02:00:1b:aa:00:1d|02:00:79:37:00:1e
,rebootOnCrash:false,enableHA:true,limitCpuUse:false,enableDynamical
lyScaleVm:false,vncPassword:aa9ef9b5fb278d27,params:{},uuid:af08f8
42-49a9-4c24-8eb9-9e8fb89aea7c,disks:[{data:{org.apache.cloudstack.sto
rage.to.VolumeObjectTO:{uuid:22b14554-2172-4502-a125-4b2a4e0228c1,volu
meType:ROOT,dataStore:{org.apache.cloudstack.storage.to.PrimaryDataSto
reTO:{uuid:88e26dcb-f058-36a7-a616-1f876b837977,id:4,poolType:SMB
,host:192.168.10.6,path:/primary?user=cloudadmindomain=cloud,port
:445,url:SMB://192.168.10.6/primary?user=cloudadmindomain=cloud/?ROLE=Pr
imarySTOREUUID=88e26dcb-f058-36a7-a616-1f876b837977}},name:ROOT-27,si
ze:1124355072,path:22b14554-2172-4502-a125-4b2a4e0228c1,volumeId:28,
vmName:r-27-VM,accountId:2,format:VHD,id:28,deviceId:0,hypervi
sorType:Hyperv}},diskSeq:0,path:22b14554-2172-4502-a125-4b2a4e0228c1
,type:ROOT,_details:{managed:false,storagePort:445,storageHo
st:192.168.10.6,volumeSize:1124355072}}],nics:[{deviceId:2,netwo
rkRateMbps:200,defaultNic:true,uuid:be7dc9f2-eff8-4a7e-8229-ffb3be8f04
af,ip:192.168.20.154,netmask:255.255.255.0,gateway:192.168.20.25
4,mac:06:96:80:00:00:37,dns1:61.177.7.1,dns2:192.168.10.3,broa
dcastType:Vlan,type:Public,broadcastUri:vlan://untagged,isolatio
nUri:vlan://untagged,isSecurityGroupEnabled:false,name:public},{de
viceId:0,networkRateMbps:200,defaultNic:false,uuid:b31abe5f-5f6d-414
3-9581-05f7ab68906a,ip:10.1.1.1,netmask:255.255.255.0,mac:02:00:
3d:47:00:02,dns1:61.177.7.1,dns2:192.168.10.3,broadcastType:Vlan
,type:Guest,broadcastUri:vlan://397,isolationUri:vlan://397,is
SecurityGroupEnabled:false,name:guest},{deviceId:1,networkRateMbps:
-1,defaultNic:false,uuid:dbc356b5-79ca-4f83-9df9-038f89290c89,ip:19
2.168.10.110,netmask:255.255.255.0,gateway:192.168.10.254,mac:02
:00:40:6f:00:06,broadcastType:Native,type:Control,isSecurityGroupE
nabled:false},{deviceId:3,networkRateMbps:-1,defaultNic:false,ip:0
.0.0.0,netmask:255.255.255.255,gateway:192.168.20.254,mac:02:00:
48:ab:00:1a,dns1:61.177.7.1,dns2:192.168.10.3,broadcastType:Vlan
,type:Public,broadcastUri:vlan://untagged,isolationUri:vlan://un
tagged,isSecurityGroupEnabled:false,name:public},{deviceId:4,netwo
rkRateMbps:-1,defaultNic:false,ip:0.0.0.0,netmask:255.255.255.255
,gateway:192.168.20.254,mac:02:00:18:2f:00:1b,dns1:61.177.7.1,d
ns2:192.168.10.3,broadcastType:Vlan,type:Public,broadcastUri:v
lan://untagged,isolationUri:vlan://untagged

RE: hyper-v VR does not have management network

2014-12-18 Thread Rajesh Battala
It works completely different for VMWare and HyperV.
Currently on which virtual switch the control nic of hyperv is present?
Is there any failure while creating VR on hyper-V?
Share the agent and mgmt. logs at the time of failure.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com] 
Sent: Friday, December 19, 2014 9:21 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

Hyper-v nics without name parameter:
{deviceId:1,networkRateMbps:
-1,defaultNic:false,uuid:dbc356b5-79ca-4f83-9df9-038f89290c89,ip:19
2.168.10.110,netmask:255.255.255.0,gateway:192.168.10.254,mac:02
:00:40:6f:00:06,broadcastType:Native,type:Control,isSecurityGroupE
nabled:false}


VMware exsi nics with name parameter vSwitch0.

{deviceId:1,networkRateMbps:-1,d
efaultNic:false,uuid:f1ea1c22-e4fa-4a25-9e75-221920982c76,ip:192.168
.10.150,netmask:255.255.255.0,gateway:192.168.10.254,mac:02:00:5
d:40:00:07,broadcastType:Native,type:Control,isSecurityGroupEnable
d:false,name:vSwitch0}


We have management virtual switch in Hyper-v host for the management and 
storage network traffic.


Thank you very much


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月19日 11:37
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

When I checked in the pasted log,
In the nic json details all the nics have names .
Name value is present in each nic details. All the nics have either public
or guest names.

Thanks
Rajesh Battala

-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Friday, December 19, 2014 6:11 AM
To: dev@cloudstack.apache.org
Subject: 答复: hyper-v VR does not have management network

We also check the cloud agent status in VR vm, the process of which also exists 
in VR.


-邮件原件-
发件人: Rajesh Battala [mailto:rajesh.batt...@citrix.com]
发送时间: 2014年12月18日 22:17
收件人: dev@cloudstack.apache.org
主题: RE: hyper-v VR does not have management network

Are you using traffic lables?
Hyperv will work only in dedicated zone only , you cannot replace esx host with 
hyperv host and make the zone to work. 

There are no issues with VR to run on Hyperv. It works well.
If you are using traffic lables, make sure the traffic lable matches to vswitch 
name on the hyperv host. If there is not matching vswitch name it can fail 
creating the VM.

Thanks
Rajesh Battala


-Original Message-
From: 穆凯辉 [mailto:k...@landhightech.com]
Sent: Thursday, December 18, 2014 3:38 PM
To: dev@cloudstack.apache.org
Subject: hyper-v VR does not have management network

Hi,

 

We use hyper-v as the hypervisor for cloudstack 4.4.1. The ssvm and cpvm start 
successfully.

But the VR vm can not connect to the cloudstack management. We found that the 
VR vm used guest virtual switch for the first and second network, and public 
virtual switch for the third network, and several network without virtual 
switch. So we checked the log in cloudstack management, and found the 
parameters to create the CR vm, shown as follows:

 

2014-12-18 16:48:21,045 DEBUG [c.c.h.h.r.HypervDirectConnectResource]
(DirectAgent-152:ctx-17dca502) POST response is 
[{com.cloud.agent.api.StartAnswer:{result:true,details:null,vm:{id
:27,name:r-27-VM,type:DomainRouter,cpus:1,minSpeed:500,maxSpeed
:500,minRam:134217728,maxRam:134217728,arch:x86_64,os:Debian
GNU/Linux 5.0 (64-bit),bootArgs: template=domP name=r-27-VM
eth2ip=192.168.20.154 eth2mask=255.255.255.0 gateway=192.168.20.254
eth0ip=10.1.1.1 eth0mask=255.255.255.0 domain=cs2cloud.internal cidrsize=24
dhcprange=10.1.1.1 eth1ip=192.168.10.110 eth1mask=255.255.255.0
mgmtcidr=192.168.20.0/24 localgw=192.168.10.254 type=router 
disable_rp_filter=true extra_pubnics=2 dns1=61.177.7.1 dns2=192.168.10.3
nic_macs=02:00:3d:47:00:02|02:00:40:6f:00:06|06:96:80:00:00:37|02:00:48:ab:0
0:1a|02:00:18:2f:00:1b|02:00:78:3c:00:1c|02:00:1b:aa:00:1d|02:00:79:37:00:1e
,rebootOnCrash:false,enableHA:true,limitCpuUse:false,enableDynamical
lyScaleVm:false,vncPassword:aa9ef9b5fb278d27,params:{},uuid:af08f8
42-49a9-4c24-8eb9-9e8fb89aea7c,disks:[{data:{org.apache.cloudstack.sto
rage.to.VolumeObjectTO:{uuid:22b14554-2172-4502-a125-4b2a4e0228c1,volu
meType:ROOT,dataStore:{org.apache.cloudstack.storage.to.PrimaryDataSto
reTO:{uuid:88e26dcb-f058-36a7-a616-1f876b837977,id:4,poolType:SMB
,host:192.168.10.6,path:/primary?user=cloudadmindomain=cloud,port
:445,url:SMB://192.168.10.6/primary?user=cloudadmindomain=cloud/?ROLE=Pr
imarySTOREUUID=88e26dcb-f058-36a7-a616-1f876b837977}},name:ROOT-27,si
ze:1124355072,path:22b14554-2172-4502-a125-4b2a4e0228c1,volumeId:28,
vmName:r-27-VM,accountId:2,format:VHD,id:28,deviceId:0,hypervi
sorType:Hyperv}},diskSeq:0,path:22b14554-2172-4502-a125-4b2a4e0228c1
,type:ROOT,_details:{managed:false,storagePort:445,storageHo
st:192.168.10.6,volumeSize:1124355072}}],nics:[{deviceId:2,netwo
rkRateMbps:200,defaultNic:true,uuid:be7dc9f2-eff8-4a7e-8229-ffb3be8f04
af,ip:192.168.20.154,netmask