You are not logged in.

#1 2014-01-04 08:19:02

j0lly
Member
From: ~Milan
Registered: 2011-08-16
Posts: 49

Virt-install fail with --location switch

Hello Forum i recently tried to install some KVM based VMs on my Arch box and i faced this error that seems related to incompatible vesrions of libvirt/virt-install:

virt-install --name test1 --virt-type kvm --vcpus=2 --ram 1024 --network network=default,model=virtio --disk path=/home/j0lly/VMs/test1,size=2 --location http://127.0.0.1/release6/ -x 'console=tty0 console=ttyS0,115200n8 ks=http://127.0.0.1/kickstart_base.cfg' --nographics --os-variant=rhel6 --os-type=linux --autostart --debug

This the error code:

Assegnazione 'virtinst-vmlinuz.lkGIOO' in corso                                                                                                                                 | 3.9 MB     00:00
[sab, 04 gen 2014 08:48:33 virt-install 19424] DEBUG (Storage:1243) Storage volume 'virtinst-vmlinuz.lkGIOO' install complete.
[sab, 04 gen 2014 08:48:33 virt-install 19424] ERROR (cli:451) 'virStream' object has no attribute 'upload'
[sab, 04 gen 2014 08:48:33 virt-install 19424] DEBUG (cli:454)
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-install", line 677, in start_install
    noboot=options.noreboot)
  File "/usr/share/virt-manager/virtinst/Guest.py", line 1117, in start_install
    self._prepare_install(meter, dry)
  File "/usr/share/virt-manager/virtinst/Guest.py", line 872, in _prepare_install
    meter=meter)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 460, in prepare
    dev = self._prepare_kernel_and_initrd(guest, meter)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 420, in _prepare_kernel_and_initrd
    kernelfn, initrdfn)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 356, in _upload_media
    kvol = _upload_file(conn, meter, pool, kernel)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 127, in _upload_file
    stream.upload(vol, offset, length, flags)
AttributeError: 'virStream' object has no attribute 'upload'
[sab, 04 gen 2014 08:48:33 virt-install 19424] DEBUG (cli:465) L'installazione del dominio non sembra essere avvenuta con successo.

If i use Local source like cdrom or iso there's no problem in the installation process.

Does somebody faced the same problem?

Libvirt Ver: 1.2.0-1
virt-manager Ver: 0.10.0-4
Pyhton2 Ver: 2.7.6-1
libvirt-python Ver: 1.2.0-2
Kernel : 3.8.8-2-ARCH (due to nested kvm broken in kernel >= 3.10)


...why not

Offline

#2 2014-01-06 15:12:03

joooooe
Member
Registered: 2014-01-06
Posts: 1

Re: Virt-install fail with --location switch

I am facing the same error when trying to create a new virtual machine on a remote Debian system with virt-manager using network install with a http url:

 Unable to complete install: ''virStream' object has no attribute 'upload''

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1920, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/share/virt-manager/virtinst/Guest.py", line 1117, in start_install
    self._prepare_install(meter, dry)
  File "/usr/share/virt-manager/virtinst/Guest.py", line 872, in _prepare_install
    meter=meter)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 460, in prepare
    dev = self._prepare_kernel_and_initrd(guest, meter)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 420, in _prepare_kernel_and_initrd
    kernelfn, initrdfn)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 356, in _upload_media
    kvol = _upload_file(conn, meter, pool, kernel)
  File "/usr/share/virt-manager/virtinst/DistroInstaller.py", line 127, in _upload_file
    stream.upload(vol, offset, length, flags)
AttributeError: 'virStream' object has no attribute 'upload'
 

Libvirt Ver: 1.2.0-1
virt-manager Ver: 0.10.0-4
Pyhton2 Ver: 2.7.6-1
libvirt-python Ver: 1.2.0-2
Kernel : 3.12.6-1

Last edited by joooooe (2014-01-06 15:12:59)

Offline

Board footer

Powered by FluxBB