On Sun, March 23, 2014 19:26, Facundo Curti wrote: > 2014-03-23 9:35 GMT-03:00 J. Roeleveld <[email protected]>: >> 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. > 2014-03-23 9:14 GMT-03:00 J. Roeleveld <[email protected]>: >> >> 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) >> 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. > 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="python2_7 -python2_6" PYTHON_TARGETS="python2_7 - >> python2_6") > I have: > > o.o. I dont have xen installed. ¿Is that possible? ._. Yes, xen-tools can be installed seperately. You need xen installed to be able to boot with it. > [ebuild N ] app-emulation/xen-4.3.1-r5 USE="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. -- Joost

