Re: [Xen-API] Problem connecting to xcp via xencenter or ssh

2013-03-13 Thread Alexandre Kouznetsov
Hello. El 13/03/13 02:27, Joseph-Andre Guaragna escribió: We installed xcp on a dell T410 which uses broadcom netXtreme II BCM 5716 NIC cards, and experienced problems connecting to it whether using xencenter or ssh. With Xencenter we get a first connection then after few secon we are disconne

Re: [Xen-API] Problem connecting to xcp via xencenter or ssh

2013-03-13 Thread Brian Menges
This has the eerie sensation of a network conflict with the IP you're using as the management IP. Also ssh hangs are usually due to reverse dns lookups. Try checking/verifying the nameserver configuration as well as the management IP used. Then work up the stack, look at link, port collisions o

Re: [Xen-API] [PATCH 1 of 4] PoC: libxc+ocaml: add interface to detect PV drivers in HVM guests

2013-03-13 Thread Ian Campbell
On Wed, 2013-03-13 at 15:59 +, Andrew Cooper wrote: > # HG changeset patch > # User Ian Campbell > # Date 1294742832 0 > # Node ID 59aaebc4ef6422e5ff4a3ad54d05597e646cfc92 > # Parent a38d8f70a79bf368c1498f2a08894068f504bff7 > PoC: libxc+ocaml: add interface to detect PV drivers in HVM guests

[Xen-API] [PATCH 3 of 4] PoC: libxc+ocaml: add interfaces to send triggers to HVM guests

2013-03-13 Thread Andrew Cooper
# HG changeset patch # User Ian Campbell # Date 1294742832 0 # Node ID 03997417771be2aa122d7dac31256399f854c5b1 # Parent b279ec057736ead1d7061f8ec8a29a8676dd56b4 PoC: libxc+ocaml: add interfaces to send triggers to HVM guests * ACPI power button event * ACPI sleep button event Required by xapi.

[Xen-API] [PATCH 2 of 4] PoC: libxc+ocaml: add interfaces to manipulate various properties of HVM guests

2013-03-13 Thread Andrew Cooper
# HG changeset patch # User Ian Campbell # Date 1294742832 0 # Node ID b279ec057736ead1d7061f8ec8a29a8676dd56b4 # Parent 59aaebc4ef6422e5ff4a3ad54d05597e646cfc92 PoC: libxc+ocaml: add interfaces to manipulate various properties of HVM guests * set timer mode * set hpet * set vpt align * get ACPI

[Xen-API] [PATCH 0 of 4] Misc libxc/ocaml patches

2013-03-13 Thread Andrew Cooper
Hello, These 4 misc patches have been in the XenServer patch queue for ages and are used by the Xapi toolstack. Although functionally unrelated, this series is based on top of my "Console ring improvements" patch series which also touches the same files. Signed-off-by: Andrew Cooper __

[Xen-API] [PATCH 4 of 4] PoC: ocaml: add binding to xc_domain_suppress_spurious_page_faults

2013-03-13 Thread Andrew Cooper
# HG changeset patch # User Ian Campbell # Date 1294742832 0 # Node ID 6c7218be49d86a2c4741c7bdf2b8b2cd0187746c # Parent 03997417771be2aa122d7dac31256399f854c5b1 PoC: ocaml: add binding to xc_domain_suppress_spurious_page_faults Required by xapi. Taken from xen-api-libs.hg/xc and adjusted for u

[Xen-API] [PATCH 1 of 4] PoC: libxc+ocaml: add interface to detect PV drivers in HVM guests

2013-03-13 Thread Andrew Cooper
# HG changeset patch # User Ian Campbell # Date 1294742832 0 # Node ID 59aaebc4ef6422e5ff4a3ad54d05597e646cfc92 # Parent a38d8f70a79bf368c1498f2a08894068f504bff7 PoC: libxc+ocaml: add interface to detect PV drivers in HVM guests Required by xapi. Taken from xen-api-libs.hg/xc and adjusted for u

Re: [Xen-API] [Xen-devel] [PATCH 4 of 5 v4] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()

2013-03-13 Thread Dave Scott
This looks good to me. Acked-by: Dave Scott > -Original Message- > From: xen-devel-boun...@lists.xen.org [mailto:xen-devel- > boun...@lists.xen.org] On Behalf Of Andrew Cooper > Sent: 13 March 2013 12:52 PM > To: xen-de...@lists.xen.org > Cc: Ian Jackson; Keir (Xen.org); Ian Campbell; Ja

