Hi all, I have some problems with live migration using the xl toolstack. I''m running Xen 4.1.4 on Centos 5.8 . I need to migrate a domain between two hosts on the same subnet. To do that, I run sudo /usr/sbin/xl migrate -s "ssh user@otherhost sudo xl migrate-receive" domain otherhost (I need to do this because I cannot have the root password of these two machines, so I asked just the rights to use xl with sudo) but what I get is this error: sudo: no tty present and no askpass program specified libxl: error: libxl_utils.c:408:libxl_read_exactly file/stream truncated reading banner from migration receiver stream libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration target process [8541] exited with error status 1 What am I doing wrong? Thanks a lot in advance for your answers! P.S. Does xl migrate performs live migration by default? _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi, the "sudo: no tty present and no askpass program specified" is a sudo problem, not a Xen problem. Ask you administrator to allow user@otherhost to run sudo without any tty (he should commen out the requiretty options for user@otherhost) Andrea 2013/4/10 Vincenzo De Maio <vinc.demaio@gmail.com>> Hi all, > I have some problems with live migration using the xl toolstack. I''m > running Xen 4.1.4 on Centos 5.8 . I need to migrate a domain between two > hosts on the same subnet. To do that, I run > > sudo /usr/sbin/xl migrate -s "ssh user@otherhost sudo xl migrate-receive" > domain otherhost > > (I need to do this because I cannot have the root password of these two > machines, so I asked just the rights to use xl with sudo) > > but what I get is this error: > > sudo: no tty present and no askpass program specified > libxl: error: libxl_utils.c:408:libxl_read_exactly file/stream truncated > reading banner from migration receiver stream > libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration > target process [8541] exited with error status 1 > > What am I doing wrong? Thanks a lot in advance for your answers! > > P.S. Does xl migrate performs live migration by default? > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi Andrea, I tried what you suggested but still getting the same error... 2013/4/10 Andrea Monti <ilsuonogiallo@gmail.com>> Hi, > the "sudo: no tty present and no askpass program specified" is a sudo > problem, not a Xen problem. > Ask you administrator to allow user@otherhost to run sudo without any tty > (he should commen out the requiretty options for user@otherhost) > > Andrea > > > > 2013/4/10 Vincenzo De Maio <vinc.demaio@gmail.com> > >> Hi all, >> I have some problems with live migration using the xl toolstack. I''m >> running Xen 4.1.4 on Centos 5.8 . I need to migrate a domain between two >> hosts on the same subnet. To do that, I run >> >> sudo /usr/sbin/xl migrate -s "ssh user@otherhost sudo xl >> migrate-receive" domain otherhost >> >> (I need to do this because I cannot have the root password of these two >> machines, so I asked just the rights to use xl with sudo) >> >> but what I get is this error: >> >> sudo: no tty present and no askpass program specified >> libxl: error: libxl_utils.c:408:libxl_read_exactly file/stream truncated >> reading banner from migration receiver stream >> libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration >> target process [8541] exited with error status 1 >> >> What am I doing wrong? Thanks a lot in advance for your answers! >> >> P.S. Does xl migrate performs live migration by default? >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Don''t know if can be useful, but when I try to run sudo /usr/sbin/xl migrate -s "ssh -t -t -l user otherhost /usr/sbin/xl migrate-receive" domain otherhost I got this error: tcgetattr: Invalid argument migration receiver stream contained unexpected data instead of banner (command run was: exec ssh -t -t -l user otherhost /usr/sbin/xl migrate-receive otherhost xl migrate-receive ) Connection to otherhost closed. libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration target process [17285] exited with error status 1 2013/4/11 Vincenzo De Maio <vinc.demaio@gmail.com>> Hi Andrea, I tried what you suggested but still getting the same error... > > > 2013/4/10 Andrea Monti <ilsuonogiallo@gmail.com> > >> Hi, >> the "sudo: no tty present and no askpass program specified" is a sudo >> problem, not a Xen problem. >> Ask you administrator to allow user@otherhost to run sudo without any >> tty (he should commen out the requiretty options for user@otherhost) >> >> Andrea >> >> >> >> 2013/4/10 Vincenzo De Maio <vinc.demaio@gmail.com> >> >>> Hi all, >>> I have some problems with live migration using the xl toolstack. I''m >>> running Xen 4.1.4 on Centos 5.8 . I need to migrate a domain between two >>> hosts on the same subnet. To do that, I run >>> >>> sudo /usr/sbin/xl migrate -s "ssh user@otherhost sudo xl >>> migrate-receive" domain otherhost >>> >>> (I need to do this because I cannot have the root password of these two >>> machines, so I asked just the rights to use xl with sudo) >>> >>> but what I get is this error: >>> >>> sudo: no tty present and no askpass program specified >>> libxl: error: libxl_utils.c:408:libxl_read_exactly file/stream truncated >>> reading banner from migration receiver stream >>> libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration >>> target process [8541] exited with error status 1 >>> >>> What am I doing wrong? Thanks a lot in advance for your answers! >>> >>> P.S. Does xl migrate performs live migration by default? >>> >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xen.org >>> http://lists.xen.org/xen-users >>> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Sorry for bothering you all again, but is there a log file I can check to see what''s going on? 2013/4/11 Vincenzo De Maio <vinc.demaio@gmail.com>> Don''t know if can be useful, but when I try to run > > sudo /usr/sbin/xl migrate -s "ssh -t -t -l user otherhost /usr/sbin/xl > migrate-receive" domain otherhost > > I got this error: > > tcgetattr: Invalid argument > migration receiver stream contained unexpected data instead of banner > (command run was: exec ssh -t -t -l user otherhost /usr/sbin/xl > migrate-receive otherhost xl migrate-receive ) > Connection to otherhost closed. > libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration > target process [17285] exited with error status 1 > > > > 2013/4/11 Vincenzo De Maio <vinc.demaio@gmail.com> > >> Hi Andrea, I tried what you suggested but still getting the same error... >> >> >> 2013/4/10 Andrea Monti <ilsuonogiallo@gmail.com> >> >>> Hi, >>> the "sudo: no tty present and no askpass program specified" is a sudo >>> problem, not a Xen problem. >>> Ask you administrator to allow user@otherhost to run sudo without any >>> tty (he should commen out the requiretty options for user@otherhost) >>> >>> Andrea >>> >>> >>> >>> 2013/4/10 Vincenzo De Maio <vinc.demaio@gmail.com> >>> >>>> Hi all, >>>> I have some problems with live migration using the xl toolstack. I''m >>>> running Xen 4.1.4 on Centos 5.8 . I need to migrate a domain between two >>>> hosts on the same subnet. To do that, I run >>>> >>>> sudo /usr/sbin/xl migrate -s "ssh user@otherhost sudo xl >>>> migrate-receive" domain otherhost >>>> >>>> (I need to do this because I cannot have the root password of these two >>>> machines, so I asked just the rights to use xl with sudo) >>>> >>>> but what I get is this error: >>>> >>>> sudo: no tty present and no askpass program specified >>>> libxl: error: libxl_utils.c:408:libxl_read_exactly file/stream >>>> truncated reading banner from migration receiver stream >>>> libxl: info: libxl_exec.c:72:libxl_report_child_exitstatus migration >>>> target process [8541] exited with error status 1 >>>> >>>> What am I doing wrong? Thanks a lot in advance for your answers! >>>> >>>> P.S. Does xl migrate performs live migration by default? >>>> >>>> >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xen.org >>>> http://lists.xen.org/xen-users >>>> >>> >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xen.org >>> http://lists.xen.org/xen-users >>> >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users