[pve-devel] adding cdrom fails

Alexandre DERUMIER aderumier at odiso.com
Wed Aug 29 08:47:14 CEST 2012


>>@alexandre: Seems we hotplug even if it is not enabled. Please can you take 
>>a look at that? 

I confirm that we only hotplug if the vm is running and hotplug is enable



sub vm_deviceplug {
    my ($storecfg, $conf, $vmid, $deviceid, $device) = @_;

    return 1 if !check_running($vmid) || !$conf->{hotplug};


sub vm_deviceunplug {
    my ($vmid, $conf, $deviceid) = @_;

    return 1 if !check_running ($vmid) || !$conf->{hotplug};


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com>, "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 29 Août 2012 07:30:26 
Objet: RE: [pve-devel] adding cdrom fails 

> Subject: Re: [pve-devel] adding cdrom fails 
> 
> >>device 'drive-id0' no found (500). 
> 
> it should be drive-ide0 or drive-ide2 (default cdrom) I think ? 

That only happens when the VM is running. So this is related to 
the hotplug code? 

@alexandre: Seems we hotplug even if it is not enabled. Please can you take 
a look at that? 





-- 

-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 



More information about the pve-devel mailing list