Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92AEE108D1 for ; Mon, 7 Apr 2014 13:11:24 +0000 (UTC) Received: (qmail 83452 invoked by uid 500); 7 Apr 2014 13:11:23 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 82981 invoked by uid 500); 7 Apr 2014 13:11:23 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 82968 invoked by uid 99); 7 Apr 2014 13:11:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 13:11:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rafaelweingartner@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qc0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 13:11:17 +0000 Received: by mail-qc0-f179.google.com with SMTP id m20so6261857qcx.24 for ; Mon, 07 Apr 2014 06:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=unXYnm+EUPpL558BL//QxAi3l0XEcoVdK3QaCYqWAsk=; b=AOGQ32QgsFdwHH+zCfPzf83Pgd6RZMpSK7ldQujbtQegp+kZCEbulzYgrEE97tGCAv kDWVGK73Hvn22BQgMefZTu+5hAJWWCWwWsMywqtUQ2romIsIgwb3OixD3LfwMgZWzjLl ABL9IxAfdK3qmHRxj30XrnHPRR8999UYQBHbNepBTY6bHW3c8xiAXHC4DGAuGFaRKs8G YJgAY7tZ5bdFl93FpxLaXXVcngpkpyy0nL2leq2p8/9z0vmj84CmKLRl3gyHsEj24Zgj YThD8hC3Cdzg7O38C+7E0/x934uC1gQHnjz4K0mhVP4kMS/EjalJ2kjXqVxKhWGYTc7w WM9Q== MIME-Version: 1.0 X-Received: by 10.224.127.129 with SMTP id g1mr32891798qas.22.1396876255237; Mon, 07 Apr 2014 06:10:55 -0700 (PDT) Received: by 10.140.28.36 with HTTP; Mon, 7 Apr 2014 06:10:55 -0700 (PDT) In-Reply-To: <5342A19C.7010102@widodh.nl> References: <53429690.9070700@widodh.nl> <5342A19C.7010102@widodh.nl> Date: Mon, 7 Apr 2014 10:10:55 -0300 Message-ID: Subject: Re: How does a system VM get an IP address? From: Rafael Weingartner To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a11c1e054fd1ac204f67398ca X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1e054fd1ac204f67398ca Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable By agent you mean CS management server? I am running CS 4.1.1. would the command cloudstack-ssh work, if the VM does not respond on its ip addresses? On Mon, Apr 7, 2014 at 10:01 AM, Wido den Hollander wrote: > > > On 04/07/2014 02:20 PM, Rafael Weingartner wrote: > >> Thanks man ;). >> By any chance if a system VM does not get its ip assigned, would there b= e >> any way to debug and check what is going on? I mean, if after it is >> running >> on the physical host it does respond on the IP that was assigned to it. >> >> > I say check the agent's log (set to debug!) and try to SSH into the SSVM > with the cloudstack-ssh command. > > Wido > > > >> On Mon, Apr 7, 2014 at 9:14 AM, Wido den Hollander >> wrote: >> >> >>> >>> On 04/07/2014 12:33 AM, Rafael Weingartner wrote: >>> >>> Hi folks, >>>> I was wondering how a system vm gets an IP address. I know they are th= e >>>> first things that CS needs in order to start up others VMs, so when th= ey >>>> start there is no virtual router to assign IP addresses via DHCP. >>>> >>>> >>>> Via a local virtio socket from the hypervisor in KVM mode. The VM boo= ts >>> and via that local serial socket it gets the IP-address. >>> >>> >>> I also noticed that on the physical hosts with the VM.Start command C= S >>> >>>> sends some extra data that includes the IPs that the VM should get. >>>> However, I have no idea how it actually gets those parameters and set >>>> its >>>> IP. >>>> >>>> >>> The management server sends this information to the KVM agent. User >>> Instances get the IP address via DHCP from the VR, System VMs via the >>> local >>> serial socket. >>> >>> Wido >>> >>> >>> >>> Does anyone here know how it works? >>>> >>>> >>>> >> >> --=20 Rafael Weing=E4rtner --001a11c1e054fd1ac204f67398ca--