怪相!

2014-03-11 Thread Du Jun
Hi all,
谁能帮我解释下我碰到的一个怪相?
1)我有两台物理机,处于同一个子网。分别是management server(A)和agent server(B)

2)我在A上启动的虚拟机可以正常访问外网,但是如果我把它迁移到B上,那么这台虚拟机就无法上网,也不能被外界访问。

3)我在B上启动的虚拟机不能访问外网,也不能从外面访问。而且使用ifconfig查看,发现eth0网卡并没有被绑定ip,但是我从web
UI的nics标签下可以看到CloudStack的确给它分配了一个private
ip。如果我把这台虚拟机迁移到A上,那么这台虚拟机可以正常访问外网,也可以从外面访问。

PS:我使用CS 4.2,advanced zone,KVM hypervisor,宿主机Ubuntu12.04,虚拟机也是Ubuntu12.04。


谢谢
JUN


Re: 怪相!

2014-03-11 Thread Du Jun
Wei ZHOU,

你好!我对advanced zone的网络配置不是很熟悉,昨天没有理解你的回复,所以一直感到疑惑不解,很抱歉!

我先说明下我的硬件情况,我没有使用三层交换机。事实上不使用三层交换机也可以实现advanced
zone,只要所有的物理机和虚拟机都在同一个vlan即可。以下是我advanced
zone的基本情况(我在交换机上并没有做任何配置,我只是在创建advanced
zone的时候设置了VLAN的范围[1-10],然后在新建vip网络时,CS自动选取了一个VLAN ID =2):
名称vip
IDa0dc140e-7381-4c38-9f24-16907301b66d区域advanced-zone说明VIP类型Isolated状态
ImplementedPersistent No需要重新启动NoVLAN ID2网络方案Offering for Isolated networks
with Source Nat service enabled
CIDR10.1.1.0/24

你觉得以我这种硬件条件,能不能实现有两个宿主机的advanced zone?非常感谢!

--
JUN





在 2014年3月11日 下午4:46,Wei ZHOU ustcweiz...@gmail.com写道:

 昨天不是说了吗?
 你用的advanced zone,要修改交换机上的物理机端口设置,允许相应的vlan通过。
 不然的话,只有跟VR在一个物理机上的虚拟机能得到ip,其他物理机上的虚拟机是得不到ip的。


 在 2014年3月11日 上午9:43,Du Jun dj199...@gmail.com写道:

  Hi all,
  谁能帮我解释下我碰到的一个怪相?
  1)我有两台物理机,处于同一个子网。分别是management server(A)和agent server(B)
 
  2)我在A上启动的虚拟机可以正常访问外网,但是如果我把它迁移到B上,那么这台虚拟机就无法上网,也不能被外界访问。
 
  3)我在B上启动的虚拟机不能访问外网,也不能从外面访问。而且使用ifconfig查看,发现eth0网卡并没有被绑定ip,但是我从web
  UI的nics标签下可以看到CloudStack的确给它分配了一个private
  ip。如果我把这台虚拟机迁移到A上,那么这台虚拟机可以正常访问外网,也可以从外面访问。
 
  PS:我使用CS 4.2,advanced zone,KVM
 hypervisor,宿主机Ubuntu12.04,虚拟机也是Ubuntu12.04。
 
 
  谢谢
  JUN
 



Re: 怪相!

2014-03-11 Thread Du Jun
据我所知,VLAN分两种。你指的是public的,我指的是private的


在 2014年3月11日 下午5:14,�W�趴萍� �S奕�t / Carl Huang carl_hu...@edyna.com写道:

 第一:照理�f物理�C跟���M�C不��在同一��vlan
 第二:看不懂你後面的要求


 2014-03-11 17:05 GMT+08:00 Du Jun dj199...@gmail.com:

  Wei ZHOU,
 
  你好!我对advanced zone的网络配置不是很熟悉,昨天没有理解你的回复,所以一直感到疑惑不解,很抱歉!
 
  我先说明下我的硬件情况,我没有使用三层交换机。事实上不使用三层交换机也可以实现advanced
  zone,只要所有的物理机和虚拟机都在同一个vlan即可。以下是我advanced
  zone的基本情况(我在交换机上并没有做任何配置,我只是在创建advanced
  zone的时候设置了VLAN的范围[1-10],然后在新建vip网络时,CS自动选取了一个VLAN ID =2):
  名称vip
  IDa0dc140e-7381-4c38-9f24-16907301b66d区域advanced-zone说明VIP类型Isolated状态
  ImplementedPersistent No需要重新启动NoVLAN ID2网络方案Offering for Isolated
 networks
  with Source Nat service enabled
  CIDR10.1.1.0/24
 
  你觉得以我这种硬件条件,能不能实现有两个宿主机的advanced zone?非常感谢!
 
  --
  JUN
 
 
 
 
 
  在 2014年3月11日 下午4:46,Wei ZHOU ustcweiz...@gmail.com写道:
 
   昨天不是说了吗?
   你用的advanced zone,要修改交换机上的物理机端口设置,允许相应的vlan通过。
   不然的话,只有跟VR在一个物理机上的虚拟机能得到ip,其他物理机上的虚拟机是得不到ip的。
  
  
   在 2014年3月11日 上午9:43,Du Jun dj199...@gmail.com写道:
  
Hi all,
谁能帮我解释下我碰到的一个怪相?
1)我有两台物理机,处于同一个子网。分别是management server(A)和agent server(B)
   
2)我在A上启动的虚拟机可以正常访问外网,但是如果我把它迁移到B上,那么这台虚拟机就无法上网,也不能被外界访问。
   
3)我在B上启动的虚拟机不能访问外网,也不能从外面访问。而且使用ifconfig查看,发现eth0网卡并没有被绑定ip,但是我从web
UI的nics标签下可以看到CloudStack的确给它分配了一个private
ip。如果我把这台虚拟机迁移到A上,那么这台虚拟机可以正常访问外网,也可以从外面访问。
   
PS:我使用CS 4.2,advanced zone,KVM
   hypervisor,宿主机Ubuntu12.04,虚拟机也是Ubuntu12.04。
   
   
谢谢
JUN
   
  
 



 --
 
 eDynamics �W�趴萍�

 ��管理��
 主任
 �S奕�t   Carl Huang
 :+886-2-8797-6373 分�C:6302
 �髡妫�+886-2-8797-6272
 E-Mail:carl_hu...@edyna.com
 台北��公司:台北市�群��^瑞光路 513 巷 28 �� 7 ��

 �u  www.laibaodao.com
 oBuy全�I�W  www.obuy.tw
 荷包�W  www.joinbao.com
 CityTalk城市通 www.citytalk.tw
 



Re: Fail to configure network interface when booting VM

2014-03-11 Thread Du Jun
The most strange thing is that:

1) The VM which is running in host A can access the internet and can be
accessed from the outside. But, when I migrate it from host A to host B. I
can neither access the internet nor can be accessed from the outside!

2) The VM which is running in host B can neither access the internet nor
can be accessed from the outside at begging. But, when I migrate it from
host B to host A. I can either access the internet or can be accessed from
the outside!

Is there anyone can help me explain it?

BTW, I think host B is very suspicious, and I would like to provide you
with the information of my host B.

$ ifconfig -a
cloudbr0  Link encap:Ethernet  HWaddr e0:db:55:25:fb:14
  inet addr:10.10.101.107  Bcast:10.10.101.255  Mask:255.255.255.0
  inet6 addr: fe80::e2db:55ff:fe25:fb14/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:4025 errors:0 dropped:35 overruns:0 frame:0
  TX packets:9141766 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:45818581471 (45.8 GB)  TX bytes:23705891021 (23.7 GB)
(ps: host A is also with cloud bridge cloudbr0, and its IP address is
10.10.101.103)

$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
0.0.0.0 10.10.101.254   0.0.0.0 UG10000
cloudbr0
10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
cloudbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
cloud0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
virbr0
(ps:host B can access the internet)

--
Regards,
Du Jun


2014-03-11 13:30 GMT+08:00 Du Jun dj199...@gmail.com:

 Hi Neelarapu,

 I am sorry that I did not describe my situation clearly. I am using
 ubuntu, and output of `ifconfig -a` shows
 the name of interface is eth0, it has mac address.

 When I have a look at /etc/network/interfaces, it shows:
 auto eth0
 iface eth0 inet dhcp

 What's more, I use the same template in the host A, and the interfaces of
 VM is okay.

 BTW, from web UI, I can see the nic of the VM, but the ip address is
 missing when I type `ifconfig -a`. It's so
 strange!

 --
 Regards,
 Du Jun


 2014-03-11 13:06 GMT+08:00 Sanjeev Neelarapu sanjeev.neelar...@citrix.com
 :

 Hi Jun,

 There could be some issue with the template with which you deployed vm.
 Please check ifconfig -a output in vm booted on hostB.
 This will give the interface name and make sure that network-scripts
 directory has a file with the interface name.

 -Sanjeev

 -Original Message-
 From: Du Jun [mailto:dj199...@gmail.com]
 Sent: Monday, March 10, 2014 5:05 PM
 To: users
 Subject: Re: Fail to configure network interface when booting VM

 BTW, the /etc/cloudstack/agent/agent.properties is shown below:
 #Storage
 #Mon Mar 10 16:59:56 CST 2014
 guest.network.device=cloudbr0
 workers=5
 private.network.device=cloudbr0
 port=8250
 resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
 pod=1
 zone=1
 guid=e2e402df-6e65-3e08-a680-35ecfb39716b
 public.network.device=cloudbr0
 cluster=1
 local.storage.uuid=05d6ad68-fdd0-4041-8371-a592727d57d4
 domr.scripts.dir=scripts/network/domr/kvm
 LibvirtComputingResource.id=10
 host=10.10.101.103

 We can see that, guest, private and public all use the network bridge
 cloudbr0. And, route table in my agent host(B) is like that:
 root@ubuntu-7:~# route -n
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface
 0.0.0.0 10.10.101.254   0.0.0.0 UG10000
 cloudbr0
 10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
 cloudbr0
 169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
 cloud0
 192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
 virbr0

 It seems all okay. I wonder what I have missed?

 --
 Best Regards,
 Du Jun



 2014-03-10 19:26 GMT+08:00 Du Jun dj199...@gmail.com:

  Hi Bharat,
 
  Thank you for your prompt reply. As I am new to CloudStack, I have 2
  questions to consult you.
 
  check if host B  has the systemvm.iso in it. if not copy it manually
  from
  host A.
  Where can I check if host B has the systemvm.iso?
 
  before adding the host make sure the host tags are cleared.
  When I add the host B, the tag of the host is empty. After adding the
  host, I add a tag for host B so that I can always put the VM to host B
  for testing purpose. Does it matter?
 
  Thanks!
  --
  Best Regards,
  Du Jun
 
 
  2014-03-10 19:10 GMT+08:00 Bharat Kumar bharat.ku...@citrix.com:
 
  Hi Jun,
 
  check if host B  has the systemvm.iso in it. if not copy it manually
  from host A.
 
  cloudstack generally dose this for you when you add a host for the
  first time.
  before adding the host make sure the host tags are cleared.
 
  Regards,
  Bharat.
  On 10-Mar-2014, at 4:35 pm, Du Jun

启动的虚拟机配置网卡失败

2014-03-10 Thread Du Jun
Hi all,

我在Ubuntu12.04上面部署了一个 CloudStack4.2 advanced
zone。我有两台服务器:A(10.10.101.103)作为management server,B(10.10.101.107)作为我的agent
host。

我碰到的问题是,在management server上起的虚拟机可以正常上网,但是在agent server启动的虚拟机无法正常上网。我在web
console上看,发现这台虚拟机压根就没有配置网卡,即:$ ifconfig 的结果只显示物理地址,不显示IP 地址。

另外,我为我的两台物理机都配置了网桥,两个网桥的名字都是cloudbr0。我的两台物理机都可以自由访问外网,我也可以从外面访问他们。

不知道大家能不能提供一些debug的线索(log里面没有error信息,我只是在虚拟机启动界面看到网卡配置失败信息),谢谢!

--
杜军


Re: 启动的虚拟机配置网卡失败

2014-03-10 Thread Du Jun
Hi all,
我通过web
console查看/var/lib/dhcp/dhclient.eth0.leases,发现的信息非常正常,其中就包括fixed-address
10.1.1.121,也就是说virtual router已经为我的虚拟机分配了IP,只是我的虚拟机无法正常configure而已。不知道大家怎么看?

杜军


在 2014年3月11日 上午11:06,Du Jun dj199...@gmail.com写道:

 Hi ZHOU
 感谢你的回复。不过我不是很清楚下面这句话的含义,
 agent host的网络接口配置 vlan 了吗?

 我在advanced zone里配置了一个“Isolated” network, 该网络的vlan ID是一个正常的整数值,CIDR范围是
 10.1.1.0/24。我启动的虚拟机都放在这个网络里面。我感觉Virtual Router应该会给这个虚拟机一个private IP(从
 10.1.1.0/24里面取一个)。我能确定的是private IP的IP池里还有IP。我感觉问题好像是出在Virtual
 Router(最为一个DHCP服务器)没有为网卡分配IP地址。不知道我的理解对不对?

 virtual router也是在management server上吧
 virtual router是在management server上。我在management server上起的虚拟机都可以正常分配IP。


 谢谢
 杜军


 在 2014年3月10日 下午9:43,Wei ZHOU ustcweiz...@gmail.com写道:

 agent host的网络接口配置 vlan 了吗?
 virtual router也是在management server上吧


 在 2014年3月10日 下午12:17,Du Jun dj199...@gmail.com写道:

  Hi all,
 
  我在Ubuntu12.04上面部署了一个 CloudStack4.2 advanced
  zone。我有两台服务器:A(10.10.101.103)作为management
 server,B(10.10.101.107)作为我的agent
  host。
 
  我碰到的问题是,在management server上起的虚拟机可以正常上网,但是在agent server启动的虚拟机无法正常上网。我在web
  console上看,发现这台虚拟机压根就没有配置网卡,即:$ ifconfig 的结果只显示物理地址,不显示IP 地址。
 
  另外,我为我的两台物理机都配置了网桥,两个网桥的名字都是cloudbr0。我的两台物理机都可以自由访问外网,我也可以从外面访问他们。
 
  不知道大家能不能提供一些debug的线索(log里面没有error信息,我只是在虚拟机启动界面看到网卡配置失败信息),谢谢!
 
  --
  杜军
 





Re: 启动的虚拟机配置网卡失败

2014-03-10 Thread Du Jun
Hi linuxbqj,

我没有三层交换机,所以就没有在三层交换机里配置vlan。我的management server里的虚拟机网卡配置正常,也可以上网。谢谢!
杜军


在 2014年3月11日 下午12:08,linux...@gmail.com linux...@gmail.com写道:

 三层交换机里面的vlan的路由你配置了吗?

 在 2014年3月11日 上午11:19,Du Jun dj199...@gmail.com 写道:
  Hi all,
  我通过web
  console查看/var/lib/dhcp/dhclient.eth0.leases,发现的信息非常正常,其中就包括fixed-address
  10.1.1.121,也就是说virtual
 router已经为我的虚拟机分配了IP,只是我的虚拟机无法正常configure而已。不知道大家怎么看?
 
  杜军
 
 
  在 2014年3月11日 上午11:06,Du Jun dj199...@gmail.com写道:
 
  Hi ZHOU
  感谢你的回复。不过我不是很清楚下面这句话的含义,
  agent host的网络接口配置 vlan 了吗?
 
  我在advanced zone里配置了一个“Isolated” network, 该网络的vlan ID是一个正常的整数值,CIDR范围是
  10.1.1.0/24。 http://10.1.1.0/24%E3%80%82我启动的虚拟机都放在这个网络里面。我感觉Virtual
 Router应该会给这个虚拟机一个private IP(从
  10.1.1.0/24里面取一个)。我能确定的是private IP的IP池里还有IP。我感觉问题好像是出在Virtual
  Router(最为一个DHCP服务器)没有为网卡分配IP地址。不知道我的理解对不对?
 
  virtual router也是在management server上吧
  virtual router是在management server上。我在management server上起的虚拟机都可以正常分配IP。
 
 
  谢谢
  杜军
 
 
  在 2014年3月10日 下午9:43,Wei ZHOU ustcweiz...@gmail.com写道:
 
  agent host的网络接口配置 vlan 了吗?
  virtual router也是在management server上吧
 
 
  在 2014年3月10日 下午12:17,Du Jun dj199...@gmail.com写道:
 
   Hi all,
  
   我在Ubuntu12.04上面部署了一个 CloudStack4.2 advanced
   zone。我有两台服务器:A(10.10.101.103)作为management
  server,B(10.10.101.107)作为我的agent
   host。
  
   我碰到的问题是,在management server上起的虚拟机可以正常上网,但是在agent
 server启动的虚拟机无法正常上网。我在web
   console上看,发现这台虚拟机压根就没有配置网卡,即:$ ifconfig 的结果只显示物理地址,不显示IP 地址。
  
   另外,我为我的两台物理机都配置了网桥,两个网桥的名字都是cloudbr0。我的两台物理机都可以自由访问外网,我也可以从外面访问他们。
  
   不知道大家能不能提供一些debug的线索(log里面没有error信息,我只是在虚拟机启动界面看到网卡配置失败信息),谢谢!
  
   --
   杜军
  
 
 
 



 --
 白清杰 (Born Bai)

 北京开源愿景信息技术有限公司

 Mail: linux...@gmail.com



Re: Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
Hi Bharat,

Thank you for your prompt reply. As I am new to CloudStack, I have 2
questions to consult you.

check if host B  has the systemvm.iso in it. if not copy it manually from
host A.
Where can I check if host B has the systemvm.iso?

before adding the host make sure the host tags are cleared.
When I add the host B, the tag of the host is empty. After adding the host,
I add a tag for host B so that I can always put the VM to host B for
testing purpose. Does it matter?

Thanks!
--
Best Regards,
Du Jun


2014-03-10 19:10 GMT+08:00 Bharat Kumar bharat.ku...@citrix.com:

 Hi Jun,

 check if host B  has the systemvm.iso in it. if not copy it manually from
 host A.

 cloudstack generally dose this for you when you add a host for the first
 time.
 before adding the host make sure the host tags are cleared.

 Regards,
 Bharat.
 On 10-Mar-2014, at 4:35 pm, Du Jun dj199...@gmail.com wrote:

  Hi all,
 
  I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
  A(10.10.101.103) as my management server, and use host B(10.10.101.107)
 as
  my agent host. I meet a problem that the VM booted in host B fail to
  configure network interface when boot up. In other words, when I type
  `ifconfig` in VM booted in host B, I find the IP address is missing!
  However, there is no problem with the VM booted in host A.
 
  BTW, I both add a network bridge cloudbr0 in management server(A) and
  agent host(B). Both server A and B can access the internet and I can
 access
  them from outside. So, I have no idea now. Can anyone tell me how to
 debug
  or provide me with some clue? Thanks!
 
  --
  Best Regards,
  Frank




