vovfooo | 2 Jun 10:17

Problem of install domU with virt-install, need your help!

I used virt-install(0.400.3) to install a suse10 domU with command:
 
virt-install -p -n suse10 -r 512 --nographics --disk path=/dev/sdb6 -l "ftp://129.22.0.201/pxe/suse10_x86/"

And I got these error messages:

ERROR    listStoragePools() takes exactly 3 arguments (1 given)
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 779, in ?
    main()
  File "/usr/bin/virt-install", line 600, in main
    options.sparse, options.nodisks, guest, ishvm, conn)
  File "/usr/bin/virt-install", line 243, in get_disks
    is_file_path), disk, size)
  File "/usr/bin/virt-install", line 243, in <lambda>
    is_file_path), disk, size)
  File "/usr/bin/virt-install", line 195, in get_disk
    driverCache=cache)
  File "/usr/lib/python2.4/site-packages/virtinst/VirtualDisk.py", line 180, in __init__
    self.__validate_params()
  File "/usr/lib/python2.4/site-packages/virtinst/VirtualDisk.py", line 514, in __validate_params
    storage_capable = _util.is_storage_capable(self.conn)
  File "/usr/lib/python2.4/site-packages/virtinst/util.py", line 535, in is_storage_capable
    conn.listStoragePools()
TypeError: listStoragePools() takes exactly 3 arguments (1 given)

Thaks for your help!

 

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Cole Robinson | 2 Jun 13:35
Picon
Favicon

Re: Problem of install domU with virt-install, need your help!

On 06/02/2009 04:17 AM, vovfooo wrote:
> I used virt-install(0.400.3) to install a suse10 domU with command:
>  
> virt-install -p -n suse10 -r 512 --nographics --disk path=/dev/sdb6 -l
> "ftp://129.22.0.201/pxe/suse10_x86/"
> 
> And I got these error messages:
> 
> ERROR    listStoragePools() takes exactly 3 arguments (1 given)
> Traceback (most recent call last):
>   File "/usr/bin/virt-install", line 779, in ?
>     main()
>   File "/usr/bin/virt-install", line 600, in main
>     options.sparse, options.nodisks, guest, ishvm, conn)
>   File "/usr/bin/virt-install", line 243, in get_disks
>     is_file_path), disk, size)
>   File "/usr/bin/virt-install", line 243, in <lambda>
>     is_file_path), disk, size)
>   File "/usr/bin/virt-install", line 195, in get_disk
>     driverCache=cache)
>   File "/usr/lib/python2.4/site-packages/virtinst/VirtualDisk.py", line
> 180, in __init__
>     self.__validate_params()
>   File "/usr/lib/python2.4/site-packages/virtinst/VirtualDisk.py", line
> 514, in __validate_params
>     storage_capable = _util.is_storage_capable(self.conn)
>   File "/usr/lib/python2.4/site-packages/virtinst/util.py", line 535, in
> is_storage_capable
>     conn.listStoragePools()
> TypeError: listStoragePools() takes exactly 3 arguments (1 given)
> 
> Thaks for your help!
> 

Hmm, that's strange. listStoragePools certainly doesn't take 3 arguments
where I am. What host distro and libvirt version are you using? Are you
using distro packages or built from source?

- Cole
Poul Kristensen | 4 Jun 10:41
Picon
Favicon

virt-p2v version 0.9.9 released 2009-01.20 gives ssh error exit 255....


Hi !

Has anyone experienced this?

Has anyone got a solution?

Googling says that this should have been resolved in earlier releases.

TIA

Poul

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Richard W.M. Jones | 4 Jun 18:04
Picon
Favicon

ANNOUNCE: libguestfs 1.0.41 released

