[one-users] virtual machine booting problem..

ranjith k ranjithskp at gmail.com
Tue May 25 00:11:07 PDT 2010


-

hi keith,Thank you for your reply.

i registered vm host by executing command.
onehost create 198.162.2.33 im_kvm tm_kvm ....,here 198.162.2.33 is the IP
of my kvm host. i can ping to the kvm host 198.162.2.33
after adding kvm host 198.162.2.33 i run the command "onehost show 0"
It display all the information about my kvm host (processor type,processor
speed ......)

i created bridge on my kvm host 198.162.2.33 by adding the following line to
my /etc/networks/interfaces file...

auto br0
iface br0 inet static
             address 192.168.2.33
             network 192.168.2.0
             netmask 255.255.255.0
             broadcast 192.168.2.255
             gateway 192.168.2.1
             bridge_ports eth0
             bridge_fd 9
             bridge_hello 2
             bridge_maxage 12
             bridge_stp off
  i don't know is there is any problem in this bridge .and added my virtual
network to this
bridge
And also i created virtual network by

NAME = "Red LAN"
TYPE = RANGED
BRIDGE = br0
NETWORK_SIZE     = C
NETWORK_ADDRESS = 192.168.2.0









On Tue, May 25, 2010 at 6:06 AM, Keith Hudgins <keith at cloudscaling.com>wrote:

> Here's the lines that identifiy your problem:
>
> Thu May 20 18:50:26 2010 [VMM][I]: Connecting to uri: qemu:///system
> Thu May 20 18:50:26 2010 [VMM][I]: error: Failed to create domain from
> /srv/cloud/one/var//7/images/deployment.0
> Thu May 20 18:50:26 2010 [VMM][I]: error: monitor socket did not show
> up.: Connection refused
> Thu May 20 18:50:26 2010 [VMM][I]: ExitCode: 1
>
> Looks like there's either a networking issue on the kvm box or
> something isn't running. Is the hostname 'system' in your /etc/hosts
> on the ONE server? If not, that's your problem - make sure that
> 'system' resolves to the IP address of your kvm host.
>
> This happened because when you ran
>
> onehost create system im_kvm tm_kvm....
>
> ONE registered a vm host with a network address of 'system'. You can also
> run
>
> onehost delete system
>
> (It may be onehost destroy, I'm running from memory here)
>
> and then re-add your kvm host via ip address or make sure it's an
> addressable host name.
>
>
>
> On Sun, May 23, 2010 at 2:42 AM, ranjith k <ranjithskp at gmail.com> wrote:
> > hi,
> >
> > I am new to opennebula.I am using ttylinux image for virtual machine,it
> is
> > downloaded form the opennebula website.
> > I was installed opennebula on my laptop,it is running ubuntu.And i am
> using
> > oneadmin account for managing opennebuala.
> >
> > I am using an another laptop for the cluster node,it is also running
> ubuntu.
> > created oneadmin account in it.And installed qemu,kvm and libvirt-bin on
> > it.and i added oneadmin account to kvm libvirtd groups.
> > I was created a birdged interface br0 on cluster node by editing
> > /etc/network/interfaces and assign a ip address 198.162.2.33.
> >
> > vm directories are shared using nfs.and i enable password less ssh
> access.
> >
> > I was added the cluster node 198.168.2.33 to opennebula host using the
> > commnad onehost.It executed sussefully.
> > I was created read lan virtual network ..using the command onevnet .
> > the content in the file redlan.net is
> > ##################
> redlan.net############################################################
> > NAME = "Red LAN"
> > TYPE = RANGED
> > BRIDGE = br0
> > NETWORK_SIZE     = C
> > NETWORK_ADDRESS = 192.168.2.0
> >
> ####################################################################################
> > i created a template for my virtual machine ttylinux.one content is
> >
> #####################ttylinux.one#######################################################
> > NAME   = ttylinux
> > CPU    = 0.1
> > MEMORY = 64
> > DISK   = [
> >   source    = "/srv/cloud/images/ttylinux.img",
> >   target    = "hda",
> >   readonly = "no" ]
> > NIC      = [ NETWORK = "Red LAN" ]
> > FEATURES = [ acpi="no" ]
> > #This may be useful to debug your VMs (can use also console)
> > GRAPHICS = [
> >   type = "vnc",
> >   listen = "loclahost",
> >   port = "5902",
> >   keymap="es"]
> >
> #####################################################################################
> > I was created this virtual machine using the command onevm
> > and i monitored the vm using the command "onevm top"
> > first the state of the vm is pend.then prolog.then boot
> > but after some time the boot is changed to failed.and i look at the
> vm.log
> > file the content is like below.
> >
> >
> #########################vm.log########################################################
> >
> >
> > Thu May 20 18:49:54 2010 [DiM][I]: New VM state is ACTIVE.
> > Thu May 20 18:49:55 2010 [LCM][I]: New VM state is PROLOG.
> > Thu May 20 18:49:55 2010 [VM][I]: Virtual Machine has no context
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh:
> > wysh-laptop:/srv/cloud/images/ttylinux.img
> > 192.168.2.33:/srv/cloud/one/var//7/images/disk.0
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: DST:
> > /srv/cloud/one/var//7/images/disk.0
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: Creating directory
> > /srv/cloud/one/var//7/images
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: Executed "mkdir -p
> > /srv/cloud/one/var//7/images".
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> > /srv/cloud/one/var//7/images".
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: Cloning
> > /srv/cloud/images/ttylinux.img
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: Executed "cp
> > /srv/cloud/images/ttylinux.img /srv/cloud/one/var//7/images/disk.0".
> > Thu May 20 18:49:55 2010 [TM][I]: tm_clone.sh: Executed "chmod a+w
> > /srv/cloud/one/var//7/images/disk.0".
> > Thu May 20 18:49:55 2010 [LCM][I]: New VM state is BOOT
> > Thu May 20 18:49:55 2010 [VMM][I]: Generating deployment file:
> > /srv/cloud/one/var/7/deployment.0
> > Thu May 20 18:50:26 2010 [VMM][I]: Command execution fail: 'mkdir -p
> > /srv/cloud/one/var//7/images && cat >
> > /srv/cloud/one/var//7/images/deployment.0 && virsh --connect
> qemu:///system
> > create /srv/cloud/one/var//7/images/deployment.0'
> > Thu May 20 18:50:26 2010 [VMM][I]: STDERR follows.
> > Thu May 20 18:50:26 2010 [VMM][I]: Connecting to uri: qemu:///system
> > Thu May 20 18:50:26 2010 [VMM][I]: error: Failed to create domain from
> > /srv/cloud/one/var//7/images/deployment.0
> > Thu May 20 18:50:26 2010 [VMM][I]: error: monitor socket did not show
> up.:
> > Connection refused
> > Thu May 20 18:50:26 2010 [VMM][I]: ExitCode: 1
> > Thu May 20 18:50:26 2010 [VMM][E]: Error deploying virtual machine
> > Thu May 20 18:50:27 2010 [DiM][I]: New VM state is FAILED
> > Thu May 20 18:50:27 2010 [TM][W]: Ignored: LOG - 7 tm_delete.sh: Deleting
> > /srv/cloud/one/var//7/images
> >
> > Thu May 20 18:50:27 2010 [TM][W]: Ignored: LOG - 7 tm_delete.sh: Executed
> > "rm -rf /srv/cloud/one/var//7/images".
> >
> > Thu May 20 18:50:27 2010 [TM][W]: Ignored: TRANSFER SUCCESS 7 -
> >
> ####################################################################################################################
> >
> > please give me what is the problem and how can i recover form it....
> >
> > Advanced Thanks......
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100525/297bb2ab/attachment-0003.htm>


More information about the Users mailing list