Template Upload options

2013-11-20 Thread Jake G.
HI all,

I am trying to upload a Windows 2008 R2 64-bit qcow2 file into templates and 
way at the bottom of the add template window is a check box for Routing.

Does anyone know what this is? It is not in the official documentation.
Thank you,
Jake

Re: KVM in advanced zone - some open questions

2013-11-20 Thread Shanker Balan
Comments inline.

On 20-Nov-2013, at 9:28 pm, Abu Bashiri  wrote:

> Gents,
>
> i plan to implement CS 4.2 as a dev environment. I already had a look at the
> documentation but I still have some unanswered questions. I really
> appreciate any help.

Glad to hear you have chosen ACS for your dev environment.


> I have three centos 6.3 KVM hosts. One for the management server and the
> database and the other two hosts are for the VMs.
>
> My questions are:
>
> 1.   Are there a guide for the necessary preparation steps for KVM? Or
> is it just really a plain yum install of the kvm components and then a
> installation of the agent?
>

Plain yum install along with the OS setup, networking changes and libvirt/qemu
configuration which is mentioned in the host installation docs.

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html-single/Installation_Guide/index.html#hypervisor-kvm-install-flow


> 2.   Networking
>
> My physical servers have only two interfaces. I already configured a bond
> (mode 4 - LACP) for them. As already mentioned, I plan to use advanced
> networking. For that I configured three VLANs / subnetworks. The management
> network is set to untagged and is direct connected to the physical bond.

Ok.

> 1.   Storage bond0.100
>
> As far as I understand, that's outside of CS management. It just has to be
> present so that the mount of NFS export is working? Is this right? Need I a
> bridge for this VLAN?


CloudStack uses traffic labels to determine the NIC to use. In the case of KVM,
the traffic label map to the “cloudbr” interface.

So, create “cloudbr0” and which maps to the bond0 interface. Since you have only
one bond, all traffic labels would point to “cloudbr0” in your case.

> 2.   Public bond0.40
>
> So as far as I understand, I need Guest as well but iam not sure if I need a
> bridge? If iam right, cloudstack will create the bridges for guest networks?
>

Yes, cloudstack will create the bridge for the guests. Once you have specific
the traffic label (cloudbr0 in your case since you have only one bond), the
bridges will get created to bond0.

> And what is the right order? Install the agent and then add to cloudstack or
> shall I first configure the bridges, then set them in agent.properties and
> then add it to CS?
>

First configure your LACP, bond0 and cloudbr0. Once your networking is
ready, add the host to ACS.


> Sorry for the stupid questions.


Hth.

Regards.
@shankerbalan

--
@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: Basic Network - change bridge for SSVM SAN NFS communication

2013-11-20 Thread Shanker Balan
Comments inline.

On 21-Nov-2013, at 12:19 am, Magnus Janson  wrote:

> Hi Folks,
>
> I'm using CS 4.2 with KVM and basic network.
>
> This mail is pretty long, but my questions is quite short. I'm trying to
> figure out how I could change which bridge my SSVM uses when it to connects
> to my SAN server.
>

Thats what cloudstack traffic labels are for. 
http://shapeblue.com/cloudstack/understanding-cloudstacks-physical-networking-architecture/
 should be a useful read.


> Including some of my thoughts and details below for this
> -
> When the agent creates the SSVM it seems to be using the default gateway
> route for configuring all of the SSVM network interfaces.

Did you specify the “storage” traffic while creating a zone?

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html-single/Installation_Guide/index.html#basic-zone-network-traffic-types


