[Fusioninventory-user] Container OpenVZ (Proxmox) and UUID
Matthieu.Marc at ensam.eu
Matthieu.Marc at ensam.eu
Tue May 26 13:18:23 UTC 2015
I have the same problem using 2.3.16.
I am starting trying modifying UUID of the guest container in ./lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm :
my $vmid = $type eq 'Virtuozzo' ?
_getOpenVZVmID(logger => $logger) : undef;
my $uuid = $type eq 'Xen' ? _getXenUUID(logger => $logger) :
$type eq 'LXC' ? _getLibvirtLXC_UUID(logger => $logger) :
undef;
# BEGIN NEW
if (
$type eq 'Virtuozzo' && defined $vmid
) {
$uuid = $inventory->{content}{HARDWARE}{UUID} . "-" . $vmid;
$vmid = $uuid;
}
# END NEW
$inventory->setHardware({
VMSYSTEM => $type,
UUID => $uuid,
VMID => $vmid
});
So that the UUID of the guest is UUID + "-" + VM_ID
But when importing the guest, it override the host. (the UUID of the host and of the guest are not equal anymore).
Cordialy
-----Message d'origine-----
De : Fusioninventory-user [mailto:fusioninventory-user-bounces+matthieu.marc=ensam.eu at lists.alioth.debian.org] De la part de Kevin Roy
Envoyé : mardi 26 mai 2015 15:08
À : FusionInventory User discussion
Objet : Re: [Fusioninventory-user] Container OpenVZ (Proxmox) and UUID
On 26 May 2015 at 14:32, <Matthieu.Marc at ensam.eu> wrote:
> It seems to be only for KVM. I am using OpenVZ :-(
Ok my bad ;) ... i overlooked the subject in your mail.
It seems you are using a really old version (2.2.3) of fusioninventory-agent. Can you test with a more recent version (the latest version is actually 2.3.16) and see if it can fix your issue ?
--
Kevin Roy
_______________________________________________
Fusioninventory-user mailing list
Fusioninventory-user at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-user
More information about the Fusioninventory-user
mailing list