LinuxForum.Fans
Тема

Xen установка гостевой системы

Автор: dodo1 24 сообщений 6170 просмотров
#200931

Может кто сталкивался, система Centos5.
Делаю
yum install kernel-xen xen
потом ввожу virt-install выпадает с такой ошибкой.

[root@localhost ~]# virt-install
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 31, in ?
import libvirt
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 25, in ?
raise lib_e
ImportError: /usr/lib64/libvirt.so.0: undefined symbol: selinux_virtual_domain_context_path

#200934
dodo1 написал:
import libvirt

питону не хватает библиотеки.
Поставить можно через pip-python

#201111

Мне нужно pip-python поставить?

#201114
dodo1 написал:
Мне нужно pip-python поставить?

yum install libvirt или через pip-python, а потом выполнить pip-python install libvirt после этого проверить, дальше в шеле питона import libvirt, если отработает без ошибок, то можете дальше продолжать установку.

#201116

dodo1, А вообще вот:
[console]
yum install kernel-xen xen xenwatch libvirt virt-manager
[/console]
тыц

#201129

[console]yum install libvirt [/console]

Показать

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www7.atomicorp.com
* base: www.ftp.ne.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libvirt.x86_64 0:0.9.0-1.el5.art set to be updated
--> Processing Dependency: /usr/bin/qemu-img for package: libvirt
--> Processing Dependency: radvd for package: libvirt
--> Processing Dependency: xz for package: libvirt
--> Processing Dependency: ebtables for package: libvirt
--> Processing Dependency: lzop for package: libvirt
--> Processing Dependency: iscsi-initiator-utils for package: libvirt
--> Running transaction check
---> Package ebtables.x86_64 0:2.0.9-5.el5 set to be updated
---> Package iscsi-initiator-utils.x86_64 0:6.2.0.872-10.el5 set to be updated
---> Package kvm-qemu-img.x86_64 0:83-239.el5.centos set to be updated
---> Package libvirt.x86_64 0:0.9.0-1.el5.art set to be updated
--> Processing Dependency: lzop for package: libvirt
---> Package radvd.x86_64 0:0.9.1-4 set to be updated
---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
--> Finished Dependency Resolution
libvirt-0.9.0-1.el5.art.x86_64 from atomic has depsolving problems
--> Missing Dependency: lzop is needed by package libvirt-0.9.0-1.el5.art.x86_64 (atomic)
Error: Missing Dependency: lzop is needed by package libvirt-0.9.0-1.el5.art.x86_64 (atomic)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
#201131

dodo1, разрешить зависимости надо, хотя почему вас это все выползло, я затрудняюсь ответить.

#201157

Потому что понаставлено реп, не совместимых с базовыми... ТС, настраивайте приоритеты у репозиториев

#201293
Hrafn написал:
Потому что понаставлено реп, не совместимых с базовыми... ТС, настраивайте приоритеты у репозиториев

Это что такое?

#201439

Вот такие репозитории подключил Epel + CentAlt и приоритеты настроил, вначале CentOS-Base затем Epel + CentAlt
[console]yum install libvirt[/console]

Показать
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* atomic: www7.atomicorp.com
* base: mirror.corbina.net
* epel: mirror.xfes.ru
* extras: mirror.corbina.net
* updates: mirror.corbina.net
addons | 951 B 00:00
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
Excluding Packages in global exclude list
Finished
653 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libvirt.x86_64 0:0.9.0-1.el5.art set to be updated
--> Processing Dependency: /usr/bin/qemu-img for package: libvirt
--> Processing Dependency: radvd for package: libvirt
--> Processing Dependency: xz for package: libvirt
--> Processing Dependency: ebtables for package: libvirt
--> Processing Dependency: lzop for package: libvirt
--> Processing Dependency: iscsi-initiator-utils for package: libvirt
--> Running transaction check
---> Package ebtables.x86_64 0:2.0.9-5.el5 set to be updated
---> Package iscsi-initiator-utils.x86_64 0:6.2.0.872-10.el5 set to be updated
---> Package lzop.x86_64 0:1.03-2.el5 set to be updated
--> Processing Dependency: liblzo2.so.2()(64bit) for package: lzop
---> Package qemu-img.x86_64 2:0.10.5-1.el5.2 set to be updated
---> Package radvd.x86_64 0:0.9.1-4 set to be updated
---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
--> Finished Dependency Resolution
lzop-1.03-2.el5.x86_64 from epel has depsolving problems
--> Missing Dependency: liblzo2.so.2()(64bit) is needed by package lzop-1.03-2.el5.x86_64 (epel)
Error: Missing Dependency: liblzo2.so.2()(64bit) is needed by package lzop-1.03-2.el5.x86_64 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
#201442

Начнем с того, что у Вас подключен Atomic, а не CentAlt. Во-вторых, я не уверен, что приоритеты расставлены правильно. поскольку libvirt упорно хочет скачаться с Atomic, хотя этот же пакет есть в репах самого Цента

#201466
Hrafn написал:
Начнем с того, что у Вас подключен Atomic, а не CentAlt. Во-вторых, я не уверен, что приоритеты расставлены правильно. поскольку libvirt упорно хочет скачаться с Atomic, хотя этот же пакет есть в репах самого Цента

Верно Atomic я не изменил там приоритет, выставил правильный приоритет и все установилось. Спасибо.

#202730

Скачал iso-образ убунты-сервер указываю iso образ такая ошибка:
[console]virt-install -p --location=~/ubuntu-11.10-server-amd64.iso --noautoconsole --name=fw --ram=1024 --file=fw.img --file-size=20 --nographics
[/console]
ERROR Error creating cdrom disk: Checking installer location failed: Could not find media '~/ubuntu-11.10-server-amd64.iso'.
Смонтировав iso в папку
[console]mount ~/ubuntu-11.10-server-amd64.iso /mnt -o loop[/console]
[console] virt-install -p --location=~/mnt/ --noautoconsole --name=fw --ram=1024 --file=fw.img --file-size=20 --nographics
[/console]
ERROR Error creating cdrom disk: Checking installer location failed: Could not find media '~/mnt/'.

#202731

укажите полный путь к iso образу.

#202733
i2ks написал:
укажите полный путь к iso образу.

Он в корневой папке root лежит

#202734
dodo1 написал:
--location=~/mnt/

я не уверен то что эта запись корректна, укажите тогда так --location=/root/blablabla.iso или --location=/mnt

#202737
i2ks написал:
[quote=dodo1]--location=~/mnt/

я не уверен то что эта запись корректна, укажите тогда так --location=/root/blablabla.iso или --location=/mnt[/quote]
[console]virt-install -p --location=/root/ubuntu-11.10-server-amd64.iso --noautoconsole --name=fw --ram=1024 --file=fw.img --file-size=20 --nographics
[/console]

Показать
Starting install...
ERROR Could not find an installable distribution at '/root/ubuntu-11.10-server-amd64.iso'
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start fw'; otherwise, please
restart your installation.
ERROR Could not find an installable distribution at '/root/ubuntu-11.10-server-amd64.iso'
Traceback (most recent call last):
File "/usr/sbin/virt-install", line 895, in ?
main()
File "/usr/sbin/virt-install", line 757, in main
start_time, guest.start_install)
File "/usr/sbin/virt-install", line 819, in do_install
dom = install_func(conscb, progresscb, wait=(not wait))
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 539, in start_install
self._prepare_install(meter)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 594, in _prepare_install
meter = meter)
File "/usr/lib/python2.4/site-packages/virtinst/DistroInstaller.py", line 245, in prepare
self._prepare_kernel_and_initrd(guest, distro, meter)
File "/usr/lib/python2.4/site-packages/virtinst/DistroInstaller.py", line 194, in _prepare_kernel_and_initrd
type=self.os_type, distro=distro)
File "/usr/lib/python2.4/site-packages/virtinst/OSDistro.py", line 156, in acquireKernel
scratchdir, type, distro)
File "/usr/lib/python2.4/site-packages/virtinst/OSDistro.py", line 136, in _acquireMedia
scratchdir=scratchdir, arch=arch)
File "/usr/lib/python2.4/site-packages/virtinst/OSDistro.py", line 100, in _storeForDistro
raise ValueError, _("Could not find an installable distribution at '%s'" %
ValueError: Could not find an installable distribution at '/root/ubuntu-11.10-server-amd64.iso'
#202739

dodo1, что то вы не так делаете, для того, что бы понять, запустите просто virt-install и отвечайте на вопросы.

Войдите или зарегистрируйтесь, чтобы ответить.