[Xen-API] [PATCH 3 of 5 v4] tools/libxc: Implement xc_readconsolering_buffer()

2013-03-13 Thread Andrew Cooper
Functions identically to xc_readconsolering(), but uses a user-provided xc_hypercall_buffer_t to save using a bounce buffer. Signed-off-by: Andrew Cooper -- Changes since v2: * Document xc_readconsolering() and xc_readconsolering_buffer() functions Changes since v1: * Reduce xc_readconsolering

[Xen-API] [PATCH 5 of 5 v4] tools/ocaml: libxc bindings: Fix failwith_xc()

2013-03-13 Thread Andrew Cooper
The static error_str[] buffer is not thread-safe, and 1024 bytes is unreasonably large. Reduce to 256 bytes (which is still much larger than any current use), and move it to being a stack variable. Signed-off-by: Andrew Cooper Acked-by: Dave Scott -- Changes since v1: * Mark as Noreturn, due

[Xen-API] [PATCH 2 of 5 v4] tools/libxc: Helper function for XEN_SYSCTL_consoleringsize

2013-03-13 Thread Andrew Cooper
Signed-off-by: Andrew Cooper --- Changes since v2: * Tweak style and errno in case of invalid pointer. diff -r 89f3c6846f6b -r 0bd32c19873e tools/libxc/xc_misc.c --- a/tools/libxc/xc_misc.c +++ b/tools/libxc/xc_misc.c @@ -100,6 +100,26 @@ int xc_readconsolering(xc_interface *xch return ret

[Xen-API] [PATCH 1 of 5 v4] common/sysctl: Introduce hypercall to query the console ring size

2013-03-13 Thread Andrew Cooper
Signed-off-by: Andrew Cooper -- Changes since v2: * Rebase on top of coverage patches. * Reword hypercall comments. diff -r a6b81234b189 -r 89f3c6846f6b xen/common/sysctl.c --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -358,6 +358,10 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xe }

[Xen-API] [PATCH 4 of 5 v4] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()

2013-03-13 Thread Andrew Cooper
There are two problems with this function: * The caml_{enter,leave}_blocking_section() calls mean that two threads can compete for use of the static ring[] buffer. * It fails to retrieve the entire buffer if the hypervisor has used 32K or more of its console ring. Rewrite the function

[Xen-API] [PATCH 0 of 5 v4] Tools: Console ring improvements

2013-03-13 Thread Andrew Cooper
Hello, The following set of patches came about when trying to fix the 32K limitation with stub_xc_readconsolering() in the ocaml bindings. Patch 1 is a hypervisor patch adding a new SYSCTL hypercall to query the size of the console ring, which is fixed but otherwise inaccessible after boot. Patc

Re: [Xen-API] Problem connecting to xcp via xencenter or ssh

2013-03-13 Thread Ryan Miller
Did you try configuring ssh through xsconsole? If you are in front of the XCP host. Type xsconsole There is a txt GUI that gives you the option to configure remote services. Ryan Miller -Original Message- From: xen-api-boun...@lists.xen.org [mailto:xen-api-boun...@lists.xen.org] On Be

[Xen-API] Problem connecting to xcp via xencenter or ssh

2013-03-13 Thread Joseph-Andre Guaragna
Hi We are currently testing XCP and came with a situation on one of our server. We installed xcp on a dell T410 which uses broadcom netXtreme II BCM 5716 NIC cards, and experienced problems connecting to it whether using xencenter or ssh. With Xencenter we get a first connection then after few s

Re: [Xen-API] XCP 1.6 and GPU passthrough

2013-03-13 Thread Guillaume Thouvenin
Rob Hoes a écrit : Using XenCenter in the way Gizmo Chicken described does the exact same thing as what the GPU commands on the xe CLI do. From your other mail, it looks like you need to explicitly enable IOMMU or VT-d in your BIOS? In the BIOS in the menu "Intel LT-SX and VT Setting" I ha

Re: [Xen-API] [Xen-devel] [PATCH 4 of 5 v3] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()

2013-03-13 Thread Ian Campbell
On Wed, 2013-03-13 at 11:15 +, Ian Jackson wrote: > Dave Scott writes ("RE: [Xen-devel] [PATCH 4 of 5 v3] tools/ocaml: libxc > bindings: Fix stub_xc_readconsolering()"): > > This looks fine to me. I assume the console ring is a C string which > > doesn't contain NULLs in the middle and hence i

Re: [Xen-API] [Xen-devel] [PATCH 4 of 5 v3] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()

2013-03-13 Thread Ian Jackson
Dave Scott writes ("RE: [Xen-devel] [PATCH 4 of 5 v3] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()"): > This looks fine to me. I assume the console ring is a C string which > doesn't contain NULLs in the middle and hence it's sensible to use > "caml_copy_string" (the alternative woul

Re: [Xen-API] [Xen-devel] [PATCH 4 of 5 v3] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()

2013-03-13 Thread Andrew Cooper
On 13/03/13 10:48, Dave Scott wrote: > Hi, > > This looks fine to me. I assume the console ring is a C string which doesn't > contain NULLs in the middle and hence it's sensible to use "caml_copy_string" > (the alternative would be to treat it as a raw block of bytes using > "caml_alloc_string"

Re: [Xen-API] [Xen-devel] [PATCH 5 of 5 v3] tools/ocaml: libxc bindings: Fix failwith_xc()

2013-03-13 Thread Ian Campbell
On Wed, 2013-03-13 at 10:49 +, Dave Scott wrote: > This looks fine to me. Can we/I take that as a formal "Acked-by: Dave Scott " ? ___ Xen-api mailing list Xen-api@lists.xen.org http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Re: [Xen-API] [Xen-devel] [PATCH 5 of 5 v3] tools/ocaml: libxc bindings: Fix failwith_xc()

2013-03-13 Thread Dave Scott
> On Wed, 2013-03-13 at 10:49 +, Dave Scott wrote: > > This looks fine to me. > > Can we/I take that as a formal "Acked-by: Dave Scott > " ? Please do! Acked-by: Dave Scott Thanks, Dave ___ Xen-api mailing list Xen-api@lists.xen.org http://lists.

Re: [Xen-API] [Xen-devel] [PATCH 5 of 5 v3] tools/ocaml: libxc bindings: Fix failwith_xc()

2013-03-13 Thread Dave Scott
This looks fine to me. Cheers, Dave > -Original Message- > From: xen-devel-boun...@lists.xen.org [mailto:xen-devel- > boun...@lists.xen.org] On Behalf Of Andrew Cooper > Sent: 12 March 2013 6:09 PM > To: xen-de...@lists.xen.org > Cc: Ian Jackson; Keir (Xen.org); Ian Campbell; Jan Beulich;

Re: [Xen-API] [Xen-devel] [PATCH 4 of 5 v3] tools/ocaml: libxc bindings: Fix stub_xc_readconsolering()

2013-03-13 Thread Dave Scott
Hi, This looks fine to me. I assume the console ring is a C string which doesn't contain NULLs in the middle and hence it's sensible to use "caml_copy_string" (the alternative would be to treat it as a raw block of bytes using "caml_alloc_string" and memcpy-- OCaml strings can contain NULLs saf

Re: [Xen-API] XCP 1.6 and GPU passthrough

2013-03-13 Thread Rob Hoes
Using XenCenter in the way Gizmo Chicken described does the exact same thing as what the GPU commands on the xe CLI do. >From your other mail, it looks like you need to explicitly enable IOMMU or >VT-d in your BIOS? Cheers, Rob > -Original Message- > From: xen-api-boun...@lists.xen.org

Re: [Xen-API] XCP 1.6 and GPU passthrough

2013-03-13 Thread Guillaume Thouvenin
Gizmo Chicken a écrit : Instead, I simply (1) selected my card from the dropdown menu in the appropriate properties section of XenCenter, and (2) installed the fglrx (not fglrx-updates) driver from the "additional drivers" within the Ubuntu 12.04 HVM guest. I'm using XCP and I'm not sure if

Re: [Xen-API] XCP 1.6 and GPU passthrough

2013-03-13 Thread Guillaume Thouvenin
Rob Hoes a écrit : Is your VM a PV guest? I'm not sure. I installed an ubuntu 12.04 from the iso ubuntu-12.04.1-server-amd64.iso. I guess that the linux kernel in this distribution has some Xen drivers and is a aware that it is running in a virtualized environment. So I guess that it is a