Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[solved]error while installing xen

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

[solved]error while installing xen

  • Quote

Post by abdus » Fri Sep 03, 2021 11:41 am

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: Select all

emerge -av app-emulation/xen
i get this error

Code: Select all

!!! 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: Select all

FEATURES="-collision-detect -protect-owned"emerge -av app-emulation/xen
i get the same error with another error message

Code: Select all

 * 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
Last edited by abdus on Sat Sep 04, 2021 3:21 pm, edited 1 time in total.
i would like to thank everyone that contributed to the gentoo project in any means
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 03, 2021 4:05 pm

Try

Code: Select all

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.
:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Fri Sep 03, 2021 5:32 pm

yes my boot partition is vfat
i would like to thank everyone that contributed to the gentoo project in any means
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Fri Sep 03, 2021 5:35 pm

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
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 03, 2021 5:39 pm

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.
:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Fri Sep 03, 2021 5:44 pm

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
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 03, 2021 5:47 pm

Code: Select all

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

Code: Select all

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

:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Fri Sep 03, 2021 5:52 pm

and for the fstab?
i would like to thank everyone that contributed to the gentoo project in any means
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 03, 2021 6:08 pm

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

Code: Select all

/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: Select all

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.
:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Fri Sep 03, 2021 6:38 pm

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
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Fri Sep 03, 2021 6:39 pm

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
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 03, 2021 9:02 pm

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
:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Sat Sep 04, 2021 6:13 am

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: Select all

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
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sat Sep 04, 2021 7:33 am

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: Select all

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_Inst ... FI.2FGPT_2
:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Sat Sep 04, 2021 9:12 am

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
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Sat Sep 04, 2021 3:21 pm

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
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sat Sep 04, 2021 4:45 pm

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: Select all

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

You can even emerge

Code: Select all

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?
:)
Top
abdus
Apprentice
Apprentice
Posts: 190
Joined: Wed Feb 10, 2021 1:01 pm
Location: bandung

  • Quote

Post by abdus » Sat Sep 04, 2021 7:27 pm

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
Top
Post Reply

18 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic