X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from SMTP.EU.CITRIX.COM (smtp.eu.citrix.com [62.200.22.115]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id BAD18DC199C for ; Fri, 28 Sep 2012 09:32:00 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.80,501,1344211200"; d="scan'208";a="14824810" Received: from lonpmailmx01.citrite.net ([10.30.203.162]) by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/RC4-MD5; 28 Sep 2012 09:31:58 +0000 Received: from banlajayraok01.citrite.net (10.31.3.234) by LONPMAILMX01.citrite.net (10.30.203.162) with Microsoft SMTP Server id 8.3.279.1; Fri, 28 Sep 2012 10:31:58 +0100 Message-ID: <50656E8C.6070206@citrix.com> Date: Fri, 28 Sep 2012 10:31:56 +0100 From: Roger Pau Monne User-Agent: Postbox 3.0.5 (Macintosh/20120826) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: Leonardo CC: alpine-devel Subject: Re: [alpine-devel] Xen: first experiments References: <1348823298.21090.14.camel@df1844j> In-Reply-To: <1348823298.21090.14.camel@df1844j> X-Enigmail-Version: 1.2.2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Leonardo wrote: Hello! Thanks for trying Xen with Alpine! > Hi, > > I've just started to play with alpine-xen-2.4.5-x86_64 iso + libvirt, > and I've hit the first issues. > > So far I've followed http://wiki.alpinelinux.org/wiki/Xen_LiveCD, setup > my local storage, installed and started libvirt. So I assume you are running it from RAM? If you are interested in this kind of setup, I would recommend that you create a new ISO/USB with the dom0_mem command line option [1], something like dom0_mem=512M or maybe dom0_mem=1024M, since you seem to have quite a lot of memory. This will prevent errors from the ballon driver, which as far as I know can be a little slow and I'm not sure if it plays well with ramfs. Could you also paste the output from `free -m` and `df -h`? Anyway, I would recommend making sure that everything works with xl, and then try to use libvirt (I've never used it, so I'm not sure of how well it works). > When creating a new domain via libvirt, it reports this error: > > xc: detail: Failed allocation for dom 2: 2048 extents of order 0 > xc: error: Could not allocate memory for HVM guest. (16 = Device or > resource busy): Internal error > > Googling around I've found this: > > "Sufficient memory was not reserved for fully virtualized guests when > creating new guests. Memory listed as available by the xm info command > could not be fully allocated to the guest. When attempting create a > fully virtualized guest with more than or equal to the maximum available > memory value, the following error message would appear: > Error: (1, 'Internal error', 'Could not allocate memory for HVM guest.\n (16 = Device or resource busy)') > This issue has been resolved by improving the memory balloon driver to > correctly allocate memory for fully virtualized guests and fully > virtualized guests using the Intel VT-d extensions for PCI passthrough. > (BZ#512041)" > > (from http://www.centos.org/docs/5/html/5.5/Technical_Notes/xen.html > ) > > This is what "xl info" reports: > > kvbn1:~# xl info > host : kvbn1 > release : 3.3.8-grsec > version : #4-Alpine SMP Tue Jul 17 13:08:00 UTC 2012 > machine : x86_64 > nr_cpus : 8 > nr_nodes : 2 > cores_per_socket : 4 > threads_per_core : 1 > cpu_mhz : 2128 > hw_caps : > bfebfbff:28100800:00000000:00003b40:009ce3bd:00000000:00000001:00000000 > virt_caps : hvm hvm_directio > total_memory : 8179 > free_memory : 909 > free_cpus : 0 > xen_major : 4 > xen_minor : 1 > xen_extra : .2 > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 > hvm-3.0-x86_32p hvm-3.0-x86_64 > xen_scheduler : credit > xen_pagesize : 4096 > platform_params : virt_start=0xffff800000000000 > xen_changeset : unavailable > xen_commandline : > cc_compiler : gcc version 4.6.3 (Alpine 4.6.3-r0) > cc_compile_by : buildozer > cc_compile_domain : alpinelinux.org > cc_compile_date : Fri Jun 22 14:59:04 UTC 2012 > xend_config_format : 4 > > > I'd like also to try creating a domain without libvirt, and I tried > following this http://wiki.xen.org/wiki/Xen_Beginners_Guide. However I > cannot find on Alpine a xen-tools package to run "xen-create-image", for > creating a config file to feed to "xl" in order to create a domain. xen-create-image is a Debian tool, which is not present in Alpine. If you wish, you can try creating a Alpine Linux DomU [2] or a Debian DomU with NetInstall [3]. > I'm pretty new to Xen, so if anyone can give me a suggestion it will be > very much appreciated. > > Thank you > > - leonardo [1] http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html [2] http://wiki.alpinelinux.org/wiki/Create_Alpine_Linux_PV_DomU [3] http://wiki.gbweb.net/tiki-index.php?page=Installing+a+new+Xen+DomU --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---