Re: [pve-devel] savevm tests

2012-08-29 Thread Dietmar Maurer
I guess we will always restart the VM with correct configuration when we do a rollback? Oh yes, we need to remove the disk from the conf. But not delete it if we want to rollback again to snap2. yes (as already suggested, we save the whole configuration when creating a snapshot)

Re: [pve-devel] savevm tests

2012-08-29 Thread Dietmar Maurer
* create_snapshot: (savevm?) Yes, if storage support it (qcow2,rbd,sheepdog). I would like to implement also snasphot for external storage like nexenta We simply need to define a create_snapshot sub for each storage module I am quite unsure about that, So far, we have many storage types which

Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment

2012-08-29 Thread Dietmar Maurer
Subject: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment Signed-off-by: Stefan Priebe s.pri...@profihost.ag --- data/PVE/Cluster.pm | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git

Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment

2012-08-29 Thread Dietmar Maurer
Ok, committed - please review and test: https://git.proxmox.com/?p=pve-cluster.git;a=commitdiff;h=2055b0a9e41912cb02810b621608b24430c8a1fe -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Dietmar Maurer Sent

[pve-devel] live migration problems

2012-08-29 Thread Dietmar Maurer
The bug is hard to reproduce . We still not found a reliable way to reproduce it. https://bugzilla.proxmox.com/show_bug.cgi?id=247 Any ideas? - Dietmar ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] live migration problems

2012-08-30 Thread Dietmar Maurer
so you can reproduce the bug ? One idea, with my patch,the vm config file is on source during migration and stats are done on disk with qmp during live migration. Maybe this can cause some queues in multiplexing part ? Maybe, but my recent patches should avoid that problem? I disabled

Re: [pve-devel] [PATCH] added renderer for hd strings in hardware overview

2012-08-30 Thread Dietmar Maurer
Oh sorry. I'm travelling right now and Timo told me it looks like: 1024.000 Maybe the automatic update from bps to mbps can cause such numbers. for 1024MB/s. But normally, you simply get what you type on the GUI. ___ pve-devel mailing list

Re: [pve-devel] Fwd: [Qemu-devel] [PATCH] ahci: add migration support

2012-08-31 Thread Dietmar Maurer
Ok, will try to add that -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre DERUMIER Sent: Freitag, 31. August 2012 10:35 To: pve-devel@pve.proxmox.com Subject: [pve-devel] Fwd: [Qemu-devel] [PATCH] ahci: add

Re: [pve-devel] savevm tests

2012-08-31 Thread Dietmar Maurer
I thing I didn't have check, is where the vmstate is stored if we have multiple devices. On the first disk ? on the boot disk ? I think it is the first drive able to create snapshots. They simply do a stupid loop in block.c: BlockDriverState *bdrv_snapshots(void) { BlockDriverState

Re: [pve-devel] Fwd: [Qemu-devel] [PATCH] ahci: add migration support

2012-08-31 Thread Dietmar Maurer
oh sorry - fixed -Original Message- From: Alexandre DERUMIER [mailto:aderum...@odiso.com] Sent: Freitag, 31. August 2012 11:23 To: Dietmar Maurer Cc: pve-devel@pve.proxmox.com Subject: Re: [pve-devel] Fwd: [Qemu-devel] [PATCH] ahci: add migration support don't build

[pve-devel] create snapshots

2012-08-31 Thread Dietmar Maurer
I just looked at savevm, and that is relatively simple code: qemu-kvm/savevm.c: do_savevm() 1.)check if all disk support snapshots (call bdrv_can_snapshot()) 2.)vm_stop(RUN_STATE_SAVE_VM) 3.)Delete old snapshots of the same name 4.)save the VM state 5.)create the

Re: [pve-devel] create snapshots

2012-08-31 Thread Dietmar Maurer
I wonder it is would be safe to call an external script to create the snapshot there? Or is there still some data in the qemu block driver cache, or the host cache? yes, I think taking snapshot don't flush datas. rbd devs said me that we need to freeze the filesystem with qemu-ga if we

