[pve-devel] Feature HW Profiles
Alexandre DERUMIER
aderumier at odiso.com
Tue Apr 16 14:39:08 CEST 2013
>>but it seems i can't create a template without a drive ;-) I just wanted
>>to have a template with settings for VMs. Like predefined configuration
>>without a disk.
ok, I understand now ;)
Indeed, currently, a template is a vm with a base-xxx disk.
Maybe can we improve that ?
Note: my patches can also clone a vm without need to be a template, and without disk.
Do you want to clone this template to create a new vm without disk ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com>
Envoyé: Mardi 16 Avril 2013 13:40:16
Objet: Re: [pve-devel] Feature HW Profiles
there is no drive at all it's the name of the VM.
name: base-template-test
but it seems i can't create a template without a drive ;-) I just wanted
to have a template with settings for VMs. Like predefined configuration
without a disk.
Stefan
Am 16.04.2013 13:38, schrieb Alexandre DERUMIER:
>>> This template has no disk. And the Name base- was chosen by me while
>>> creating the VM.
> So,you have edited the vm conf file manually ?
>
>
>
>>> I didn't know that i'm not allowed to choose this name
>>> for a normal VM. Bug?
>
> But you are not allowed to choose a name (gui or qm create), as proxmox create itself the disks with vm-<vmid>-disk-<diskid>
>
>
> in RBDPlugin.pm
> ->rbd_ls()
>
> if ($line =~ m/^((vm|base)-(\d+)-disk-\d+)\s+(\d+)(M|G|T)\s((\S+)\/((vm|base)-\d+-\S+@\S+))?/) {
>
> also
>
>> parse_volname()
> if ($volname =~ m/^((base-(\d+)-\S+)\/)?((base)?(vm)?-(\d+)-\S+)$/) {
>
>
>
> If you have edited manually the vm config file with custom name, I think qemu can start,
> but I'm not sure of the behaviour of proxmox when you add/remove/resize,... disk if the name is wrong.
>
>
> ----- Mail original -----
>
> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
> À: "Alexandre DERUMIER" <aderumier at odiso.com>
> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com>
> Envoyé: Mardi 16 Avril 2013 13:28:36
> Objet: Re: [pve-devel] Feature HW Profiles
>
> This template has no disk. And the Name base- was chosen by me while
> creating the VM. I didn't know that i'm not allowed to choose this name
> for a normal VM. Bug?
>
> Stefan
>
> Am 16.04.2013 13:25, schrieb Alexandre DERUMIER:
>> "base-template-test" seem to be a non standard proxmox disk name...
>>
>> (should be base-166-disk-1)
>>
>>
>> ----- Mail original -----
>>
>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
>> À: "Alexandre DERUMIER" <aderumier at odiso.com>
>> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com>
>> Envoyé: Mardi 16 Avril 2013 13:20:13
>> Objet: Re: [pve-devel] Feature HW Profiles
>>
>> Nothing happens:
>>
>> [ ~]# cat /etc/pve/qemu-server/166.conf
>> bootdisk: scsi0
>> cores: 2
>> localtime: 1
>> memory: 4096
>> name: base-template-test
>> net0: virtio=4A:2B:B0:82:F9:2A,bridge=vmbr0,rate=12.5
>> onboot: 1
>> ostype: l26
>> scsihw: virtio-scsi-pci
>> sockets: 1
>> [ ~]# qm template 166
>> [ ~]# cat /etc/pve/qemu-server/166.conf
>> bootdisk: scsi0
>> cores: 2
>> localtime: 1
>> memory: 4096
>> name: base-template-test
>> net0: virtio=4A:2B:B0:82:F9:2A,bridge=vmbr0,rate=12.5
>> onboot: 1
>> ostype: l26
>> scsihw: virtio-scsi-pci
>> sockets: 1
>>
>>> Am 16.04.2013 12:28, schrieb Alexandre DERUMIER:
>>>>>> Then i'll wait until these patches get integrated. Right now qemu-img
>>>>>> segfaults with rbd for me when trying to clone.
>>>>
>>>> Could you describe the problem ? I have tested it last month and it was working fine.
>>>>
>>>> (Just to be sure, you don't try to use qemu-img on a running vm, because it don't work)
>>>>
>>>> ----- Mail original -----
>>>>
>>>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>
>>>> À: "Dietmar Maurer" <dietmar at proxmox.com>
>>>> Cc: pve-devel at pve.proxmox.com
>>>> Envoyé: Mardi 16 Avril 2013 11:04:39
>>>> Objet: Re: [pve-devel] Feature HW Profiles
>>>>
>>>> Hi,
>>>> Am 16.04.2013 10:58, schrieb Dietmar Maurer:
>>>>>>> VM templates will provide a way to do that (patches from Alexandre).
>>>>>>
>>>>>> Yes and no as the disk will be also cloned. I'm just speaking about the settings
>>>>>> like in OpenStack, OpenNebula and others.
>>>>>
>>>>> We can also allow to create templates without any disks. You can then add the disks when you clone.
>>>>
>>>> oh OK sorry.
>>>>
>>>> Then i'll wait until these patches get integrated. Right now qemu-img
>>>> segfaults with rbd for me when trying to clone.
>>>>
>>>> Thanks!
>>>>
>>>> Greets Stefan
>>>>
>>>>
>>>> _______________________________________________
>>>> pve-devel mailing list
>>>> pve-devel at pve.proxmox.com
>>>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>>>>
More information about the pve-devel
mailing list