Re: Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
BTW, the /etc/cloudstack/agent/agent.properties is shown below:
#Storage
#Mon Mar 10 16:59:56 CST 2014
guest.network.device=cloudbr0
workers=5
private.network.device=cloudbr0
port=8250
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
pod=1
zone=1
guid=e2e402df-6e65-3e08-a680-35ecfb39716b
public.network.device=cloudbr0
cluster=1
local.storage.uuid=05d6ad68-fdd0-4041-8371-a592727d57d4
domr.scripts.dir=scripts/network/domr/kvm
LibvirtComputingResource.id=10
host=10.10.101.103

We can see that, guest, private and public all use the network bridge
cloudbr0. And, route table in my agent host(B) is like that:
root@ubuntu-7:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
0.0.0.0 10.10.101.254   0.0.0.0 UG10000
cloudbr0
10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
cloudbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
cloud0
192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
virbr0

It seems all okay. I wonder what I have missed?

--
Best Regards,
Du Jun



2014-03-10 19:26 GMT+08:00 Du Jun dj199...@gmail.com:

 Hi Bharat,

 Thank you for your prompt reply. As I am new to CloudStack, I have 2
 questions to consult you.

 check if host B  has the systemvm.iso in it. if not copy it manually from
 host A.
 Where can I check if host B has the systemvm.iso?

 before adding the host make sure the host tags are cleared.
 When I add the host B, the tag of the host is empty. After adding the
 host, I add a tag for host B so that I can always put the VM to host B for
 testing purpose. Does it matter?

 Thanks!
 --
 Best Regards,
 Du Jun


 2014-03-10 19:10 GMT+08:00 Bharat Kumar bharat.ku...@citrix.com:

 Hi Jun,

 check if host B  has the systemvm.iso in it. if not copy it manually from
 host A.

 cloudstack generally dose this for you when you add a host for the first
 time.
 before adding the host make sure the host tags are cleared.

 Regards,
 Bharat.
 On 10-Mar-2014, at 4:35 pm, Du Jun dj199...@gmail.com wrote:

  Hi all,
 
  I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
  A(10.10.101.103) as my management server, and use host B(10.10.101.107)
 as
  my agent host. I meet a problem that the VM booted in host B fail to
  configure network interface when boot up. In other words, when I type
  `ifconfig` in VM booted in host B, I find the IP address is missing!
  However, there is no problem with the VM booted in host A.
 
  BTW, I both add a network bridge cloudbr0 in management server(A) and
  agent host(B). Both server A and B can access the internet and I can
 access
  them from outside. So, I have no idea now. Can anyone tell me how to
 debug
  or provide me with some clue? Thanks!
 
  --
  Best Regards,
  Frank





About VM network interfaces

2014-03-10 Thread Du Jun
Hi all,

I have two servers, host A as management server and host B as agent host.
The vms booted from host A can access the internet freely and I can access
host A from outside. But, the vms booted from host B have trouble in
configuring its network interface.

For example, from web UI, the VM booted from host B has nic 10.1.1.121.
Indeed, I can also see the information about the dhcp in
/var/dhcp/dhclient.eth0.lease. Everything seems okay. However, when I type
`ifconfig` in the VM, I can't find the ip address 10.1.1.121.

PS: I am using CS 4.2 advanced zone, KVM hypervisor. Both host A and host B
have configured network bridge cloudbr0.

I really have no idea now, please give me some clues. Thanks!

--
Regards,
Du Jun


Re: Fail to configure network interface when booting VM

2014-03-10 Thread Du Jun
Hi Neelarapu,

I am sorry that I did not describe my situation clearly. I am using ubuntu,
and output of `ifconfig -a` shows
the name of interface is eth0, it has mac address.

When I have a look at /etc/network/interfaces, it shows:
auto eth0
iface eth0 inet dhcp

What's more, I use the same template in the host A, and the interfaces of
VM is okay.

BTW, from web UI, I can see the nic of the VM, but the ip address is
missing when I type `ifconfig -a`. It's so
strange!

--
Regards,
Du Jun


2014-03-11 13:06 GMT+08:00 Sanjeev Neelarapu sanjeev.neelar...@citrix.com:

 Hi Jun,

 There could be some issue with the template with which you deployed vm.
 Please check ifconfig -a output in vm booted on hostB.
 This will give the interface name and make sure that network-scripts
 directory has a file with the interface name.

 -Sanjeev

 -Original Message-
 From: Du Jun [mailto:dj199...@gmail.com]
 Sent: Monday, March 10, 2014 5:05 PM
 To: users
 Subject: Re: Fail to configure network interface when booting VM

 BTW, the /etc/cloudstack/agent/agent.properties is shown below:
 #Storage
 #Mon Mar 10 16:59:56 CST 2014
 guest.network.device=cloudbr0
 workers=5
 private.network.device=cloudbr0
 port=8250
 resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
 pod=1
 zone=1
 guid=e2e402df-6e65-3e08-a680-35ecfb39716b
 public.network.device=cloudbr0
 cluster=1
 local.storage.uuid=05d6ad68-fdd0-4041-8371-a592727d57d4
 domr.scripts.dir=scripts/network/domr/kvm
 LibvirtComputingResource.id=10
 host=10.10.101.103

 We can see that, guest, private and public all use the network bridge
 cloudbr0. And, route table in my agent host(B) is like that:
 root@ubuntu-7:~# route -n
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface
 0.0.0.0 10.10.101.254   0.0.0.0 UG10000
 cloudbr0
 10.10.101.0 0.0.0.0 255.255.255.0   U 0  00
 cloudbr0
 169.254.0.0 0.0.0.0 255.255.0.0 U 0  00
 cloud0
 192.168.122.0   0.0.0.0 255.255.255.0   U 0  00
 virbr0

 It seems all okay. I wonder what I have missed?

 --
 Best Regards,
 Du Jun



 2014-03-10 19:26 GMT+08:00 Du Jun dj199...@gmail.com:

  Hi Bharat,
 
  Thank you for your prompt reply. As I am new to CloudStack, I have 2
  questions to consult you.
 
  check if host B  has the systemvm.iso in it. if not copy it manually
  from
  host A.
  Where can I check if host B has the systemvm.iso?
 
  before adding the host make sure the host tags are cleared.
  When I add the host B, the tag of the host is empty. After adding the
  host, I add a tag for host B so that I can always put the VM to host B
  for testing purpose. Does it matter?
 
  Thanks!
  --
  Best Regards,
  Du Jun
 
 
  2014-03-10 19:10 GMT+08:00 Bharat Kumar bharat.ku...@citrix.com:
 
  Hi Jun,
 
  check if host B  has the systemvm.iso in it. if not copy it manually
  from host A.
 
  cloudstack generally dose this for you when you add a host for the
  first time.
  before adding the host make sure the host tags are cleared.
 
  Regards,
  Bharat.
  On 10-Mar-2014, at 4:35 pm, Du Jun dj199...@gmail.com wrote:
 
   Hi all,
  
   I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use host
   A(10.10.101.103) as my management server, and use host
   B(10.10.101.107)
  as
   my agent host. I meet a problem that the VM booted in host B fail
   to configure network interface when boot up. In other words, when I
   type `ifconfig` in VM booted in host B, I find the IP address is
 missing!
   However, there is no problem with the VM booted in host A.
  
   BTW, I both add a network bridge cloudbr0 in management server(A)
   and agent host(B). Both server A and B can access the internet and
   I can
  access
   them from outside. So, I have no idea now. Can anyone tell me how
   to
  debug
   or provide me with some clue? Thanks!
  
   --
   Best Regards,
   Frank
 
 
 



Re: Re: 回复: 从CS 4.2.0 升级到CS 4.2.1

2014-03-09 Thread Du Jun
Hi ZHOU,
这个问题现在解决了,谢谢!

杜军

在 14/3/7,Wei ZHOUustcweiz...@gmail.com 写道:
 dpkg -l |grep cloudstack
 还有记录吧?

 用apt-get remove,或者apt-get purge。前者会保留配置,后者删的比较干净


 在 2014年3月7日 上午9:41,Du Jun dj199...@gmail.com写道:

 请允许我提一个非常白痴的问题,不过我实在是纠结了很久。我希望卸载4.2.1,然后重装4.2.0.
 1.我把我机器上所有与cloudstack有关的全部删除了,使用的是$ find / -name *cloudstack* | xargs rm
 -rf
 2.我从http://cloudstack.apt-get.eu/ubuntu/dists/precise/4.2/pool/
 下载了所有的4.2.0的deb包,然后放在我的一个apache服务器上。我可以从本机wget他们。这些deb包在apache服务器上的位置如下所示:
 *$ pwd*
 /var/www/cloudstack/repo/binary
 *$ ls -l*
 -rw-r--r-- 1 root root  40156966 Mar  7 15:48
 cloudstack-agent_4.2.0_all.deb
 -rw-r--r-- 1 root root  77904298 Mar  7 15:48
 cloudstack-awsapi_4.2.0_all.deb
 -rw-r--r-- 1 root root 51908 Mar  7 15:48
 cloudstack-cli_4.2.0_all.deb
 -rw-r--r-- 1 root root  40515402 Mar  7 15:48
 cloudstack-common_4.2.0_all.deb
 -rw-r--r-- 1 root root 51874 Mar  7 15:48
 cloudstack-docs_4.2.0_all.deb
 -rw-r--r-- 1 root root 137174870 Mar  7 15:48
 cloudstack-management_4.2.0_all.deb
 -rw-r--r-- 1 root root  40616254 Mar  7 15:48
 cloudstack-usage_4.2.0_all.deb
 -rw-r--r-- 1 root root  4646 Mar  7 15:48 Packages
 -rw-r--r-- 1 root root  1693 Mar  7 15:48 Packages.gz
 3.我在本地的/etc/apt/sources.list.d/cloudstack.list上添加一条记录
 deb http://10.10.103.102/cloudstack/repo binary ./

 4.我在本机使用apt-get update 和 apt-get install cloudstack-agent, 系统提示我,
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 cloudstack-agent is already the newest version.
 0 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.

 但是我已经卸载干净了啊!求给建议,谢谢!

 --
 杜军


 在 2014年3月7日 下午3:52,tanthalas tanthalas...@hotmail.com写道:

  4.2.1是对4.2.0的修复,这两个版本对比的话还是建议你用新版。
 
 
  刘宇超
 
 
 
  发件人: Du Jun
  发送时间: 2014-03-07 15:08:32
  收件人: users-cn
  抄送:
  主题: Re: 回复: 从CS 4.2.0 升级到CS 4.2.1
 
  据我所知,CS 4.2.0 KVM的root_disk 快照是不支持的,但data_disk 快照是支持的。就不知道CS
  4.2.1或者4.3是什么情况了。 顺便问一下,你们讨论的vm 快照是指那个快照?
  --
  杜军
  在 2014年3月7日 下午2:50,Wei ZHOU ustcweiz...@gmail.com写道:
   kvm的vm快照是不能用的,即便在4.3也不一定(待确定)。
  
  
   在 2014年3月7日 上午7:03,虚无缥缈 83675...@qq.com写道:
  
4.2.1的kvm快照能用吗,群里有人说还是不能用,不能用升级也没有什么必要了。
   
   
   
   
 -- 原始邮件 --
  发件人: Wei ZHOU;ustcweiz...@gmail.com;
 发送时间: 2014年3月7日(星期五) 下午2:00
 收件人: users-cnusers-cn@cloudstack.apache.org;
   
 主题: Re: 从CS 4.2.0 升级到CS 4.2.1
   
   
   
没什么影响,4.2.0到4.2.1很安全的。做好数据库备份就o了
   
   
在 2014年3月7日 上午3:09,Du Jun dj199...@gmail.com写道:
   
 Hi,
 我有一个CS 4.2.0的集群,安装在Ubuntu12.04上,是一个advanced zone,KVM
   hypervisor。我想把它升级成CS
 4.2.1,也是KVM hypervisor,但不希望影响到集群上的虚拟机。大家看看能不能给点意见?怎样升级最安全?谢谢!

 --
 杜军

   
  
 




关于libvirt版本问题

2014-03-09 Thread Du Jun
Hi all,
用apt-get
install下载安装的cloudstack目前默认安装0.9.8版本的libvirt。但是0.9.8版本的libvirt似乎太老了。我前几天尝试过使用1.2.2版本的libvirt(agent-host使用1.2.2,management使用0.9.8),发现存在不兼容现象。不知道大家都用什么版本的libvirt?对于有需要使用较高版本的libvirt(比如1.0.0以上)的,有没有好的建议?有没有实际使用经验?谢谢!


--
杜军


Re: Fail to live migrate KVM VM from one host to another

2014-03-09 Thread Du Jun
Hi all,
I used apt-get install to cloudstack, and the default libvirt version is
0.9.8. So, do you agree that the version of libvirt is a bit old? What
version do you use?

--
Du Jun


2014-03-10 3:44 GMT+08:00 Thehyperadvisor thehyperadvi...@gmail.com:

 I agree with Marty. I'd remedy the known discrepancies so that theres
 parity between the hosts then move on from there.

 Sent from mobile device.

  On Mar 9, 2014, at 3:17 PM, Marty Sweet msweet@gmail.com wrote:
 
  Hi,
 
  It would be recommended that the libvirt version is the same between
  hypervisors. The same probably stands for the kvm and qemu packages.
 
  Thanks,
  Marty
 
  On 9 March 2014 12:34, Du Jun dj199...@gmail.com wrote:
  Hi all,
  I am using Cloudstack 4.2.0, and I have 2 hosts(include management host)
  both in advanced zone(with no security group). I find I have some
 troubles
  in live migrating VM between hosts. In fact, I can migrate one VM from
  management host to the agent host, but I find I fail to migrate it from
 the
  agent host to the management host. The error message is shown below,
  2014-03-09 19:52:59,918 DEBUG [agent.transport.Request]
  (AgentManager-Handler-14:null) Seq 8-930611287: Processing:  { Ans: ,
  MgmtId: 247232631006792, via: 8, Ver: v1, Flags: 110,
  [{com.cloud.agent.api.MigrateAnswer:{result:false,details:XML
 error:
  invalid security type,wait:0}}] }
  2014-03-09 19:52:59,918 ERROR [cloud.vm.VirtualMachineManagerImpl]
  (Job-Executor-47:job-1384 = [ add0e438-80ae-4ab7-ba7c-1540ae9f2ab1 ])
  Unable to migrate due to XML error: invalid security type
  2014-03-09 19:52:59,919 INFO  [cloud.vm.VirtualMachineManagerImpl]
  (Job-Executor-47:job-1384 = [ add0e438-80ae-4ab7-ba7c-1540ae9f2ab1 ])
  Migration was unsuccessful.  Cleaning up: VM[User|test-host-2]
 
  *PS: The libvirt version in my management server is 0.9.8
  while  the libvirt version in my agent server is 1.2.2.*
 
  I wonder if the difference of libvirt version between the 2 hosts
 matters?
  Or, is there any other resons? Thansk!
 
  --
  Regards,
  Du Jun



Re: Re: 回复: 从CS 4.2.0 升级到CS 4.2.1

2014-03-07 Thread Du Jun
请允许我提一个非常白痴的问题,不过我实在是纠结了很久。我希望卸载4.2.1,然后重装4.2.0.
1.我把我机器上所有与cloudstack有关的全部删除了,使用的是$ find / -name *cloudstack* | xargs rm -rf
2.我从http://cloudstack.apt-get.eu/ubuntu/dists/precise/4.2/pool/
下载了所有的4.2.0的deb包,然后放在我的一个apache服务器上。我可以从本机wget他们。这些deb包在apache服务器上的位置如下所示:
*$ pwd*
/var/www/cloudstack/repo/binary
*$ ls -l*
-rw-r--r-- 1 root root  40156966 Mar  7 15:48 cloudstack-agent_4.2.0_all.deb
-rw-r--r-- 1 root root  77904298 Mar  7 15:48
cloudstack-awsapi_4.2.0_all.deb
-rw-r--r-- 1 root root 51908 Mar  7 15:48 cloudstack-cli_4.2.0_all.deb
-rw-r--r-- 1 root root  40515402 Mar  7 15:48
cloudstack-common_4.2.0_all.deb
-rw-r--r-- 1 root root 51874 Mar  7 15:48 cloudstack-docs_4.2.0_all.deb
-rw-r--r-- 1 root root 137174870 Mar  7 15:48
cloudstack-management_4.2.0_all.deb
-rw-r--r-- 1 root root  40616254 Mar  7 15:48 cloudstack-usage_4.2.0_all.deb
-rw-r--r-- 1 root root  4646 Mar  7 15:48 Packages
-rw-r--r-- 1 root root  1693 Mar  7 15:48 Packages.gz
3.我在本地的/etc/apt/sources.list.d/cloudstack.list上添加一条记录
deb http://10.10.103.102/cloudstack/repo binary ./

4.我在本机使用apt-get update 和 apt-get install cloudstack-agent, 系统提示我,
Reading package lists... Done
Building dependency tree
Reading state information... Done
cloudstack-agent is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.

但是我已经卸载干净了啊!求给建议,谢谢!

--
杜军


在 2014年3月7日 下午3:52,tanthalas tanthalas...@hotmail.com写道:

 4.2.1是对4.2.0的修复,这两个版本对比的话还是建议你用新版。


 刘宇超



 发件人: Du Jun
 发送时间: 2014-03-07  15:08:32
 收件人: users-cn
 抄送:
 主题: Re: 回复: 从CS 4.2.0 升级到CS 4.2.1

 据我所知,CS 4.2.0 KVM的root_disk 快照是不支持的,但data_disk 快照是支持的。就不知道CS
 4.2.1或者4.3是什么情况了。 顺便问一下,你们讨论的vm 快照是指那个快照?
 --
 杜军
 在 2014年3月7日 下午2:50,Wei ZHOU ustcweiz...@gmail.com写道:
  kvm的vm快照是不能用的,即便在4.3也不一定(待确定)。
 
 
  在 2014年3月7日 上午7:03,虚无缥缈 83675...@qq.com写道:
 
   4.2.1的kvm快照能用吗,群里有人说还是不能用,不能用升级也没有什么必要了。
  
  
  
  
-- 原始邮件 --
 发件人: Wei ZHOU;ustcweiz...@gmail.com;
发送时间: 2014年3月7日(星期五) 下午2:00
收件人: users-cnusers-cn@cloudstack.apache.org;
  
主题: Re: 从CS 4.2.0 升级到CS 4.2.1
  
  
  
   没什么影响,4.2.0到4.2.1很安全的。做好数据库备份就o了
  
  
   在 2014年3月7日 上午3:09,Du Jun dj199...@gmail.com写道:
  
Hi,
我有一个CS 4.2.0的集群,安装在Ubuntu12.04上,是一个advanced zone,KVM
  hypervisor。我想把它升级成CS
4.2.1,也是KVM hypervisor,但不希望影响到集群上的虚拟机。大家看看能不能给点意见?怎样升级最安全?谢谢!
   
--
杜军
   
  
 



如何断开主机连接

2014-03-06 Thread Du Jun
Hi,
最近碰到一个小问题,我需要断开一台主机连接,不知道该怎么操作?
PS:我用的是CS 4.2

谢谢
杜军


Re: 回复: 从CS 4.2.0 升级到CS 4.2.1

2014-03-06 Thread Du Jun
大家好,
我要升级CS 4.2.0到4.2.1也实在是出于无奈。因为我的cloudstack-management
是4.2.0的,现在想安装4.2.0的cloudstack-agent。但是通过apt-get
install安装发现,目前只有4.2.1的了。而且发现cloudstack-management 4.2.0与cloudstack-agent
4.2.1存在兼容性问题,所以请教你们安装cloudstack-agent 4.2.0的方法。谢谢!

--
杜军


在 2014年3月7日 下午2:03,虚无缥缈 83675...@qq.com写道:

 4.2.1的kvm快照能用吗,群里有人说还是不能用,不能用升级也没有什么必要了。




  -- 原始邮件 --
   发件人: Wei ZHOU;ustcweiz...@gmail.com;
  发送时间: 2014年3月7日(星期五) 下午2:00
  收件人: users-cnusers-cn@cloudstack.apache.org;

  主题: Re: 从CS 4.2.0 升级到CS 4.2.1



 没什么影响,4.2.0到4.2.1很安全的。做好数据库备份就o了


 在 2014年3月7日 上午3:09,Du Jun dj199...@gmail.com写道:

  Hi,
  我有一个CS 4.2.0的集群,安装在Ubuntu12.04上,是一个advanced zone,KVM hypervisor。我想把它升级成CS
  4.2.1,也是KVM hypervisor,但不希望影响到集群上的虚拟机。大家看看能不能给点意见?怎样升级最安全?谢谢!
 
  --
  杜军
 



Re: 回复: 回复: 从CS 4.2.0 升级到CS 4.2.1

2014-03-06 Thread Du Jun
谢谢@虚无飘渺!直接下载所有4.2.0的deb包并且一一安装就行了?还需要额外的配置吗?

--
杜军


在 2014年3月7日 下午2:18,虚无缥缈 83675...@qq.com写道:

 http://cloudstack.apt-get.eu/ubuntu/dists/precise/4.2/pool/
  这有4.2.0的安装包




  -- 原始邮件 --
   发件人: Du Jun;dj199...@gmail.com;
  发送时间: 2014年3月7日(星期五) 下午2:13
  收件人: users-cnusers-cn@cloudstack.apache.org;

  主题: Re: 回复: 从CS 4.2.0 升级到CS 4.2.1



 大家好,
 我要升级CS 4.2.0到4.2.1也实在是出于无奈。因为我的cloudstack-management
 是4.2.0的,现在想安装4.2.0的cloudstack-agent。但是通过apt-get
 install安装发现,目前只有4.2.1的了。而且发现cloudstack-management 4.2.0与cloudstack-agent
 4.2.1存在兼容性问题,所以请教你们安装cloudstack-agent 4.2.0的方法。谢谢!

 --
 杜军


 在 2014年3月7日 下午2:03,虚无缥缈 83675...@qq.com写道:

  4.2.1的kvm快照能用吗,群里有人说还是不能用,不能用升级也没有什么必要了。
 
 
 
 
   -- 原始邮件 --
发件人: Wei ZHOU;ustcweiz...@gmail.com;
   发送时间: 2014年3月7日(星期五) 下午2:00
   收件人: users-cnusers-cn@cloudstack.apache.org;
 
   主题: Re: 从CS 4.2.0 升级到CS 4.2.1
 
 
 
  没什么影响,4.2.0到4.2.1很安全的。做好数据库备份就o了
 
 
  在 2014年3月7日 上午3:09,Du Jun dj199...@gmail.com写道:
 
   Hi,
   我有一个CS 4.2.0的集群,安装在Ubuntu12.04上,是一个advanced zone,KVM
 hypervisor。我想把它升级成CS
   4.2.1,也是KVM hypervisor,但不希望影响到集群上的虚拟机。大家看看能不能给点意见?怎样升级最安全?谢谢!
  
   --
   杜军
  
 



How can I install CloudStack 4.2.0 exactly?

2014-03-06 Thread Du Jun
Hi all,

I add `deb http://cloudstack.apt-get.eu/ubuntu precise 4.2` in my
/etc/apt/sources.list and try to install cloudstack-agent using `apt-get
install cloudstack-agent`. But, I find I installed CloudStack 4.2.1 indee.
I want exact 4.2.0 version! I know Ubuntu will get the latest version by
default. So, how can I get exact CloudStack 4.2.0
cloudstack-agent installed via `apt-get install`?

Regards,
Du Jun


Re: How can I install CloudStack 4.2.0 exactly?

2014-03-06 Thread Du Jun
I installed cloudstack-management 4.2.0 before, so I want cloudstack-aget
4.2.0 too. I don't wnat 4.2.1. Besides, I got a new error when I try to
create a new instance if I combine  cloudstack-management 4.2.0 with
cloudstack-aget 4.2.1, which I never met before.

 2014-03-06 21:09:26,260 INFO  [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-2:job-1338 = [ 382b4154-bd86-41ae-8ba1-964e0bae1777 ]) Unable
to contact resource.
com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1]
is unreachable: Unable to apply userdata and password entry on router

Regards,
Du Jun

2014-03-06 21:43 GMT+08:00 Nux! n...@li.nux.ro:

 On 06.03.2014 13:40, Du Jun wrote:

 Hi all,

 I add `deb http://cloudstack.apt-get.eu/ubuntu precise 4.2` in my
 /etc/apt/sources.list and try to install cloudstack-agent using `apt-get
 install cloudstack-agent`. But, I find I installed CloudStack 4.2.1 indee.
 I want exact 4.2.0 version! I know Ubuntu will get the latest version by
 default. So, how can I get exact CloudStack 4.2.0
 cloudstack-agent installed via `apt-get install`?


 What's the problem with 4.2.1?

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro



successfully boot linux contianer in CloudStack 4.2

2014-01-28 Thread Du Jun
Hi all,
Recently, I successfully boot linux container in CloudStack 4.2.

But, I find CloudStack 4.2 does not support vnc for linux container.

Welcome to contact with me for discussing LXC's new features in CloudStack!


Regards,
DuJun


Fail to attach volume to LXC in CloudStack 4.2

2014-01-28 Thread Du Jun
Hi all,
Recently, I am stuck in attaching volumes to Linux Container using
CloudStack 4.2. But I got the error:Failed to attach volume: data-111 to
VM: lxc-111; org.libvirt.LibvirtException: unsupported configuration: Can't
setup disk for non-block device.

It seems that cause is libvirt, does libvirt has the API to attach volume
to LXC?

I really have no idea about that. Can anyone help me out? Thanks.

--
Best regards,
DuJun


Re: Centos 6.3 + Cloudstack 4.2 Fail to login web UI (404)

2014-01-07 Thread Du Jun
Hi Sebastien,
I assume tomcat6 is installed automatically by cloudstack management
package.


2014/1/6 sebgoa run...@gmail.com


 On Jan 6, 2014, at 1:38 PM, Du Jun dj199...@gmail.com wrote:

  Hi all
  I am installing Cloudstack 4.2 on centos 6.3. Meet following problems:
 
  1) Fail to login web UI
  HTTP Status 404 -
 
  type Status report
 
  message
 
  description The requested resource () is not available.
 
  Apache Tomcat/6.0.24
 
  2) Fail to start Tomcat6
 
  3) run /etc/init.d/cloudstack-agent start and output nothing
 
  I can confirm that I have install libvirt and qemu. So, would you
  please provide me with some advice?
 
  --
  Best regards,
  Frank

 Hi Frank,

 CloudStack has a management server and an agent (in the case of KVM).
 Tomcat is required for the management server, if it's not running then you
 won't be able to login to the UI.

 Did you install tomcat6 packages ?
 Did you do a 'service cloudstack-management start' to launch the
 management server ?

 -Sebastien





Centos 6.3 + Cloudstack 4.2 Fail to login web UI (404)

2014-01-06 Thread Du Jun
Hi all
I am installing Cloudstack 4.2 on centos 6.3. Meet following problems:

1) Fail to login web UI
HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/6.0.24

2) Fail to start Tomcat6

3) run /etc/init.d/cloudstack-agent start and output nothing

I can confirm that I have install libvirt and qemu. So, would you
please provide me with some advice?

--
Best regards,
Frank


如何更改cloudstack DNS server

2013-12-30 Thread Du Jun
Hi all,
当我们新建cloudstack zone的时候,我们会填写public dns server name和internal dns server
name。在zone enabled后,还能够修改dns server name吗?因为其中几个dns
server不巧挂掉了,而我又不想推倒重来。可以通过修改数据库来达到目的吗?如果可以,该修改那个数据库表?谢谢!
ps:我是cloudstack的root,可以随意修改数据库

--
Best regards,
DuJun


Re: 如何更改cloudstack DNS server

2013-12-30 Thread Du Jun
Thanks! BTW, it's cool to use mi phone to send emails!

Regards,
Du


在 2013年12月30日 下午11:37,shing tan shing...@bdata.com.cn写道:


 hi ,
 点击需要修改的zone,进入后看到有个‘笔’的符号,点击就可以在里面修改了。

 ShingTAN
 FYI


 发自我的小米手机

 Du Jun dj199...@gmail.com编写:


 Hi all,
 当我们新建cloudstack zone的时候,我们会填写public dns server name和internal dns server
 name。在zone enabled后,还能够修改dns server name吗?因为其中几个dns
 server不巧挂掉了,而我又不想推倒重来。可以通过修改数据库来达到目的吗?如果可以,该修改那个数据库表?谢谢!
 ps:我是cloudstack的root,可以随意修改数据库

 --
 Best regards,
 DuJun



How to update dns server name

2013-12-30 Thread Du Jun
Hi all,
How can I update dns server name of Cloudstack? When we create a zone, we
are required to add public dns server name and internal dns server name.
And how can we update them after enabling zone? As one of my dns server
could not work anymore. Can I update some tables of mysql database
directly? Thanks!
ps: I am the root of my cluster.

--
Best regards,
DuJun


Re: cloudstack network limitation

2013-12-25 Thread Du Jun
Hi Marty,
My problem is that even though I have update global settings about network
rate, but inbound and outbound are not affected. Look like that:
root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound
inbound average='25600' peak='25600'/
outbound average='25600' peak='25600'/

No matter what I set for network rate in global settings, inbound and
outbound for VM are always the same!

--
Best regards,
DuJun




2013/12/25 Marty Sweet msweet@gmail.com

 Hi Du Jun,

 You can find my thread here

 http://mail-archives.apache.org/mod_mbox/cloudstack-users/201310.mbox/thread?5
 ,
 I was having the exact same issue.
 My conclusion It appears upgrading (Linux) VM kernels to 3.5 fixed the
 Inbound traffic issue. Drivers for e1000 on Windows are (apparently)
 provided by Microsoft but are the latest version. I have a feeling this
 issue was brought in a few KVM releases ago.

 To use Windows VMs I would recommend changing their OS Type in Cloudstack
 to, 'Other PV'. 'Windows PV' may also work but I have not tested it.

 Marty


 On Wed, Dec 25, 2013 at 1:48 AM, Du Jun dj199...@gmail.com wrote:

  @Andrei only update settings in global settings doesn't work!
 
 
  2013/12/25 Andrei Mikhailovsky and...@arhont.com
 
   You will need to adjust the following settings:
  
   network.throttling.rate
  
   vm.network.throttling.rate
  
   Andrei
  
  
  
   - Original Message -
  
   From: Marty Sweet msweet@gmail.com
   To: users@cloudstack.apache.org
   Sent: Tuesday, 24 December, 2013 6:38:52 PM
   Subject: Re: cloudstack network limitation
  
   Hi,
  
   Google Bandwidth Shaping Ubuntu 12.04.3 KVM and try find the last few
   message.
  
   Marty
  
   On Tuesday, December 24, 2013, Andrija Panic wrote:
  
I think I also saw this on the global settings or zone/cluster
  settings,
something global...
   
   
On 24 December 2013 16:58, Nux! n...@li.nux.ro javascript:;
 wrote:
   
 On 24.12.2013 12:13, Du Jun wrote:

 Hi all,
 I find the network banwidth between VMs in my cloudstack server
 are
 extremely slow while bandwidth in my environment is 1000Mbps. I
 want
 to update some configuration to up the network speed between VMs.
 I
 have update global settings such as network.throttling.rate and
 vm.network.throttling.rate. However, it does not work! Could you
 please tell me how to update network configurations about
 bandwidth?

 ps: I use cloudstack 4.2, KVM hypervisor, advanced zone and
 isolated
 network

 --
 Thanks and Best Regards,
 DuJun


 I think there is a network limit imposed of 200 Mbps in the network
 offering, check it out. This limit is enforced via `tc`, see the
 man
   page
 to learn how to show current limitations.

 HTH
 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

   
   
   
--
   
Andrija Panić
--
http://admintweets.com
--
   
  
  
 



Re: cloudstack network limitation

2013-12-25 Thread Du Jun
@Nux @Marty
As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService and
I update network rate to 2Mbps. Meanwhile, I reboot the VMs. However,
inbound and outbound value are all the same!
root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound
inbound average='25600' peak='25600'/
outbound average='25600' peak='25600'/

Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify
VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)2 Mb/sTraffic
TypeGuest

So, I feel confused about how Cloudstack limit the network rate for guest
VMs.

--
Best regards,
DuJun


2013/12/25 Marty Sweet msweet@gmail.com

 I assume you are stopping and relaunching the VM.

 I would second Nux and say Network Offering.

 Marty


 On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro wrote:

  On 25.12.2013 11:40, Du Jun wrote:
 
  Hi Marty,
  My problem is that even though I have update global settings about
 network
  rate, but inbound and outbound are not affected. Look like that:
  root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep
  inbound|outbound
  inbound average='25600' peak='25600'/
  outbound average='25600' peak='25600'/
 
  No matter what I set for network rate in global settings, inbound and
  outbound for VM are always the same!
 
 
  As I said initially this may be bound to the network offering. Eg
  http://img.nux.ro/wj3C-Selection_008.png
 
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 



Re: cloudstack network limitation

2013-12-25 Thread Du Jun
Hi Marty,
Stop and then start VM instead reboot VM can update the value of inbound |
outbound,
root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep inbound|outbound
inbound average='256' peak='256'/
outbound average='256' peak='256'/

However, the real transportation speed is still the same, it's only about
600KB/s, which is far less than 256bps.

Do you have any idea?

--
Thanks and With Best Regards,
DuJun


2013/12/25 Marty Sweet msweet@gmail.com

 Hi DuJun,

 Can you confirm you are fully stopping the VM, the starting it as opposed
 to just rebooting it?

 Marty

 On Wednesday, December 25, 2013, Du Jun wrote:

  @Nux @Marty
  As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService
  and
  I update network rate to 2Mbps. Meanwhile, I reboot the VMs. However,
  inbound and outbound value are all the same!
  root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep
  inbound|outbound
  inbound average='25600' peak='25600'/
  outbound average='25600' peak='25600'/
 
  Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify
  VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)2
  Mb/sTraffic
  TypeGuest
 
  So, I feel confused about how Cloudstack limit the network rate for guest
  VMs.
 
  --
  Best regards,
  DuJun
 
 
  2013/12/25 Marty Sweet msweet@gmail.com javascript:;
 
   I assume you are stopping and relaunching the VM.
  
   I would second Nux and say Network Offering.
  
   Marty
  
  
   On Wed, Dec 25, 2013 at 11:49 AM, Nux! n...@li.nux.ro javascript:;
  wrote:
  
On 25.12.2013 11:40, Du Jun wrote:
   
Hi Marty,
My problem is that even though I have update global settings about
   network
rate, but inbound and outbound are not affected. Look like that:
root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep
inbound|outbound
inbound average='25600' peak='25600'/
outbound average='25600' peak='25600'/
   
No matter what I set for network rate in global settings, inbound
 and
outbound for VM are always the same!
   
   
As I said initially this may be bound to the network offering. Eg
http://img.nux.ro/wj3C-Selection_008.png
   
   
--
Sent from the Delta quadrant using Borg technology!
   
Nux!
www.nux.ro
   
  
 



虚拟机之间内网传输速度奇慢!

2013-12-24 Thread Du Jun
Hi,
最近碰到一个问题,我同一个服务器上的虚拟机之间的网速出奇地慢,只有几百KB/s,但是我的内网是千兆网卡。我知道需要修改一些网络配置来提高我的内网传输速度,但是我在global
settings里面修改了network.throttling.rate和vm.network.throttling.rate这两个值却不起任何作用。
ps:我的主机操作系统是UBUNTU12.04,Cloudstack版本是4.2,hypervisor是KVM,虚拟机操作系统是UBUNTU12.04,所有虚拟机在同一台主机上。
大伙儿给点意见啊!谢谢了!

--
Best regards,
DuJun


cloudstack network limitation

2013-12-24 Thread Du Jun
Hi all,
I find the network banwidth between VMs in my cloudstack server are
extremely slow while bandwidth in my environment is 1000Mbps. I want
to update some configuration to up the network speed between VMs. I
have update global settings such as network.throttling.rate and
vm.network.throttling.rate. However, it does not work! Could you
please tell me how to update network configurations about bandwidth?

ps: I use cloudstack 4.2, KVM hypervisor, advanced zone and isolated network

--
Thanks and Best Regards,
DuJun


Re: VM's on cloudstack hosts not communicating to the internet (advanced networking mode)

2013-12-02 Thread Du Jun
Have you configured the Igress and Outgress of firewall rules?


2013/12/3 Amin Samir aminsamira...@hotmail.com

 Hello,
 I need support in an issue that i am facing, I have installed cloudstack
 in advanced mode, my VM's on cloudstack hosts not communicating to the
 internet, from the virtual router can not ping the gateway, however from
 the gateway can ping the system vm's and they are all tagged.
 Environment is as follows:1) Management Network / Pod is 192.168.1.0/24Vlan 
 20 and the MS server  Hyper visor ports are set to trunk all vlan,
 their native / untagged vlan is 20.2) Guests vlan ranges 200-1200 and
 subnet 10.1.1.0/243) Public network is 10.0.0.0/5 tagged vlan 50 (not
 real IP's)4) Management Server is Ubuntu 12, Cloudstack is 4.2, Xen Server
 6.2 (open vswitch mode)
 Port forward is working fine and can access the vm's from outside
 networks, however can not access internet from vm's, logged in to the
 system virtual router and can not ping gateway.
 And verified the vlan's functionality with different physical  virtual
 environments.
 Could anyone please help?
 Thanks in advance.
 Amin Samir


Fwd: Fail to attach volume to VM

2013-11-25 Thread Du Jun
Hi all,
I find I am unable to attach volume to VM while VM is running.The error
message is show below:

Failed to attach volume: volume-1 to VM: standard-ubuntu;
org.libvirt.LibvirtException: internal error unable to execute QEMU command
'device_add': Duplicate ID 'virtio-disk1' for device

The VM xml result returned by libvirt is show below:
root@openstack-server-1:/usr/bin# virsh dumpxml i-2-3-VM
domain type='kvm' id='11'
  namei-2-3-VM/name
  uuid3bec686e-ccfb-4cfd-ab0f-c709b8802f04/uuid
  descriptionUbuntu 12.04 (64-bit)/description
  memory524288/memory
  currentMemory524288/currentMemory
  vcpu1/vcpu
  cputune
shares500/shares
  /cputune
  os
type arch='x86_64' machine='pc-1.0'hvm/type
boot dev='cdrom'/
boot dev='hd'/
  /os
  features
acpi/
apic/
pae/
  /features
  clock offset='utc'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashdestroy/on_crash
  devices
emulator/usr/bin/kvm/emulator
disk type='file' device='disk'
  driver name='qemu' type='qcow2' cache='none'/
  source
file='/mnt/d15f1dda-469f-31b1-a760-a3f477b6903e/ebe08b1d-91d2-4d38-b034-f65041b415a2'/
  target dev='vda' bus='virtio'/
  alias name='virtio-disk0'/
  address type='pci' domain='0x' bus='0x00' slot='0x04'
function='0x0'/
/disk
disk type='file' device='cdrom'
  driver name='qemu' type='raw' cache='none'/
  target dev='hdc' bus='ide'/
  readonly/
  alias name='ide0-1-0'/
  address type='drive' controller='0' bus='1' unit='0'/
/disk
controller type='ide' index='0'
  alias name='ide0'/
  address type='pci' domain='0x' bus='0x00' slot='0x01'
function='0x1'/
/controller
interface type='bridge'
  mac address='06:23:76:00:00:0d'/
  source bridge='cloudbr0'/
  target dev='vnet9'/
  model type='virtio'/
  bandwidth
inbound average='25600' peak='25600'/
outbound average='25600' peak='25600'/
  /bandwidth
  alias name='net0'/
  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/
/interface
serial type='pty'
  source path='/dev/pts/6'/
  target port='0'/
  alias name='serial0'/
/serial
console type='pty' tty='/dev/pts/6'
  source path='/dev/pts/6'/
  target type='serial' port='0'/
  alias name='serial0'/
/console
input type='tablet' bus='usb'
  alias name='input0'/
/input
input type='mouse' bus='ps2'/
graphics type='vnc' port='5903' autoport='yes'/
video
  model type='cirrus' vram='9216' heads='1'/
  alias name='video0'/
  address type='pci' domain='0x' bus='0x00' slot='0x02'
function='0x0'/
/video
memballoon model='virtio'
  alias name='balloon0'/
  address type='pci' domain='0x' bus='0x00' slot='0x05'
function='0x0'/
/memballoon
  /devices
/domain

I can only find virtio-disk0,there is no device called virtio-disk1.So,why
cloudstack libvirt tell me
Duplicate ID 'virtio-disk1' for device?Is there anyone could answer this
question?Thank you in advance.


Best regards,
DuJun


Re: management Server如何确认SSVM already running

2013-11-25 Thread Du Jun
ssh -i ~/.ssh/private_key -p 3922 root@local-link-address


2013/11/25 Nick nick.ch...@kland.com.tw

 Hello All



 请教一下,management是如何去确认SSVM是否有起来的呢??

 透过SSH吗??那是透过那一个IP?Public IP or Private IP or Link Local IP
 Address.



 在WEB UI都己经看到Console Proxy VM  Secondary Storage VM already running。



 但management确仍然显” No running ssvm is found, so command will be sent to
 LocalHostEndPoint”



 Thanks






Re: Re: VPC支持Security group吗?是如何支持的?

2013-11-25 Thread Du Jun
楼上两个大神!赞!!


在 2013年11月25日下午4:40,Wei ZHOU ustcweiz...@gmail.com写道:

 对的。安全组是针对shared network的,防火墙是针对isolated network


 在 2013年11月25日上午4:11,tanthalas tanthalas...@hotmail.com写道:

  我理解VPC是这样的
  通过一个VR实现多个vlan隔离,属于隔离网络,不是shared 网络,是不需要安全组功能的。
 
  刘宇超  Richard Liu
 
 
 
 
  发件人: Du Jun
  发送时间: 2013-11-24 20:33:29
  收件人: users-cn
  抄送:
  主题: Re: VPC支持Security group吗?是如何支持的?
 
  Hi ZHOU,
  VPC不支持security group,有依据吗?苦于找不到依据又实现不了啊!谢谢!
  -
  Best regards,
  DuJun
  在 13-11-24,Wei ZHOUustcweiz...@gmail.com 写道:
   不行
  
   在 13-11-23,Du Jundj199...@gmail.com 写道:
   Security group不行吗?
  
  
   在 13-11-22,Wei ZHOUustcweiz...@gmail.com 写道:
   VPC是高级网络的功能,可以用FIREWALL来隔离
  
   2013/11/22, Du Jun dj199...@gmail.com:
   Hi all,
   cloudstack的VPC支持Security group吗?是如何支持的?
  
  
   谢谢!
   DuJun
  
  
  
  
 



Re: 为虚拟机绑定磁盘是失败,失败原因“Duplicate ID 'virtio-disk1' for device”

2013-11-25 Thread Du Jun
那么该如何破?除了换系统外


在 2013年11月25日下午4:52,Wei ZHOU ustcweiz...@gmail.com写道:

 这个应该就是我说的linux 3.*的udev问题。


 在 2013年11月25日上午9:48,Du Jun dj199...@gmail.com写道:

  Hi ZHOU,
 
 
 如果我先stop虚拟机,再挂载volume,然后再启动虚拟机,那么一切都ok的。就是不能在虚拟机运行的时候挂载。或者我虚拟机第一次启动的时候,我挂载上去,那也是ok的,但是我卸载掉volume然后再挂载,那就会报错“Duplicate
  ID 'virtio-disk1”。
  我通过libvirt来查看VM 的XML信息如下:
  root@openstack-server-1:/usr/bin# virsh dumpxml i-2-3-VM
  domain type='kvm' id='11'
namei-2-3-VM/name
uuid3bec686e-ccfb-4cfd-ab0f-c709b8802f04/uuid
descriptionUbuntu 12.04 (64-bit)/description
memory524288/memory
currentMemory524288/currentMemory
vcpu1/vcpu
cputune
  shares500/shares
/cputune
os
  type arch='x86_64' machine='pc-1.0'hvm/type
  boot dev='cdrom'/
  boot dev='hd'/
/os
features
  acpi/
  apic/
  pae/
/features
clock offset='utc'/
on_poweroffdestroy/on_poweroff
on_rebootrestart/on_reboot
on_crashdestroy/on_crash
devices
  emulator/usr/bin/kvm/emulator
  disk type='file' device='disk'
driver name='qemu' type='qcow2' cache='none'/
source
 
 
 file='/mnt/d15f1dda-469f-31b1-a760-a3f477b6903e/ebe08b1d-91d2-4d38-b034-f65041b415a2'/
target dev='vda' bus='virtio'/
alias name='virtio-disk0'/
address type='pci' domain='0x' bus='0x00' slot='0x04'
  function='0x0'/
  /disk
  disk type='file' device='cdrom'
driver name='qemu' type='raw' cache='none'/
target dev='hdc' bus='ide'/
readonly/
alias name='ide0-1-0'/
address type='drive' controller='0' bus='1' unit='0'/
  /disk
  controller type='ide' index='0'
alias name='ide0'/
address type='pci' domain='0x' bus='0x00' slot='0x01'
  function='0x1'/
  /controller
  interface type='bridge'
mac address='06:23:76:00:00:0d'/
source bridge='cloudbr0'/
target dev='vnet9'/
model type='virtio'/
bandwidth
  inbound average='25600' peak='25600'/
  outbound average='25600' peak='25600'/
/bandwidth
alias name='net0'/
address type='pci' domain='0x' bus='0x00' slot='0x03'
  function='0x0'/
  /interface
  serial type='pty'
source path='/dev/pts/6'/
target port='0'/
alias name='serial0'/
  /serial
  console type='pty' tty='/dev/pts/6'
source path='/dev/pts/6'/
target type='serial' port='0'/
alias name='serial0'/
  /console
  input type='tablet' bus='usb'
alias name='input0'/
  /input
  input type='mouse' bus='ps2'/
  graphics type='vnc' port='5903' autoport='yes'/
  video
model type='cirrus' vram='9216' heads='1'/
alias name='video0'/
address type='pci' domain='0x' bus='0x00' slot='0x02'
  function='0x0'/
  /video
  memballoon model='virtio'
alias name='balloon0'/
address type='pci' domain='0x' bus='0x00' slot='0x05'
  function='0x0'/
  /memballoon
/devices
  /domain
  里面只有virtio-disk0没有virtio-disk1啊!
 
  谢谢
  DuJun
 
 
 
  在 2013年11月25日下午4:41,Wei ZHOU ustcweiz...@gmail.com写道:
 
   之前有过挂载、卸载的操作吗?
   virsh dumpxml出来的文件里面有virtio-disk1吗?
  
   有条件试试虚拟机OS是centos6或者rhel6的情况。
   我记得linux kernel 3.*带的udev里面有个bug
  
  
   在 2013年11月24日下午1:38,Du Jun dj199...@gmail.com写道:
  
Hi ZHOU,
目前我的虚拟机还没有挂额外数据盘,物理机qemu版本1.0,libvirt版本0.9.8,虚拟机OS时ubuntu 12.04.
   
Does these matters?
   

Best regards,
DuJun
   
2013/11/24, Wei ZHOU ustcweiz...@gmail.com:
 你挂了几个盘?你的物理机的QEMU和LIBVIRT是什么版本,虚拟机用的什么OS

 2013/11/23, Du Jun dj199...@gmail.com:
 Hi all,
 我在为虚拟机绑定磁盘的时候碰到了一个问题,log信息如下:
  2013-11-23 18:04:03,155 DEBUG [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-57:job-81 = [ 260b8d64-570d-4469-92c6-f27d887955b0
 ])
 Complete async job-81 = [ 260b8d64-570d-4469-92c6-f27d887955b0 ],
 jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
 Failed to attach volume:
 volume-a4903396-ca1b-48a9-838d-e82dbd190932
 to VM: basic-inception-vm; org.libvirt.LibvirtException: internal
 error unable to execute QEMU command 'device_add': Duplicate ID
 'virtio-disk1' for device
 提示信息说:“Duplicate ID 'virtio-disk1' for
 device”,我就迷惑了,数据磁盘在我的主存储里面是独一无二的呀,求解释,求说明!谢谢!

 
 Best regards,
 DuJun


   
  
 



cloudstack disk device id name

2013-11-25 Thread Du Jun
Hi all,
I feel confused about /dev/sda , /dev/sdb/ , /dev/sda1, /dev/sda2 , or
/dev/sda5.
I know /dev/sda* is KVM boot partitions.So,how do they work?

Besides,I have a volume whose device_id.to_i=1,so what's the device_name it
equals to? /dev/sda or /dev/sdb? How does cloudstack calculate it? What's
the start number of cloudstack device_id?0 or 1?

Thanks!


-
Best regards,
DuJun


Fail to attach volume to VM

2013-11-25 Thread Du Jun
Hi all,
I find I am unable to attach volume to VM while VM is running.The error
message is show below:

Failed to attach volume: volume-1 to VM: standard-ubuntu;
org.libvirt.LibvirtException: internal error unable to execute QEMU command
'device_add': Duplicate ID 'virtio-disk1' for device

The VM xml result returned by libvirt is show below:
root@openstack-server-1:/usr/bin# virsh dumpxml i-2-3-VM
domain type='kvm' id='11'
  namei-2-3-VM/name
  uuid3bec686e-ccfb-4cfd-ab0f-c709b8802f04/uuid
  descriptionUbuntu 12.04 (64-bit)/description
  memory524288/memory
  currentMemory524288/currentMemory
  vcpu1/vcpu
  cputune
shares500/shares
  /cputune
  os
type arch='x86_64' machine='pc-1.0'hvm/type
boot dev='cdrom'/
boot dev='hd'/
  /os
  features
acpi/
apic/
pae/
  /features
  clock offset='utc'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashdestroy/on_crash
  devices
emulator/usr/bin/kvm/emulator
disk type='file' device='disk'
  driver name='qemu' type='qcow2' cache='none'/
  source
file='/mnt/d15f1dda-469f-31b1-a760-a3f477b6903e/ebe08b1d-91d2-4d38-b034-f65041b415a2'/
  target dev='vda' bus='virtio'/
  alias name='virtio-disk0'/
  address type='pci' domain='0x' bus='0x00' slot='0x04'
function='0x0'/
/disk
disk type='file' device='cdrom'
  driver name='qemu' type='raw' cache='none'/
  target dev='hdc' bus='ide'/
  readonly/
  alias name='ide0-1-0'/
  address type='drive' controller='0' bus='1' unit='0'/
/disk
controller type='ide' index='0'
  alias name='ide0'/
  address type='pci' domain='0x' bus='0x00' slot='0x01'
function='0x1'/
/controller
interface type='bridge'
  mac address='06:23:76:00:00:0d'/
  source bridge='cloudbr0'/
  target dev='vnet9'/
  model type='virtio'/
  bandwidth
inbound average='25600' peak='25600'/
outbound average='25600' peak='25600'/
  /bandwidth
  alias name='net0'/
  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/
/interface
serial type='pty'
  source path='/dev/pts/6'/
  target port='0'/
  alias name='serial0'/
/serial
console type='pty' tty='/dev/pts/6'
  source path='/dev/pts/6'/
  target type='serial' port='0'/
  alias name='serial0'/
/console
input type='tablet' bus='usb'
  alias name='input0'/
/input
input type='mouse' bus='ps2'/
graphics type='vnc' port='5903' autoport='yes'/
video
  model type='cirrus' vram='9216' heads='1'/
  alias name='video0'/
  address type='pci' domain='0x' bus='0x00' slot='0x02'
function='0x0'/
/video
memballoon model='virtio'
  alias name='balloon0'/
  address type='pci' domain='0x' bus='0x00' slot='0x05'
function='0x0'/
/memballoon
  /devices
/domain

I can only find virtio-disk0,there is no device called virtio-disk1.So,why
cloudstack libvirt tell me
Duplicate ID 'virtio-disk1' for device?Is there anyone could answer this
question?Thank you in advance.


Best regards,
DuJun


cloudstack disk device

2013-11-25 Thread Du Jun
Hi all,
I feel confused about /dev/sda , /dev/sdb/ , /dev/sda1, /dev/sda2 , or
/dev/sda5.
I know /dev/sda* is KVM boot partitions.So,how do they work?

Besides,I have a volume whose device_id.to_i=1,so what's the device_name it
equals to? /dev/sda or /dev/sdb? How does cloudstack calculate it? What's
the start number of cloudstack device_id?0 or 1?

Thanks!


-
Best regards,
Frank


cloudstack disk device id name

2013-11-25 Thread Du Jun
Hi all,
I feel confused about /dev/sda , /dev/sdb/ , /dev/sda1, /dev/sda2 , or
/dev/sda5.
I know /dev/sda* is KVM boot partitions.So,how do they work?

Besides,I have a volume whose device_id.to_i=1,so what's the device_name it
equals to? /dev/sda or /dev/sdb? How does cloudstack calculate it? What's
the start number of cloudstack device_id?0 or 1?

Thanks!


-
Best regards,
DuJun


How to take snapshot for KVM instance

2013-11-24 Thread Du Jun
Hi all,
Does cloudstack4.2 support snapshot for KVM instance?How can I take
snapshot for KVM instance?

-
Best regards,
Frank


Fail to attach volume to VM

2013-11-24 Thread Du Jun
Hi guys,
Recently,I met a problem about attaching volume to VM that is running.The
error information is show below,
Failed to attach volume: volume-1 to VM: basic-inception-vm;
org.libvirt.LibvirtException: internal error unable to execute QEMU command
'device_add': Duplicate ID 'virtio-disk1' for device

Duplicate ID 'virtio-disk1' for device?What does it mean?

I can attach volume while VM is stopped,but I can't attach it while VM is
running.So,please help me .




Best regards,
Frank


Re: VPC支持Security group吗?是如何支持的?

2013-11-23 Thread Du Jun
Security group不行吗?


在 13-11-22,Wei ZHOUustcweiz...@gmail.com 写道:
 VPC是高级网络的功能,可以用FIREWALL来隔离

 2013/11/22, Du Jun dj199...@gmail.com:
 Hi all,
 cloudstack的VPC支持Security group吗?是如何支持的?


 谢谢!
 DuJun




为虚拟机绑定磁盘是失败,失败原因“Duplicate ID 'virtio-disk1' for device”

2013-11-23 Thread Du Jun
Hi all,
我在为虚拟机绑定磁盘的时候碰到了一个问题,log信息如下:
 2013-11-23 18:04:03,155 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-57:job-81 = [ 260b8d64-570d-4469-92c6-f27d887955b0 ])
Complete async job-81 = [ 260b8d64-570d-4469-92c6-f27d887955b0 ],
jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
Failed to attach volume: volume-a4903396-ca1b-48a9-838d-e82dbd190932
to VM: basic-inception-vm; org.libvirt.LibvirtException: internal
error unable to execute QEMU command 'device_add': Duplicate ID
'virtio-disk1' for device
提示信息说:“Duplicate ID 'virtio-disk1' for
device”,我就迷惑了,数据磁盘在我的主存储里面是独一无二的呀,求解释,求说明!谢谢!


Best regards,
DuJun


stop虚拟机产生的严重的后果

2013-11-23 Thread Du Jun
Hi all,
我用ubuntu 
12.04的ISO起了一个虚拟机,发现stop虚拟机后再重启,会进入重新安装界面。就是说一旦虚拟机关闭,硬盘上的一切数据都会丢失。如果真是这样,那太恐怖了!不知道我的理解对不对?求指点,谢谢!



DuJun


stop VM and lost everything

2013-11-23 Thread Du Jun
Hi all,
I booted a VM via ISO and then stoped it.When I start it again and I
found myself in front of VM OS reinstalling.That means,when I stop a
VM booting via ISO,I will lose anything in the disk.It's too awful! Is
my understanding correct?If so,is the root-disk of VM ephemeral?

-
Thank you!


Re: stop VM and lost everything

2013-11-23 Thread Du Jun
Hi Hamilton,
I think you are right!

But how can I prevent it reinstalling?I need to unmount ISO install
media and don't want to reinstall because there are a lot of important
informations in my VM.

Would you please tell me how to prevent things from bad to worse?Many thanks!

-
Best regards,
Frank

2013/11/23, Sean Hamilton s...@seanhamilton.co.uk:
 Did you un mount the ISO before stopping/starting your instance? Sounds like
 it's just trying to reinstall because your instance is booting from the ISO
 install media.

 On 23 Nov 2013, at 12:28, Du Jun dj199...@gmail.com wrote:

 Hi all,
 I booted a VM via ISO and then stoped it.When I start it again and I
 found myself in front of VM OS reinstalling.That means,when I stop a
 VM booting via ISO,I will lose anything in the disk.It's too awful! Is
 my understanding correct?If so,is the root-disk of VM ephemeral?

 -
 Thank you!



Re: stop VM and lost everything

2013-11-23 Thread Du Jun
Hi Hamilton,
Now I can't access my VM via ssh,so I am unable to control my
vm.Please tell me how to unmount VM's ISO install media in my host?


Best regards,
Frank

2013/11/23, Du Jun dj199...@gmail.com:
 Hi Hamilton,
 I think you are right!

 But how can I prevent it reinstalling?I need to unmount ISO install
 media and don't want to reinstall because there are a lot of important
 informations in my VM.

 Would you please tell me how to prevent things from bad to worse?Many
 thanks!

 -
 Best regards,
 Frank

 2013/11/23, Sean Hamilton s...@seanhamilton.co.uk:
 Did you un mount the ISO before stopping/starting your instance? Sounds
 like
 it's just trying to reinstall because your instance is booting from the
 ISO
 install media.

 On 23 Nov 2013, at 12:28, Du Jun dj199...@gmail.com wrote:

 Hi all,
 I booted a VM via ISO and then stoped it.When I start it again and I
 found myself in front of VM OS reinstalling.That means,when I stop a
 VM booting via ISO,I will lose anything in the disk.It's too awful! Is
 my understanding correct?If so,is the root-disk of VM ephemeral?

 -
 Thank you!




cloudstack4.2 dhcp

2013-11-21 Thread Du Jun
Hi all,
CloudStack provides API access to attach up to 32KB of user data to a
deployed VM. Deployed VMs also have access to instance metadata via the
virtual router.
User data can be accessed once the IP address of the virtual router is
known.
My problem is that,when I try to find the virtual router information under
/var/lib/dhcp directory,I found the only file dhclient.leases under
/var/lib/dhcp is empty!
So,my vm is unable to access metadata via virtual router.But,I DO need
these metadata!
Is there anyone can provide some suggestions?


Best regards,
DuJun


Re: cloudstack4.2 dhcp

2013-11-21 Thread Du Jun
Hi shankerbalan,
I just want to know why my VM's dhclient.leases file is empty?Is there any
problems with my configurations?


Best regards,
DuJun


2013/11/21 Shanker Balan shanker.ba...@shapeblue.com

 On 21-Nov-2013, at 7:49 pm, Du Jun dj199...@gmail.com wrote:

  Hi all,
  CloudStack provides API access to attach up to 32KB of user data to a
  deployed VM. Deployed VMs also have access to instance metadata via the
  virtual router.
  User data can be accessed once the IP address of the virtual router is
  known.
  My problem is that,when I try to find the virtual router information
 under
  /var/lib/dhcp directory,I found the only file dhclient.leases under
  /var/lib/dhcp is empty!
  So,my vm is unable to access metadata via virtual router.But,I DO need
  these metadata!
  Is there anyone can provide some suggestions?

 Hi Du Jun,

 The VR router is most likely the same as the default gateway address.


 --
 @shankerbalan

 M: +91 98860 60539 | O: +91 (80) 67935867
 shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
 ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
 Bangalore - 560 055

 CloudStack Bootcamp Training on 27/28 November, Bangalore
 http://www.shapeblue.com/cloudstack-training/




 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue is a
 registered trademark.



Re: cloudstack4.2 dhcp

2013-11-21 Thread Du Jun
Hi Balan,
Thank you for your reply.I am using ubuntu 10.4 ISO and then transform it
into a qcow2 format template.I only have /var/lib/dhcp/ directory and don't
have /var/lib/dhclient/ directory.If I insist in using my own tempalate and
I want a non-empty file dhclient.leases,how can I do?Thank you!

--
Best regards,
DuJun


2013/11/22 Shanker Balan shanker.ba...@shapeblue.com

 On 22-Nov-2013, at 6:56 am, Du Jun dj199...@gmail.com wrote:

  Hi shankerbalan,
  I just want to know why my VM's dhclient.leases file is empty?Is there
 any
  problems with my configurations?

 Du,

 Are you using the CloudStack provided default CentOS templates? If so, then
 the dhcp lease file is under /var/lib/dhclient/ and not /var/lib/dhcp/

 CentOS 5.6(64-bit) no GUI (XenServer)
 CentOS 5.5(64-bit) no GUI (KVM)

 [root@xen1 ~]# cat /var/lib/dhclient/dhclient-eth0.leases
 lease {
   interface eth0;
   fixed-address 10.1.1.61;
   option subnet-mask 255.255.255.0;
   option routers 10.1.1.1;
   option dhcp-lease-time 4294967295;
   option dhcp-message-type 5;
   option domain-name-servers 10.1.1.1,192.168.44.1;
   option dhcp-server-identifier 10.1.1.1;
   option broadcast-address 10.1.1.255;
   option host-name xen1;
   option domain-name internal;
   renew 2 2081/12/9 21:13:05;
   rebind 3 2132/12/24 05:38:34;
   expire 1 2149/12/29 00:27:12;
 }
 [root@xen1 ~]#

 If this is a custom template, then could you please tell us which
 OS and how you created the template?

 Regards.

 --
 @shankerbalan

 M: +91 98860 60539 | O: +91 (80) 67935867
 shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
 ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
 Bangalore - 560 055

 CloudStack Bootcamp Training on 27/28 November, Bangalore
 http://www.shapeblue.com/cloudstack-training/




 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue is a
 registered trademark.



无法添加CPU频率大于2GHZ的虚拟机

2013-11-19 Thread Du Jun
Hi,
Cloudstack4.2貌似有一个bug,就是可以添加CPU频率等于2GHZ的双核的compute offering,但就是无法用这个compute
offering启动虚拟机。但事实上我宿主机的CPU主频远远大于2GHZ。大家有时间的话帮我看看我的log吧,虽然说有点长,但描述了创建虚拟机的全过程,其中我觉得可疑的cpuOverprovisioningFactor:
1.0已经红色标记了,有没有人知道原因的帮我解释一下,谢谢啦!:)
2013-11-19 17:22:32,651 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===END===  10.10.15.18 -- GET
 
command=deployVirtualMachinezoneId=de6081ca-0f25-44f0-aeec-81d0a844329etemplateId=f4a9b927-247c-429c-a0fe-e660c3f2dd23hypervisor=KVMserviceOfferingId=27287f8b-a488-4350-8b70-e57719f22b3bdiskOfferingId=43feaa9e-f7bd-4805-825a-d8527430ec02networkIds=6d4ca91d-cf83-4d71-9c3c-0b4df343b3bddisplayname=tfxt-222name=tfxt-222response=jsonsessionkey=kYuQ4zESaE%2FqGV%2Bjat8gMC4vI8Y%3D_=1384852954050
2013-11-19 17:22:32,655 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
InfrastructureEntity name is:com.cloud.offering.ServiceOffering
2013-11-19 17:22:32,656 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
ControlledEntity name is:com.cloud.template.VirtualMachineTemplate
2013-11-19 17:22:32,659 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
ControlledEntity name is:com.cloud.network.Network
2013-11-19 17:22:32,661 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
InfrastructureEntity name is:com.cloud.offering.DiskOffering
2013-11-19 17:22:32,678 DEBUG [cloud.network.NetworkModelImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Service
SecurityGroup is not supported in the network id=204
2013-11-19 17:22:32,681 DEBUG [cloud.network.NetworkModelImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Service
SecurityGroup is not supported in the network id=204
2013-11-19 17:22:32,695 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Deploy
avoids pods: [], clusters: [], hosts: []
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
DeploymentPlanner allocation algorithm:
com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_1ff4f9d9@303802fb
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Trying
to allocate a host and storage pools from dc:1, pod:null,cluster:null,
requested cpu: 4400, requested ram: 2147483648
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Is ROOT
volume READY (pool already allocated)?: No
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
Searching all possible resources under this Zone: 1
2013-11-19 17:22:32,698 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Listing
clusters in order of aggregate capacity, that have (atleast one host with)
enough CPU and RAM capacity under this Zone: 1
2013-11-19 17:22:32,700 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Removing
from the clusterId list these clusters from avoid set: []
2013-11-19 17:22:32,706 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Checking
resources in Cluster: 1 under Pod: 1
2013-11-19 17:22:32,708 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Looking for hosts in dc: 1  pod:1  cluster:1
2013-11-19 17:22:32,711 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to check for
allocation: [Host[-3-Routing]]
2013-11-19 17:22:32,713 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Found 1 hosts for allocation after
prioritization: [Host[-3-Routing]]
2013-11-19 17:22:32,713 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Looking for speed=4400Mhz, Ram=2048
2013-11-19 17:22:32,718 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Checking if host: 3 has enough capacity for
requested CPU: 4400 and requested RAM: 2147483648 , cpuOverprovisioningFactor:
1.0
2013-11-19 17:22:32,720 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator)
Hosts's actual total CPU: 64000 and CPU after applying overprovisioning:
64000
2013-11-19 17:22:32,720 DEBUG 

Fail to start vm with cpu clouk larger than 2GHZ

2013-11-19 Thread Du Jun
Hi all,
I meet a problem in cloudstack4.2 that I am unbale to start vm with cpu
clock larger than 2GHZ per core while My host's CPU clock is about
64GHZ.The strange thing is that I cant start a VM which have two cores and
each core 1.5HZ.My log is pasted below,it's a bit long and I have colored
the suspicious line like cpuOverprovisioningFactor: 1.0.Can anyone help
me explain this scene and provide me with some suggestions?Thank you in
advance!

2013-11-19 17:22:32,651 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===END===  10.10.15.18 -- GET
 
command=deployVirtualMachinezoneId=de6081ca-0f25-44f0-aeec-81d0a844329etemplateId=f4a9b927-247c-429c-a0fe-e660c3f2dd23hypervisor=KVMserviceOfferingId=27287f8b-a488-4350-8b70-e57719f22b3bdiskOfferingId=43feaa9e-f7bd-4805-825a-d8527430ec02networkIds=6d4ca91d-cf83-4d71-9c3c-0b4df343b3bddisplayname=tfxt-222name=tfxt-222response=jsonsessionkey=kYuQ4zESaE%2FqGV%2Bjat8gMC4vI8Y%3D_=1384852954050
2013-11-19 17:22:32,655 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
InfrastructureEntity name is:com.cloud.offering.ServiceOffering
2013-11-19 17:22:32,656 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
ControlledEntity name is:com.cloud.template.VirtualMachineTemplate
2013-11-19 17:22:32,659 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
ControlledEntity name is:com.cloud.network.Network
2013-11-19 17:22:32,661 DEBUG [cloud.api.ApiDispatcher]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
InfrastructureEntity name is:com.cloud.offering.DiskOffering
2013-11-19 17:22:32,678 DEBUG [cloud.network.NetworkModelImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Service
SecurityGroup is not supported in the network id=204
2013-11-19 17:22:32,681 DEBUG [cloud.network.NetworkModelImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Service
SecurityGroup is not supported in the network id=204
2013-11-19 17:22:32,695 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Deploy
avoids pods: [], clusters: [], hosts: []
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
DeploymentPlanner allocation algorithm:
com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_1ff4f9d9@303802fb
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Trying
to allocate a host and storage pools from dc:1, pod:null,cluster:null,
requested cpu: 4400, requested ram: 2147483648
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Is ROOT
volume READY (pool already allocated)?: No
2013-11-19 17:22:32,697 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
Searching all possible resources under this Zone: 1
2013-11-19 17:22:32,698 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Listing
clusters in order of aggregate capacity, that have (atleast one host with)
enough CPU and RAM capacity under this Zone: 1
2013-11-19 17:22:32,700 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Removing
from the clusterId list these clusters from avoid set: []
2013-11-19 17:22:32,706 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Checking
resources in Cluster: 1 under Pod: 1
2013-11-19 17:22:32,708 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Looking for hosts in dc: 1  pod:1  cluster:1
2013-11-19 17:22:32,711 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to check for
allocation: [Host[-3-Routing]]
2013-11-19 17:22:32,713 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Found 1 hosts for allocation after
prioritization: [Host[-3-Routing]]
2013-11-19 17:22:32,713 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Looking for speed=4400Mhz, Ram=2048
2013-11-19 17:22:32,718 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
FirstFitRoutingAllocator) Checking if host: 3 has enough capacity for
requested CPU: 4400 and requested RAM: 2147483648 , cpuOverprovisioningFactor:
1.0
2013-11-19 17:22:32,720 DEBUG [cloud.capacity.CapacityManagerImpl]

Re: 回复:无法添加CPU频率大于2GHZ的虚拟机

2013-11-19 Thread Du Jun
Hi Luo,
你的意思是你可以启动每个核为2GHZ,但核数为n(n=2)的虚拟机?请问你用的cloudstack是什么版本?谢谢!

--
Best regards,
DuJun


2013/11/19 Xuan Luo 465296...@qq.com

 你好!
 我也遇到过这个问题。我发现如果服务器(物理机)的单个核是2G,那就只能做2G的倍数的服务方案,例如2核总共就是4G,3核就是6G。所以你做requested
 cpu:4400就会找不到合适的Host,找的时候会出现
 cpuFreqGood:false,VM也无法启动。把4400改成2000的倍数试试看\(^o^)/~



 -- 原始邮件 --
 发件人: Du Jun;
 发送时间: 2013年11月19日(星期二) 下午5:36
 收件人: users-cn;
 主题: 无法添加CPU频率大于2GHZ的虚拟机



 Hi,
 Cloudstack4.2貌似有一个bug,就是可以添加CPU频率等于2GHZ的双核的compute offering,但就是无法用这个compute

 offering启动虚拟机。但事实上我宿主机的CPU主频远远大于2GHZ。大家有时间的话帮我看看我的log吧,虽然说有点长,但描述了创建虚拟机的全过程,其中我觉得可疑的cpuOverprovisioningFactor:
 1.0已经红色标记了,有没有人知道原因的帮我解释一下,谢谢啦!:)
 2013-11-19 17:22:32,651 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
 ===END===  10.10.15.18 -- GET

  
 command=deployVirtualMachinezoneId=de6081ca-0f25-44f0-aeec-81d0a844329etemplateId=f4a9b927-247c-429c-a0fe-e660c3f2dd23hypervisor=KVMserviceOfferingId=27287f8b-a488-4350-8b70-e57719f22b3bdiskOfferingId=43feaa9e-f7bd-4805-825a-d8527430ec02networkIds=6d4ca91d-cf83-4d71-9c3c-0b4df343b3bddisplayname=tfxt-222name=tfxt-222response=jsonsessionkey=kYuQ4zESaE%2FqGV%2Bjat8gMC4vI8Y%3D_=1384852954050
 2013-11-19 17:22:32,655 DEBUG [cloud.api.ApiDispatcher]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
 InfrastructureEntity name is:com.cloud.offering.ServiceOffering
 2013-11-19 17:22:32,656 DEBUG [cloud.api.ApiDispatcher]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
 ControlledEntity name is:com.cloud.template.VirtualMachineTemplate
 2013-11-19 17:22:32,659 DEBUG [cloud.api.ApiDispatcher]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
 ControlledEntity name is:com.cloud.network.Network
 2013-11-19 17:22:32,661 DEBUG [cloud.api.ApiDispatcher]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
 InfrastructureEntity name is:com.cloud.offering.DiskOffering
 2013-11-19 17:22:32,678 DEBUG [cloud.network.NetworkModelImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Service
 SecurityGroup is not supported in the network id=204
 2013-11-19 17:22:32,681 DEBUG [cloud.network.NetworkModelImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Service
 SecurityGroup is not supported in the network id=204
 2013-11-19 17:22:32,695 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Deploy
 avoids pods: [], clusters: [], hosts: []
 2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
 DeploymentPlanner allocation algorithm:
 com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_1ff4f9d9@303802fb
 2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Trying
 to allocate a host and storage pools from dc:1, pod:null,cluster:null,
 requested cpu: 4400, requested ram: 2147483648
 2013-11-19 17:22:32,697 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Is ROOT
 volume READY (pool already allocated)?: No
 2013-11-19 17:22:32,697 DEBUG [cloud.deploy.FirstFitPlanner]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
 Searching all possible resources under this Zone: 1
 2013-11-19 17:22:32,698 DEBUG [cloud.deploy.FirstFitPlanner]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Listing
 clusters in order of aggregate capacity, that have (atleast one host with)
 enough CPU and RAM capacity under this Zone: 1
 2013-11-19 17:22:32,700 DEBUG [cloud.deploy.FirstFitPlanner]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Removing
 from the clusterId list these clusters from avoid set: []
 2013-11-19 17:22:32,706 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Checking
 resources in Cluster: 1 under Pod: 1
 2013-11-19 17:22:32,708 DEBUG [allocator.impl.FirstFitAllocator]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
 FirstFitRoutingAllocator) Looking for hosts in dc: 1  pod:1  cluster:1
 2013-11-19 17:22:32,711 DEBUG [allocator.impl.FirstFitAllocator]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
 FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to check for
 allocation: [Host[-3-Routing]]
 2013-11-19 17:22:32,713 DEBUG [allocator.impl.FirstFitAllocator]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
 FirstFitRoutingAllocator) Found 1 hosts for allocation after
 prioritization: [Host[-3-Routing]]
 2013-11-19 17:22:32,713 DEBUG [allocator.impl.FirstFitAllocator]
 (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
 FirstFitRoutingAllocator) Looking for speed=4400Mhz, Ram=2048
 2013-11-19 17:22:32,718 DEBUG [cloud.capacity.CapacityManagerImpl

Re: 回复:无法添加CPU频率大于2GHZ的虚拟机

2013-11-19 Thread Du Jun
Hi ZHOU,
哦?你还看过代码?分享下你看代码的经验吧。刚接触cloudstack,想深入学习下源码但一直不知道从哪里入手。谢谢啦!


Best regards,
DuJun


2013/11/19 Wei ZHOU ustcweiz...@gmail.com

 是这样的。cloudstack里面有判断。其实看看代码就都清楚了。


 2013/11/19 Du Jun dj199...@gmail.com

  经你们提醒,好像这个问题是解释得通的,就是虚拟机CPU每个核的主频必须小于物理机单核的主频。谢谢!恍然大悟!
 
 
  2013/11/19 Du Jun dj199...@gmail.com
 
   Hi Luo,
   你的意思是你可以启动每个核为2GHZ,但核数为n(n=2)的虚拟机?请问你用的cloudstack是什么版本?谢谢!
  
   --
   Best regards,
   DuJun
  
  
   2013/11/19 Xuan Luo 465296...@qq.com
  
   你好!
  
 
 我也遇到过这个问题。我发现如果服务器(物理机)的单个核是2G,那就只能做2G的倍数的服务方案,例如2核总共就是4G,3核就是6G。所以你做requested
   cpu:4400就会找不到合适的Host,找的时候会出现
   cpuFreqGood:false,VM也无法启动。把4400改成2000的倍数试试看\(^o^)/~
  
  
  
   -- 原始邮件 --
   发件人: Du Jun;
   发送时间: 2013年11月19日(星期二) 下午5:36
   收件人: users-cn;
   主题: 无法添加CPU频率大于2GHZ的虚拟机
  
  
  
   Hi,
   Cloudstack4.2貌似有一个bug,就是可以添加CPU频率等于2GHZ的双核的compute
   offering,但就是无法用这个compute
  
  
 
 offering启动虚拟机。但事实上我宿主机的CPU主频远远大于2GHZ。大家有时间的话帮我看看我的log吧,虽然说有点长,但描述了创建虚拟机的全过程,其中我觉得可疑的cpuOverprovisioningFactor:
   1.0已经红色标记了,有没有人知道原因的帮我解释一下,谢谢啦!:)
   2013-11-19 17:22:32,651 DEBUG [cloud.api.ApiServlet]
   (catalina-exec-2:null)
   ===END===  10.10.15.18 -- GET
  
  
 
  
 command=deployVirtualMachinezoneId=de6081ca-0f25-44f0-aeec-81d0a844329etemplateId=f4a9b927-247c-429c-a0fe-e660c3f2dd23hypervisor=KVMserviceOfferingId=27287f8b-a488-4350-8b70-e57719f22b3bdiskOfferingId=43feaa9e-f7bd-4805-825a-d8527430ec02networkIds=6d4ca91d-cf83-4d71-9c3c-0b4df343b3bddisplayname=tfxt-222name=tfxt-222response=jsonsessionkey=kYuQ4zESaE%2FqGV%2Bjat8gMC4vI8Y%3D_=1384852954050
   2013-11-19 17:22:32,655 DEBUG [cloud.api.ApiDispatcher]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   InfrastructureEntity name is:com.cloud.offering.ServiceOffering
   2013-11-19 17:22:32,656 DEBUG [cloud.api.ApiDispatcher]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   ControlledEntity name is:com.cloud.template.VirtualMachineTemplate
   2013-11-19 17:22:32,659 DEBUG [cloud.api.ApiDispatcher]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   ControlledEntity name is:com.cloud.network.Network
   2013-11-19 17:22:32,661 DEBUG [cloud.api.ApiDispatcher]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   InfrastructureEntity name is:com.cloud.offering.DiskOffering
   2013-11-19 17:22:32,678 DEBUG [cloud.network.NetworkModelImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
  Service
   SecurityGroup is not supported in the network id=204
   2013-11-19 17:22:32,681 DEBUG [cloud.network.NetworkModelImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
  Service
   SecurityGroup is not supported in the network id=204
   2013-11-19 17:22:32,695 DEBUG
  [cloud.deploy.DeploymentPlanningManagerImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
  Deploy
   avoids pods: [], clusters: [], hosts: []
   2013-11-19 17:22:32,697 DEBUG
  [cloud.deploy.DeploymentPlanningManagerImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   DeploymentPlanner allocation algorithm:
  
 com.cloud.deploy.FirstFitPlanner_EnhancerByCloudStack_1ff4f9d9@303802fb
   2013-11-19 17:22:32,697 DEBUG
  [cloud.deploy.DeploymentPlanningManagerImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
  Trying
   to allocate a host and storage pools from dc:1, pod:null,cluster:null,
   requested cpu: 4400, requested ram: 2147483648
   2013-11-19 17:22:32,697 DEBUG
  [cloud.deploy.DeploymentPlanningManagerImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]) Is
  ROOT
   volume READY (pool already allocated)?: No
   2013-11-19 17:22:32,697 DEBUG [cloud.deploy.FirstFitPlanner]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   Searching all possible resources under this Zone: 1
   2013-11-19 17:22:32,698 DEBUG [cloud.deploy.FirstFitPlanner]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
  Listing
   clusters in order of aggregate capacity, that have (atleast one host
  with)
   enough CPU and RAM capacity under this Zone: 1
   2013-11-19 17:22:32,700 DEBUG [cloud.deploy.FirstFitPlanner]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   Removing
   from the clusterId list these clusters from avoid set: []
   2013-11-19 17:22:32,706 DEBUG
  [cloud.deploy.DeploymentPlanningManagerImpl]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ])
   Checking
   resources in Cluster: 1 under Pod: 1
   2013-11-19 17:22:32,708 DEBUG [allocator.impl.FirstFitAllocator]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
   FirstFitRoutingAllocator) Looking for hosts in dc: 1  pod:1  cluster:1
   2013-11-19 17:22:32,711 DEBUG [allocator.impl.FirstFitAllocator]
   (Job-Executor-2:job-34 = [ 9b789b8d-055f-4077-a135-481d6d91b831 ]
   FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts

Re: 模板上传报错

2013-11-19 Thread Du Jun
DOWNLOAD_ERROR
我觉得是模版的问题


2013/11/19 Wei ZHOU ustcweiz...@gmail.com

 做的模板有问题吧?


 2013/11/19 wanghaicheng2...@gmail.com wanghaicheng2...@gmail.com

 
  XenServer6.0.2 + CS 3.0.5
 
  上传WinXP 模板  上传能够成功,但是在进行模板install过程时报错,不论上传模板选择的是sp2或sp3都是这样
 
  2013-11-19 17:42:13,276 DEBUG [agent.transport.Request] (Timer-15:null)
  Seq 4-730989509: Sending  { Cmd , MgmtId: 233845175752474, via: 4, Ver:
 v1,
  Flags: 100011,
 
 [{storage.DownloadProgressCommand:{jobId:ba658b68-1af4-4a01-93e4-f1625671ccee,request:GET_STATUS,hvm:true,description:from
  xenserver
 
 32,maxDownloadSizeInBytes:53687091200,id:211,resourceType:TEMPLATE,url:
  http://10.30.18.2/From-Xen-32.vhd
 
 ,format:VHD,accountId:2,name:211-2-e8223f0c-d942-3fe5-bbeb-c2253345947a,secUrl:nfs://
  10.30.18.4/export/secondary1,wait:0}}] }
  2013-11-19 17:42:13,322 DEBUG [agent.transport.Request]
  (AgentManager-Handler-12:null) Seq 4-730989509: Processing:  { Ans: ,
  MgmtId: 233845175752474, via: 4, Ver: v1, Flags: 10,
 
 [{storage.DownloadAnswer:{jobId:ba658b68-1af4-4a01-93e4-f1625671ccee,downloadPct:100,errorString:Failed
  post download script: vhd check of
 
 /mnt/SecStorage/d8852827-dc7e-3121-a7ac-faa842b1bd7b/template/tmpl/2/211/dnld391686155794118139tmp_
 
 failed,downloadStatus:DOWNLOAD_ERROR,downloadPath:/mnt/SecStorage/d8852827-dc7e-3121-a7ac-faa842b1bd7b/template/tmpl/2/211/dnld391686155794118139tmp_,installPath:template/tmpl//2/211//665ba4c8-2cd8-37cc-805f-492c8d81f7e7.vhd,templateSize:0,templatePhySicalSize:0,checkSum:4b58c66065c6e62297fd829db537bb7d,result:false,details:Failed
  post download script: vhd check of
 
 /mnt/SecStorage/d8852827-dc7e-3121-a7ac-faa842b1bd7b/template/tmpl/2/211/dnld391686155794118139tmp_
  failed,wait:0}}] }
 
 
 
  wanghaicheng2...@gmail.com



Re: 回复: Re: 实例一直是Expunging状态,无法删除

2013-11-19 Thread Du Jun
实际上你已经删除实例了,只是CS会将删除的实例保存一段时间。你可以在global
settings里面搜索expuge关键字,设置expuge的时间,比如120。那么,过2分钟就会在UI上面移除虚拟机。


在 2013年11月19日下午4:23,toudsf 18600601...@163.com写道:

 到数据库中,有一个表instance吧好像。把状态变为Stopped然后从画面进行删除。

 2013-11-19



 toudsf



 发件人:王磊 wang...@smartdot.com
 发送时间:2013-11-19 16:18
 主题:回复: Re: 实例一直是Expunging状态,无法删除
 收件人:users-cnusers-cn@cloudstack.apache.org
 抄送:

 没有错误提示,页面显示删除成功,但就是无法彻底删除,一直在Expunging,从实例点进去也一直在灰色页面转圈圈没有任何显示

 实例对应的ip已经释放

 实例对应的存储也无法删除






 发件人:Wei ZHOU ustcweiz...@gmail.com
 发送时间:2013-11-19 16:04
 主题:Re: 实例一直是Expunging状态,无法删除
 收件人:users-cnusers-cn@cloudstack.apache.org
 抄送:

 有什么错误提示吗?
 直接改也问题不大


 在 2013年11月19日上午9:02,王磊 wang...@smartdot.com写道:

  没有正常删除主机(直接把主机格式化重做系统,后在管理端删除的主机和实例),导致实例一直是Expunging状态,无法删除
 
  expunge.delay和expunge.interval都已经改成了600,其他实例都可以正常删除。
 
  应该怎么做,直接到数据库里操作吗?



通过浏览器端无法访问虚拟机

2013-11-17 Thread Du Jun
Hi,
最近碰到一个问题,通过浏览器端无法访问虚拟机,出错信息是“Server Internal Error”。大家有没有遇到类似的情况?提供些思路吧,谢谢!


Fail to communicate with user_vm through web UI

2013-11-17 Thread Du Jun
Hi all,
Have you ever met the problem that fail to commuicate with user_vm througth
web UI(browser),and the error message is Server Internal Error.Please
give me some clues.


Best regards,
Frank


Network problem

2013-11-17 Thread Du Jun
Hi all,
I meet a strange problem that my virtual router can access Internet and my
user_vm can access virtual router but my user_vm can't access Internet.Is
there anyone can provide with some suggestions?Thanks!


---
Best regards,
Frank


Re: Network problem

2013-11-17 Thread Du Jun
Hi Jayapal,
Thank you for your prompt reply,your advice is very useful to me.The
network strategy in Cloudstack4.2 is a bit different from cloudstack4.0's
and I have add firewall rule to Egress rules in my isolated guest
network.My vm can access Internet now.

--
Best regards,
Frank


2013/11/17 Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com

 Which version of cloudstack are you using ?
 Is it isolated network ?

 Did you add egress rules on your network to allow outgoing guest traffic ?

 Thanks,
 Jayapal
 On 17-Nov-2013, at 4:32 PM, Du Jun dj199...@gmail.com
  wrote:

  Hi all,
  I meet a strange problem that my virtual router can access Internet and
 my
  user_vm can access virtual router but my user_vm can't access Internet.Is
  there anyone can provide with some suggestions?Thanks!
 
 
  ---
  Best regards,
  Frank




Re: Network problem

2013-11-17 Thread Du Jun
Hi Jayapal,
By the way,I think cloudstack4.2 CPVM does support lXC very well.How do you
like?

---
Best regards,
Frank


2013/11/17 Du Jun dj199...@gmail.com

 Hi Jayapal,
 Thank you for your prompt reply,your advice is very useful to me.The
 network strategy in Cloudstack4.2 is a bit different from cloudstack4.0's
 and I have add firewall rule to Egress rules in my isolated guest
 network.My vm can access Internet now.

 --
 Best regards,
 Frank


 2013/11/17 Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com

 Which version of cloudstack are you using ?
 Is it isolated network ?

 Did you add egress rules on your network to allow outgoing guest traffic ?

 Thanks,
 Jayapal
 On 17-Nov-2013, at 4:32 PM, Du Jun dj199...@gmail.com
  wrote:

  Hi all,
  I meet a strange problem that my virtual router can access Internet and
 my
  user_vm can access virtual router but my user_vm can't access
 Internet.Is
  there anyone can provide with some suggestions?Thanks!
 
 
  ---
  Best regards,
  Frank





关于虚拟机模板的几个问题

2013-11-15 Thread Du Jun
Hi all,
我有几个问题需要大家帮忙解答下:

1)如何重用系统虚拟机模板来创建我的用户虚拟机?
我尝试过改cloud数据库里面的一些字段,比如:
public=1
exactable=1
type='USER'
但是在创建自己的用户虚拟机的时候还是提示”不能使用系统虚拟机模板创建instance“,怎么破?

2)当我下载完一个模板的时候,UI 上显示我的模板大小字段为”空“,就像这样:
HypervisorLXCTypeUSERReadyYesStatusDownload CompleteSizeExtractableYes
这太不合理了!有人碰到过类似的情况吗?如果知道原因,请告诉我一下,谢谢!

---
Best regards,
DuJun


Some questions about vm template

2013-11-15 Thread Du Jun
Hi all,
I have some questions:

1)How can I use system template to start up my instance?I have update
database cloud.vm_template and set fields:
public=1
exactable=1
type='USER'
However,it doesn't work.The message box says:Can't use system template to
create instance!So,how can I solve it?