Re: [pve-devel] ahci: properly reset PxCMD on HBA reset - patch

2012-08-31 Thread Dietmar Maurer
Yes. But seems they are still working on that patch. -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre DERUMIER Sent: Freitag, 31. August 2012 14:05 To: pve-devel@pve.proxmox.com Subject: [pve-devel] ahci:

Re: [pve-devel] private virtual bridge

2012-09-02 Thread Dietmar Maurer
You can create as many bridges as you want (not sure why the call that private?) -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Stefan Priebe Sent: Samstag, 01. September 2012 21:00 To: pve-devel@pve.proxmox.com

[pve-devel] New iSCSI Multipath howto

2012-09-05 Thread Dietmar Maurer
Hi all, we just updated the wiki page: http://pve.proxmox.com/wiki/ISCSI_Multipath Please review. Comments are appreciated ;-) - Dietmar ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] New iSCSI Multipath howto

2012-09-05 Thread Dietmar Maurer
path_checker : Possible values include readsector0 and tur, emc_clariion, hp_sw, and directio. I'm using directio with nexenta. default is 'directio', so that is OK. Also, for blacklist, maybe can we add an exemple to blacklist local sda,sdb,... (If we want multipath for our san, but

Re: [pve-devel] [PATCH 2/7] add qm snapshot command

2012-09-06 Thread Dietmar Maurer
+ #need to implement config change with snapshots info + PVE::QemuServer::update_config_nolock($vmid, $conf, 1); I can work on that if you want? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] qemu 1.2 : lsi + scsi-block don't boot

2012-09-07 Thread Dietmar Maurer
But maybe can we use scsi-hd default for lsi when we need to boot? (virtio-scsi + scsi-block no problem) We can always use that - no problem for me. ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] FVD

2012-09-07 Thread Dietmar Maurer
It was never in qemu upstream. qemu dev prefer to not maintain to much disk format . (FVD seem to be great on the paper) I just wrote a mail to the developer - maybe I will get a reply. They prefer to take idea from FVD and push them in the (futur) qcow2 v3 Yes, but qcow3 is also

Re: [pve-devel] FVD

2012-09-07 Thread Dietmar Maurer
Many thanks for the link. No idea where it went, but the qemu-devel mailing list has the patches for FVD: http://lists.gnu.org/archive/html/qemu-devel/2011-01/msg01948.html ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] FVD

2012-09-08 Thread Dietmar Maurer
It could be fine to bench FVD vs current qcow2 (with metadata preallocation, and the new lazycount option) Yes, I will try to get the latest FVD code from the developer (already got an answer from him). Will keep you informed. ___ pve-devel

Re: [pve-devel] API to get mac and vm id

2012-09-12 Thread Dietmar Maurer
I would like to create a small tool which will act as a dhcp addon to proxmox and simulate a dhcp server with perl. Great ! I would like to have something like this too :) OK, can someone explain how to 'simulate a dhcp server with perl'? (Why not use 'dnsmasq' - or a real dhcp server)?

Re: [pve-devel] qcow2 bench and speed optimisations

2012-09-13 Thread Dietmar Maurer
4)qemu-img create -f qcow2 -o size=100,preallocation=metadata,compat=1.1,lazy_refcounts=on file.img So I think it should be great to add an option for preallocatting metadatas, the boost is really huge. Above command only pre-allocates metadata, so creation is still fast? If so, we

Re: [pve-devel] Snapshot Tests

2012-09-13 Thread Dietmar Maurer
Dietmar, can we add some property to a storage plugin and check it ? (I really don't like theses hardcoded values) I just added that to prevent over-motivated hackers to run untested code ;-) The questions is how to implement that cleanly? sub storage_has_feature(feature) { ... } If you add

Re: [pve-devel] Snapshot Tests

2012-09-14 Thread Dietmar Maurer
Features when can add : snapshot,savevmstate No, ' savevmstate' is not needed (as already explained, we need to fix our qemu patch instead) ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] qcow2 bench and speed optimisations

