[pve-devel] adding cdrom fails

Stefan Priebe s.priebe at profihost.ag
Wed Aug 29 17:02:43 CEST 2012


Am 29.08.2012 08:47, schrieb Alexandre DERUMIER:
>>> @alexandre: Seems we hotplug even if it is not enabled. Please can you take
>>> a look at that?

mhm strange. I can't reproduce right now. But this was also after a 
online migration.

Stefan

> 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?
>
>
>
>
>



More information about the pve-devel mailing list