Advertisement
AnoopMohan

vmm_exec_kvm

Oct 18th, 2013
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.55 KB | None | 0 0
  1. [root@opennebula qemu]# cat /var/log/libvirt/qemu/one-0.log
  2. 2013-10-17 10:24:13.751+0000: shutting down
  3. [oneadmin@opennebula 0]$ ll
  4. total 368
  5. -rw-rw-r-- 1 oneadmin oneadmin 911 Oct 17 15:54 deployment.0
  6. lrwxrwxrwx 1 oneadmin oneadmin 58 Oct 17 15:54 disk.0 -> /var/lib/one/datastores/1/4f26332f44a62316935eae65a5229e92
  7. -rw-r--r-- 1 oneadmin oneadmin 372736 Oct 17 15:54 disk.1
  8. lrwxrwxrwx 1 oneadmin oneadmin 34 Oct 17 15:54 disk.1.iso -> /var/lib/one/datastores/0/0/disk.1
  9. [oneadmin@opennebula 0]$ cat deployment.0
  10. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  11. <name>one-0</name>
  12. <vcpu>1</vcpu>
  13. <cputune>
  14. <shares>512</shares>
  15. </cputune>
  16. <memory>524288</memory>
  17. <os>
  18. <type arch='x86_64'>hvm</type>
  19. <boot dev='hd'/>
  20. </os>
  21. <devices>
  22. <emulator>/usr/libexec/qemu-kvm</emulator>
  23. <disk type='file' device='disk'>
  24. <source file='/var/lib/one//datastores/0/0/disk.0'/>
  25. <target dev='hda'/>
  26. <driver name='qemu' type='qcow2' cache='none'/>
  27. </disk>
  28. <disk type='file' device='cdrom'>
  29. <source file='/var/lib/one//datastores/0/0/disk.1'/>
  30. <target dev='hdb'/>
  31. <readonly/>
  32. <driver name='qemu' type='raw'/>
  33. </disk>
  34. <interface type='bridge'>
  35. <source bridge='bro'/>
  36. <virtualport type='openvswitch'/>
  37. <mac address='02:00:ac:16:06:39'/>
  38. </interface>
  39. <graphics type='vnc' listen='0.0.0.0' port='5900'/>
  40. </devices>
  41. <features>
  42. <acpi/>
  43. </features>
  44. </domain>
  45.  
  46.  
  47.  
  48. [root@opennebula one]# cat 0.log
  49. Thu Oct 17 15:54:12 2013 [DiM][I]: New VM state is ACTIVE.
  50. Thu Oct 17 15:54:12 2013 [LCM][I]: New VM state is PROLOG.
  51. Thu Oct 17 15:54:13 2013 [LCM][I]: New VM state is BOOT
  52. Thu Oct 17 15:54:13 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/0/deployment.0
  53. Thu Oct 17 15:54:13 2013 [VMM][I]: ExitCode: 0
  54. Thu Oct 17 15:54:13 2013 [VMM][I]: Successfully execute network driver operation: pre.
  55. Thu Oct 17 15:54:13 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/0/deployment.0' 'opennebula.cloudinnovation.com' 0 opennebula.cloudinnovation.com
  56. Thu Oct 17 15:54:13 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/0/deployment.0
  57. Thu Oct 17 15:54:13 2013 [VMM][I]: error: Cannot get interface MTU on 'bro': No such device
  58. Thu Oct 17 15:54:13 2013 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/0/deployment.0
  59. Thu Oct 17 15:54:13 2013 [VMM][I]: ExitCode: 255
  60. Thu Oct 17 15:54:13 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.
  61. Thu Oct 17 15:54:13 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/0/deployment.0
  62. Thu Oct 17 15:54:13 2013 [DiM][I]: New VM state is FAILED
  63.  
  64. [oneadmin@opennebula ~]$ onevnet show 0
  65. VIRTUAL NETWORK 0 INFORMATION
  66. ID : 0
  67. NAME : ovs_private_vlan_nw
  68. USER : oneadmin
  69. GROUP : oneadmin
  70. CLUSTER : -
  71. TYPE : RANGED
  72. BRIDGE : bro
  73. VLAN : Yes
  74. VLAN ID : 106
  75. USED LEASES : 1
  76.  
  77. PERMISSIONS
  78. OWNER : um-
  79. GROUP : ---
  80. OTHER : ---
  81.  
  82. VIRTUAL NETWORK TEMPLATE
  83. DNS="172.22.6.18"
  84. GATEWAY="172.22.6.250"
  85. MICROLANDNW="1"
  86. NETWORK_ADDRESS="172.22.6.0/24"
  87. NETWORK_MASK="255.255.255.0"
  88.  
  89. RANGE
  90. IP_START : 172.22.6.57
  91. IP_END : 172.22.6.59
  92.  
  93. USED LEASES
  94. LEASE=[ MAC="02:00:ac:16:06:39", IP="172.22.6.57", IP6_LINK="fe80::400:acff:fe16:639", USED="1", VID="0" ]
  95.  
  96. VIRTUAL MACHINES
  97.  
  98. ID USER GROUP NAME STAT UCPU UMEM HOST TIME
  99. 0 oneadmin oneadmin Test01 fail 0 0K 0d 00h00
  100. [oneadmin@opennebula ~]$ onetemplate show 0
  101. TEMPLATE 0 INFORMATION
  102. ID : 0
  103. NAME : Centos-WebTemplate
  104. USER : oneadmin
  105. GROUP : oneadmin
  106. REGISTER TIME : 10/17 15:52:28
  107.  
  108. PERMISSIONS
  109. OWNER : um-
  110. GROUP : ---
  111. OTHER : ---
  112.  
  113. TEMPLATE CONTENTS
  114. CONTEXT=[
  115. NETWORK="YES",
  116. SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
  117. CPU="0.5"
  118. DISK=[
  119. IMAGE_ID="0" ]
  120. GRAPHICS=[
  121. LISTEN="0.0.0.0",
  122. TYPE="VNC" ]
  123. MEMORY="512"
  124. NIC=[
  125. NETWORK_ID="0" ]
  126. OS=[
  127. ARCH="x86_64",
  128. BOOT="hd",
  129. GUESTOS="centos64Guest" ]
  130. REQUIREMENTS="ID=\"2\""
  131. VCPU="1"
  132.  
  133.  
  134. [oneadmin@opennebula ~]$ oneimage show 0
  135. IMAGE 0 INFORMATION
  136. ID : 0
  137. NAME : CentOS-6.4_x86_64
  138. USER : oneadmin
  139. GROUP : oneadmin
  140. DATASTORE : default
  141. TYPE : OS
  142. REGISTER TIME : 10/17 15:27:24
  143. PERSISTENT : Yes
  144. SOURCE : /var/lib/one/datastores/1/4f26332f44a62316935eae65a5229e92
  145. PATH : /var/tmp/thin-body20131017-2187-q85951-0
  146. SIZE : 273M
  147. STATE : used
  148. RUNNING_VMS : 1
  149.  
  150. PERMISSIONS
  151. OWNER : um-
  152. GROUP : ---
  153. OTHER : ---
  154.  
  155. IMAGE TEMPLATE
  156. DEV_PREFIX="hd"
  157. DRIVER="qcow2"
  158.  
  159. VIRTUAL MACHINES
  160.  
  161. ID USER GROUP NAME STAT UCPU UMEM HOST TIME
  162. 0 oneadmin oneadmin Test01 fail 0 0K 0d 00h00
  163.  
  164.  
  165.  
  166.  
  167. /var/log/libvirt/libvirtd.log
  168. 2013-10-16 11:34:26.869+0000: 14344: error : virCommandWait:2272 : internal error Child process (/sbin/iptables --table filter --delete INPUT --in-interface virbr0 --protocol udp --destination-port 67 --jump ACCEPT) unexpected exit status 1: iptables: Bad rule (does a matching rule exist in that chain?).
  169.  
  170. 2013-10-16 11:34:26.873+0000: 14344: error : virCommandWait:2272 : internal error Child process (/sbin/iptables --table filter --delete INPUT --in-interface virbr0 --protocol tcp --destination-port 67 --jump ACCEPT) unexpected exit status 1: iptables: Bad rule (does a matching rule exist in that chain?).
  171.  
  172. 2013-10-17 10:24:13.666+0000: 2266: info : libvirt version: 0.10.2, package: 18.el6_4.14 (CentOS BuildSystem <http://bugs.centos.org>, 2013-09-19-19:15:27, c6b8.bsys.dev.centos.org)
  173. 2013-10-17 10:24:13.666+0000: 2266: error : virNetDevGetMTU:343 : Cannot get interface MTU on 'bro': No such device
  174. 2013-10-17 10:24:13.757+0000: 2266: error : virCommandWait:2272 : internal error Child process (ovs-vsctl --timeout=5 -- --if-exists del-port) unexpected exit status 1: ovs-vsctl: 'del-port' command requires at least 1 arguments
  175.  
  176. 2013-10-17 10:24:13.757+0000: 2266: error : virNetDevOpenvswitchRemovePort:173 : Unable to delete port (null) from OVS: Operation not permitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement