[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] xe cli not working on remote machine



 
 Hi,
 
Thanks for the test.
 
You've got a point there. My host is 64 bits.
 
I do have the 32bits compat. in the kernel. the 32 bits binary should work.
 
i'll try to build a 32 bits version on a virtualbox and give it a try.
 
thanks for the help. now I know it works
 
Jeff C.
-------- Original Message --------
Subject: Re: [Xen-users] xe cli not working on remote machine
From: Thomas Halinka <lists@xxxxxxxxx>
Date: Fri, November 05, 2010 5:51 am
To: jfcouture@xxxxxxxxxxxxxx
Cc: xen-users@xxxxxxxxxxxxxxxxxxx

Hi Jeff,

Am Freitag, den 05.11.2010, 05:09 -0700 schrieb
jfcouture@xxxxxxxxxxxxxx:
> Hi list,
>
> I have 3 Citrix Xenserver 5.6 and currently building a a VM backup
> server.
>
> I took the xe client on one of the server and installed it on the
> backup server (gentoo based)

I just copied the xe-binary from my citrix-hosts, installed stunnel and
ran xe

Something like:

# emerge (-pv) stunnel && scp root@
$CITRIX-Box:/opt/xensource/bin/xe /usr/local/bin/

XE just runs fine on my debian-boxes, but never tried on a 64bit-Host...

is your gentoo-box amd64 or i386?

hth,

thomas


>
> installed the stunnel package to make XE work.
>
> now when running, I get this error message :
>
> [server ­~ #] ./xe help -debug -s 192.168.111.17 -u user -pw pass
> Connecting via stunnel to [192.168.111.17] port [443]
> stunnel: stunnel has pidty: (StdFork 21992)
> stunnel: stunnel start: Log from stunnel: []
> Error: Connection reset by peer (calling read )
>
>
>
> running a strace on this:
> [server ­~ #] strace ./xe help -debug -s 192.168.111.17 -u root -pw
> bonjour
> execve("./xe", ["./xe", "help", "-debug", "-s", "192.168.111.17",
> "-u", "root", "-pw", "bonjour"], [/* 28 vars */]) = 0
> [ Process PID=21995 runs in 32 bit mode. ]
> uname({sys="Linux", node="devsys-srv03", ...}) = 0
> brk(0) = 0x9206000
> brk(0x9206cb0) = 0x9206cb0
> set_thread_area(0xffd0708c) = 0
> brk(0x9227cb0) = 0x9227cb0
> brk(0x9228000) = 0x9228000
> brk(0x9249000) = 0x9249000
> mmap2(NULL, 516096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
> -1, 0) = 0xfffffffff76f4000
> sigaltstack({ss_sp=0x8155860, ss_flags=0x2000 /* SS_??? */,
> ss_size=578935014240055448}, NULL) = 0
> rt_sigaction(SIGSEGV, {0x808dd5e, [], SA_STACK|SA_NODEFER}, NULL, 8) =
> 0
> readlink("/proc/self/exe", "/root/xe", 256) = 8
> stat64("/root/xe", {st_mode=S_IFREG|0755, st_size=1345687, ...}) = 0
> _llseek(0, 0, 0xffd06fe0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> _llseek(1, 0, 0xffd06fd0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> _llseek(2, 0, 0xffd06fd0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> gettimeofday({1288958862, 211487}, NULL) = 0
> getppid() = 21994
> getpid() = 21995
> rt_sigaction(SIGPIPE, {SIG_IGN, [], 0}, {SIG_DFL, [], 0}, 8) = 0
> rt_sigaction(SIGINT, {0x808dde7, [], 0}, {SIG_DFL, [], 0}, 8) = 0
> access("/opt/xensource/libexec/stunnel/stunnel", X_OK) = -1 ENOENT (No
> such file or directory)
> access("/usr/sbin/stunnel4", X_OK) = -1 ENOENT (No such file or
> directory)
> access("/usr/sbin/stunnel", X_OK) = 0
> open("/root/.xe", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
> directory)
> stat64("/var/xapi/verify_certificates", 0xffd06f7c) = -1 ENOENT (No
> such file or directory)
> pipe([3, 4]) = 0
> open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 5
> fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
> _llseek(5, 0, [0], SEEK_CUR) = 0
> read(5, "\366\237g\341\372\247|\366\276^\240\242\265\204\353\231\242
> \360\245 n),\20\22ZOsZ\310\205\f"..., 4096) = 4096
> close(5) = 0
> socketpair(PF_FILE, SOCK_STREAM, 0, [5, 6]) = 0
> gettimeofday({1288958862, 213815}, NULL) = 0
> open("/tmp/stunneleede8e.log", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE,
> 0600) = 7
> fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
> close(7) = 0
> open("/tmp/stunneleede8e.log", O_WRONLY|O_CREAT|O_LARGEFILE, 0) = 7
> clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
> SIGCHLD, child_tidptr=0) = 21996
> close(3) = 0
> close(6) = 0
> write(4, "client=yes\nforeground=yes\nsocket"..., 78) = 78
> close(4) = 0
> close(7) = 0
> open("/tmp/stunneleede8e.log", O_RDONLY|O_LARGEFILE) = 3
> read(3, "", 1024) = 0
> close(3) = 0
> unlink("/tmp/stunneleede8e.log") = 0
> _llseek(5, 0, 0xffd06fa4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> _llseek(5, 0, 0xffd06fb4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
> write(2, "Connecting via stunnel to [192.1"..., 143Connecting via
> stunnel to [192.168.111.17] port [443]
> stunnel: stunnel has pidty: (StdFork 21996)
> stunnel: stunnel start: Log from stunnel: []
> ) = 143
> write(5, "POST /cli HTTP/1.0\r\nUser-agent: "..., 106) = 106
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon
> echo ...}) = 0
> read(5, 0xffd02fa8, 27) = -1 ECONNRESET (Connection
> reset by peer)
> stat64("", 0xffd06fac) = -1 ENOENT (No such file or
> directory)
> --- SIGCHLD (Child exited) @ 0 (0) ---
> close(5) = 0
> waitpid(21996, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG) =
> 21996
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon
> echo ...}) = 0
> ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon
> echo ...}) = 0
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon
> echo ...}) = 0
> write(2, "Error: Connection reset by peer "..., 48Error: Connection
> reset by peer (calling read )
> ) = 48
> exit_group(1) = ?
>
>
> anyone tried running the XE outside the box and got this working ?
>
> thanks,
>
> Jeff C.
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.