[pve-devel] [PATCH 1/2] add firewall option to qemu network interface

2014-05-05 Thread Alexandre Derumier
this allow to disable firewall for a specific interface Signed-off-by: Alexandre Derumier aderum...@odiso.com --- PVE/API2/Qemu.pm |6 +++--- PVE/QemuServer.pm |5 - pve-bridge|2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/PVE/API2/Qemu.pm

[pve-devel] qemu-server : firewall network option and pve-bridgedown script

2014-05-05 Thread Alexandre Derumier
details in commit ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
I'll look for openvz down script today. (I have sent a patch for qemu) - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Vendredi 2 Mai 2014 16:25:23 Objet: RE: [pve-devel] pve-firewall

Re: [pve-devel] [PATCH 1/3] adapt patches to qemu 2.0.0

2014-05-05 Thread Alexandre DERUMIER
I'll test it today. Thanks! - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Stefan Priebe s.pri...@profihost.ag, pve-devel@pve.proxmox.com Envoyé: Lundi 5 Mai 2014 11:48:25 Objet: Re: [pve-devel] [PATCH 1/3] adapt patches to qemu 2.0.0 No problem. Might be that one

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
There is also /usr/sbin/vznetcfg, but seems this is only called for init. indeed, in veth.c static int veth_ctl(vps_handler *h, envid_t veid, int op, veth_param *list, int rollback) list_for_each(tmp, dev_h, list) { if (op == ADD) { if

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
maybe better, reuse run_vznetcfg, and pass ADD|DEL , then we just need to add a new section in vznetcfg init script. list_for_each(tmp, dev_h, list) { if (op == ADD) { if ((ret = h-veth_ctl(h, veid, ADD, tmp)))

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
maybe better, reuse run_vznetcfg, and pass ADD|DEL , then we just need to add a new section in vznetcfg init script. would you mind to post that one the openvz list? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH 1/3] adapt patches to qemu 2.0.0

2014-05-05 Thread Alexandre DERUMIER
firsts tests seem to works fine - booting linux/windows guests - snasphot/rollback/del snapshot - move disk (online|offline) - live migration I'll do more tests tommorow - Mail original - De: Alexandre DERUMIER aderum...@odiso.com À: Dietmar Maurer diet...@proxmox.com Cc:

Re: [pve-devel] KVM guest hangs with SCSI drive (ZFS)

2014-05-05 Thread Adrian Costin
I have send 2 patchs, to update libiscsi and after qemu-kvm. can you test them ? I can confirm that using the 2 packages (libiscsi and qemu-kvm) solves the guest kernel hanging when loading modules problem. The SeaBIOS problem that doesn't recognize the disks with the following drivers still

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
would you mind to post that one the openvz list? don't seem to work, the code don't seem to be called on vm shutdown. I think that DEL is only use for rollback, if the ADD fail. I'll look for another way. - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre

[pve-devel] zfs plugin improvements

2014-05-05 Thread Adrian Costin
Hi, I would like to make the following improvements to the zfs plugin. I would appreciate any comments: 1. add a parameter to storage.cfg called sparse which would create sparse zvols if set to true. This can default to false for compatibility with the current version 2. add SRP support. I was

Re: [pve-devel] zfs plugin improvements

2014-05-05 Thread Michael Rasmussen
On Mon, 5 May 2014 20:56:32 +0300 Adrian Costin adrian.cos...@gmail.com wrote: 1. add a parameter to storage.cfg called sparse which would create sparse zvols if set to true. This can default to false for compatibility with the current version Already in git: commit

Re: [pve-devel] zfs plugin improvements

2014-05-05 Thread Adrian Costin
Already in git: commit 082e79f35b2f7b75862dc3014fb7de8e65fa76c6 Sorry, I didn't see if. It's not visible here: https://git.proxmox.com/?p=pve-storage.git;a=summary Best regards, Adrian Costin ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] zfs plugin improvements

2014-05-05 Thread Michael Rasmussen
On Mon, 5 May 2014 21:26:41 +0300 Adrian Costin adrian.cos...@gmail.com wrote: Sorry, I didn't see if. It's not visible here: https://git.proxmox.com/?p=pve-storage.git;a=summary Strange. Seems al these are missing? git log commit b3a716fa613391dc54244f7a894088de36b6a303 Author: Chris

Re: [pve-devel] [PATCH 1/3] adapt patches to qemu 2.0.0

2014-05-05 Thread Stefan Priebe
I already tested last week. Same to me. STefan Am 05.05.2014 18:53, schrieb Alexandre DERUMIER: firsts tests seem to works fine - booting linux/windows guests - snasphot/rollback/del snapshot - move disk (online|offline) - live migration I'll do more tests tommorow - Mail original

Re: [pve-devel] KVM guest hangs with SCSI drive (ZFS)

2014-05-05 Thread Alexandre DERUMIER
maybe can you try with qemu 2.0 ? (I can built it for you if you want). Also, I known that booting is not available for all controllers types. booting from old lsi is a pain, and don't known well since some years known. (depend on multiple parameters) But the lsi seabios implementation is

Re: [pve-devel] KVM guest hangs with SCSI drive (ZFS)

2014-05-05 Thread Michael Rasmussen
On Sun, 04 May 2014 18:47:28 +0200 (CEST) Alexandre DERUMIER aderum...@odiso.com wrote: can you test them ? Have tested with CentOS-6.5 and I can confirm that it works with virtio and megaraid. No speed monster though;-) -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys:

[pve-devel] [PATCH 2/2] add vps.postumount script

2014-05-05 Thread Alexandre Derumier
to cleanup bridges after openvz container umount Signed-off-by: Alexandre Derumier aderum...@odiso.com --- debian/rules |2 ++ debian/vps.postumount | 28 debian/vzctl.postinst |6 ++ 3 files changed, 36 insertions(+) create mode 100755

[pve-devel] [PATCH 1/2] vznetaddbr perl version

2014-05-05 Thread Alexandre Derumier
this replace the default vznetaddbr script, using perl code. This allow to use vlan tag, firewall bridge and openvswitch bridge like for qemu Signed-off-by: Alexandre Derumier aderum...@odiso.com --- debian/patches/fix-config-path.diff | 13 - debian/patches/series |

[pve-devel] vzctl : vznetaddbr vps.postumount perl scripts

2014-05-05 Thread Alexandre Derumier
allow fw bridges create/delete on container start/stop ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
I have sent a patch using vps.postumount hook script, works perfectly ! Good. The only problem I see is that users already use that file already for other things. ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
Good. The only problem I see is that users already use that file already for other things. Good point. I'll look if we can add a proxmox specific script, hacking the code to add a second postumount script - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
I'll look if we can add a proxmox specific script, hacking the code to add a second postumount script Ok, thanks! ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
I think in src/lib/fs.c if (!(skip SKIP_ACTION_SCRIPT)) { snprintf(buf, sizeof(buf), %s%d.%s, VPS_CONF_DIR, veid, POST_UMOUNT_PREFIX); for (i = 0; i 2; i++) { if (run_pre_script(veid, buf)) {

Re: [pve-devel] KVM guest hangs with SCSI drive (ZFS)

2014-05-05 Thread Andrew Thrift
Will these patched packages (for qemu 1.7.1) make it in to the PVE3.2 repos ? On Tue, May 6, 2014 at 1:00 PM, Michael Rasmussen m...@datanom.net wrote: On Sun, 04 May 2014 18:47:28 +0200 (CEST) Alexandre DERUMIER aderum...@odiso.com wrote: can you test them ? Have tested with

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
++snprintf(buf, sizeof(buf), %sproxmox.%s, VPS_CONF_DIR, ++POST_UMOUNT_PREFIX); } } should call /etc/vz/conf/proxmox.postumount (maybe putting the script is /usr/sbin/ is better ?) Please use

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Daniel Hunsaker
Just a side note that it might be a good idea to hack in the other script types as well while you're in there anyway. That way if/when something should end up in, say, a premount script, you only need to write the script itself. Something to consider, anyway. On May 5, 2014 11:12 PM, Dietmar

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
but wait, maybe vzeventd is the solution. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
Ok, we need to modify /usr/lib/vzctl/scripts/vzevent-stop That script is even called when container is stopped from inside (poweroff). -Original Message- From: pve-devel [mailto:pve-devel-boun...@pve.proxmox.com] On Behalf Of Dietmar Maurer Sent: Dienstag, 06. Mai 2014 07:23 To:

Re: [pve-devel] KVM guest hangs with SCSI drive (ZFS)

2014-05-05 Thread Dietmar Maurer
Will these patched packages (for qemu 1.7.1) make it in to the PVE3.2 repos ? No, my plan was to release them with qemu 2.0 ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Dietmar Maurer
Ok, we need to modify /usr/lib/vzctl/scripts/vzevent-stop That script is even called when container is stopped from inside (poweroff). Sigh, I guess we need both things (modify vzctl and add cleanup actions in /usr/lib/vzctl/scripts/vzevent-stop), because vzevent-stop is run asynchronous

Re: [pve-devel] KVM guest hangs with SCSI drive (ZFS)

2014-05-05 Thread Adrian Costin
But I think you shoulg go to virtio-scsi for best performance anyway. That's exactly what I intend to do. In the meantime I've successfully tested Windows 7 and Windows 2008 which all work fine. Have tested with CentOS-6.5 and I can confirm that it works with virtio and megaraid. No speed

Re: [pve-devel] zfs plugin improvements

2014-05-05 Thread Michael Rasmussen
On Tue, 6 May 2014 04:25:11 + Dietmar Maurer diet...@proxmox.com wrote: Did you already test those patches? No (I might have forgotten about there existents;-). I intend to do it the coming days. -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael at rasmussen dot cc

Re: [pve-devel] zfs plugin improvements

2014-05-05 Thread Dietmar Maurer
Did you already test those patches? No (I might have forgotten about there existents;-). I intend to do it the coming days. Thanks, that would be great. I don't really want to commit things to the ZFS plugin without prior acknowledge from you or Alexandre.

Re: [pve-devel] pve-firewall : masquerade results (+veth vlan tag bug)

2014-05-05 Thread Alexandre DERUMIER
Ok, I'll check that. thanks for help. - Mail original - De: Dietmar Maurer diet...@proxmox.com À: Alexandre DERUMIER aderum...@odiso.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Mardi 6 Mai 2014 07:38:29 Objet: RE: [pve-devel] pve-firewall : masquerade results (+veth vlan tag