<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I have just verified, starting a VM on the cluster node, that ttylinux has dropbear installed (an equivalent off ssh server/client), so I should connect to the Vm, but I can't.<br><br>In my opinion, all this troubles came from ubuntu 10.04 bug about kvm-pxe packages, that should simulate the network card in KVM VMs. <br><br>I'll try install the package manually, then I'll notice how it's gone.<br><br>If you find another way to solve the problem, please tell me!!!<br><br>Thanks a lot<br><br>Daniele Fetoni<br><br><hr id="stopSpelling">From: daniele.fetoni@hotmail.it<br>To: tedbs@gtsum.com; users@lists.opennebula.org<br>Subject: RE: [one-users] problems connecting to VM using ssh<br>Date: Mon, 7 Jun 2010 10:38:36 +0200<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


I have changed name in all networks and Vms templates as you said, but still nothing.<br><br>The ttylinux downloaded from opennebula repository should already have ssh server, isn't it?<br><br><hr id="ecxstopSpelling">Subject: RE: [one-users] problems connecting to VM using ssh<br>Date: Fri, 4 Jun 2010 15:04:17 -0400<br>From: tedbs@gtsum.com<br>To: users@lists.opennebula.org; daniele.fetoni@hotmail.it<br><br>







<style>
.ExternalClass .ecxshape
{;}
</style>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsonormal, .ExternalClass li.ecxecxmsonormal, .ExternalClass div.ecxecxmsonormal
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsolistparagraph, .ExternalClass li.ecxecxmsolistparagraph, .ExternalClass div.ecxecxmsolistparagraph
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxecxmsochpdefault, .ExternalClass li.ecxecxmsochpdefault, .ExternalClass div.ecxecxmsochpdefault
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink
{;}
.ExternalClass span.ecxecxmsohyperlinkfollowed
{;}
.ExternalClass span.ecxecxemailstyle18
{;}
.ExternalClass p.ecxecxmsonormal1, .ExternalClass li.ecxecxmsonormal1, .ExternalClass div.ecxecxmsonormal1
{margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxmsohyperlink1
{color:blue;text-decoration:underline;}
.ExternalClass span.ecxecxmsohyperlinkfollowed1
{color:purple;text-decoration:underline;}
.ExternalClass p.ecxecxmsolistparagraph1, .ExternalClass li.ecxecxmsolistparagraph1, .ExternalClass div.ecxecxmsolistparagraph1
{margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxecxemailstyle181
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass p.ecxecxmsochpdefault1, .ExternalClass li.ecxecxmsochpdefault1, .ExternalClass div.ecxecxmsochpdefault1
{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxEmailStyle30
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>





<div class="ecxecxSection1">

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">OpenNebula might not like the period (.) in the NAME in your
template. Try something like Ubuntu10_04 instead.</span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Did you install openssh-server in your virtual machine? If not,
you won’t be able to ssh to it.</span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Please reply through the list, so that others can benefit from
this thread.</span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Ted Bodfish</span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>

<div>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">

<p class="ecxecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> Daniele Fetoni
[mailto:daniele.fetoni@hotmail.it] <br>
<b>Sent:</b> June-04-10 9:29 AM<br>
<b>To:</b> tedbs<br>
<b>Subject:</b> RE: [one-users] problems connecting to VM using ssh</span></p>

</div>

</div>

<p class="ecxecxMsoNormal"> </p>

<p class="ecxecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">First, thanks for your time.<br>
<br>
I have changed localhost in Graphics as you said and I managed to see ttylinux
with vnc, but still I cannot connect via ssh, and if I submit any other image,
then I got the same error. <br>
Funny, isn't it?<br>
<br>
Maybe I can't run any other VM because of Ubuntu 10.04 has a bug about kvm-pxe
package.<br>
<br>
https://bugs.launchpad.net/ubuntu/+source/etherboot/+bug/574524<br>
<br>
Anyway, I'm trying to submit this template<br>
<br>
NAME   = Ubuntu10.04<br>
CPU    = 0.5<br>
MEMORY = 512<br>
<br>
DISK  = [<br>
  source   =
"/srv/cloud/images/ubuntu-10.04-netbook-armel+imx51.img",<br>
  target   = "hda",<br>
  save     = "yes",<br>
  readonly = "no"<br>
  ]<br>
<br>
NIC = [network  = "labtlc_LAN"]<br>
<br>
GRAPHICS = [<br>
  type="vnc", <br>
  listen="localhost", <br>
  port="5858"<br>
  ]<br>
<br>
on the same network where ttylinux runs.<br>
Something's worng in the template?</span></p>

<div class="ecxecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr id="ecxecxstopSpelling" align="center" size="2" width="100%">

</span></div>

<p class="ecxecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Subject: RE: [one-users] problems
connecting to VM using ssh<br>
Date: Fri, 4 Jun 2010 09:04:50 -0400<br>
From: tedbs@gtsum.com<br>
To: daniele.fetoni@hotmail.it; users@lists.opennebula.org</span></p>

<div>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">I see two issues:</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">1) Try listen=”localhost” in GRAPHICS. The IP
address you used is not a valid address.</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">2) The virtual machines are managed by OpenNebula on the front
end. The virtual machines run on different computers, the hosts. virsh list on
the front end shows nothing. Try it on the host where the virtual machine is
running.</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Ted Bodfish</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<p class="ecxecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

<div>

<div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;">

<p class="ecxecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> Daniele Fetoni
[mailto:daniele.fetoni@hotmail.it] <br>
<b>Sent:</b> June-04-10 8:01 AM<br>
<b>To:</b> users@lists.opennebula.org<br>
<b>Subject:</b> Re: [one-users] problems connecting to VM using ssh</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"></span></p>

</div>

</div>

<p class="ecxecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>

<p class="ecxecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">I just found that there are no domains in
virsh list.<br>
Due to this, even if VMs are running, I cannot suspend and restart them, or
everything else, because virsh has not a domain to call.<br>
Maybe if I manage to connect to VMs, this problem will be solved too.</span></p>

<div class="ecxecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr align="center" size="2" width="100%">

</span></div>

<p class="ecxecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">From: daniele.fetoni@hotmail.it<br>
To: users@lists.opennebula.org<br>
Subject: problems connecting to VM using ssh<br>
Date: Fri, 4 Jun 2010 10:30:41 +0200<br>
<br>
Hi there<br>
I'm a researcher from università di Perugia, triying to create a cloud to make
some tests.<br>
<br>
I'm having some troubles connecting to VM<br>
<br>
I manage to create a virtual machine, its state is runn and through virtual
machine manager that the resources from node are taken.<br>
But, I cannot connect via ssh to VMs, neither run one of these (VMM says
"graphical console not configured for guest").<br>
so, I tried to put in VM templates this<br>
<br>
GRAPHICS = [<br>
  type="vnc", <br>
  listen="192.168.0.0", <br>
  port="5858"<br>
  ]<br>
<br>
in order to see if I can connect via vnc, but if I add this, VM deployment
fails.<br>
<br>
If I do not use Graphics, VM submission is OK, logs doesn't show everything
bad, but I cannot reach VMs, even ping fails.<br>
If I use Graphics, submission will fail. This is oned.log<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 Command
execution fail: 'mkdir -p /srv/cloud/one/var/90/images && cat >
/srv/cloud/one/var/90/images/deployment.0 && virsh --connect
qemu:///system create /srv/cloud/one/var/90/images/deployment.0'<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 STDERR
follows.<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90
/usr/lib/ruby/1.8/open3.rb:73: warning: Insecure world writable dir
/srv/cloud/one/var in PATH, mode 040777<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 error:
Failed to create domain from /srv/cloud/one/var/90/images/deployment.0<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 error:
monitor socket did not show up.: Connection refused<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 ExitCode: 1<br>
<br>
Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: DEPLOY FAILURE 90 -<br>
<br>
And here is VM log<br>
<br>
Fri Jun  4 10:09:05 2010 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/90/deployment.0<br>
Fri Jun  4 10:09:35 2010 [VMM][I]: Command execution fail: 'mkdir -p
/srv/cloud/one/var/90/images && cat >
/srv/cloud/one/var/90/images/deployment.0 && virsh --connect
qemu:///system create /srv/cloud/one/var/90/images/deployment.0'<br>
Fri Jun  4 10:09:35 2010 [VMM][I]: STDERR follows.<br>
Fri Jun  4 10:09:35 2010 [VMM][I]: /usr/lib/ruby/1.8/open3.rb:73: warning:
Insecure world writable dir /srv/cloud/one/var in PATH, mode 040777<br>
Fri Jun  4 10:09:35 2010 [VMM][I]: error: Failed to create domain from
/srv/cloud/one/var/90/images/deployment.0<br>
Fri Jun  4 10:09:35 2010 [VMM][I]: error: monitor socket did not show up.:
Connection refused<br>
Fri Jun  4 10:09:35 2010 [VMM][I]: ExitCode: 1<br>
Fri Jun  4 10:09:35 2010 [VMM][E]: Error deploying virtual machine<br>
Fri Jun  4 10:09:35 2010 [DiM][I]: New VM state is FAILED<br>
<br>
<br>
Probably, submission fails because the front end cannot ssh the virtual
machine, so the problem is: why I can't connect to VMs using ssh, or even ping?<br>
I tried using both ttylinux.img and ubuntu 10.04.img as image files, but
nothing changed.<br>
<br>
Please, give me a tip!!<br>
<br>
Cheers <br>
<br>
Daniele Fetoni</span></p>

<div class="ecxecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr align="center" size="2" width="100%">

</span></div>

<p class="ecxecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Il
tuo mondo MSN a portata di clic. <a href="http://events.it.msn.com/internet-explorer-8">Scarica IE8 per MSN</a> </span></p>

<div class="ecxecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr align="center" size="2" width="100%">

</span></div>

<p class="ecxecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Messenger
Radio. <a href="http://www.messenger.it/messenger_radio.aspx">La radio che si
fa cliccare!</a></span></p>

</div>

<p class="ecxecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"> </span></p>

<div class="ecxecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr align="center" size="2" width="100%">

</span></div>

<p class="ecxecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Un
mondo di personalizzazioni per Messenger, PC e cellulare, <a href="http://www.pimpit.it/">scaricale gratis!</a></span></p>

</div>                                      <br><hr>Messenger Radio.  <a href="http://www.messenger.it/messenger_radio.aspx">La radio che si fa cliccare!</a>                                     <br /><hr />Un mondo di personalizzazioni per Messenger, PC e cellulare, <a href='http://www.pimpit.it/' target='_new'>scaricale gratis!</a></body>
</html>