[This is the only time I'll send this announcement to qemu-devel]

I'm pleased to announce the release of a new stable version of
libguestfs, the library for accessing and modifying virtual machine
disk images.  Based on around qemu and Linux kernel code, this can be
used as a library or from scripts to make batch configuration changes
to guests, view and edit config files inside guests, and much more.

  http://et.redhat.com/~rjones/libguestfs/

Source:
  http://et.redhat.com/~rjones/libguestfs/files/libguestfs-1.0.41.tar.gz

Fedora 11+ packages:
  (Available soon in F11 updates-testing or directly from Koji:
  http://koji.fedoraproject.org/koji/buildinfo?buildID=104824)

RHEL/CentOS 5 packages:
  (Being uploaded to EPEL now, available soon)

Debian packages:
  http://www.annexia.org/tmp/debian/

Since the last announcement, many bugs have been fixed and features
added.  The main highlights are:

 - squashfs and cramfs support
 - better support for read-only access to drives
 - many problems with string handling in different language bindings
   have been fixed
 - internationalization support
 - ext4 support improved on RHEL 5
 - improved support for running commands in the guest
 - support for skipping tests
 - lvresize and ext2/3 resize support
 - pvremove, vgremove, lvremove commands
 - sleep command
 - IRC channel #libguestfs on FreeNode

Bugs fixed:

501761 - libguestfs requires qemu, not qemu-system-x86 or qemu-system-ppc
501878 - guestfish built-in commands like 'alloc' and 'help' don't autocomplete
501883 - javadoc messed up in libguestfs java documentation
501885 - Doesn't detect missing Java, --with-java-home=no should not be needed
501892 - OptString parameters not handled properly in bindings
502309 - libguestfs build failure - tests occasionally fail with 'ranlib:
  './libmlguestfs.a': No such file'
502533 - Polish translation of libguestfs
503133 - "mkdir-p" should not throw errors on preexisting directories
503135 - cramfs and squashfs modules should be available in libguestfs
  appliances
503169 - libguestfs /dev is too sparse for kernel installation/upgrade

Thanks to Charles Duffy for a number of patches and suggestions.

Rich.

--

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
Guido Günther | 4 Jun 18:42
Gravatar

Re: [PATCH] virtinst: parse /etc/default/console-setup for keymap

On Thu, May 14, 2009 at 09:14:36PM +0200, Guido Günther wrote:
> Hi,
> since recently Debian based distributions store keymap information in
> /etc/default/console-setup. The attached patch parses this file if no
> keymap is found in xorg.conf.
Can this be applied?
 -- Guido
Cole Robinson | 4 Jun 22:26
Picon
Favicon

Re: [PATCH] virtinst: parse /etc/default/console-setup for keymap

Guido Günther wrote:
> On Thu, May 14, 2009 at 09:14:36PM +0200, Guido Günther wrote:
>> Hi,
>> since recently Debian based distributions store keymap information in
>> /etc/default/console-setup. The attached patch parses this file if no
>> keymap is found in xorg.conf.
> Can this be applied?
>  -- Guido
> 

Ahh, sorry, I forgot about this. It's pushed now.

Thanks,
Cole
Cole Robinson | 4 Jun 22:30
Picon
Favicon

Re: [PATCH] virt-manager: make return value check match self.get_config_keymap()

Guido Günther wrote:
> In the "Add hardware" wizard summary, the keymap field is set to "None"
> instead of the empty string when "Same as host" option is used.
> This patch was posted by Laurent Léonard to the Debian BTS.
> Cheers,
>  -- Guido
> 

Thanks, applied. I fixed the AUTHORS attribution in the following commit:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virt-manager--devel/rev/39367e0cbccb
http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virt-manager--devel/rev/f9ad1d0c29d0

Thanks,
Cole
Cole Robinson | 4 Jun 22:58
Picon
Favicon

Re: Virtinst and blktap

Cole Robinson wrote:
> Michael DeHaan wrote:
>> Cole Robinson wrote:
>>> Michael DeHaan wrote:
>>>   
>>>> Chris Lalancette wrote:
>>>>     
>>>>> Michael DeHaan wrote:
>>>>>   
>>>>>       
>>>>>> I had a user question about how they can specify blktap for Xen in 
>>>>>> Cobbler instead of the file driver (for performance reasons) ... well, 
>>>>>> it turns out they can't (yet).
>>>>>>
>>>>>> Under what conditions can we use blktap, and is that advisable?   (I had 
>>>>>> thought this might work like virtio, in which case, passing in the os 
>>>>>> version uses a table, but it seems this may only actually depend on the 
>>>>>> host and has no guest limitations?)
>>>>>>     
>>>>>>         
>>>>> That's exactly right.  It's a property of how the host OS accesses the disk on
>>>>> behalf of the domain, not of how the disk is presented to the domain.  In fact,
>>>>> for Xen PV domains, you should *only* ever use blktap (i.e. tap:aio:); direct
>>>>> file: access can corrupt your guest domains on host crash.  The situation with
>>>>> FV domains is more complicated, but there, you can use file:, since it properly
>>>>> does flushing.
>>>>>
>>>>>   
>>>>>       
>>>>     
>>>>>> It looks like from the virtinst code I could just call 
>>>>>> utils.is_blktap_capable() from my libvirt-using application and if so, 
>>>>>> then pass the driver=DRIVER_TAP options to virstinst.
>>>>>>
>>>>>> Good idea?  Bad idea?
>>>>>>     
>>>>>>         
>>>>> The only reasonable default for Xen PV domains, in my opinion.
>>>>>
>>>>>   
>>>>>       
>>>> Thanks.
>>>>
>>>> FWIW the default behavior of python-virtinst seems to be to /not/ use 
>>>> blktap, and should probably be fixed then if there's a potential 
>>>> corruption problem.
>>>>
>>>> I haven't tested command line virt-install to see what it does.
>>>>
>>>>     
>>> That default is actually set in virt-install and virt-manager, but
>>> probably should have been moved into the virtinst library a long time ago.
>>>
>>> - COle
>>>   
>> Yeah, I can't keep up very well when stuff doesn't happen there :)
>>
>> Should I make the fix in koan also or do you want to move it?
>>
>> --Michael
>>
> 
> I'll take a look at moving it into the library, but for back compat it
> wouldn't hurt to set the default in koan. The virt-install code is:
> 
> http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virtinst--devel/file/5d6dc8af58b5/virt-install#l209
> 

This is now upstream: we will set the 'tap' default if installing a PV
guest:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virtinst--devel/rev/ab66c26436cf

If creating a standalone VirtualDisk instance though, the default won't
be set, since we don't know what type of guest it will be attached to.

- Cole
Gravatar

virt-manager F1

I'm using virt-manager 0.6.0 on a Fedora 10 host and I just noticed
that clicking on Help > Contents F1 does not do anything. Is this the
usual behavior?

Likewise, where can I see the documentation for virt-manager?

--

-- 
Heherson Pagcaliwagan
http://www.azneita.org
Hany Fahim | 7 Jun 19:49
Picon

python-virtinst and DRBD

Hi,


I'm interested in using in using DRBD with Xen. DRBD provides a supporting script, /etc/xen/scripts/block-drbd, which allows disks to be defined as:

disk = [ 'drbd:resource,xvda,w' ]

Currently I don't see support for it under python-virtinst. Are there plans to have this implemented?

Thanks,

Hany
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Gmane