2012-09-14 Thread Dietmar Maurer
so raw and qcow2 with metadatas alloc are sparse files, but you need a filesystem which support it. Do you know a filesystem which does not support sparse files? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH] added sorter to bridge selection

2012-09-14 Thread Dietmar Maurer
applied, thanks! -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of tgrodzinski Sent: Freitag, 14. September 2012 13:47 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] added sorter to bridge selection

Re: [pve-devel] about nexentaplugin eval

2012-09-17 Thread Dietmar Maurer
eval are here, if something goes wrong at last step, nexenta_add_lun_mapping_entry, and ifyou retry to create disk again, if no eval, it will hang at step1. How can I reproduce that bug? For me it work without eval. The old code was simply buggy (you can create volume multiple time

Re: [pve-devel] about nexentaplugin eval

2012-09-17 Thread Dietmar Maurer
The old code was simply buggy (you can create volume multiple time without error for example). you can't create a volume twice (nexenta side). Last step don't have eval, so It's die if you try to create a disk twice. But we also want to get an error message if we do that - old code does not

[pve-devel] nexent questions

2012-09-17 Thread Dietmar Maurer
We currently pass the following url to kvm: iscsi:$portal/$target/lun but the nexenta server does not always expose iscsi on '$portal'. Instead, there are target groups. Any idea how to fix that? Also, libiscsi does not support multipath, so maybe we are better off not using it? Can we use

Re: [pve-devel] nexent questions

2012-09-17 Thread Dietmar Maurer
We currently pass the following url to kvm: iscsi:$portal/$target/lun but the nexenta server does not always expose iscsi on ‘$portal’. Instead, there are target groups. Any idea how to fix that? maybe can we replace the portal option by management ip. and add target ip option ? no, we

Re: [pve-devel] Snapshot Tests

2012-09-18 Thread Dietmar Maurer
OK first problem is the QemuServer.pm and the hardcoded cases where snapshot is possible: die can't snapshot volume '$volid'\n if !(($scfg-{path} $volname =~ m/\.qcow2$/) || ($scfg-{type} eq 'rbd') ||

Re: [pve-devel] Snapshot Tests

2012-09-18 Thread Dietmar Maurer
I'll try to do complete tests with all storage this week. (I'm a bit busy) Is it already possible to use the gui ? yes. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] corosync/pmxcfs crash (same node that previous problem)

2012-09-18 Thread Dietmar Maurer
c0f42e c0f430 c0f432 Sep 17 10:19:56 corosync [TOTEM ] Retransmit List: c0f42c c0f42d c0f42e c0f430 c0f432 Sep 17 10:19:57 corosync [TOTEM ] Retransmit List: c0f42c c0f42d c0f42e c0f430 c0f432 Sep 17 10:19:57 corosync [TOTEM ] FAILED TO RECEIVE Oh yes - this is always the same problem. But

Re: [pve-devel] nexenta rollback problems.

2012-09-18 Thread Dietmar Maurer
I guess that cause serious trouble when used with open-iscsis/dm-multipath. You already observer problems with that? s/observer/observed/ ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] nexenta rollback problems.

2012-09-18 Thread Dietmar Maurer
Yes, indeed. that's really a pain. (BTW, I don't use multipath anymore, only lacp, take too much cpu with a lot of luns). I really tried hard, but my final conclusion is that open-iscsi/dm-multipath does not work well with dynamically allocated luns (like we do in the nexenta plugin). I know,

Re: [pve-devel] nexenta rollback problems.

2012-09-18 Thread Dietmar Maurer
So I will give up now, and we simply use libiscsi for the nexenta plugin for now. Btw, do you have any idea how we can access snapshot data for backup purposes? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH] first bridge device is selected by default

2012-09-18 Thread Dietmar Maurer
Subject: Re: [pve-devel] [PATCH] first bridge device is selected by default Am 14.09.2012 13:58, schrieb tgrodzinski: This patch selects the first bridge device by default. Any thoughts / comments / suggestions ? If you write a patch, It is always a good idea to explain why the patch is

Re: [pve-devel] nexenta rollback problems.

2012-09-19 Thread Dietmar Maurer
I'll tell the question to nexenta support. I will commit the import_lu() code for testing now. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] rollback timeout

2012-09-19 Thread Dietmar Maurer
# time qm rollback 115 test2 command '/usr/bin/qemu-img snapshot -a test2 /var/lib/vz/images/115/vm- 115-disk-1.qcow2' failed: got timeout I set the timeout to 30 seconds now - this should be long enough. ___ pve-devel mailing list

Re: [pve-devel] snapshot gui, wrong Now location after rollback

2012-09-19 Thread Dietmar Maurer
btw, there is a bug in the '-loadstate' code - trying to fix that now. -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre DERUMIER Sent: Mittwoch, 19. September 2012 11:45 To: pve-devel@pve.proxmox.com

Re: [pve-devel] snapshot gui, wrong Now location after rollback

2012-09-19 Thread Dietmar Maurer
sorry - fixed -Original Message- From: Alexandre DERUMIER [mailto:aderum...@odiso.com] Sent: Mittwoch, 19. September 2012 12:23 To: Dietmar Maurer Cc: pve-devel@pve.proxmox.com Subject: Re: [pve-devel] snapshot gui, wrong Now location after rollback # make perl -I. ./qm

Re: [pve-devel] some qcow2 and rbd snapshots tests

2012-09-19 Thread Dietmar Maurer
rbd : snapshot works fine, with vmstate too. but rollback with vmstate , give timeout after rollback when vm is starting. Maybe loadvm doesn't work, I don't know if the vmstate is correctly save or not. vmstate can be large, so I guess I need to give longer timeout for load. Also save can

Re: [pve-devel] nexenta rollback problems.

2012-09-19 Thread Dietmar Maurer
Your case # 00014435: commstar : keep the disk guid after unmap/remap a lun (sa-api) has been updated as follows: Alexandre, There is no way to do this via SA-API . The only way to do it is via bash you as mentioned . Our current code use delete_lu/import_lu, and that does not change

Re: [pve-devel] [PATCH] qcow2 : preallocate metadatas at file creation

2012-09-19 Thread Dietmar Maurer
applied, thanks -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Mittwoch, 19. September 2012 12:20 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] qcow2 : preallocate metadatas at

Re: [pve-devel] nexenta rollback problems.

2012-09-19 Thread Dietmar Maurer
oh, do you tried import_lu ? is it working ? I works for me, so I already committed that code. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH] don't set timeout when loading vmstate

2012-09-20 Thread Dietmar Maurer
that is already in git -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Donnerstag, 20. September 2012 09:06 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] don't set timeout when

Re: [pve-devel] spice news

2012-09-22 Thread Dietmar Maurer
and spice html5 seem to have a big update too http://cgit.freedesktop.org/spice/spice-html5/ I'll try to do some tests next week Thanks for the update. ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] Fwd: [sheepdog] [ANNOUNCE] Sheepdog 0.5.0 released

2012-09-23 Thread Dietmar Maurer
Subject: [pve-devel] Fwd: [sheepdog] [ANNOUNCE] Sheepdog 0.5.0 released I think that you will like - manual object recovery ;) No, I do not like the way they implemented that. IMHO It's just quick hack. But better than before ;-) ___ pve-devel

Re: [pve-devel] snapshot improvements

2012-09-24 Thread Dietmar Maurer
How is it possible to save the vmstate if the vm is not paused ? (with a lot a memory write access by example ?) I currently allocate am image equal to the size of the VM memory. Then I simply do an incremental state save (like a vm migration), and keep the VM running until (saved_bytes +

Re: [pve-devel] snapshot improvements

2012-09-24 Thread Dietmar Maurer
do you think image = size of memory if enough ? (if we have some bytes more with incremental ?) PVE/QemuServer.pm: my $driver_state_size = 32; # assume 32MB is enough to safe all driver state; my $size = $conf-{memory} + $driver_state_size; Also, any problem if some datas in

Re: [pve-devel] snapshot improvements

2012-09-25 Thread Dietmar Maurer
do you think image = size of memory if enough ? (if we have some bytes more with incremental ?) PVE/QemuServer.pm: my $driver_state_size = 32; # assume 32MB is enough to safe all driver state; my $size = $conf-{memory} + $driver_state_size; Unfortunately, the qemu code seem to

Re: [pve-devel] [PATCH] bump to 0.5

2012-09-25 Thread Dietmar Maurer
applied, thanks -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Montag, 24. September 2012 13:34 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] bump to 0.5 Signed-off-by:

Re: [pve-devel] snapshot improvements

2012-09-26 Thread Dietmar Maurer
I also tried todo backups with snapshots but this doesn't seem to work: INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot -- compress lzo --storage backuplocal --node serv121 INFO: Starting Backup of VM 100 (qemu) INFO: status = running ERROR: Backup of VM 100 failed -

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
I also don't think that all storage can export datas with snapshots inside. rbd can export an image from a snapshot, nexenta and sheepdog too. How can you access snapshot data with nexenta? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
The idea is that we do not backup any snapshot data. The vzdump would only include the data of from the running instance. I guess that is OK? But isn't the correct way to make a snapshot and then compress the snapshot? How can vzdump verify that the data integrity is fine? Sorry, I do not

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
I think I have already respond to that ;) 2 ways : - clone the snapshot and export image through iscsi and backup it - use zfs send through ssh (zfs send image1@snap1 /imagefile) Both ways are clumsy. Also, nexenta snapshot support is quite unusable, because you can't delete

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
The idea is that we do not backup any snapshot data. The vzdump would only include the data of from the running instance. I guess that is OK? But isn't the correct way to make a snapshot and then compress the snapshot? How can vzdump verify that the data integrity is fine? I guess I found

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
ah OK but wouldn't it be nice to be able to backup live snapshots? compress and store them on a seperate NFS server? Also Proxmox only allows to schedule beckups not to schedule snapshots ;-) Sure, that would be nice. I already have very detailed plans how to do that (but no budget).

Re: [pve-devel] [PATCH] pve-bridge : use mtu of the bridge for tap interface

2012-09-27 Thread Dietmar Maurer
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 157b4a9..aaf2e4a 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3718,6 +3718,7 @@ my $snapshot_prepare = sub { if !(($scfg-{path} $volname =~ m/\.qcow2$/) || ($scfg-{type} eq

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
and export image through iscsi and backup it - use zfs send through ssh (zfs send image1@snap1 /imagefile) - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Stefan Priebe s.pri...@profihost.ag

Re: [pve-devel] [PATCH] pve-bridge : use mtu of the bridge for tap interface

2012-09-27 Thread Dietmar Maurer
original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre Derumier aderum...@odiso.com, pve- de...@pve.proxmox.com Envoyé: Jeudi 27 Septembre 2012 10:37:17 Objet: RE: [pve-devel] [PATCH] pve-bridge : use mtu of the bridge for tap interface diff --git a/PVE/QemuServer.pm b/PVE

Re: [pve-devel] snapshot improvements

2012-09-27 Thread Dietmar Maurer
Subject: Re: [pve-devel] snapshot improvements do you mean : backup the main image then backup each snasphot increment ? Yes, something like that. zfs send can do incremental backup with zfs send -I http://docs.oracle.com/cd/E19082-01/817-2271/gfwqb/index.html Ah, good to know.

Re: [pve-devel] snapshot improvements

2012-09-28 Thread Dietmar Maurer
what do you mean by snapshot used by another snapshot? ex: image-snap1-snap2-you are here you can delete snap1 without any problem, and without need to merge. Really? - last time I tried I got 'snapshot in use' (or something like that). ___

Re: [pve-devel] pve-qemu-kvm : bump librbd to 0.52

2012-09-28 Thread Dietmar Maurer
I will not add development packages (only stable releases). -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Freitag, 28. September 2012 12:11 To: pve-devel@pve.proxmox.com Subject:

Re: [pve-devel] snapshot improvements

2012-09-28 Thread Dietmar Maurer
maybe do you have cloned it ? no - I need to test that again. - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel@pve.proxmox.com, Stefan Priebe s.pri...@profihost.ag Envoyé: Vendredi 28 Septembre 2012 11:32:01

Re: [pve-devel] pve-qemu-kvm : bump librbd to 0.52

2012-09-28 Thread Dietmar Maurer
Subject: Re: [pve-devel] pve-qemu-kvm : bump librbd to 0.52 ok, no problem. next stable should be 0.54. Yes. I will upload that as soon as they release 0.54 ;-) ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH] pve-bridge : use mtu of the bridge for tap interface

2012-09-28 Thread Dietmar Maurer
applied, thanks. -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Freitag, 28. September 2012 10:58 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] pve-bridge : use mtu of the

Re: [pve-devel] snapshot improvements

2012-09-29 Thread Dietmar Maurer
Are your aware of the fact that ssh needs to encrypt/decrypt all data. This needs much CPU power and is slow (still no AES support in libs). Oh we could also use netcat instead. How exactly? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] pve-spice 0.12 package + report

2012-10-01 Thread Dietmar Maurer
Maybe can we begin to build qemu-kvm with spice, now that 0.12 stable is out ? It'll be more simple to test/debug it. Roadmap is still the same: 1.) implement pve auth with spice 2.) implement proxy code for spice Then we can start to build qemu-kvm with spice support. IMHO it does not make

Re: [pve-devel] pve-spice 0.12 package + report

2012-10-01 Thread Dietmar Maurer
for pve-auth ? spicec client only send the password without login, I don't see how we can do this without hacking the client... So how is that expected to work? Authentication needs a user name, else it does not make much sense? ___ pve-devel

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-02 Thread Dietmar Maurer
2 types Storage which support cloning: 1)-sheepdog,rbd (=0.52),nexenta : - the clone is made from a snapshot - can be done when sourcevm is online - we can use source vm after cloning - we can't delete a snapshot if a clone is made from the snapshot - we can't delete the

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-03 Thread Dietmar Maurer
But first, why do I want to clone a VM? Please can you elaborate on the usage scenario first? Cloning vm is a current scenario in enterprise, generally, you have a basevm you want to duplicate in 1 second. Other scenario can be vdi desktop, you can clone in live a vm if a user need a

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-03 Thread Dietmar Maurer
like a linux image or windows image, you want to do security updates or install new packages on the image, then make a new snapshot, and clone from this new snapshot. You want to clone a specific snapshot? Live cloning can be also good to duplicate a vm to do tests in parallel. So, I

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-03 Thread Dietmar Maurer
You want to clone a specific snapshot? Yes. we need to clone from a snapshot for sheepdog,rbd,nexenta. So choosing the snapshot we want is good. I do not understand why we need that? Please can you explain? Live cloning include VM state? I don't think we need to clone the vmstate, But we

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-03 Thread Dietmar Maurer
1.) create template: create a read-only snapshot of all used VM disks We can also have several different methods to create templates: a.) Create a template from any existing VM b.) Create a template from a VM backup file (file import possible) other ideas?

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-03 Thread Dietmar Maurer
yes. one note : for nfs,directory,filename/path can't be change after cloning, as new qcow2 file have parent path/file hardcoded inside it. Yes, that is why volume templates will use a special path/name (They also has no owner VM). We will also make the file permissions read-only. 2.)

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-04 Thread Dietmar Maurer
When you create a template, you only need to create a volume snapshot. Is that more clear now? Yes,ok. So snapshot tabs on vm only display live-snapshots, and not all volume snapshots. yes. For implementation, that give us something like this (oversimplified): ?

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-04 Thread Dietmar Maurer
why not (we have a snaphot)? - those drivers do not allow that? Not sure for sheepdog, but rbd,nexenta you can't delete a snapshot if clone exist on the snasphot. I want to delete the original, not the snapshot. (or storage should have some method to copy baseimage datas in each clone)

Re: [pve-devel] RFC: vm cloning implementation proposal

2012-10-04 Thread Dietmar Maurer
they have 2 ways to create template: 1) transform vm as template. (just rename the vm as template, so original vm is no more displayed as vm) 2) copy the vm to template. (original vm is available) seem more easy, they are no vm with clones, so we can delete them without any problem.

Re: [pve-devel] Changing SSL Certificates

2012-10-07 Thread Dietmar Maurer
I want to change my SSL certificates for valid one. I've changed the SSL certificates in apache, without any problem. How did you change that? You need to replace the files /etc/pve/local/pve-ssl.pem /etc/pve/local/pve-ssl.key Those files are normally auto-generated with the cluster wide CA:

Re: [pve-devel] vmware vsphere + virtualbox cloning review

2012-10-15 Thread Dietmar Maurer
So, I wonder if cloning from vm snapshot, and register child clones in the snapshot section is not the best way. (it's easy to understand) For the template, maybe creating a /etc/pve/nodes/kvmtemplates, and moving the vmconfig file inside it can do the job. (so we can't start it as it's not a

Re: [pve-devel] [PATCH] bump to 0.5.3

2012-10-15 Thread Dietmar Maurer
applied, thanks. -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Montag, 15. Oktober 2012 10:47 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] bump to 0.5.3 Signed-off-by:

Re: [pve-devel] [PATCH] rbd: get volume size for volumes list

2012-10-16 Thread Dietmar Maurer
I do not understand this patch? What is the purpose? -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Dienstag, 16. Oktober 2012 16:38 To: pve-devel@pve.proxmox.com Subject: [pve-devel]

Re: [pve-devel] [PATCH] rbd: get volume size for volumes list

2012-10-17 Thread Dietmar Maurer
Currently, rbd ls command don't display volume size. so we need an extra call rbd info. this is to display it in list_images sub. Do you think It'll add too much overhead with a lot of images ? (I see you have done same thing with nexentaplugin) Sorry, but this is already

Re: [pve-devel] [PATCH] rbd: get volume size for volumes list

2012-10-17 Thread Dietmar Maurer
Do you think It'll add too much overhead with a lot of images ? (I see you have done same thing with nexentaplugin) Sorry, but this is already implemented! Please take a look at the code. Oh sorry, ignore me. Seems I am confused today. - Dietmar

Re: [pve-devel] [PATCH] rbd: get volume size for volumes list

2012-10-17 Thread Dietmar Maurer
applied, thanks -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Alexandre Derumier Sent: Dienstag, 16. Oktober 2012 16:38 To: pve-devel@pve.proxmox.com Subject: [pve-devel] [PATCH] rbd: get volume size for volumes

Re: [pve-devel] [PATCH] iscsi : qemu-img convert workaround

