[one-users] virtual machine booting problem..
ranjith k
ranjithskp at gmail.com
Sat May 22 23:42:51 PDT 2010
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......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100523/3e92aaff/attachment-0001.htm>
More information about the Users
mailing list