[one-users] problems connecting to VM using ssh

tedbs tedbs at gtsum.com
Fri Jun 4 06:04:50 PDT 2010


I see two issues:

 

1) Try listen="localhost" in GRAPHICS. The IP address you used is not a valid address.

 

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.

 

Ted Bodfish

 

From: Daniele Fetoni [mailto:daniele.fetoni at hotmail.it] 
Sent: June-04-10 8:01 AM
To: users at lists.opennebula.org
Subject: Re: [one-users] problems connecting to VM using ssh

 

I just found that there are no domains in virsh list.
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.
Maybe if I manage to connect to VMs, this problem will be solved too.

________________________________

From: daniele.fetoni at hotmail.it
To: users at lists.opennebula.org
Subject: problems connecting to VM using ssh
Date: Fri, 4 Jun 2010 10:30:41 +0200

Hi there
I'm a researcher from università di Perugia, triying to create a cloud to make some tests.

I'm having some troubles connecting to VM

I manage to create a virtual machine, its state is runn and through virtual machine manager that the resources from node are taken.
But, I cannot connect via ssh to VMs, neither run one of these (VMM says "graphical console not configured for guest").
so, I tried to put in VM templates this

GRAPHICS = [
  type="vnc", 
  listen="192.168.0.0", 
  port="5858"
  ]

in order to see if I can connect via vnc, but if I add this, VM deployment fails.

If I do not use Graphics, VM submission is OK, logs doesn't show everything bad, but I cannot reach VMs, even ping fails.
If I use Graphics, submission will fail. This is oned.log

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'

Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 STDERR follows.

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

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

Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 error: monitor socket did not show up.: Connection refused

Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: LOG - 90 ExitCode: 1

Fri Jun  4 10:09:35 2010 [VMM][D]: Message received: DEPLOY FAILURE 90 -

And here is VM log

Fri Jun  4 10:09:05 2010 [VMM][I]: Generating deployment file: /srv/cloud/one/var/90/deployment.0
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'
Fri Jun  4 10:09:35 2010 [VMM][I]: STDERR follows.
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
Fri Jun  4 10:09:35 2010 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var/90/images/deployment.0
Fri Jun  4 10:09:35 2010 [VMM][I]: error: monitor socket did not show up.: Connection refused
Fri Jun  4 10:09:35 2010 [VMM][I]: ExitCode: 1
Fri Jun  4 10:09:35 2010 [VMM][E]: Error deploying virtual machine
Fri Jun  4 10:09:35 2010 [DiM][I]: New VM state is FAILED


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?
I tried using both ttylinux.img and ubuntu 10.04.img as image files, but nothing changed.

Please, give me a tip!!

Cheers 

Daniele Fetoni



________________________________

Il tuo mondo MSN a portata di clic. Scarica IE8 per MSN <http://events.it.msn.com/internet-explorer-8>  

________________________________

Messenger Radio. La radio che si fa cliccare! <http://www.messenger.it/messenger_radio.aspx> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100604/b5b743cb/attachment-0002.htm>


More information about the Users mailing list