2012-10-24 Thread Dietmar Maurer
Yes, that's what I want. try to open the device to see if it's available and check if size if big enough. I'll try to do it, not sure I have the skill ;) Well, modifying qemu-img still looks simpler to me. We don't want to create any file on import/export (we use separate alloc calls to do

Re: [pve-devel] detect remote shutdown

2012-10-25 Thread Dietmar Maurer
Am 25.10.2012 12:07, schrieb Dietmar Maurer: i'm building an automated migration script when a node shuts down. What is the purpose of that? Please can you elaborate on the usage scenario? The purpose is that the VMs will be alive, while a host reboots (new kernel install). But i

Re: [pve-devel] VM stopped when having migration problems

2012-10-25 Thread Dietmar Maurer
while testing xbzrle i've seen it several times, that a migration fails We disable xbzlre because it is buggy ... ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pvestatd memory detection is too low

2012-10-26 Thread Dietmar Maurer
Instead, we should measure usage at startup (or first iteration), then allow to grow a few MBs? -Original Message- From: pve-devel-boun...@pve.proxmox.com [mailto:pve-devel- boun...@pve.proxmox.com] On Behalf Of Stefan Priebe - Profihost AG Sent: Freitag, 26. Oktober 2012 13:23 To:

Re: [pve-devel] [PATCH 1/4] qm copy implementation

2012-10-26 Thread Dietmar Maurer
Subject: [pve-devel] [PATCH 1/4] qm copy implementation Is that copy/past from somewhere? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pve-storage : add $preparecopy argument to alloc_image

2012-10-26 Thread Dietmar Maurer
qemu-img convert need that target volume doesn't exist, so we only return the target volume name. The suggestion was to modify qemu-img instead. ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] pvestatd memory detection is too low

2012-10-26 Thread Dietmar Maurer
Another idea could be to get memory consumption after two circles and restart if memory raises by 10%. But at all no Daemon should restart automatically leaks must be found and removed. Exactly! ___ pve-devel mailing list

Re: [pve-devel] qemu-server : qm copy

2012-10-26 Thread Dietmar Maurer
Current implement don't copy snapshots, and copy disks from you are here state But this only works if the VM is stopped? I am asking this, because new backup can store running VMs, so a backup/restore pipe can do that job. ___ pve-devel mailing list

Re: [pve-devel] qemu-server : qm copy

2012-10-27 Thread Dietmar Maurer
You can't use qmu-img while the VM is running. Oh, didn't know that. (I thinked that's is worked with snapshot) But yes, we can re-use your backup/restore, it's better to reuse code and not doing twice the job). Does it work with all storage ? (rbd doesn't seem to be able to import from

Re: [pve-devel] pve-storage : add $preparecopy argument to alloc_image

2012-10-27 Thread Dietmar Maurer
the bdrv_create also check if the size of volume if big enough, and if it's available. You can also do that in qemu-img (2 lines of code to check size?). qemu dev seem to want same behavior that for host_device block driver FAIK, we also want to avoid any call to bdrv_create for normal files

Re: [pve-devel] Migrate VMs from offline node?

2012-10-29 Thread Dietmar Maurer
what is the correct way to migrate KVM VMs from an offline host node? Note: This is a dangerous command, because that way you can start a VM on two nodes (if you do not make sure it is stopped on the other node). The normal migration fails as it tries to use SSH to the offline host. Or is

Re: [pve-devel] memory leak in PVE/QMPClient.pm

2012-10-29 Thread Dietmar Maurer
12:28:05 kvm2 pvestatd[537462]: server shutdown (restart) (last updated was pvetest from about 1-2 month) So leak seem to be introduce after. - Mail original - De: Stefan Priebe - Profihost AG s.pri...@profihost.ag À: Dietmar Maurer diet...@proxmox.com Cc: pve-devel

Re: [pve-devel] memory leak in PVE/QMPClient.pm

2012-10-29 Thread Dietmar Maurer
I just uploaded the fixes. The pvetest repository contains all fixes. Please can you test? -Original Message- From: Stefan Priebe - Profihost AG [mailto:s.pri...@profihost.ag] Sent: Freitag, 26. Oktober 2012 15:34 To: Dietmar Maurer Cc: pve-devel@pve.proxmox.com Subject: Re: [pve

  1   2   3   4   5   6   7   8   9   10   >