<div class="gmail_quote">2009/7/24 Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Fri, Jul 24, 2009 at 06:23:21PM +0400, Anton Protopopov wrote:<br>
> ><br>
> > > Is there anyone tackling this problem now?( or going to? )<br>
> > > Otherwise, any hint would help me.<br>
> ><br>
> >   I don't think anybody has tried to handle this. The problem I think<br>
> > is that the mapping would have to be stored and if the hypervisor<br>
> > doesn't support this maintaining this data in a coherent fashion<br>
> > will be non-trivial. In any case the design for such a patch should<br>
> > be discussed here first and with the openvz maintainers to make sure<br>
> > the effort isn't wasted.<br>
> ><br>
><br>
> Openvz supports setting names for containers, see description on --name<br>
> parameter in vzctl(8). But you (or libvirt) actually need to specify<br>
> an unique container id anyway.<br>
<br>
</div></div>We should make use of this --name parameter then - I guess it didn't<br>
exist when we first wrote the driver. It is useful to users to have<br>
separate ID vs Name parameters - and in fact the current reusing of<br>
'ID' for the name, causes a little confusion in virsh's lookup routines<br>
because it can't tell whether the parameter its given is a name or an<br>
ID, since they are identical.<br>
</blockquote><div><br>There is still a question of how to specify both a name and CTID in XML description.<br>By default, CTID can be obtained as openvzGimmeFirstUnusedCTID(), but actually<br>I think that there exists a number of persons interested in giving CTIDs manually.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Regards,<br>
Daniel<br>
<font color="#888888">--<br>
|: Red Hat, Engineering, London   -o-   <a href="http://people.redhat.com/berrange/" target="_blank">http://people.redhat.com/berrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>  -o-  <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a>  -o-  <a href="http://ovirt.org" target="_blank">http://ovirt.org</a> :|<br>

|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/%7Edanberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|<br>
</font></blockquote></div><br>