2)After my template downloaded completely,it's very strange that the size
field is empty as UI shows,just like that:
HypervisorLXCTypeUSERReadyYesStatusDownload CompleteSizeExtractableYes
  So,is there anyone can help me solve my problems?Thanks in advanced!

--
Best regards,
Frank


Re: Admin User Not Created

2013-11-15 Thread Du Jun
I have met your situation before.Usually,I would:
1)Rebuild database
drop database cloud;
drop database cloud_usage;
cloud-setup-databases cloud:password@localhost --deploy-as=root:password

2)restart agent

3)Reconfigure magement-server
cloud-setup-management

JUST Try it!


Best regards,
Frank


2013/11/15 Robert Gabriel epheme...@gmail.com

 On 14 November 2013 19:12, Sanjay Tripathi sanjay.tripa...@citrix.com
 wrote:

  In the management server logs, can you see if the log says Admin user
  enabled?
  Can you also paste your management server logs using pastebin, that would
  help in narrowing down the problem.
 
  --Sanjay
 
   -Original Message-
   From: Robert Gabriel [mailto:epheme...@gmail.com]
   Sent: Thursday, November 14, 2013 9:58 PM
   To: users@cloudstack.apache.org
   Subject: Re: Admin User Not Created
  
   On 14 November 2013 16:08, Shanker Balan
   shanker.ba...@shapeblue.comwrote:
  
On 14-Nov-2013, at 7:34 pm, Robert Gabriel epheme...@gmail.com
   wrote:
   
 Hi,

 Installed 4.2 release on CentOS-6.4-x86_64.

 Ran the setup commands several times.

 I see in cloud.user and cloud.account the admin user does not
 exist?

 Hence cannot login with admin:password

 Have I missed something?

 Please advise.

 Thank you.
   
Do you have 2GB memory for the management server? If so, I recall a
discussion on the mailing list that the management server's memory
requirements have gone up. The cloudstack-setup-* commands fail to
complete when there is low memory.
   
  
   We have 6GB free RAM.
  
   Is there a way for me to do this manually?
  
   I would really like to test CloudStack.
  
   Thank you.
 

 Thank you.

 Admin user is not enabled.

 http://pastebin.com/XhPDn3HD



Re: Some questions about vm template

2013-11-15 Thread Du Jun
Hi Higginbottom,
I would like to explain my questions again.I mean that I have downloaded
system template completely and it is able to start ssvm and
cpvm.Besides,from UI,I can see the size of system template.However,after I
downloading the template of my own for internet,I  see the size field of my
template is empty!Just like that:
HypervisorLXCTypeUSERReadyYesStatusDownload Complete*Size*It's
strange!Would you please help me explain that?Thanks.


Best regards,
Frank


2013/11/15 Geoff Higginbottom geoff.higginbot...@shapeblue.com

 Frank,

 The system VM template is for system VMs only.

 Please revert your DB changes and allow it to be used to automatically
 create the SSVM  CPVM VMs.

 Once the SSVM has been created it will connect to Secondary Storage and
 will then report back the size of the template.  It will then download the
 default CentOS template which you can use to create user VMs.

 Regards

 Geoff Higginbottom
 CTO / Cloud Architect

 D: +44 20 3603 0542tel:+442036030542 | S: +44 20 3603
 0540tel:+442036030540| M: +447968161581tel:+447968161581

 geoff.higginbot...@shapeblue.commailto:geoff.higginbot...@shapeblue.com
 |www.shapeblue.com | Twitter:@shapebluehttps://twitter.com/#!/shapeblue

 ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS


 On 15 Nov 2013, at 08:17, Du Jun dj199...@gmail.commailto:
 dj199...@gmail.com wrote:

 Hi all,
 I have some questions:

 1)How can I use system template to start up my instance?I have update
 database cloud.vm_template and set fields:
 public=1
 exactable=1
 type='USER'
 However,it doesn't work.The message box says:Can't use system template to
 create instance!So,how can I solve it?

 2)After my template downloaded completely,it's very strange that the size
 field is empty as UI shows,just like that:
 HypervisorLXCTypeUSERReadyYesStatusDownload CompleteSizeExtractableYes
  So,is there anyone can help me solve my problems?Thanks in advanced!

 --
 Best regards,
 Frank
 This email and any attachments to it may be confidential and are intended
 solely for the use of the individual to whom it is addressed. Any views or
 opinions expressed are solely those of the author and do not necessarily
 represent those of Shape Blue Ltd or related companies. If you are not the
 intended recipient of this email, you must neither take any action based
 upon its contents, nor copy or show it to anyone. Please contact the sender
 if you believe you have received this email in error. Shape Blue Ltd is a
 company incorporated in England  Wales. ShapeBlue Services India LLP is a
 company incorporated in India and is operated under license from Shape Blue
 Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
 and is operated under license from Shape Blue Ltd. ShapeBlue is a
 registered trademark.



Re: Starting Cloudstack-specific Tomcat engine cloudstack-management [fail]

2013-11-14 Thread Du Jun
It seems that Your resources provided for cloudstack-management server is
not enough.Remember,sometimes,reboot is the best practice for solving
Tomcat engine start fail.


2013/11/15 5度倾斜 465296...@qq.com

 hi!
 i got a new ubuntuserver 12.04 i386 to install Cloudstack-management
 version 4.2,i followed the guide on cloudstack.org step by step, but the
 tomcat just can't run.
 i checked the log in /var/log/cloudstack/management,there is only a
 setupManagement.log and seems nothing useful.then i went through the
 /var/log/syslog,found pages of error like ubuntuServer1 jsvc.exec[3612]:
 Error occurred during initialization of VM#012Could not reserve enough
 space for object heap.what might be the problem?
 thank you!


Re: CloudStack 4.2 源码搭建遇到问题

2013-11-13 Thread Du Jun
Cannot read the private key file
java.io.FileNotFoundException: C:\Users\yh\.ssh\id_rsa.cloud
好好研究这两句话


2013/11/13 yuhui yu...@inspur.com

 各位,
我在使用源码搭建4.2.0环境的时候(在windows下,使用Cygwin操作),在执行到最后一步:mvn -pl
 :cloud-client jetty:run 后遇到异常,服务能够启动,但是使用admin账号不能登录,
 查找相关资料也没有找到解决方法,日志文件如下,求帮助,谢谢!

 INFO  [utils.component.ComponentContext] (Timer-2:) Configuring
 com.cloud.upgrade.DatabaseIntegrityChecker_EnhancerByCloudStack_52a37170
 INFO  [utils.component.ComponentContext] (Timer-2:) Configuring
 com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231
 INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing
 updateSSLKeyStore
 INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) SSL keystore
 located at
 F:\learn\cloudstack\client\target\cloud-client-ui-4.2.1-SNAPSHOT\WEB-INF\c

 lasses/cloudmanagementserver.keystore
 INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Stored SSL
 keystore to database.
 INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Processing
 updateKeyPairs
 INFO  [cloud.server.ConfigurationServerImpl] (Timer-2:) Systemvm keypairs
 not found in database. Need to store them in the database
 WARN  [utils.script.Script] (Timer-2:) Exception: /bin/bash -c if [ -f
 C:\Users\yh\.ssh\id_rsa.cloud ]; then rm -f C:\Users\yh\.ssh\id_rsa.cloud;
 fi; ssh- keygen -t rsa -N
 '' -f C:\Users\yh\.ssh\id_rsa.cloud -q
 java.io.IOException: Cannot run program /bin/bash: CreateProcess
 error=2, ?
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
 at com.cloud.utils.script.Script.execute(Script.java:183)
 at
 com.cloud.utils.script.Script.runSimpleBashScript(Script.java:481)
 at
 com.cloud.utils.script.Script.runSimpleBashScript(Script.java:471)
 at
 com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:708)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
 at
 com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
 at
 com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)
 Caused by: java.io.IOException: CreateProcess error=2, ?
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.init(ProcessImpl.java:288)
 at java.lang.ProcessImpl.start(ProcessImpl.java:133)
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
 ... 20 more
 ERROR [cloud.server.ConfigurationServerImpl] (Timer-2:) Cannot read the
 private key file
 java.io.FileNotFoundException: C:\Users\yh\.ssh\id_rsa.cloud
 (ϵͳ▒Ҳ▒▒▒ָ·)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:138)
 at
 com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:712)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:292)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:157)
 at
 com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
 at
 com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)
 Exception in thread Timer-2
 com.cloud.utils.exception.CloudRuntimeException: Cannot read the private
 key file
 at
 com.cloud.server.ConfigurationServerImpl.updateKeyPairs(ConfigurationServerImpl.java:716)
 at
 com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231.CGLIB$updateKeyPairs$14(generated)
 at
 com.cloud.server.ConfigurationServerImpl_EnhancerByCloudStack_e594231_FastClassByCloudStack_344edf9f.invoke(generated)
 at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 

Re: CloudStack 4.3功能前瞻

2013-11-12 Thread Du Jun
LXC支持吗?


在 2013年11月12日下午9:46,helloqiner helloqi...@163.com写道:

 为什么一级存储不支持对象存储呢?




 helloqiner

 发件人: linux...@gmail.com
 发送时间: 2013-11-12 16:00
 收件人: cloudstack-users-cn
 主题: CloudStack 4.3功能前瞻
 摘自 http://www.cloudstack-china.org/2013/11/2702.html

 今天CloudStack 4.3已经Feature

 Freeze了,不会再有新功能加入到这个版本里。我们也可以坐下来看看哪些功能是值得期待的。首先,4.3的UI也秉承扁平化设计,看着更加简洁清爽。见下图:


 接下来我们从CloudStack4.3的设计文档出发,来了解一下这个版本的功能有哪些。

 1. 数据库的高可用性
 当前CloudStack的数据库的备份方案基本上是使用Mysql的backup-standby方案,同时只会有一个DB是激活状态,如果遇到问题,
 需要切换到备份服务器,主数据库的稳定性尤其重要。而数据库的高可用则是想达到“双活”的数据库群集效应,也就是同时有多个数据库是主控的。在经过一系列
 调研后,从MariaDB, Percona Xtra DB,
 SkySql和Mysql中选择使用Mysql的双活设置。Mysql的双向复制需要在连接器上配置在Mysql集群中主控服务器宕机后,从Slave服
 务器上读写数据,因此相应的管理端的程序要做相应改变。

 由于数据库相对稳定,并且当前大多数部署规模单节点数据库服务器的I/O都足够应付,而数据库的备份也有相应方案避免数据丢失,新的数据库HA在公有云或企业内部私有云上都会有需求,不过这会增加管理服务器的复杂性,所以我认为这个功能期待指数三星半。

 2. 动态调整计算资源方案
 我经常被问到一个事情:从模板创建的虚机能否将系统盘(根卷)进行扩展?
 之前的回答也一直是不可以。在4.3中,用户创建虚机时不仅可以对根卷进行扩展,还能指定任意的CPU和内存的数量,这比从管理员提前预置的计算方案里选
 择要灵活的多,这个功能不管是在私有云还是公有云都有广泛的需求。中国用户也特别喜欢类似阿里云的根据一定的步长任意设置各种资源的公有云自服务门户。不
 过从设计文档来看,网络带宽还没法任意设置,估计要等以后版本了。
 这个功能很适用,尤其是扩充根卷,这样在制作模板的时候就可以尽可能地小了,当然任意指定CPU和内存也是相当受欢迎的,综合评定这个功能很期待。

 3. 客户虚机支持GPU/vGPU
 现在的物理服务器都有强大的显卡,特别是一些图形工作站的机器,甚至比CPU的计算能力还强,因此,如果可以利用显卡的GPU进行计算,那将会极大的提高
 资源的利用率。另一方面,很多应用对于显示的要求都比较高,比如PhotoShop,AutoCAD以及一些3D游戏等,这些应用很多也都可以在虚机里运
 行,只是很难达到物理机上的效果。为了使性能有所提升,让虚机跳过Hypervisor直连GPU是个不错的想法。
 GPU也属于计算资源,它不像CPU那样,可以超配;也就是说一个拥有4个GPU模块的主机,同时只能为其上的4个虚机提供GPU直连服务。另外,GPU
 编程还是比较复杂的,这里需要Hypervisor的支持,此功能目前在设计里也只会支持XenServer。要使用的朋友还是要特别留意一下。如果考虑
 CloudStack本身的服务器虚拟化而非桌面虚拟化的特性,这种应用上的需求应该不是很广泛。

 4. Hyper-V Server 2012的支持
 Hyper-V是微软的虚拟化技术,记得早在CloudStack4.0版本时期就是要支持Hyper-V,根据国内Hyper-V的市场占有情况,这个
 功能在当时也是非常期待的。但开源就是这样,由于种种原因,这个功能一直到4.2版本里也没能支持。在解决了集成API的许可问题后,目前来看4.3是很
 有可能支持Hyper-V了。
 CloudStack对于Hyper-V的支持将会采用与KVM
 Agent类似的方式,通过WMI来与Hyper-V主机通信,从而控制虚拟机。应该来说新的Hypervisor的支持都是一个很大的功能模块,它要考
 虑整个云平台各Hypervisor的能用功能,还要考虑各个Hypervisor自身的功能特点,这包括网络和存储的功能及硬件的支持。不管怎么说,如
 果CloudStack能支持Hyper-V并稳定运行,那对于它自己无疑是个巨大的加分。相信很多基于CloudStack的ISV都在等待这个功能。

 5. KVM支持Linux本地VxLAN
 CloudStack中高级资源域通常使用VLAN进行隔离(虽然4.2版本以后也支持安全组);VLAN的硬伤是协议本身的限制:=4095的
 VLAN ID。那么当为了隔离每个账户使用一个VLAN ID时,一个资源域最多的账户数就有极大的限制;而实际上你能使用的VLAN
 ID要远小于4095,因为如果真的配置交换机4095个VLAN,那它将疲于奔命。一般情况下,一个数据中心等同于一个资源域,可想而知,大规模部署
 VLAN的限制问题将会显现。VxLAN就是在这个背景下应运而生的。你可以认为VxLAN是VLAN在二层的基础上对报文进行UDP的封装;它最多可支
 持超过1600万个隔离网络,这在一个数据中心里应该是足够用了。由于NTT一直在使用CloudStack,他们这种规模的公司对于VxLAN是有迫切
 的需求的,因此他们的工程师完成了VxLAN的功能并贡献给Apache社区。其功能的实现上也于VLAN相似。在添加资源域时网络设置使用VXLAN隔
 离来宾网络,在设置来宾网络vNet(相当于VLAN ID)范围时,也不用考虑4095的限制。


 由于这个功能是CloudStack的一个功能,它不依赖于像Nexus
 1000v这样支持VxLAN的设备,所以这个功能需要Hypervisor的支持。CloudStack4.3只会先针对KVM的Hypervisor
 支持这个功能,并且Linux的Kernel版本要高于3.7;在配置KVM主机是要使用Linux本地的Birdge而非Open
 vSwitch。由于这些限制,这些功能在4.3里使用应该还是有点复杂度,给四星。

 6. 增强的系统虚拟机升级策略
 系统虚拟机在CloudStack里扮演重要角色,从功能上讲,系统虚拟机分成二级存储系统虚机,控制台系统虚机以及虚拟路由器;它们分别用来完成模板、
 镜像、ISO的下载,基于Web的虚机控制台和客户虚机的网络功能。对于不同的Hypervisor,系统虚机的模板不同,但同一个模板可以配置成不同的
 角色来完成上述三种虚机的功能。如果是小规模的部署,由于系统虚机无状态的特性,可以上传新的模板,破坏掉当前的系统虚拟机,它会自动重建。当然整个过程
 不仅较慢,且问题时有发生;也没有很好的指导文档或常见问题说明。试想大型生产环境里更新系统虚机特别是虚拟路由器还是挺有风险的,因为用户的服务会中
 断,不是逼不得已不会有人想这么做。4.3里将提供新的API用于系统虚机模板的升级,你只要提供相应的信息,要升级的资源域,等信息即可。
 由于
 本身系统虚机是一个相对稳定的单位,从以往来看CloudStack的升级伴随需要系统虚机的升级并不多(4.0到4.2之间的变化需要升级系统虚机),这个功能应该不会有太多人用到。评定三星半。

 7. 重构测试框架Marvin
 如果大家知道Apache
 CloudStack的吉祥物:踩在云中的猴子,知道Cloudmonkey;那么对于Marvin应该不陌生。Cloudmonkey强大的功能是基于
 Marvin实现的,Marvin是CloudStack里用Python实现的测试框架,包括完整的API封装并完成相应的单元测试。这个功能的重构与
 稍后提到的Spring模块化相关。对于API的测试是整个框架的核心,新的设计将采用XML/JSON的方式定义API的发送和响应,针对每个API,
 可以用单独的一组发送/接收脚本处理,这也体现的模块化的思想。另外一个功能是异常和断言,计划使用DSL的形式,由于本人对DSL不了解,无法给出更详
 细的说明,感兴趣的朋友可以在wiki上查找一下:Domain Specification
 Language。不从事CloudStack开发的人对这部分内容可以忽略。

 8. 迁移NFS二级存储到对象存储上
 在CloudStack4.2上已经支持使用对象存储Amazon S3或OpenStack
 Swift作为二级存储,对整个云环境提供模板,快照和ISO的服务。CloudStack在设计上也尽量保证与Amazon
 EC2/S3在API上的兼容,以便企业客户可以无缝地从Amazon转到CloudStack。但是当时缺少一个方便的功能:如何将现有客户环境从
 NFS二级存储迁到对象存储上。这个功能的基本思路是NFS二级存储与对象存储共同存在,新的资源(包括快照,模板等)都会在对象存储上创建;只有读和删
 除操作会在NFS二级存储中执行,模板,卷的复制也只会在对象存储上,这样就保证二级存储在资源域的范围内,而对象存储是整个云环境。这样,存储在对象存
 储的模板,快照等,将不需要跨资源域的复制功能。
 国内对于Amazon的使用并不普遍,对象存储目前也都是在试水阶段,用户使用对象存储的话要单独配置。在4.3里,并没有提供将NFS二级存储的所有内
 容迁移到对象存储的功能,也就是说,用户还是需要乃至NFS的二级存储。对于很大规模的部署,可以考虑一下,对于小规模的建议还是不要等待这个功能。

 9. 模块化Spring标准框架的使用
 如果最一开始CloudStack广受争议的是其模块耦合度太高,新手难以开发,那从4.1到4.2,CloudStack在努力做出改变,而4.3上面
 改的更彻底,要添加新的插件或API也非常容易上手,只要对Spring框架熟悉,你对整个启动和初始化过程会很快上手。而国内熟悉SSH的是相当庞大的
 一群人,CloudStack采用标准化框架会使更多人聚拢在其周围。这一框架的调整带来很多开发的便利,何乐而不为呢?唯一的问题是基于之前
 CloudStack版本(4.0版本或更早)的ISV,如果维护自己的版本,那代码合并的工作量挺大。我稍后也会专门写一篇文章来看下如何在
 CloudStack4.3上开发一个新的API。

 10. 监测虚拟路由器的状态
 前面提到的系统虚拟机的升级实际上可以包含这个功能,我们知道虚拟路由器上很多进程在提供各种各样的服务:dnsmasq用于DHCP,haproxy用
 于LB,Apache
 Web服务器,sshd等。这些服务的监测可以保证:1、实时检测服务的状态;2、收集告警回送给接收器,通常是管理服务器。这些监控软件在发现服务进程
 异常时不仅会发送告警给管理端,还会根据设置对服务进程进行重启操作,并且这些都会在事件服务器里记录。相信以后遇到虚拟路由器的问题会大大减少。

 11. VPC里的VPN远程访问

 在4.2及之前的版本里,虚拟路由器一直提供用户远程VPN的接入操作,在4.3里,使用VPC网络的用户也可以远程接入VPC的虚拟路由器,然后设置网络ACL来控制接入的用户对VPC里某些网络分层(Network
 Tier)或所有的网络层的虚机进行访问。

 12. 报告物理CPU个数

 如果你注意到最开始提供的仪表板截图出现的“Sockets”,那就是指云环境里物理CPU个数的指标。这是一个比较小的功能增强,相信以后每个版本都会丰富这些统计数据。像这样的统计功能,当然是多多益善了。

 13. 虚拟路由器站到站的VPN连接
 

Re: CloudStack 4.3功能前瞻

2013-11-12 Thread Du Jun
Hi,
你从哪里得知CS4.2不支持LXC?


在 2013年11月13日下午2:57,Gavin Lee gavin@gmail.com写道:

 Sorry,实测4.2应该还不支持LXC,虽然安装文档有写。



 2013/11/13 Gavin Lee gavin@gmail.com

  LXC支持的。
  对象存储不适合做VM Instance的存储吧?
 
 
 
  2013/11/12 Du Jun dj199...@gmail.com
 
  LXC支持吗?
 
 
  在 2013年11月12日下午9:46,helloqiner helloqi...@163.com写道:
 
   为什么一级存储不支持对象存储呢?
  
  
  
  
   helloqiner
  
   发件人: linux...@gmail.com
   发送时间: 2013-11-12 16:00
   收件人: cloudstack-users-cn
   主题: CloudStack 4.3功能前瞻
   摘自 http://www.cloudstack-china.org/2013/11/2702.html
  
   今天CloudStack 4.3已经Feature
  
  
 
 Freeze了,不会再有新功能加入到这个版本里。我们也可以坐下来看看哪些功能是值得期待的。首先,4.3的UI也秉承扁平化设计,看着更加简洁清爽。见下图:
  
  
   接下来我们从CloudStack4.3的设计文档出发,来了解一下这个版本的功能有哪些。
  
   1. 数据库的高可用性
  
 当前CloudStack的数据库的备份方案基本上是使用Mysql的backup-standby方案,同时只会有一个DB是激活状态,如果遇到问题,
  
 需要切换到备份服务器,主数据库的稳定性尤其重要。而数据库的高可用则是想达到“双活”的数据库群集效应,也就是同时有多个数据库是主控的。在经过一系列
   调研后,从MariaDB, Percona Xtra DB,
  
 SkySql和Mysql中选择使用Mysql的双活设置。Mysql的双向复制需要在连接器上配置在Mysql集群中主控服务器宕机后,从Slave服
   务器上读写数据,因此相应的管理端的程序要做相应改变。
  
  
 
 由于数据库相对稳定,并且当前大多数部署规模单节点数据库服务器的I/O都足够应付,而数据库的备份也有相应方案避免数据丢失,新的数据库HA在公有云或企业内部私有云上都会有需求,不过这会增加管理服务器的复杂性,所以我认为这个功能期待指数三星半。
  
   2. 动态调整计算资源方案
   我经常被问到一个事情:从模板创建的虚机能否将系统盘(根卷)进行扩展?
  
 之前的回答也一直是不可以。在4.3中,用户创建虚机时不仅可以对根卷进行扩展,还能指定任意的CPU和内存的数量,这比从管理员提前预置的计算方案里选
  
 择要灵活的多,这个功能不管是在私有云还是公有云都有广泛的需求。中国用户也特别喜欢类似阿里云的根据一定的步长任意设置各种资源的公有云自服务门户。不
   过从设计文档来看,网络带宽还没法任意设置,估计要等以后版本了。
   这个功能很适用,尤其是扩充根卷,这样在制作模板的时候就可以尽可能地小了,当然任意指定CPU和内存也是相当受欢迎的,综合评定这个功能很期待。
  
   3. 客户虚机支持GPU/vGPU
  
 现在的物理服务器都有强大的显卡,特别是一些图形工作站的机器,甚至比CPU的计算能力还强,因此,如果可以利用显卡的GPU进行计算,那将会极大的提高
  
 资源的利用率。另一方面,很多应用对于显示的要求都比较高,比如PhotoShop,AutoCAD以及一些3D游戏等,这些应用很多也都可以在虚机里运
   行,只是很难达到物理机上的效果。为了使性能有所提升,让虚机跳过Hypervisor直连GPU是个不错的想法。
  
 GPU也属于计算资源,它不像CPU那样,可以超配;也就是说一个拥有4个GPU模块的主机,同时只能为其上的4个虚机提供GPU直连服务。另外,GPU
  
 编程还是比较复杂的,这里需要Hypervisor的支持,此功能目前在设计里也只会支持XenServer。要使用的朋友还是要特别留意一下。如果考虑
   CloudStack本身的服务器虚拟化而非桌面虚拟化的特性,这种应用上的需求应该不是很广泛。
  
   4. Hyper-V Server 2012的支持
  
 Hyper-V是微软的虚拟化技术,记得早在CloudStack4.0版本时期就是要支持Hyper-V,根据国内Hyper-V的市场占有情况,这个
  
 功能在当时也是非常期待的。但开源就是这样,由于种种原因,这个功能一直到4.2版本里也没能支持。在解决了集成API的许可问题后,目前来看4.3是很
   有可能支持Hyper-V了。
   CloudStack对于Hyper-V的支持将会采用与KVM
  
 Agent类似的方式,通过WMI来与Hyper-V主机通信,从而控制虚拟机。应该来说新的Hypervisor的支持都是一个很大的功能模块,它要考
  
 虑整个云平台各Hypervisor的能用功能,还要考虑各个Hypervisor自身的功能特点,这包括网络和存储的功能及硬件的支持。不管怎么说,如
  
 果CloudStack能支持Hyper-V并稳定运行,那对于它自己无疑是个巨大的加分。相信很多基于CloudStack的ISV都在等待这个功能。
  
   5. KVM支持Linux本地VxLAN
   CloudStack中高级资源域通常使用VLAN进行隔离(虽然4.2版本以后也支持安全组);VLAN的硬伤是协议本身的限制:=4095的
   VLAN ID。那么当为了隔离每个账户使用一个VLAN ID时,一个资源域最多的账户数就有极大的限制;而实际上你能使用的VLAN
  
 ID要远小于4095,因为如果真的配置交换机4095个VLAN,那它将疲于奔命。一般情况下,一个数据中心等同于一个资源域,可想而知,大规模部署
  
 VLAN的限制问题将会显现。VxLAN就是在这个背景下应运而生的。你可以认为VxLAN是VLAN在二层的基础上对报文进行UDP的封装;它最多可支
  
 持超过1600万个隔离网络,这在一个数据中心里应该是足够用了。由于NTT一直在使用CloudStack,他们这种规模的公司对于VxLAN是有迫切
  
 的需求的,因此他们的工程师完成了VxLAN的功能并贡献给Apache社区。其功能的实现上也于VLAN相似。在添加资源域时网络设置使用VXLAN隔
   离来宾网络,在设置来宾网络vNet(相当于VLAN ID)范围时,也不用考虑4095的限制。
  
  
   由于这个功能是CloudStack的一个功能,它不依赖于像Nexus
  
 1000v这样支持VxLAN的设备,所以这个功能需要Hypervisor的支持。CloudStack4.3只会先针对KVM的Hypervisor
   支持这个功能,并且Linux的Kernel版本要高于3.7;在配置KVM主机是要使用Linux本地的Birdge而非Open
   vSwitch。由于这些限制,这些功能在4.3里使用应该还是有点复杂度,给四星。
  
   6. 增强的系统虚拟机升级策略
  
 系统虚拟机在CloudStack里扮演重要角色,从功能上讲,系统虚拟机分成二级存储系统虚机,控制台系统虚机以及虚拟路由器;它们分别用来完成模板、
  
 镜像、ISO的下载,基于Web的虚机控制台和客户虚机的网络功能。对于不同的Hypervisor,系统虚机的模板不同,但同一个模板可以配置成不同的
  
 角色来完成上述三种虚机的功能。如果是小规模的部署,由于系统虚机无状态的特性,可以上传新的模板,破坏掉当前的系统虚拟机,它会自动重建。当然整个过程
  
 不仅较慢,且问题时有发生;也没有很好的指导文档或常见问题说明。试想大型生产环境里更新系统虚机特别是虚拟路由器还是挺有风险的,因为用户的服务会中
   断,不是逼不得已不会有人想这么做。4.3里将提供新的API用于系统虚机模板的升级,你只要提供相应的信息,要升级的资源域,等信息即可。
   由于
  
 
 本身系统虚机是一个相对稳定的单位,从以往来看CloudStack的升级伴随需要系统虚机的升级并不多(4.0到4.2之间的变化需要升级系统虚机),这个功能应该不会有太多人用到。评定三星半。
  
   7. 重构测试框架Marvin
   如果大家知道Apache
  
 CloudStack的吉祥物:踩在云中的猴子,知道Cloudmonkey;那么对于Marvin应该不陌生。Cloudmonkey强大的功能是基于
  
 Marvin实现的,Marvin是CloudStack里用Python实现的测试框架,包括完整的API封装并完成相应的单元测试。这个功能的重构与
  
 稍后提到的Spring模块化相关。对于API的测试是整个框架的核心,新的设计将采用XML/JSON的方式定义API的发送和响应,针对每个API,
  
 可以用单独的一组发送/接收脚本处理,这也体现的模块化的思想。另外一个功能是异常和断言,计划使用DSL的形式,由于本人对DSL不了解,无法给出更详
   细的说明,感兴趣的朋友可以在wiki上查找一下:Domain Specification
   Language。不从事CloudStack开发的人对这部分内容可以忽略。
  
   8. 迁移NFS二级存储到对象存储上
   在CloudStack4.2上已经支持使用对象存储Amazon S3或OpenStack
   Swift作为二级存储,对整个云环境提供模板,快照和ISO的服务。CloudStack在设计上也尽量保证与Amazon
   EC2/S3在API上的兼容,以便企业客户可以无缝地从Amazon转到CloudStack。但是当时缺少一个方便的功能:如何将现有客户环境从
  
 NFS二级存储迁到对象存储上。这个功能的基本思路是NFS二级存储与对象存储共同存在,新的资源(包括快照,模板等)都会在对象存储上创建;只有读和删
  
 除操作会在NFS二级存储中执行,模板,卷的复制也只会在对象存储上,这样就保证二级存储在资源域的范围内,而对象存储是整个云环境。这样,存储在对象存
   储的模板,快照等,将不需要跨资源域的复制功能。
  
 国内对于Amazon的使用并不普遍,对象存储目前也都是在试水阶段,用户使用对象存储的话要单独配置。在4.3里,并没有提供将NFS二级存储的所有内
   容迁移到对象存储的功能,也就是说,用户还是需要乃至NFS的二级存储。对于很大规模的部署,可以考虑一下,对于小规模的建议还是不要等待这个功能。
  
   9. 模块化Spring标准框架的使用
  
 如果最一开始CloudStack广受争议的是其模块耦合度太高,新手难以开发,那从4.1到4.2,CloudStack在努力做出改变,而4.3上面
  
 改的更彻底,要添加新的插件或API也非常容易上手,只要对Spring框架熟悉,你对整个启动和初始化过程会很快上手。而国内熟悉SSH的是相当庞大的
   一群人,CloudStack采用标准化框架会使更多人聚拢在其周围。这一框架的调整带来很多开发的便利,何乐而不为呢?唯一的问题是基于之前
   CloudStack版本(4.0版本或更早)的ISV,如果维护自己的版本,那代码合并的工作量挺大。我稍后也会专门写一篇文章来看下如何在
   CloudStack4.3上开发一个新的API。
  
   10. 监测虚拟路由器的状态
  
 前面提到的系统虚拟机的升级实际上

Re: cloudstack的lxc特性

2013-11-12 Thread Du Jun
Hi,
我看安装文档声称是支持LXC,不过实践过程中发现一直创建不了instance。你说4.2不支持LXC,有具有说服力的依据吗?

--
Best regards,
Frank


在 2013年11月13日下午2:56,Gavin Lee gavin@gmail.com写道:

 你用的什么版本的CloudStack?
 最新Release的4.2的还不支持LXC。


 2013/11/8 Du Jun dj199...@gmail.com

 
 
 大家有使用lxc作为cloudstack的hypervisor来部署cloudstack并成功创建系统虚拟机吗?有的话出来交流下吧。我系统虚拟机模版已经下好了,卡在创建系统虚拟机这一步。
 



 --
 Gavin



Re: fail to start system vm in cloudstack with lxc

2013-11-11 Thread Du Jun
Hi,
How do you create instance?As the concept of LXC is different from
kvm,and it never use the template that contains a complete OS.So,I
think we should change the way we usually think.You can reference
this:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/LXC+Support+in+Cloudstack#

--
Best regards
Frank

2013/11/11, 池原 治 ikeh...@joes.co.jp:
 hi,

 Unable
 to find suitable host

 yes, same situation.


 2013-11-09 09:26:17,330 DEBUG [allocator.impl.FirstFitAllocator]
 (Job-Executor-12:job-12 = [ a2bb39de-bb23-40b1-b06c-3868a45715ff ]
 FirstFitRoutingAllocator) Not considering hosts: [Host[-4-Routing]]  to
 deploy template: Tmpl[203-ISO-203-2-bfeb7b85-13c7-3b11-a273-c92c4431becf as
 they are not HVM enabled

 cloudstack is trying to deploy container as HVM?

 On 2013/11/10, at 18:42, Du Jun dj199...@gmail.com wrote:

 Hi,
I occur the same problem.Do you get the error message that Unable
 to find suitable host when you create instance?

 --
 Best regards,
 Frank

 2013/11/9, 池原 治 ikeh...@joes.co.jp:
 Hi,

 I met same situation.
 I found info from dev-ml,

 On 10/24/2013, 7:00 PM, Chiradeep Vittal wrote:

 So here's what should work
 Create zone
 Add a KVM cluster - add a KVM host - wait for systemvms to start
 Add a LXC cluster - add a LXC host

 it seems to be work about systemvm.

 but I am now stacking to create instance.

 Regards,

 O.Ikehara

 Joe's Cloud Computing





 On 2013/11/09, at 10:21, Du Jun dj199...@gmail.com wrote:

 LXC is not a real hypervisor?As the cloudstack4.2 installation guide
 says,I
 download the system vm template,why cloudstack can't start system vm
 through it?
 If I need KVM to turn them on,would you please tell me more details?

 ---
 Best regards,
 Frank


 2013/11/9 Francois Gaudreault fgaudrea...@cloudops.com

 The SSVM and CPVM won't start on LXC, you need a real hypervisor to
 run
 those. (i.e KVM). Then, it will work.

 Francois


 On 11/8/2013, 9:51 AM, Du Jun wrote:

 Hi,all
I can add host with lxc hypervisor to cloudstack management
 server,however I fail to start system vm.Is there any one can provide
 some
 clues?



 --
 Francois Gaudreault
 Architecte de Solution Cloud | Cloud Solutions Architect
 fgaudrea...@cloudops.com
 514-629-6775
 - - -
 CloudOps
 420 rue Guy
 Montréal QC  H3J 1S6
 www.cloudops.com
 @CloudOps_








cloudstack No suitable hosts found under this Cluster

2013-11-10 Thread Du Jun
我想部署一个多hypervisor的集群,而且已经创建了2个cluster,每个cluster代表一个hypervisor。当我通过模版启动一个instance的时候,并准备将它放到特定hypervisor的cluster的时候,碰到以下错误信息:
2013-11-10 19:44:28,716 DEBUG
[cloud.deploy.DeploymentPlanningManagerImpl] (Job-Executor-5:job-19 =
[ d070b5ba-f342-4252-9137-4d2c1b19eca6 ]) No suitable hosts found
under this Cluster: 2
2013-11-10 19:44:28,718 DEBUG
[cloud.deploy.DeploymentPlanningManagerImpl] (Job-Executor-5:job-19 =
[ d070b5ba-f342-4252-9137-4d2c1b19eca6 ]) Could not find suitable
Deployment Destination for this VM under any clusters, returning.
2013-11-10 19:44:28,718 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-5:job-19 = [ d070b5ba-f342-4252-9137-4d2c1b19eca6 ])
Searching all possible resources under this Zone: 1
2013-11-10 19:44:28,718 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-5:job-19 = [ d070b5ba-f342-4252-9137-4d2c1b19eca6 ])
Listing clusters in order of aggregate capacity, that have (atleast
one host with) enough CPU and RAM capacity under this Zone: 1

各位帮我分析分析是什么原因?

---
Best regards,
DuJun


not HVM enabled?

2013-11-10 Thread Du Jun
When I try to deploy an instance with my template onto a LXC
hypervisor host,I get the error message:

2013-11-10 20:30:11,319 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-5:job-19 = [ d070b5ba-f342-4252-9137-4d2c1b19eca6 ]
FirstFitRoutingAllocator) Not considering hosts: [Host[-4-Routing]]
to deploy template:
Tmpl[201-TAR-201-2-7444dd2e-2fe3-347b-a9cc-97ba7bdca211 as they are
not HVM enabled

what does that mean?Any suggestion will be appreciated!

-
Best regards,
Frank


cloudstack No suitable hosts found under this Cluster

2013-11-10 Thread Du Jun
我想部署一个多hypervisor的集群,而且已经创建了2个cluster,每个cluster代表一个hypervisor。当我通过模版启动一个instance的时候,并准备将它放到特定hypervisor的cluster的时候,碰到以下错误信息:
2013-11-10 19:44:28,716 DEBUG
[cloud.deploy.DeploymentPlanningManagerImpl] (Job-Executor-5:job-19 =
[ d070b5ba-f342-4252-9137-4d2c1b19eca6 ]) No suitable hosts found
under this Cluster: 2
2013-11-10 19:44:28,718 DEBUG
[cloud.deploy.DeploymentPlanningManagerImpl] (Job-Executor-5:job-19 =
[ d070b5ba-f342-4252-9137-4d2c1b19eca6 ]) Could not find suitable
Deployment Destination for this VM under any clusters, returning.
2013-11-10 19:44:28,718 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-5:job-19 = [ d070b5ba-f342-4252-9137-4d2c1b19eca6 ])
Searching all possible resources under this Zone: 1
2013-11-10 19:44:28,718 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-5:job-19 = [ d070b5ba-f342-4252-9137-4d2c1b19eca6 ])
Listing clusters in order of aggregate capacity, that have (atleast
one host with) enough CPU and RAM capacity under this Zone: 1

各位帮我分析分析是什么原因?

---
Best regards,
DuJun


not HVM enabled?

2013-11-10 Thread Du Jun
When I try to deploy an instance with my template onto a LXC
hypervisor host,I get the error message:

2013-11-10 20:30:11,319 DEBUG [allocator.impl.FirstFitAllocator]
(Job-Executor-5:job-19 = [ d070b5ba-f342-4252-9137-4d2c1b19eca6 ]
FirstFitRoutingAllocator) Not considering hosts: [Host[-4-Routing]]
to deploy template:
Tmpl[201-TAR-201-2-7444dd2e-2fe3-347b-a9cc-97ba7bdca211 as they are
not HVM enabled

what does that mean?Any suggestion will be appreciated!

-
Best regards,
Frank


如何添加lxc的host到cloudstack

2013-11-08 Thread Du Jun
大家知道怎样添加lxc的host到cloudstack吗?


cloudstack的lxc特性

2013-11-08 Thread Du Jun
大家有使用lxc作为cloudstack的hypervisor来部署cloudstack并成功创建系统虚拟机吗?有的话出来交流下吧。我系统虚拟机模版已经下好了,卡在创建系统虚拟机这一步。


Re: API credential failed

2013-11-08 Thread Du Jun
Thank you for your prompt reply! I have solved the problem.However,I orrur
a new problem recently.
As LXC is fashion,and cloudstack 4.2 support LXC hypervisor.So,I want to
try add host with LXC hypervisor to cloudstack4.2.I work as the guide
says,edit file: /etc/cloudstack/agent/agent.properties And Set the Agent to
run in LXC mode: hypervisor.type=lxc However,It doesn't work!Can you
provide any clude?


2013/11/7 Sebastien Goasguen run...@gmail.com


 On Nov 7, 2013, at 2:15 AM, Du Jun dj199...@gmail.com wrote:

  Hi,
 I have both apikey and secretkey,and I use the following code to
  generate signature:
 
  package test;
  import javax.crypto.Mac;
  import javax.crypto.spec.SecretKeySpec;
  import org.apache.commons.codec.binary.Base64;
 
  public class Sign {
  public static void main(String args[]) throws Exception{
  String
 
 apikey=zr_w86-A-2TsaDzgEUbJZ1PNICWv8L4H_ywHcIwgHX186nAbpHVn4c-FLuAbRjjzVt9r890HE-me_lNDc7yxMw;
  String request=(apikey=+apikey+command=listZones).toLowerCase();
  String
 
 secret=w4ZW_kQeEtmfbLOeBz6Pj39iHUdqlpnfYd62o7bSn3PK7uLElQHE0nCLLRU8i3fu72-vC1JxzmvuEEMxt6WwVQ;
  Mac mac = Mac.getInstance(HmacSHA1);
  SecretKeySpec keySpec = new
  SecretKeySpec(secret.getBytes(UTF-8),HmacSHA1);
  mac.init(keySpec);
  mac.update(request.getBytes());
  byte[] encryptedBytes = mac.doFinal();
  System.out.println(Base64.encodeBase64String(encryptedBytes)); //result
  }
  }
 
  I think my signature is correct.Then I generate complete URL:
 
 http://172.17.4.104:8080/client/api?command=listZonesapiKey=zr_w86-A-2TsaDzgEUbJZ1PNICWv8L4H_ywHcIwgHX186nAbpHVn4c-FLuAbRjjzVt9r890HE-me_lNDc7yxMwsignature=jS94Qv63W1h9QGS23zPg3kMIU7o
 

 I think it's 'apikey' lowercase

 if that's not the issue, then check your url encoding of all the strings…

 See:
 https://github.com/runseb/cloudstack-books/blob/master/en/developer.markdown

 I wrote an example in python.


  However,I get the error message as show below:
  listzonesresponse cloud-stack-version=4.0.2.20130501180711
  errorcode401/errorcode
  errortextunable to verify user credentials/errortext
  /listzonesresponse
 
  I just don't know why?Any reply will be appreciated!
 
  -
  Best regards,
 
  Frank




fail to start system vm in cloudstack with lxc

2013-11-08 Thread Du Jun
Hi,all
I can add host with lxc hypervisor to cloudstack management
server,however I fail to start system vm.Is there any one can provide some
clues?


Re: fail to start system vm in cloudstack with lxc

2013-11-08 Thread Du Jun
LXC is not a real hypervisor?As the cloudstack4.2 installation guide says,I
download the system vm template,why cloudstack can't start system vm
through it?
If I need KVM to turn them on,would you please tell me more details?

---
Best regards,
Frank


2013/11/9 Francois Gaudreault fgaudrea...@cloudops.com

 The SSVM and CPVM won't start on LXC, you need a real hypervisor to run
 those. (i.e KVM). Then, it will work.

 Francois


 On 11/8/2013, 9:51 AM, Du Jun wrote:

 Hi,all
  I can add host with lxc hypervisor to cloudstack management
 server,however I fail to start system vm.Is there any one can provide some
 clues?



 --
 Francois Gaudreault
 Architecte de Solution Cloud | Cloud Solutions Architect
 fgaudrea...@cloudops.com
 514-629-6775
 - - -
 CloudOps
 420 rue Guy
 Montréal QC  H3J 1S6
 www.cloudops.com
 @CloudOps_




API credential failed

2013-11-06 Thread Du Jun
Hi,
I have both apikey and secretkey,and I use the following code to
generate signature:

package test;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;

public class Sign {
public static void main(String args[]) throws Exception{
String
apikey=zr_w86-A-2TsaDzgEUbJZ1PNICWv8L4H_ywHcIwgHX186nAbpHVn4c-FLuAbRjjzVt9r890HE-me_lNDc7yxMw;
String request=(apikey=+apikey+command=listZones).toLowerCase();
String
secret=w4ZW_kQeEtmfbLOeBz6Pj39iHUdqlpnfYd62o7bSn3PK7uLElQHE0nCLLRU8i3fu72-vC1JxzmvuEEMxt6WwVQ;
Mac mac = Mac.getInstance(HmacSHA1);
SecretKeySpec keySpec = new
SecretKeySpec(secret.getBytes(UTF-8),HmacSHA1);
mac.init(keySpec);
mac.update(request.getBytes());
byte[] encryptedBytes = mac.doFinal();
System.out.println(Base64.encodeBase64String(encryptedBytes)); //result
}
}

I think my signature is correct.Then I generate complete URL:
http://172.17.4.104:8080/client/api?command=listZonesapiKey=zr_w86-A-2TsaDzgEUbJZ1PNICWv8L4H_ywHcIwgHX186nAbpHVn4c-FLuAbRjjzVt9r890HE-me_lNDc7yxMwsignature=jS94Qv63W1h9QGS23zPg3kMIU7o

However,I get the error message as show below:
listzonesresponse cloud-stack-version=4.0.2.20130501180711
errorcode401/errorcode
errortextunable to verify user credentials/errortext
/listzonesresponse

I just don't know why?Any reply will be appreciated!

-
Best regards,

Frank


Fail to register iso template

2013-10-27 Thread Du Jun
Hi All,

Now I can start 2 system VMs in cloudstack 4.0. However, it comes
back to the old problem that I am unable to register iso or template.
This very strange that there are two system VMs displaying on UI but I
get the log infomation:

2013-10-26 10:52:36,894 DEBUG
[storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is not ready to launch secondary storage VM yet
2013-10-26 10:52:36,979 DEBUG
[cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
Zone 1 is not ready to launch console proxy yet
2013-10-26 10:52:37,370 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 routers.
2013-10-26 10:52:47,345 DEBUG [cloud.server.StatsCollector]
(StatsCollector-1:null) HostStatsCollector is running...
2013-10-26 10:52:47,366 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) StorageCollector is running...
2013-10-26 10:52:47,369 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) There is no secondary storage VM for secondary
storage host nfs://172.17.4.102/export/secondary

Any help will be appreciate!

---

Best regards,

Frank