From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B95C11391DB for ; Sun, 23 Mar 2014 23:15:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A515FE0BE4; Sun, 23 Mar 2014 23:15:09 +0000 (UTC) Received: from mail-yh0-f67.google.com (mail-yh0-f67.google.com [209.85.213.67]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A9FEE0AF1 for ; Sun, 23 Mar 2014 23:15:08 +0000 (UTC) Received: by mail-yh0-f67.google.com with SMTP id a41so1561569yho.6 for ; Sun, 23 Mar 2014 16:15:07 -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:content-transfer-encoding; bh=FUAZtDTqaL4nsCP+mC1JBaZOCQ9TlBTGW8Po5XiVXSk=; b=B2Zv2fOWXWIcGY+DLRRBOpTcKjrj2m89rDjl7RB5WWWFR2qxtjcR/MlTctdJ1OHXrO VsHYmYrGuEuJOc2EVlTr+fGxXaO5IKxRVJQ49LLxCoAdfrXiRpLGUJvWn6OH9JRjrJ/s am/sKog5I/B+xUTH1a0kpVhKav7q7XKNEHIaXZmiKyYkIrhpV5AO7HE/+DbyXxUOu9bZ tkLPl4OFUBxy5sLdWFq6OYMJY7l1G7Y2Cpy4co+1SFFiTOb5lrf+ziBM7Z+75sFXNDPt wxbq4tXioEa16Wh6yyyuT3HH5JkhQTtR57haEyE82dcnhfPb18KS4uzCRCMJhjDzOe+j 2uSQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.236.148.71 with SMTP id u47mr45987558yhj.82.1395616507543; Sun, 23 Mar 2014 16:15:07 -0700 (PDT) Received: by 10.170.40.80 with HTTP; Sun, 23 Mar 2014 16:15:07 -0700 (PDT) In-Reply-To: <8698c4a6ef4285d9d4178fb9fa543bd8.squirrel@www.antarean.org> References: <16043003.n6NLNozjIS@andromeda> <8698c4a6ef4285d9d4178fb9fa543bd8.squirrel@www.antarean.org> Date: Sun, 23 Mar 2014 20:15:07 -0300 Message-ID: Subject: Re: [gentoo-user] Making XEN functional From: Facundo Curti To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 78f797e4-c278-4cab-8db7-20cb8defa999 X-Archives-Hash: 23cb3404eafef65ce8ec7b72f9b639cf 2014-03-23 16:03 GMT-03:00 J. Roeleveld : > On Sun, March 23, 2014 19:26, Facundo Curti wrote: >> 2014-03-23 9:35 GMT-03:00 J. Roeleveld : >>> On Sunday, March 23, 2014 05:47:53 PM Nilesh Govindrajan wrote: >>>> I'm not meaning to hijack this thread, but isn't KVM a better option? >>>> The >>>> difference between Xen and KVM is tiny I think, no? >> >> What I see on web, is that XEN uses paravirtualization. If you have >> the correct hardware (like i have), XEN have better perfonmance. My >> intel i7 have virtualization instructions. See [1][2] y [3] >> >> I'm new in virtualization, i'm doing this for a desktop machine. Just >> for learn. Instead of use VirtualBOX or VMware, I'm installing XEN. >> Best perfonmance, and I can learn in the process. > > On desktop, I would recommend something like Virtualbox. > Xen works best with a minimal host environment on a dedicated machine. Thank you for advice. I'm reading about so I can take a choice. >> 2014-03-23 9:14 GMT-03:00 J. Roeleveld : >>> >>> I see this in "tmp": >>> ***** >>> checking whether the C compiler works... no >>> configure: error: in `/var/tmp/portage/app-emulation/xen-tools-4.3.1- >>> r5/work/xen-4.3.1/tools': >>> configure: error: C compiler cannot create executables >>> ****** >>> >>> Please fix your C-compiler. What does the following command return? >>> # gcc-config -L >>> >> >> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3:/usr/lib/gcc/x86_64-pc-linux-gnu/= 4.7.3/32 > > what about gcc-config -l (sorry, meant lower-case in previous email) > [1] x86_64-pc-linux-gnu-4.7.3 * >>> Please use the " xl" command set. " xm" is deprecated. >>> >> :O I didn't know it was deprecated. >> >>> Please also ensure you start the xen services: >>> # /etc/init.d/xencommons start >>> # /etc/init.d/xenstored start >>> # /etc/init.d/xenconsoled start >>> >>> before trying the xl commands. >>> >> I'm using systemd, so I tried to start this way: >> systemctl enable xencommons >> systemctl enable xenstored >> systemctl enable xencosnsoled >> And none exists :P (No such file or directory) > > I don't use systemd. You will need to find the correct unit-files for Xen= . > Alternatively, use OpenRC. > yep, but I cant find this. Maybe is because XEN is not installed rigth now. >> Instead, if I make it with /etc/init.d/xenstored start >> it says: >> WARNING: xenstored is already starting >> (the same with xencommons and xenconsoled) >> >> So, I try do xl list, and says: >> >> libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running? >> failed to stat /var/run/xenstored.pid: No such file or directory >> cannot init xl context >> >> The correct way is start it from systemd? Or through /etc/init.d ? > > Correct way depends on the init-system you are using. Systemd does things > differently compared to OpenRC. > >>>> My .config from kernel is [configKernel] and my [grub.cfg] >>> >>> I will check those if the above didn't solve it. >>> >>> I have the following installed on my server: >>> [I] app-emulation/xen >>> Installed versions: 4.3.1-r5^t{tbz2}(12:09:22 PM 02/21/2014) >>> (efi -custom-cflags -debug -flask -xsm) >>> >>> [I] app-emulation/xen-tools >>> Installed versions: 4.3.1-r5^t{tbz2}(12:14:51 PM 02/21/2014) >>> (api hvm pam qemu screen -custom-cflags -debug -doc -flask -ocaml >>> -pygrub - >>> python -static-libs -xend >>> PYTHON_SINGLE_TARGET=3D"python2_7 -python2_6" PYTHON_TARGETS=3D"python2= _7 - >>> python2_6") >> I have: >> >> o.o. I dont have xen installed. =C3=82=C2=BFIs that possible? ._. > > Yes, xen-tools can be installed seperately. > You need xen installed to be able to boot with it. > I have xen-tools. But I dont have xen. >> [ebuild N ] app-emulation/xen-4.3.1-r5 USE=3D"efi xsm >> -custom-cflags -debug -flask" > >> I'm trying to install it but says: >> >> !!! copy >> /var/tmp/portage/app-emulation/xen-4.3.1-r5/image/boot/efi/gentoo/xen-4.= 3.1.efi >> -> /boot/efi/gentoo/xen-4.3.1.efi failed. >> !!! [Errno 28] No space left on device >> >> Maybe is because I tried to re-emerge this? o.o > > Actually, you haven't got xen installed yet. > And the install fails because your EFI-boot partition is full. > Also, you need to ensure you boot correctly using Xen. The Linux kernel > should be loaded and started by Xen as the primary domain. > Yes. I had xen installed. I booted from grub with it, and XEN loaded my system. But once inside, I tried to re-emerge. So, XEN was unistalled, and right now it can't be emerged any more ._. I didn't shutdown my computer yet, So I still using a kernel XEN, in a doma= in0. I dont know why i dont have space on EFI anymore ._. If I installed it once, why I cant do this twice? ._. I cleaned, on efi, the files from old install xen. This is all i have: /boot/efi: EFI tmp /boot/efi/EFI: gentoo /boot/efi/EFI/gentoo: grubx64.efi df -h: /dev/sdb1 2,0M 124K 1,9M 7% /boot/efi It just have 2MB space, because I do it following the gentoo handbook that recommends 4MB of space (less 2 from filesystem). Is that enough space? Any way to fix it Without changing the partitions? I dont use LVM :/ Thank you for help!