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 2D49F10719 for ; Mon, 7 Apr 2014 12:14:42 +0000 (UTC) Received: (qmail 372 invoked by uid 500); 7 Apr 2014 12:14:41 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 118 invoked by uid 500); 7 Apr 2014 12:14:39 -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 110 invoked by uid 99); 7 Apr 2014 12:14:38 -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 12:14:38 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [109.72.87.137] (HELO smtp01.mail.pcextreme.nl) (109.72.87.137) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 12:14:32 +0000 Received: from [172.9.1.90] (unknown [61.8.155.149]) by smtp01.mail.pcextreme.nl (Postfix) with ESMTPA id 0542376096 for ; Mon, 7 Apr 2014 14:15:14 +0200 (CEST) Message-ID: <53429690.9070700@widodh.nl> Date: Mon, 07 Apr 2014 14:14:08 +0200 From: Wido den Hollander User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: dev@cloudstack.apache.org Subject: Re: How does a system VM get an IP address? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 the > first things that CS needs in order to start up others VMs, so when they > 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 boots and via that local serial socket it gets the IP-address. > I also noticed that on the physical hosts with the VM.Start command CS > 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? >