Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]error while installing xen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 11:41 am    Post subject: [solved]error while installing xen Reply with quote

hi there, how are you doing, i have a problem and i hope someone helps me solve it.
i am trying to install xen but every time i run
Code:
emerge -av app-emulation/xen

i get this error
Code:
!!! failed to properly create symlink:
!!! /boot/xen.gz -> xen-4.15.0.gz
!!! [Errno 1] Operation not permitted: b'xen-4.15.0.gz' -> b'/boot/xen.gz'
!!! Failed to move file.
!!! /boot/xen.gz -> xen-4.15.0.gz

i tried to install both the 2 versions 4.14.2-r1 and 4.15.0-r1 but i keep getting that error
i tried to install with
Code:
FEATURES="-collision-detect -protect-owned"emerge -av app-emulation/xen

i get the same error with another error message
Code:
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). Add either "collision-protect" or "protect-
 * owned" to FEATURES in make.conf if you would like the merge to abort
 * in cases like this. See the make.conf man page for more information
 * about these features. You can use a command such as `portageq owners /
 * <filename>` to identify the installed package that owns a file. If
 * portageq reports that only one package owns a file then do NOT file a
 * bug report. A bug report is only useful if it identifies at least two
 * or more packages that are known to install the same file(s). If a
 * collision occurs and you can not explain where the file came from then
 * you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *    /boot/xen-4.15.0.gz
 *    /boot/xen-4.15.0.config
 *    /usr/lib/debug/xen-syms-4.15.0
 *    /usr/lib/debug/xen-syms-4.15.0.map
 * Package 'app-emulation/xen-4.15.0-r1' merged despite file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.

the package is not installed though. please help me guys, i appreciate your help
_________________
i would like to thank everyone that contributed to the gentoo project in any means


Last edited by abdus on Sat Sep 04, 2021 3:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 03, 2021 4:05 pm    Post subject: Reply with quote

Try
Code:

mv /boot/xen-4.15.0.gz  /boot/xen-4.15.0.gz.bak
mv  /boot/xen-4.15.0.config  /boot/xen-4.15.0.config.bak
emerge -av xen

do the same for the rest conflicting files.
Did you in the past install xen outside of portage?


Also is your /boot on vfat?
If yes I think vfat does not support symlinks.
If this is the case then you need to create an 1Gig ext4 partition to be mount at /boot and mount your old /boot on /boot/efi.
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 5:32 pm    Post subject: Reply with quote

yes my boot partition is vfat
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 5:35 pm    Post subject: Reply with quote

the computer is uefi, i found that i can choose an ext2 as a file system for the boot partition, can i use that file system to make symlinks?
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 03, 2021 5:39 pm    Post subject: Reply with quote

You can try it.
If it boots you are in luck.
If not you will need to do the ext4-/boot vfat-/boot/efi solution i described above.
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 5:44 pm    Post subject: Reply with quote

can you please explain more about the steps of making the 1gb partition?
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 03, 2021 5:47 pm    Post subject: Reply with quote

Code:

gdisk /dev/sdx
n ->
<enter>
<enter>
+1G
w ->
Y

Then
Code:

partprobe
mkfs.ext4 /dev/sdx<part-number>


_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 5:52 pm    Post subject: Reply with quote

and for the fstab?
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 03, 2021 6:08 pm    Post subject: Reply with quote

You will need of course to update fstab because your adding one more partiton ie /boot/efi
So in fstab you will have
Code:

/dev/sdx<part-number>  /boot    ext4   defaults,noatime   0 2
/dev/<previous-boot-partiton>    /boot/efi   vfat     defaults     0   1

You will have to do also this
Code:

mkdir /boot.bak
mv /boot/*  /boot.bak/
umount /boot
mount /dev/sdx<part-number>  /boot
mkdir /boot/efi
mount /dev/<old-boot>  /boot/efi
mv /boot.bak/* /boot/
rm -rf /boot/efi/EFI ##### IMPORTANT ONLY DO THIS IF YOU DONT HAVE OTHER DISTROS OR OS in your /boot/efi/EFI
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=gentoo --recheck
<update-initramfs>  #### then
grub-mkconfig -o /boot/grub/grub.cfg


If it seems overly complicated to you maybe try with the ext2 solution you read about and see if it works.
IMPORTANT if you feel uncertain about this simple manouvre or not understanding what is happening please dont do it.
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 6:38 pm    Post subject: Reply with quote

please make sure that all the steps are correct, because one of the steps deletes all the content of /boot/efi partition after it is created and mounted
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Fri Sep 03, 2021 6:39 pm    Post subject: Reply with quote

the ext2 step is when using mbr, i was wrong when i thought it is gonna solve the issue
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 03, 2021 9:02 pm    Post subject: Reply with quote

Quote:

please make sure that all the steps are correct, because one of the steps deletes all the content of /boot/efi partition after it is created and mounted


No it only deletes the old EFI directory.
which you recreate when you run the grub-install command.
The "grub" directory and the kernels and initrds should be inside /boot.
That is why you created the /boot.bak no?
DOUBLE CHECK plz
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Sat Sep 04, 2021 6:13 am    Post subject: Reply with quote

i tried to apply all the steps you mentioned, at the beginning the system did not boot, so i moved to a live cd and chrooted, the system booted with the steps that you have given. however i got an error message during boot saying:
Code:
mount: /boot/efi mount point does not exist
i would like to know where should the mount point be? on the root partition which is on my system is /dev/sda3 or on the new /boot partition which is /dev/sda5? i mean making the directory /boot/efi on the rootfs or on the new /boot partition?
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Sep 04, 2021 7:33 am    Post subject: Reply with quote

Quote:

i would like to know where should the mount point be? on the root partition which is on my system is /dev/sda3 or on the new /boot partition which is /dev/sda5? i mean making the directory /boot/efi on the rootfs or on the new /boot partition?

/boot/efi is created on /boot(after mounting the new 1G /boot partition.)
For illustration
Code:

mount /dev/sda1 /mnt
mkdir /mnt/boot
mount /dev/sdx1 /mnt/boot
mkdir /mnt/boot/efi
mount /dev/sdy1 /mnt/boot/efi

It should be self evident...
Plz see also
https://wiki.gentoo.org/wiki/Quick_Installation_Checklist#UEFI.2FGPT_2
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Sat Sep 04, 2021 9:12 am    Post subject: Reply with quote

do you have the wiki page for making the fstab with that configuration??
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Sat Sep 04, 2021 3:21 pm    Post subject: Reply with quote

anyway i guess my problem is solved, the system is bootable and works so good, probably that error message has nothing to do with the normal functioning of the system. thank you very much
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Sep 04, 2021 4:45 pm    Post subject: Reply with quote

Quote:

do you have the wiki page for making the fstab with that configuration??

There is nothing arcane in fstab.
If you still want somebody else to create your fstab for you you can boot into an archlinux installer mount all your Gentoo partitions on /mnt and run
Code:

genfstab -U /mnt > /mnt/etc/fstab
#### -U is for uuid format


You can even emerge
Code:

sys-devel/arch-install-scripts::gig

I wouldnt advise that though.
You should look the man pages for different fs mounting options also.
Did you manage to install xen?
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Sat Sep 04, 2021 7:27 pm    Post subject: Reply with quote

yes i managed to install xen, it has appeared on grub menu and was installed without errors. however in this section https://wiki.gentoo.org/wiki/Xen#Building_the_kernel it says "go to the Xen-powered Linux kernel source", i do not know where is that. when i boot to gentoo with xen i get boot messages then a black screen, i do not know if it is successfully working
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum