List Info

Thread: What's the Pre-requisites for virt-manager




What's the Pre-requisites for virt-manager
user name
2006-11-24 04:05:14
On Fri, Nov 24, 2006 at 10:52:13AM +0800, Henry Zhang wrote:
> 
> Thanks Dan, please see comments below.. 
> 
> Daniel P. Berrange ??????:
> >On Thu, Nov 23, 2006 at 07:54:24PM +0800, Henry
Zhang wrote:
> >  
> >>hi Daniel,
> >>
> >>From the webpage, I can see that dbus and
gnome-python-desktop are 
> >>optional, but when our release engineer try to
build, seems they are 
> >>not, so could you confirm me if we can
build/run virt-manager correctly 
> >>without Dbus?
> >>    
> >
> >Ah, I should perhaps clarify that a little. The
DBus python libraries
> >are required to be present, but you don't have to
have DBus running.
> So can I say: Dbus is necessary one for building
virt-manager, while not 
> when running it?

The DBus python libraries *are* needed at runtime. If the
DBus daemon isn't
present though, we catch the connection failure and disable
that piece of
the virtmanager functionality on the fly.

> > If it fails to connect to the DBus daemon, the app
will log a warning and
> >continue.  The GNome Python Desktop stuff is
competely optional - if you
> >don't have the python bindings installed it will
simply disable the VNC
> >password saving altogether.
> >
> >  
> >>I carefully read the content in "Dbus
Services", My understanding is 
> >>that Dbus in virt-manager is used to make other
external application 
> >>call some core function, so that they can get
display the window/dialog .
> >>When Dbus is used?
> >>
> >>"The remote control module provides the
DBus service 
> >><http://virt-manager.et.redhat.com/dbusservice.html>
allowing various UI 
> >>functions to be controlled remotely.": My
understanding for "remotely" 
> >>is to run virt-manager remotely, is it correct?
so will dbus only used 
> >>when remotely? if some application in local
machine, it may also use 
> >>Dbus to run some function?
> >>    
> >
> >Not quite - the intent with the DBus stuff is that
if you run two copies
> >of virt-manager on the same machine, 
> For "two copies of virt-manager": my
understanding is:
> Case 1: when I login, and run %/usr/binvirt-manager,
then when I run 
> %/usr/bin/virt-manager in the same machine again,
> the second one is the copy of first one, and just use
DBus/RPC to call.

Yes, the first copy you run of 'virt-manager' pops up the
window directly.
The second concurrent copy will send a DBus message to the
first, asking
it to popup a particular window, and then the second copy
exits - since the
first copy is dealing with it now.

> Case2: When I login machine A, run
%/usr/binvirt-manager, then remotely 
> access machine A through machine B,
> and run %/usr/bin/virt-manager again, so in this case,
the second one is 
> the copy of the first one, and use Dbus/RPC.

In most cases the DBus daemon is only available if you are
logged into
a local X / GNOME desktop session. If you are ssh'ing into a
machine
remotely it typically won't have  DBus session available.
So, when DBus
isn't available, many copies of virt-manager will be
launched and have
no way to detect that another copy is already running.

When the DBus folks get the DBus connection automatically
forwarding
over SSH, in the same way that X11 is forwarded, then the
remote case
will work in same way as local case. I've no idea when
that'll be
made to work though.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1
978 392 2496 -=|
|=-           Perl modules: http://search.cpan.o
rg/~danberr/              -=|
|=-               Projects: http://freshmeat.net/
~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF
F742 7D3B 9505  -=| 

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-11-24 12:28:24
Dan,

that's great, see comments below...

Daniel P. Berrange 写道:
> On Fri, Nov 24, 2006 at 10:52:13AM +0800, Henry Zhang
wrote:
>   
>> Thanks Dan, please see comments below.. 
>>
>> Daniel P. Berrange ??????:
>>     
>>> On Thu, Nov 23, 2006 at 07:54:24PM +0800, Henry
Zhang wrote:
>>>  
>>>       
>>>> hi Daniel,
>>>>
>>>>         
>>> >From the webpage, I can see that dbus and
gnome-python-desktop are 
>>>       
>>>> optional, but when our release engineer try
to build, seems they are 
>>>> not, so could you confirm me if we can
build/run virt-manager correctly 
>>>> without Dbus?
>>>>    
>>>>         
>>> Ah, I should perhaps clarify that a little. The
DBus python libraries
>>> are required to be present, but you don't have
to have DBus running.
>>>       
>> So can I say: Dbus is necessary one for building
virt-manager, while not 
>> when running it?
>>     
>
> The DBus python libraries *are* needed at runtime. If
the DBus daemon isn't
> present though, we catch the connection failure and
disable that piece of
> the virtmanager functionality on the fly.
>   
thanks, I know what you mean,
now for us, the problem is we don't want to port Dbus/HAL,
it means when 
we build virt-manager there is no Dbus/HAL in our system, if
we want to 
succeed in building, I am thinking to delete all codes
relative to Dbus, 
I find they are almost in remote.py, and some code in
makefile, 
create.py and virt-manager.py.in, do you think it's ok?

>   
>>> If it fails to connect to the DBus daemon, the
app will log a warning and
>>> continue.  The GNome Python Desktop stuff is
competely optional - if you
>>> don't have the python bindings installed it
will simply disable the VNC
>>> password saving altogether.
>>>
>>>  
>>>       
>>>> I carefully read the content in "Dbus
Services", My understanding is 
>>>> that Dbus in virt-manager is used to make
other external application 
>>>> call some core function, so that they can
get display the window/dialog .
>>>> When Dbus is used?
>>>>
>>>> "The remote control module provides
the DBus service 
>>>> <http://virt-manager.et.redhat.com/dbusservice.html>
allowing various UI 
>>>> functions to be controlled remotely.":
My understanding for "remotely" 
>>>> is to run virt-manager remotely, is it
correct? so will dbus only used 
>>>> when remotely? if some application in local
machine, it may also use 
>>>> Dbus to run some function?
>>>>    
>>>>         
>>> Not quite - the intent with the DBus stuff is
that if you run two copies
>>> of virt-manager on the same machine, 
>>>       
>> For "two copies of virt-manager": my
understanding is:
>> Case 1: when I login, and run
%/usr/binvirt-manager, then when I run 
>> %/usr/bin/virt-manager in the same machine again,
>> the second one is the copy of first one, and just
use DBus/RPC to call.
>>     
>
> Yes, the first copy you run of 'virt-manager' pops up
the window directly.
> The second concurrent copy will send a DBus message to
the first, asking
> it to popup a particular window, and then the second
copy exits - since the
> first copy is dealing with it now.
>   
So it seems only when in one machine, Dbus is used, so why
named remote 
control and in remote.py?
My understanding is when second copy is running, if there is
first one 
is running, send Dbus message,
and in the end exit, so there is only one virt-manager
running there, 
but when I try in Fedaro 6, seems
I can run several virt-manager after I login. a little
weird.. 
>   
>> Case2: When I login machine A, run
%/usr/binvirt-manager, then remotely 
>> access machine A through machine B,
>> and run %/usr/bin/virt-manager again, so in this
case, the second one is 
>> the copy of the first one, and use Dbus/RPC.
>>     
>
> In most cases the DBus daemon is only available if you
are logged into
> a local X / GNOME desktop session. If you are ssh'ing
into a machine
> remotely it typically won't have  DBus session
available. So, when DBus
> isn't available, many copies of virt-manager will be
launched and have
> no way to detect that another copy is already running.
>
> When the DBus folks get the DBus connection
automatically forwarding
> over SSH, in the same way that X11 is forwarded, then
the remote case
> will work in same way as local case. I've no idea when
that'll be
> made to work though.
>
> Regards,
> Dan.
>   

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-11-24 15:40:10
On Fri, Nov 24, 2006 at 08:28:24PM +0800, Henry Zhang wrote:
> Dan,
> 
> that's great, see comments below...
> 
> Daniel P. Berrange ??????:
> >On Fri, Nov 24, 2006 at 10:52:13AM +0800, Henry
Zhang wrote:
> >  
> >>Thanks Dan, please see comments below.. 
> >>
> >>Daniel P. Berrange ??????:
> >>    
> >>>On Thu, Nov 23, 2006 at 07:54:24PM +0800,
Henry Zhang wrote:
> >>> 
> >>>      
> >>>>hi Daniel,
> >>>>
> >>>>        
> >>>>From the webpage, I can see that dbus
and gnome-python-desktop are 
> >>>      
> >>>>optional, but when our release engineer
try to build, seems they are 
> >>>>not, so could you confirm me if we can
build/run virt-manager correctly 
> >>>>without Dbus?
> >>>>   
> >>>>        
> >>>Ah, I should perhaps clarify that a little.
The DBus python libraries
> >>>are required to be present, but you don't
have to have DBus running.
> >>>      
> >>So can I say: Dbus is necessary one for
building virt-manager, while not 
> >>when running it?
> >>    
> >
> >The DBus python libraries *are* needed at runtime.
If the DBus daemon isn't
> >present though, we catch the connection failure and
disable that piece of
> >the virtmanager functionality on the fly.
> >  
> thanks, I know what you mean,
> now for us, the problem is we don't want to port
Dbus/HAL, it means when 
> we build virt-manager there is no Dbus/HAL in our
system, if we want to 
> succeed in building, I am thinking to delete all codes
relative to Dbus, 
> I find they are almost in remote.py, and some code in
makefile, 
> create.py and virt-manager.py.in, do you think it's ok?

