1

Может кто сталкивался, система 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

2 (25.10.2011 15:20:42 отредактировано i2ks)

dodo1 пишет:

import libvirt

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

It is good day to die ...
MS Windows 10
Заметки о главном...

3

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

4 (26.10.2011 14:19:58 отредактировано i2ks)

dodo1 пишет:

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

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

It is good day to die ...
MS Windows 10
Заметки о главном...

5 (26.10.2011 14:23:54 отредактировано i2ks)

dodo1, А вообще вот:

 Консоль:

yum install kernel-xen xen xenwatch libvirt virt-manager

тыц

It is good day to die ...
MS Windows 10
Заметки о главном...

6

 Консоль:
yum install libvirt

+ открыть спойлер

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.

7

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

It is good day to die ...
MS Windows 10
Заметки о главном...

8

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

9

Hrafn пишет:

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

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

10

http://wiki.centos.org/PackageManagement/Yum/Priorities

А лучше всего определитесь, зачем у Вас вообще подключены какие-то непонятные репозитории.

11

Вот такие репозитории подключил Epel + CentAlt и приоритеты настроил, вначале CentOS-Base затем Epel + CentAlt

 Консоль:
yum install libvirt

+ открыть спойлер

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

12

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

13

Hrafn пишет:

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

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

14

Не за что ab

15

Скачал iso-образ убунты-сервер указываю iso образ такая ошибка:

 Консоль:
virt-install -p --location=~/ubuntu-11.10-server-amd64.iso --noautoconsole --name=fw --ram=1024 --file=fw.img --file-size=20 --nographics

ERROR    Error creating cdrom disk: Checking installer location failed: Could not find media '~/ubuntu-11.10-server-amd64.iso'.
Смонтировав iso в папку
 Консоль:
mount ~/ubuntu-11.10-server-amd64.iso /mnt -o loop

 Консоль:
virt-install -p --location=~/mnt/ --noautoconsole --name=fw --ram=1024 --file=fw.img --file-size=20 --nographics

ERROR    Error creating cdrom disk: Checking installer location failed: Could not find media '~/mnt/'.

16

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

It is good day to die ...
MS Windows 10
Заметки о главном...

17

i2ks пишет:

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

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

18

dodo1 пишет:

--location=~/mnt/


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

It is good day to die ...
MS Windows 10
Заметки о главном...

19

i2ks пишет:
dodo1 пишет:

--location=~/mnt/


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

 Консоль:
virt-install -p --location=/root/ubuntu-11.10-server-amd64.iso --noautoconsole --name=fw --ram=1024 --file=fw.img --file-size=20 --nographics

+ открыть спойлер

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'

20

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

It is good day to die ...
MS Windows 10
Заметки о главном...

21

 Консоль:
virt-install --prompt
Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. n
What is the name of your virtual machine? fw
How much RAM should be allocated (in megabytes)? 1024
What would you like to use as the disk (file path)? fw.img
How large would you like the disk (fw.img) to be (in gigabytes)? 20
What is the install URL? /root/ubuntu-11.10-server-amd64.iso

+ открыть спойлер

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'

22

dodo1 пишет:

What is the install URL? /root/ubuntu-11.10-server-amd64.iso

oO Вы хоть документацию открывали?
Если у вас диск смонтирован уже в /mnt то просто укажите там путь к смонтированному диску. А вот когда система задаст вопрос:
What is the virtual CD image, CD device or install location? , то здесь укажите путь к iso образу.

It is good day to die ...
MS Windows 10
Заметки о главном...

23

i2ks пишет:
dodo1 пишет:

What is the install URL? /root/ubuntu-11.10-server-amd64.iso

oO Вы хоть документацию открывали?
Если у вас диск смонтирован уже в /mnt то просто укажите там путь к смонтированному диску. А вот когда система задаст вопрос:
What is the virtual CD image, CD device or install location? , то здесь укажите путь к iso образу.

В первом вопросе ответил У

 Консоль:
virt-install --prompt
Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. Y

теперь появилась строка с What is the virtual CD image, CD device or install location? указал путь к образу, все прошло без ошибок.
Теперь набираю xm console fw и ни чего не происходит

24

dodo1 пишет:

Теперь набираю xm console fw и ни чего не происходит

А что должно произойти то? если вы консоль не настроили даже. Обратитесь к документации. Там все подробно разложено как и что сделать.

It is good day to die ...
MS Windows 10
Заметки о главном...