>
> This causes my SSVM not to be able to connect to my SAN server. As the SAN
> server is on a completely different network (dedicated network
> segment&switch).
>
> My agent.properties file contains the following rows:
> guest.network.device=cloudbr0
> private.network.device=cloudbr0
> public.network.device=cloudbr0
>
> I would like my storage network communication to go over cloudbr1, which is
> my agent network interface for my SAN network.
>
> I'm very unsure about which, if any of these, that I should change. And I'm
> also unsure if changing them would solve this issue.
>
> Of course I could go ahead and do some manual NIC and route changes over at
> my SSVM but that feels like the wrong solution to this issue.
>
>
>
> 
> Agent interfaces
> 
> cloudbr0 - addr: 10.100.38.150 mask:255.255.255.128
> cloudbr1 - addr: 172.30.11.200 mask:255.255.255.0
> cloud0 - inet addr:169.254.0.1 mask:255.255.0.0
> eth0 - bridged to cloudbr0
> eth1 - bridge to cloudbr1
>
> 
> Agent default route
> 
> $ip route|grep default
> default via 10.100.38.129 dev cloudbr0
>
> 
> SSVM network interfaces
> 
> root@s-1-VM:~# ifconfig -a
> eth0  Link encap:Ethernet  HWaddr 0e:00:a9:fe:00:f7
>  inet addr:169.254.0.247  Bcast:169.254.255.255  Mask:255.255.0.0
>
> eth1  Link encap:Ethernet  HWaddr 06:11:d0:00:00:02
>  inet addr:10.100.38.131  Bcast:10.100.38.255  Mask:255.255.255.128
>
> eth2  Link encap:Ethernet  HWaddr 06:f5:ce:00:00:07
>  inet addr:10.100.38.136  Bcast:10.100.38.255  Mask:255.255.255.128
>
> eth3  Link encap:Ethernet  HWaddr 06:df:14:00:00:01
>  inet addr:10.100.38.130  Bcast:10.100.38.255  Mask:255.255.255.128
>
> 
> Manual mount test from SSVM, will reach timeout as it can't route to the
> destination ip
> 
> root@s-1-VM:/tmp# mount -v -t nfs 172.30.11.20:/mnt/vg2/vol2/nfs2 /tmp/test
> mount.nfs: timeout set for Wed Nov 20 16:19:50 2013
> mount.nfs: trying text-based options
> 'vers=4,addr=172.30.11.20,clientaddr=10.100.38.131'


Once the storage traffic label is assigned, the basic zone
creation wizard will require you to provide the storage
traffic details. See http://imgur.com/v4sVygz


--
@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: Bare Metal Docs for 4.2.0?

2013-11-20 Thread Jessica Tomechak
Radhika, thanks for the cc. To configm, Jason, yes, you have found the bare 
metal documentation that we have provided in the Citrix guides. It might not 
yet have been committed to the Apache version of the guides, but afaik it 
functions the same whether you're in Apache or the Citrix product.

Jessica T.

From: Radhika Puthiyetath
Sent: Monday, November 18, 2013 8:56 PM
To: users@cloudstack.apache.org
Cc: Jessica Tomechak
Subject: RE: Bare Metal Docs for 4.2.0?

Hi,

Copying Jessica, the contributor of this feature documentation  to answer your 
query.

-Radhika

-Original Message-
From: Jason Davis [mailto:scr...@gmail.com]
Sent: Wednesday, October 02, 2013 9:11 PM
To: users
Subject: Bare Metal Docs for 4.2.0?

Looking at the release notes it looks like Bare Metal guests are back from 
their hiatus!

Looking around however, I'm not seeing any documentation for this as of yet. Is 
there any documentation available and if so, where can it be found as it's not 
on the official documentation portion of the website.


Re: How do I delete destroyed instances?

2013-11-20 Thread Kirk Jantzer
it's expunge, not expurge


Regards,

Kirk Jantzer
http://about.me/kirkjantzer


On Wed, Nov 20, 2013 at 2:18 PM, Fariborz Navidan wrote:

> Hi.
> Search does not find expurge settings!
>
>
> On Wed, Nov 20, 2013 at 10:40 PM, Fariborz Navidan  >wrote:
>
> > Thanks.
> >
> >
> > On Wed, Nov 20, 2013 at 10:36 PM, Kirk Jantzer  >wrote:
> >
> >> Welcome to CloudStack! They will expunge in time, however you can change
> >> how soon they get expunged by altering the following global settings:
> >> expunge.delay - Determines how long (in seconds) to wait before actually
> >> expunging destroyed vm. The default value = the default value of
> >> expunge.interval
> >> expunge.interval - The interval (in seconds) to wait before running the
> >> expunge thread.
> >>
> >>
> >> Regards,
> >>
> >> Kirk Jantzer
> >> http://about.me/kirkjantzer
> >>
> >>
> >> On Wed, Nov 20, 2013 at 1:58 PM, Fariborz Navidan <
> mdvlinqu...@gmail.com
> >> >wrote:
> >>
> >> > Hi.
> >> >
> >> > When destroy an instance it does not delete it. How do I delete
> >> destroyed
> >> > instances?
> >> >
> >> > Thanks.
> >> >
> >> > --
> >> > Fariborz Navidan
> >> > Sales & Technical Manager
> >> > Shetab Rayan Limited.
> >> > www.shetabrayan.com
> >> >
> >>
> >
> >
> >
> > --
> > Fariborz Navidan
> > Sales & Technical Manager
> > Shetab Rayan Limited.
> > www.shetabrayan.com
> >
>
>
>
> --
> Fariborz Navidan
> Sales & Technical Manager
> Shetab Rayan Limited.
> www.shetabrayan.com
>


Re: How do I delete destroyed instances?

2013-11-20 Thread Fariborz Navidan
Hi.
Search does not find expurge settings!


On Wed, Nov 20, 2013 at 10:40 PM, Fariborz Navidan wrote:

> Thanks.
>
>
> On Wed, Nov 20, 2013 at 10:36 PM, Kirk Jantzer wrote:
>
>> Welcome to CloudStack! They will expunge in time, however you can change
>> how soon they get expunged by altering the following global settings:
>> expunge.delay - Determines how long (in seconds) to wait before actually
>> expunging destroyed vm. The default value = the default value of
>> expunge.interval
>> expunge.interval - The interval (in seconds) to wait before running the
>> expunge thread.
>>
>>
>> Regards,
>>
>> Kirk Jantzer
>> http://about.me/kirkjantzer
>>
>>
>> On Wed, Nov 20, 2013 at 1:58 PM, Fariborz Navidan > >wrote:
>>
>> > Hi.
>> >
>> > When destroy an instance it does not delete it. How do I delete
>> destroyed
>> > instances?
>> >
>> > Thanks.
>> >
>> > --
>> > Fariborz Navidan
>> > Sales & Technical Manager
>> > Shetab Rayan Limited.
>> > www.shetabrayan.com
>> >
>>
>
>
>
> --
> Fariborz Navidan
> Sales & Technical Manager
> Shetab Rayan Limited.
> www.shetabrayan.com
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


Re: How do I delete destroyed instances?

2013-11-20 Thread Fariborz Navidan
Thanks.


On Wed, Nov 20, 2013 at 10:36 PM, Kirk Jantzer wrote:

> Welcome to CloudStack! They will expunge in time, however you can change
> how soon they get expunged by altering the following global settings:
> expunge.delay - Determines how long (in seconds) to wait before actually
> expunging destroyed vm. The default value = the default value of
> expunge.interval
> expunge.interval - The interval (in seconds) to wait before running the
> expunge thread.
>
>
> Regards,
>
> Kirk Jantzer
> http://about.me/kirkjantzer
>
>
> On Wed, Nov 20, 2013 at 1:58 PM, Fariborz Navidan  >wrote:
>
> > Hi.
> >
> > When destroy an instance it does not delete it. How do I delete destroyed
> > instances?
> >
> > Thanks.
> >
> > --
> > Fariborz Navidan
> > Sales & Technical Manager
> > Shetab Rayan Limited.
> > www.shetabrayan.com
> >
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


RE: How do I delete destroyed instances?

2013-11-20 Thread Eric Tykwinski
Fariborz,

Check out your Global Settings for "expunge.delay" and the
"expunge.interval".
expunge.delay   Determines how long (in seconds) to wait before actually
expunging destroyed vm. The default value = the default value of
expunge.interval
expunge.intervalThe interval (in seconds) to wait before running the
expunge thread. 

-Original Message-
From: Fariborz Navidan [mailto:mdvlinqu...@gmail.com] 
Sent: Wednesday, November 20, 2013 1:59 PM
To: users@cloudstack.apache.org
Subject: How do I delete destroyed instances?

Hi.

When destroy an instance it does not delete it. How do I delete destroyed
instances?

Thanks.

--
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com




Re: How do I delete destroyed instances?

2013-11-20 Thread Kirk Jantzer
Welcome to CloudStack! They will expunge in time, however you can change
how soon they get expunged by altering the following global settings:
expunge.delay - Determines how long (in seconds) to wait before actually
expunging destroyed vm. The default value = the default value of
expunge.interval
expunge.interval - The interval (in seconds) to wait before running the
expunge thread.


Regards,

Kirk Jantzer
http://about.me/kirkjantzer


On Wed, Nov 20, 2013 at 1:58 PM, Fariborz Navidan wrote:

> Hi.
>
> When destroy an instance it does not delete it. How do I delete destroyed
> instances?
>
> Thanks.
>
> --
> Fariborz Navidan
> Sales & Technical Manager
> Shetab Rayan Limited.
> www.shetabrayan.com
>


How do I delete destroyed instances?

2013-11-20 Thread Fariborz Navidan
Hi.

When destroy an instance it does not delete it. How do I delete destroyed
instances?

Thanks.

-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


Creating unattend.xml answer file for windows 2008 template

2013-11-20 Thread Fariborz Navidan
Hi.
It is not fully related to CS. However I ask it here. I'm trying to create
answer file for creating windows 2008 R2 template. SIM is unable to create
catalog for image file copied from DVD. I have downloaded the right AIK.-

Please asvise.
TIA

-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


Basic Network - change bridge for SSVM SAN NFS communication

2013-11-20 Thread Magnus Janson
Hi Folks,

I'm using CS 4.2 with KVM and basic network.

This mail is pretty long, but my questions is quite short. I'm trying to
figure out how I could change which bridge my SSVM uses when it to connects
to my SAN server.

Including some of my thoughts and details below for this
-
When the agent creates the SSVM it seems to be using the default gateway
route for configuring all of the SSVM network interfaces.

This causes my SSVM not to be able to connect to my SAN server. As the SAN
server is on a completely different network (dedicated network
segment&switch).

My agent.properties file contains the following rows:
guest.network.device=cloudbr0
private.network.device=cloudbr0
public.network.device=cloudbr0

I would like my storage network communication to go over cloudbr1, which is
my agent network interface for my SAN network.

I'm very unsure about which, if any of these, that I should change. And I'm
also unsure if changing them would solve this issue.

Of course I could go ahead and do some manual NIC and route changes over at
my SSVM but that feels like the wrong solution to this issue.




Agent interfaces

cloudbr0 - addr: 10.100.38.150 mask:255.255.255.128
cloudbr1 - addr: 172.30.11.200 mask:255.255.255.0
cloud0 - inet addr:169.254.0.1 mask:255.255.0.0
eth0 - bridged to cloudbr0
eth1 - bridge to cloudbr1


Agent default route

$ip route|grep default
default via 10.100.38.129 dev cloudbr0


SSVM network interfaces

root@s-1-VM:~# ifconfig -a
eth0  Link encap:Ethernet  HWaddr 0e:00:a9:fe:00:f7
  inet addr:169.254.0.247  Bcast:169.254.255.255  Mask:255.255.0.0

eth1  Link encap:Ethernet  HWaddr 06:11:d0:00:00:02
  inet addr:10.100.38.131  Bcast:10.100.38.255  Mask:255.255.255.128

eth2  Link encap:Ethernet  HWaddr 06:f5:ce:00:00:07
  inet addr:10.100.38.136  Bcast:10.100.38.255  Mask:255.255.255.128

eth3  Link encap:Ethernet  HWaddr 06:df:14:00:00:01
  inet addr:10.100.38.130  Bcast:10.100.38.255  Mask:255.255.255.128


Manual mount test from SSVM, will reach timeout as it can't route to the
destination ip

root@s-1-VM:/tmp# mount -v -t nfs 172.30.11.20:/mnt/vg2/vol2/nfs2 /tmp/test
mount.nfs: timeout set for Wed Nov 20 16:19:50 2013
mount.nfs: trying text-based options
'vers=4,addr=172.30.11.20,clientaddr=10.100.38.131'


Best Regards,
Magnus


Re: VM created from template has no network access

2013-11-20 Thread Fariborz Navidan
I use KVM. It seems CloudStack is not yet fully  compatible with KVM.


On Wed, Nov 20, 2013 at 10:09 PM, Fariborz Navidan wrote:

> Hi
> These are two separate issues however now I see VMs are reachable even whe
> iptables is running. I don't actually know haow ficed autpmatically.!
>
> I logged into the new VM created from template and check net config. The
> ifcfg-eth0 is containing the exactly the same setting as the VM from which
> template created. Its like that it has copied the exactly the same virtual
> disk.Even thid df -h shows wrong thewrong disk size.
>
> CloudStack sounds too bugous. It is more than two months I'm for the
> server but could not yet get the system up and running.
>
>
> On Wed, Nov 20, 2013 at 9:24 PM, Carlos Reategui wrote:
>
>> I'm assuming from your other email that the problem was the firewall on
>> the
>> hosts.
>>
>> On Wed, Nov 20, 2013 at 8:56 AM, Fariborz Navidan > >wrote:
>>
>> > On the VM from which template is created, ONBOOT="yes" is available.
>> > Is CloudStack capable of configuring new VMs created from a template
>> with
>> > assigned IP? Is it aware of what to perform on new VM?
>> >
>> >
>> > On Wed, Nov 20, 2013 at 7:45 PM, Carlos Reátegui > > >wrote:
>> >
>> > > Make sure to set onboot=yes in ifcfg-eth0 in your template.
>> > >
>> > > > On Nov 20, 2013, at 7:37 AM, Fariborz Navidan <
>> mdvlinqu...@gmail.com>
>> > > wrote:
>> > > >
>> > > > Hi.
>> > > >
>> > > > I have created a CentOS 6.4 template from a VM. When create a VM
>> using
>> > > this
>> > > > template, network settings are not applied to it and it starts with
>> no
>> > > > network access and as a result password script cannot be run.
>> > > >
>> > > > I have created the template from the VM's volume.
>> > > >
>> > > > Please advise.
>> > > > TIA
>> > >
>> >
>> >
>> >
>> > --
>> > Fariborz Navidan
>> > Sales & Technical Manager
>> > Shetab Rayan Limited.
>> > www.shetabrayan.com
>> >
>>
>
>
>
> --
> Fariborz Navidan
> Sales & Technical Manager
> Shetab Rayan Limited.
> www.shetabrayan.com
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


Re: VM created from template has no network access

2013-11-20 Thread Fariborz Navidan
Hi
These are two separate issues however now I see VMs are reachable even whe
iptables is running. I don't actually know haow ficed autpmatically.!

I logged into the new VM created from template and check net config. The
ifcfg-eth0 is containing the exactly the same setting as the VM from which
template created. Its like that it has copied the exactly the same virtual
disk.Even thid df -h shows wrong thewrong disk size.

CloudStack sounds too bugous. It is more than two months I'm for the server
but could not yet get the system up and running.


On Wed, Nov 20, 2013 at 9:24 PM, Carlos Reategui wrote:

> I'm assuming from your other email that the problem was the firewall on the
> hosts.
>
> On Wed, Nov 20, 2013 at 8:56 AM, Fariborz Navidan  >wrote:
>
> > On the VM from which template is created, ONBOOT="yes" is available.
> > Is CloudStack capable of configuring new VMs created from a template with
> > assigned IP? Is it aware of what to perform on new VM?
> >
> >
> > On Wed, Nov 20, 2013 at 7:45 PM, Carlos Reátegui  > >wrote:
> >
> > > Make sure to set onboot=yes in ifcfg-eth0 in your template.
> > >
> > > > On Nov 20, 2013, at 7:37 AM, Fariborz Navidan  >
> > > wrote:
> > > >
> > > > Hi.
> > > >
> > > > I have created a CentOS 6.4 template from a VM. When create a VM
> using
> > > this
> > > > template, network settings are not applied to it and it starts with
> no
> > > > network access and as a result password script cannot be run.
> > > >
> > > > I have created the template from the VM's volume.
> > > >
> > > > Please advise.
> > > > TIA
> > >
> >
> >
> >
> > --
> > Fariborz Navidan
> > Sales & Technical Manager
> > Shetab Rayan Limited.
> > www.shetabrayan.com
> >
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


Re: VM created from template has no network access

2013-11-20 Thread Carlos Reategui
I'm assuming from your other email that the problem was the firewall on the
hosts.

On Wed, Nov 20, 2013 at 8:56 AM, Fariborz Navidan wrote:

> On the VM from which template is created, ONBOOT="yes" is available.
> Is CloudStack capable of configuring new VMs created from a template with
> assigned IP? Is it aware of what to perform on new VM?
>
>
> On Wed, Nov 20, 2013 at 7:45 PM, Carlos Reátegui  >wrote:
>
> > Make sure to set onboot=yes in ifcfg-eth0 in your template.
> >
> > > On Nov 20, 2013, at 7:37 AM, Fariborz Navidan 
> > wrote:
> > >
> > > Hi.
> > >
> > > I have created a CentOS 6.4 template from a VM. When create a VM using
> > this
> > > template, network settings are not applied to it and it starts with no
> > > network access and as a result password script cannot be run.
> > >
> > > I have created the template from the VM's volume.
> > >
> > > Please advise.
> > > TIA
> >
>
>
>
> --
> Fariborz Navidan
> Sales & Technical Manager
> Shetab Rayan Limited.
> www.shetabrayan.com
>


Re: iptables on the host does not allow reaching the guest

2013-11-20 Thread Carlos Reategui
I had a similar problem on my XenServer hosts with CS.  I don't know how it
is supposed to work or what the correct solution is but in my case it was
ok to disable iptables permanently:

chkconfig iptables off

or if your hosts are ubuntu:
chkconfig ufw off



On Wed, Nov 20, 2013 at 9:05 AM, Fariborz Navidan wrote:

> Hi.
>
> If iptables is running on the host, VMs are not reachable and I need to
> stio it manually. Unfortunately after every action in CloudStack, it gets
> started automatically and again need to stop.
>
> Please advise me to fix iptables permanently.
> TIA
>


iptables on the host does not allow reaching the guest

2013-11-20 Thread Fariborz Navidan
Hi.

If iptables is running on the host, VMs are not reachable and I need to
stio it manually. Unfortunately after every action in CloudStack, it gets
started automatically and again need to stop.

Please advise me to fix iptables permanently.
TIA


Re: VM created from template has no network access

2013-11-20 Thread Fariborz Navidan
On the VM from which template is created, ONBOOT="yes" is available.
Is CloudStack capable of configuring new VMs created from a template with
assigned IP? Is it aware of what to perform on new VM?


On Wed, Nov 20, 2013 at 7:45 PM, Carlos Reátegui wrote:

> Make sure to set onboot=yes in ifcfg-eth0 in your template.
>
> > On Nov 20, 2013, at 7:37 AM, Fariborz Navidan 
> wrote:
> >
> > Hi.
> >
> > I have created a CentOS 6.4 template from a VM. When create a VM using
> this
> > template, network settings are not applied to it and it starts with no
> > network access and as a result password script cannot be run.
> >
> > I have created the template from the VM's volume.
> >
> > Please advise.
> > TIA
>



-- 
Fariborz Navidan
Sales & Technical Manager
Shetab Rayan Limited.
www.shetabrayan.com


Re: VM created from template has no network access

2013-11-20 Thread Carlos Reátegui
Make sure to set onboot=yes in ifcfg-eth0 in your template. 

> On Nov 20, 2013, at 7:37 AM, Fariborz Navidan  wrote:
> 
> Hi.
> 
> I have created a CentOS 6.4 template from a VM. When create a VM using this
> template, network settings are not applied to it and it starts with no
> network access and as a result password script cannot be run.
> 
> I have created the template from the VM's volume.
> 
> Please advise.
> TIA


KVM in advanced zone - some open questions

2013-11-20 Thread Abu Bashiri
 

Gents,

 

i plan to implement CS 4.2 as a dev environment. I already had a look at the
documentation but I still have some unanswered questions. I really
appreciate any help.

 

I have three centos 6.3 KVM hosts. One for the management server and the
database and the other two hosts are for the VMs. 

 

My questions are:

 

1.   Are there a guide for the necessary preparation steps for KVM? Or
is it just really a plain yum install of the kvm components and then a
installation of the agent?

 

2.   Networking

 

My physical servers have only two interfaces. I already configured a bond
(mode 4 - LACP) for them. As already mentioned, I plan to use advanced
networking. For that I configured three VLANs / subnetworks. The management
network is set to untagged and is direct connected to the physical bond.

 

1.   Storage bond0.100

As far as I understand, that's outside of CS management. It just has to be
present so that the mount of NFS export is working? Is this right? Need I a
bridge for this VLAN?

 

2.   Public bond0.40

 

So as far as I understand, I need Guest as well but iam not sure if I need a
bridge? If iam right, cloudstack will create the bridges for guest networks?

 

And what is the right order? Install the agent and then add to cloudstack or
shall I first configure the bridges, then set them in agent.properties and
then add it to CS?

 

Sorry for the stupid questions.

 

Thx

 

Abu

 

 



VM created from template has no network access

2013-11-20 Thread Fariborz Navidan
Hi.

I have created a CentOS 6.4 template from a VM. When create a VM using this
template, network settings are not applied to it and it starts with no
network access and as a result password script cannot be run.

I have created the template from the VM's volume.

Please advise.
TIA


Re: CS4.2 KVM and Xen hypervisor

2013-11-20 Thread motty cruz
Thanks shankerbalan,
I deleted the routers, created a new network offering with DHCP off,
created a new guest network, when I install first instance there it was it
took IP or CS showing with IP,  not the one I manually setup.

Thanks,




On Tue, Nov 19, 2013 at 7:18 PM, Shanker Balan
wrote:

> On 19-Nov-2013, at 10:33 pm, motty cruz  wrote:
>
> > Hello,
> > I created a guest network with two routers, all is working fine but I
> > decided that I don't want DHCP, is there a way to disabled DHCP?
> >
> > Thanks,
>
> Hi Motty,
>
> You can certainly disable DHCP from the VR. Create a custom network
> offering with DHCP services turned off.
>
>
> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/network-offerings.html
>
>
>
> --
> @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.
>


API command "listNetworks" error

2013-11-20 Thread Thomas Joseph
Hello

I was unable to delete a POD & the "Physical Network 1" from a basic zone 
from the CS MGMT UI v4.1.1, therefore I had to manually update the "removed" & 
"state" coloumns for the CS DB table "physical_network" id 205.


mysql> select * from physical_network;
+-+--+++-+---+---++--+-+-+
| id  | uuid | name   | 
data_center_id | vnet| speed | domain_id | broadcast_domain_range | state   
 | created | removed |
+-+--+++-+---+---++--+-+-+
| 200 | 584c70ea-d8b7-47a4-90a7-24bdee311224 | Physical Network 1 | 
 1 | NULL| NULL  |  NULL | POD| Enabled  | 
2013-09-17 14:53:39 | NULL|
| 201 | c8b2cbb2-a553-4059-b11e-c3454560b74c | Physical Network 1 | 
 2 | NULL| NULL  |  NULL | ZONE   | Disabled | 
2013-09-24 12:32:48 | 2013-09-24 13:17:05 |
| 202 | 29d4f2f8-abdd-4d43--81a0a18fe858 | Physical Network 1 | 
 3 | NULL| NULL  |  NULL | ZONE   | Disabled | 
2013-09-24 14:13:05 | 2013-09-25 09:53:56 |
| 203 | 421283e4-746a-4a2b-88b9-83cd669f92dd | cloud-private  | 
 4 | 750-801 | NULL  |  NULL | ZONE   | Disabled | 
2013-09-26 11:15:37 | 2013-10-02 09:52:52 |
| 204 | 07cafc6e-d424-4664-9c8b-6f02057f8387 | cloud-public   | 
 4 | NULL| NULL  |  NULL | ZONE   | Disabled | 
2013-09-26 11:15:37 | 2013-10-02 09:52:55 |
| 205 | 46746864-61ab-490a-bb53-6c1bc48917bd | Physical Network 1 | 
 5 | NULL| NULL  |  NULL | POD| Disabled | 
2013-10-11 14:46:39 | 2013-11-19 17:29:00 |
| 206 | c3057ff2-4872-4a5f-9b33-c1abfb6a573a | Physical Network 1 | 
 6 | NULL| NULL  |  NULL | POD| Enabled  | 
2013-11-19 12:54:02 | NULL|
+-+--+++-+---+---++--+-+-+
7 rows in set (0.00 sec)

After which the "Network" tab in CS MGMT UI displays "Error" and when we try to 
access a Project via Project View, the following error is displayed:

==
2013-11-20 09:39:32,418 ERROR [cloud.api.ApiServer] (http-8443-6:null) 
unhandled exception executing api command: listNetworks
java.lang.NullPointerException
at 
com.cloud.network.guru.DirectNetworkGuru.updateNetworkProfile(DirectNetworkGuru.java:255)
at 
com.cloud.network.NetworkManagerImpl.convertNetworkToNetworkProfile(NetworkManagerImpl.java:2684)
at com.cloud.api.ApiDBUtils.getNetworkProfile(ApiDBUtils.java:894)
at 
com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2109)
at 
org.apache.cloudstack.api.command.user.network.ListNetworksCmd.execute(ListNetworksCmd.java:157)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:505)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:355)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)
2013-11-20 09:39:32,420 DEBUG [cloud.