1 |
On Sun, March 23, 2014 19:26, Facundo Curti wrote: |
2 |
> 2014-03-23 9:35 GMT-03:00 J. Roeleveld <joost@××××××××.org>: |
3 |
>> On Sunday, March 23, 2014 05:47:53 PM Nilesh Govindrajan wrote: |
4 |
>>> I'm not meaning to hijack this thread, but isn't KVM a better option? |
5 |
>>> The |
6 |
>>> difference between Xen and KVM is tiny I think, no? |
7 |
> |
8 |
> What I see on web, is that XEN uses paravirtualization. If you have |
9 |
> the correct hardware (like i have), XEN have better perfonmance. My |
10 |
> intel i7 have virtualization instructions. See [1][2] y [3] |
11 |
> |
12 |
> I'm new in virtualization, i'm doing this for a desktop machine. Just |
13 |
> for learn. Instead of use VirtualBOX or VMware, I'm installing XEN. |
14 |
> Best perfonmance, and I can learn in the process. |
15 |
|
16 |
On desktop, I would recommend something like Virtualbox. |
17 |
Xen works best with a minimal host environment on a dedicated machine. |
18 |
|
19 |
> 2014-03-23 9:14 GMT-03:00 J. Roeleveld <joost@××××××××.org>: |
20 |
>> |
21 |
>> I see this in "tmp": |
22 |
>> ***** |
23 |
>> checking whether the C compiler works... no |
24 |
>> configure: error: in `/var/tmp/portage/app-emulation/xen-tools-4.3.1- |
25 |
>> r5/work/xen-4.3.1/tools': |
26 |
>> configure: error: C compiler cannot create executables |
27 |
>> ****** |
28 |
>> |
29 |
>> Please fix your C-compiler. What does the following command return? |
30 |
>> # gcc-config -L |
31 |
>> |
32 |
> |
33 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3:/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32 |
34 |
|
35 |
what about gcc-config -l (sorry, meant lower-case in previous email) |
36 |
|
37 |
>> Please use the " xl" command set. " xm" is deprecated. |
38 |
>> |
39 |
> :O I didn't know it was deprecated. |
40 |
> |
41 |
>> Please also ensure you start the xen services: |
42 |
>> # /etc/init.d/xencommons start |
43 |
>> # /etc/init.d/xenstored start |
44 |
>> # /etc/init.d/xenconsoled start |
45 |
>> |
46 |
>> before trying the xl commands. |
47 |
>> |
48 |
> I'm using systemd, so I tried to start this way: |
49 |
> systemctl enable xencommons |
50 |
> systemctl enable xenstored |
51 |
> systemctl enable xencosnsoled |
52 |
> And none exists :P (No such file or directory) |
53 |
|
54 |
I don't use systemd. You will need to find the correct unit-files for Xen. |
55 |
Alternatively, use OpenRC. |
56 |
|
57 |
> Instead, if I make it with /etc/init.d/xenstored start |
58 |
> it says: |
59 |
> WARNING: xenstored is already starting |
60 |
> (the same with xencommons and xenconsoled) |
61 |
> |
62 |
> So, I try do xl list, and says: |
63 |
> |
64 |
> libxl: error: libxl.c:87:libxl_ctx_alloc: Is xenstore daemon running? |
65 |
> failed to stat /var/run/xenstored.pid: No such file or directory |
66 |
> cannot init xl context |
67 |
> |
68 |
> The correct way is start it from systemd? Or through /etc/init.d ? |
69 |
|
70 |
Correct way depends on the init-system you are using. Systemd does things |
71 |
differently compared to OpenRC. |
72 |
|
73 |
>>> My .config from kernel is [configKernel] and my [grub.cfg] |
74 |
>> |
75 |
>> I will check those if the above didn't solve it. |
76 |
>> |
77 |
>> I have the following installed on my server: |
78 |
>> [I] app-emulation/xen |
79 |
>> Installed versions: 4.3.1-r5^t{tbz2}(12:09:22 PM 02/21/2014) |
80 |
>> (efi -custom-cflags -debug -flask -xsm) |
81 |
>> |
82 |
>> [I] app-emulation/xen-tools |
83 |
>> Installed versions: 4.3.1-r5^t{tbz2}(12:14:51 PM 02/21/2014) |
84 |
>> (api hvm pam qemu screen -custom-cflags -debug -doc -flask -ocaml |
85 |
>> -pygrub - |
86 |
>> python -static-libs -xend |
87 |
>> PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 - |
88 |
>> python2_6") |
89 |
> I have: |
90 |
> |
91 |
> o.o. I dont have xen installed. ¿Is that possible? ._. |
92 |
|
93 |
Yes, xen-tools can be installed seperately. |
94 |
You need xen installed to be able to boot with it. |
95 |
|
96 |
> [ebuild N ] app-emulation/xen-4.3.1-r5 USE="efi xsm |
97 |
> -custom-cflags -debug -flask" |
98 |
|
99 |
> I'm trying to install it but says: |
100 |
> |
101 |
> !!! copy |
102 |
> /var/tmp/portage/app-emulation/xen-4.3.1-r5/image/boot/efi/gentoo/xen-4.3.1.efi |
103 |
> -> /boot/efi/gentoo/xen-4.3.1.efi failed. |
104 |
> !!! [Errno 28] No space left on device |
105 |
> |
106 |
> Maybe is because I tried to re-emerge this? o.o |
107 |
|
108 |
Actually, you haven't got xen installed yet. |
109 |
And the install fails because your EFI-boot partition is full. |
110 |
Also, you need to ensure you boot correctly using Xen. The Linux kernel |
111 |
should be loaded and started by Xen as the primary domain. |
112 |
|
113 |
-- |
114 |
Joost |