Yes, it should be pretty straightforward for you to remove
the DBus bits
completely - just remove the src/virtManager/remote.py file,
and any referneces
to DBus in srv/virt-manager.py.in

FYI, though I assume (from your email address) you're trying
to get this
working on Solaris ? DBus should work on Solaris already,
and I'm told
that there is also already a port of HAL to Solaris. 

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1
978 392 2496 -=|
|=-           Perl modules: http://search.cpan.o
rg/~danberr/              -=|
|=-               Projects: http://freshmeat.net/
~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF
F742 7D3B 9505  -=| 

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-11-26 03:53:25


>> thanks, I know what you mean,
>> now for us, the problem is we don't want to port
Dbus/HAL, it means when 
>> we build virt-manager there is no Dbus/HAL in our
system, if we want to 
>> succeed in building, I am thinking to delete all
codes relative to Dbus, 
>> I find they are almost in remote.py, and some code
in makefile, 
>> create.py and virt-manager.py.in, do you think it's
ok?
>>     
>
> Yes, it should be pretty straightforward for you to
remove the DBus bits
> completely - just remove the src/virtManager/remote.py
file, and any referneces
> to DBus in srv/virt-manager.py.in
>
> FYI, though I assume (from your email address) you're
trying to get this
> working on Solaris ? DBus should work on Solaris
already, and I'm told
> that there is also already a port of HAL to Solaris. 
>   
yeah, HAL/DBus have been in Solaris, but at some version,
the porting 
work have not done..
> Regards,
> Dan.
>   

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-11-29 08:43:49
Dan,
> Yes, it should be pretty straightforward for you to
remove the DBus bits
> completely - just remove the src/virtManager/remote.py
file, and any referneces
> to DBus in srv/virt-manager.py.in
>   
I checked the codes in create.py, seems if we delete
DBus/HAL, we will 
can't list cdrom volumes when user
 selects "New Virtual Machine...". I think it's a
big issue if not 
support CD install for guest Domain,

And seems there is an applet named gnome-nv-applet, but I
didn't find 
any infor from our virt-manager website,
should we list it in this webpage? and seems this applet is
also using 
DBus to access virt-manager, so if I delete
DBus/HAL, seems this applet can't work eigher.

I know you are expert for this tool.Could you give any good
idea for 
that? especially for CD install....

Thanks,
Henry

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-11-29 10:16:08
On Wed, Nov 29, 2006 at 04:43:49PM +0800, Henry Zhang wrote:
> Dan,
> >Yes, it should be pretty straightforward for you to
remove the DBus bits
> >completely - just remove the
src/virtManager/remote.py file, and any 
> >referneces
> >to DBus in srv/virt-manager.py.in
> >  
> I checked the codes in create.py, seems if we delete
DBus/HAL, we will 
> can't list cdrom volumes when user
> selects "New Virtual Machine...". I think
it's a big issue if not 
> support CD install for guest Domain,
> 
> And seems there is an applet named gnome-nv-applet, but
I didn't find 
> any infor from our virt-manager website,

 http:/
/people.redhat.com/kzak/gnome-applet-vm/

 Hehe, you're right -- Dan forgot add the link to his web
site 

> should we list it in this webpage? and seems this
applet is also using 
> DBus to access virt-manager, so if I delete
> DBus/HAL, seems this applet can't work eigher.

 The latest versions of the applet and virt-manager are able
to
 collaborate without DBUS.

    Karel

-- 
 Karel Zak  <kzakredhat.com>

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-12-01 12:08:54
On Wed, Nov 29, 2006 at 04:43:49PM +0800, Henry Zhang wrote:
> Dan,
> >Yes, it should be pretty straightforward for you to
remove the DBus bits
> >completely - just remove the
src/virtManager/remote.py file, and any 
> >referneces
> >to DBus in srv/virt-manager.py.in
> >  
> I checked the codes in create.py, seems if we delete
DBus/HAL, we will 
> can't list cdrom volumes when user
> selects "New Virtual Machine...". I think
it's a big issue if not 
> support CD install for guest Domain,

Ahh yes, sorry I completely forgot that we use DBus to talk
to HAL to
get a list of CDROM devices available on the host system.
This allows
you to easy install an HVM fullyvirt guest using media
inserted into
you host, rather than forcing you to copy the media into an
ISO file
first.

> And seems there is an applet named gnome-nv-applet, but
I didn't find 
> any infor from our virt-manager website,
> should we list it in this webpage? and seems this
applet is also using 
> DBus to access virt-manager, so if I delete
> DBus/HAL, seems this applet can't work eigher.

The applet used to use DBus, but now uses command line args
to launch
virt-manager.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1
978 392 2496 -=|
|=-           Perl modules: http://search.cpan.o
rg/~danberr/              -=|
|=-               Projects: http://freshmeat.net/
~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF
F742 7D3B 9505  -=| 

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-12-02 07:48:46
Hi Dan,

