> -----Original Message-----
> From: to...@midokura.jp [mailto:to...@midokura.jp] On Behalf Of Tomoe
> Sugihara
> Sent: Tuesday, July 10, 2012 4:40 PM
> To: cloudstack-us...@incubator.apache.org
> Cc: cloudstack-dev@incubator.apache.org
> Subject: Re: [RFC] DevCloud, an all-in-one-box CloudStack development
> environment
> 
> On Wed, Jul 11, 2012 at 2:33 AM, Edison Su <edison...@citrix.com> wrote:
> >
> >
> >> -----Original Message-----
> >> From: to...@midokura.jp [mailto:to...@midokura.jp] On Behalf Of
> Tomoe
> >> Sugihara
> >> Sent: Tuesday, July 10, 2012 1:22 AM
> >> To: cloudstack-dev@incubator.apache.org
> >> Cc: cloudstack-us...@incubator.apache.org
> >> Subject: Re: [RFC] DevCloud, an all-in-one-box CloudStack
> development
> >> environment
> >>
> >> On Tue, Jul 10, 2012 at 3:32 AM, Edison Su <edison...@citrix.com>
> wrote:
> >>
> >> > >
> >> > > Not rdeploydb, but successfully ran "rdebug".
> >> > > However, I still can't find ListTemplate even in /var/log/cloud/
> >> >
> >> > Better to fix rdeploydb at first, right now, your system is in a
> good
> >> shape.
> >> > If you had taken a snapshot for devcloud after importing the
> >> devcloud.ova into virtualbox, then you can revert back to the
> initial
> >> state.
> >> > Then we can test the preinstalled cloudstack mgt server works for
> you
> >> or not, by go to http://localhost:8080/client, then enable the zone,
> >> wait for a few minutes, ssvm will come up, and the tiny user vm will
> be
> >> available.
> >> > Anyway, I'll write up the whole setup/configuration/how-to-use,
> step-
> >> by-step illustrated.
> >>
> >>
> >> Thanks for the writeup. That's very helpful.
> >> I started from scratch and was able to see the tiny Linux template
> is
> >> normal.
> >>
> >> Now, another problem is that I can't seem to launch a VM; I'm
> getting
> >> this error:
> >> ---------------------------
> >>   [sshexec]      [java] INFO  [api.commands.DeployVMCmd]
> >> (Job-Executor-13:job-13)
> >> com.cloud.exception.InsufficientServerCapacityException: Unable to
> >> create a deployment for VM[User|ccc]Scope=interface
> >> com.cloud.dc.DataCenter; id=1
> >> --------------------------
> >
> > Which service offering are you using to create the VM? Need to use
> tinyServiceOffering.
> 
> I'm using "tinyOffering" in "Compute offering" menu in launching VM
> wizard.
> I can't find "tinyServiceOffering" anywhere. Am I missing something?
> 
> >> I also tried launching a VM with vanilla DevCloud(without doing any
> >> ant commands),
> >>  and I was ableto launch it. However, the launched tty Linux gets ip
> >> address 10.0.0.15,
> >>  which is the same address as devcloud and then web GUI became
> >> inaccessible.
> >
> > That's weird, normally DevCloud will get 10.0.2.15 itself, user vm
> will get other ip address.
> > Which VirtualBox are you using? On which platform?
> 
> I'm using virtualbox-4.1 (4.1.18-78361~Ubuntu~precise) on Ubuntu 12.04.
> This happens consistently, at least I hit 3 times in a row.
I added a fix into master, that disable virtualbox DHCP server for the VMs 
created by CloudStack.
Right now, you can manually execute the following scripts inside devcloud:

apt-get install ebtables
iptables -A POSTROUTING -t mangle -p udp --dport bootpc -j CHECKSUM 
--checksum-fill
mac=`ifconfig xenbr0 |grep HWaddr |awk '{print $5}'`
ebtables -I FORWARD -d ! $mac -i eth0 -p IPV4 --ip-prot udp --ip-dport 67:68 -j 
DROP
iptables-save > /etc/iptables.save
/etc/init.d/ebtables save

And add 
pre-up iptables-save < /etc/iptables.save
pre-up /etc/init.d/ebtables load

at the end of /etc/network/interfaces, then stop/start your user vm, see what 
happened.

the commit number is fb59fc5c8a5114ca0c7da8c602a806dc77735c2e, if you want take 
a look at the fix.


> 
> >> As a side note, it should be useful to add a port forward setting
> for
> >> 8787 in VirtualBox
> >> so we can remote debug easily.
> >
> >
> > Will do, and also 8250.
> 
> Can I ask what 8250 is for?

To add external hypervisor host(the actual physical host) into CloudStack mgt 
server running inside DevCloud, if ssvm/cpvm created on external host, 8250 
will be used by the java agent inside ssvm/cpvm to connect to mgt server.

> 
> Thanks,
> Tomoe

Reply via email to