Daniel P. Berrange 写道:
> On Wed, Nov 29, 2006 at 04:43:49PM +0800, Henry Zhang
wrote:
>   
>> Dan,
>>     
>>> Yes, it should be pretty straightforward for
you to remove the DBus bits
>>> completely - just remove the
src/virtManager/remote.py file, and any 
>>> referneces
>>> to DBus in srv/virt-manager.py.in
>>>  
>>>       
>> I checked the codes in create.py, seems if we
delete DBus/HAL, we will 
>> can't list cdrom volumes when user
>> selects "New Virtual Machine...". I think
it's a big issue if not 
>> support CD install for guest Domain,
>>     
>
> Ahh yes, sorry I completely forgot that we use DBus to
talk to HAL to
> get a list of CDROM devices available on the host
system. This allows
> you to easy install an HVM fullyvirt guest using media
inserted into
> you host, rather than forcing you to copy the media
into an ISO file
> first.
>   
Yes, I think CD install is really very important feature, so
do you have 
plan to add some codes,
so that virt-manager can work correctly for getting CDROM
devices when 
without DBUS/HAL?
>   
>> And seems there is an applet named gnome-nv-applet,
but I didn't find 
>> any infor from our virt-manager website,
>> should we list it in this webpage? and seems this
applet is also using 
>> DBus to access virt-manager, so if I delete
>> DBus/HAL, seems this applet can't work eigher.
>>     
>
> The applet used to use DBus, but now uses command line
args to launch
> virt-manager.
>
> Regards,
> Dan.
>   

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-12-02 15:36:42
On Sat, Dec 02, 2006 at 03:48:46PM +0800, Henry Zhang wrote:
> Hi Dan,
> 
> Daniel P. Berrange ??????:
> >On Wed, Nov 29, 2006 at 04:43:49PM +0800, Henry
Zhang wrote:
> >  
> >>Dan,
> >>    
> >>>Yes, it should be pretty straightforward
for you to remove the DBus bits
> >>>completely - just remove the
src/virtManager/remote.py file, and any 
> >>>referneces
> >>>to DBus in srv/virt-manager.py.in
> >>> 
> >>>      
> >>I checked the codes in create.py, seems if we
delete DBus/HAL, we will 
> >>can't list cdrom volumes when user
> >>selects "New Virtual Machine...". I
think it's a big issue if not 
> >>support CD install for guest Domain,
> >>    
> >
> >Ahh yes, sorry I completely forgot that we use DBus
to talk to HAL to
> >get a list of CDROM devices available on the host
system. This allows
> >you to easy install an HVM fullyvirt guest using
media inserted into
> >you host, rather than forcing you to copy the media
into an ISO file
> >first.
> >  
> Yes, I think CD install is really very important
feature, so do you have 
> plan to add some codes,
> so that virt-manager can work correctly for getting
CDROM devices when 
> without DBUS/HAL?

No, if anything I think we'll increase the use of DBus. It
is really now
a core part of the open source desktop API set, being used
by both GNOME
and KDE alike, and for core system services like HAL,
Bluetooth, etc.

Rgards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1
978 392 2496 -=|
|=-           Perl modules: http://search.cpan.o
rg/~danberr/              -=|
|=-               Projects: http://freshmeat.net/
~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF
F742 7D3B 9505  -=| 

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
What's the Pre-requisites for virt-manager
user name
2006-12-04 06:40:13
Thanks, Dan,
So I will try to add some codes for this issue...

Regards,
Henry

Daniel P. Berrange 写道:
> On Sat, Dec 02, 2006 at 03:48:46PM +0800, Henry Zhang
wrote:
>   
>> Hi Dan,
>>
>> Daniel P. Berrange ??????:
>>     
>>> On Wed, Nov 29, 2006 at 04:43:49PM +0800, Henry
Zhang wrote:
>>>  
>>>       
>>>> Dan,
>>>>    
>>>>         
>>>>> Yes, it should be pretty
straightforward for you to remove the DBus bits
>>>>> completely - just remove the
src/virtManager/remote.py file, and any 
>>>>> referneces
>>>>> to DBus in srv/virt-manager.py.in
>>>>>
>>>>>      
>>>>>           
>>>> I checked the codes in create.py, seems if
we delete DBus/HAL, we will 
>>>> can't list cdrom volumes when user
>>>> selects "New Virtual Machine...".
I think it's a big issue if not 
>>>> support CD install for guest Domain,
>>>>    
>>>>         
>>> Ahh yes, sorry I completely forgot that we use
DBus to talk to HAL to
>>> get a list of CDROM devices available on the
host system. This allows
>>> you to easy install an HVM fullyvirt guest
using media inserted into
>>> you host, rather than forcing you to copy the
media into an ISO file
>>> first.
>>>  
>>>       
>> Yes, I think CD install is really very important
feature, so do you have 
>> plan to add some codes,
>> so that virt-manager can work correctly for getting
CDROM devices when 
>> without DBUS/HAL?
>>     
>
> No, if anything I think we'll increase the use of DBus.
It is really now
> a core part of the open source desktop API set, being
used by both GNOME
> and KDE alike, and for core system services like HAL,
Bluetooth, etc.
>
> Rgards,
> Dan.
>   

--
Fedora-xen mailing list
Fedora-xenredhat.com
ht
tps://www.redhat.com/mailman/listinfo/fedora-xen
[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )