Re: [one-users] Debian Wheezy KVM 2.1
Arnold Bechtoldt m...@arnoldbechtoldt.com writes: Hey guys, Are there any known issues running Wheezy together with QEMU/ KVM 2.1 from wheezy-backports and ONE 4.8? Hello, I added the linux-image-3.14-0.bpo.2-amd64 and it works fine, don't forget to enable boot on HD and CDROM when installing[1]. With previous version of qemu, when only HD was sufficient when you had an empty “vda” and an installation ISO as “hda”. Regards. Footnotes: [1] http://dev.opennebula.org/issues/2952 -- Daniel Dehennin Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF signature.asc Description: PGP signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] undefined method `rstrip!'
Hi guys, after installing and starting opennebula-gate i got this error: root@sunstone ~]# tail /var/log/one/onegate.error /usr/lib/one/ruby/opennebula/oneflow_client.rb:315:in `initialize': undefined method `rstrip!' for nil:NilClass (NoMethodError) from /usr/lib/one/onegate/onegate-server.rb:84:in `new' from /usr/lib/one/onegate/onegate-server.rb:84:in `main' onegate-server.conf standard configured, only changed: :host: 0.0.0.0 Setup is CentOS 7 with OpenNebula 4.8 Any hints? Best regards, Tobias ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] undefined method `rstrip!'
It looks you don't have the one_auth file set properly: this is the piece of the code that is doing the search: if ENV[ONE_AUTH] and !ENV[ONE_AUTH].empty? and File.file?(ENV[ONE_AUTH]) one_auth = File.read(ENV[ONE_AUTH]) elsif File.file?(ENV[HOME]+/.one/one_auth) one_auth = File.read(ENV[HOME]+/.one/one_auth) end one_auth.rstrip! You probably need to create a file in $HOME/.one/one_auth with the username:password content On Wed, Aug 27, 2014 at 12:18 PM, Tobias Honacker t.honac...@googlemail.com wrote: Hi guys, after installing and starting opennebula-gate i got this error: root@sunstone ~]# tail /var/log/one/onegate.error /usr/lib/one/ruby/opennebula/oneflow_client.rb:315:in `initialize': undefined method `rstrip!' for nil:NilClass (NoMethodError) from /usr/lib/one/onegate/onegate-server.rb:84:in `new' from /usr/lib/one/onegate/onegate-server.rb:84:in `main' onegate-server.conf standard configured, only changed: :host: 0.0.0.0 Setup is CentOS 7 with OpenNebula 4.8 Any hints? Best regards, Tobias ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Opennebula 4.8 proble to upload iso
Do you get any more information about the upload in /var/log/one/oned.log? On Tue, Aug 26, 2014 at 9:08 PM, Vincenzo Barbieri vincenzo.barbi...@blueit.it wrote: Hi when I create a template of type cdrom and try to upload dell'immagene iso I get the following error. TTP/1.1 500 Tue Aug 26 20:39:33 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:33] GET /image?timeout=falsecsrftoken=bf59266c40d563bfad0576a92cb00167 HTTP/1.1 401 - 0.0029 Tue Aug 26 20:39:33 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:33] GET /login HTTP/1.1 200 - 0.0627 Tue Aug 26 20:39:40 2014 [I]: Updating user pool cache. Tue Aug 26 20:39:40 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:40] POST /login HTTP/1.1 204 - 0.2957 Tue Aug 26 20:39:40 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:40] GET / HTTP/1.1 200 - 0.0479 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /zone?timeout=truecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0089 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /datastore?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0727 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /user?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0849 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /vnet?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0846 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /vm?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0761 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /host?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0701 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /user?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0148 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /group?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0103 Tue Aug 26 20:39:41 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:41] GET /acl?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0104 Tue Aug 26 20:39:42 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:42] GET /image?timeout=truecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0112 Tue Aug 26 20:39:42 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:42] GET /vmtemplate?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0113 Tue Aug 26 20:39:42 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:42] GET /cluster?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0105 Tue Aug 26 20:39:43 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:43] GET /service_template?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.1132 Tue Aug 26 20:39:43 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:43] GET /service?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.1167 Tue Aug 26 20:39:43 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:43] GET /cluster?timeout=truezone_id=0csrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.0164 Tue Aug 26 20:39:44 2014 [I]: 192.168.2.244 - - [26/Aug/2014 20:39:44] GET /marketplace?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.8899 Tue Aug 26 21:00:56 2014 [I]: 192.168.2.244 - - [26/Aug/2014 21:00:56] GET /image?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.4465 Tue Aug 26 21:01:30 2014 [I]: 192.168.2.244 - - [26/Aug/2014 21:01:30] GET /image?timeout=falsecsrftoken=d85164e3de3389b69675e4e350c47c36 HTTP/1.1 200 - 0.7304 Tue Aug 26 21:02:15 2014 [I]: 192.168.2.244 - - [26/Aug/2014 21:02:15] POST /upload?csrftoken=d85164e3de3389b69675e4e350c47c36img=%7B%22image%22%3A%7B%22NAME%22%3A%22cdrom1%22%2C%22TYPE%22%3A%22CDROM%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%22105%22%7Dfile=en_windows_server_2012_r2_with_update_x64_dvd_4065220.isoqqfile=en_windows_server_2012_r2_with_update_x64_dvd_4065220.iso HTTP/1.1 500 - 109.9501 Grazie *Vincenzo Barbieri* [image: Logo per firma mail - v01] via Borgazzi, 27 20900 Monza c.so Orbassano, 336 10137 Torino Mobile: (+39) 342 6521139 vincenzo.barbi...@blueit.it www.blueit.it [image: paolo] P Please consider the environment before printing this document Questo messaggio di posta elettronica contiene informazioni di carattere riservato, privato e confidenziali rivolte esclusivamente al destinatario sopra indicato. E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte di ogni altra persona. Nel caso aveste ricevuto questo messaggio di posta elettronica per errore, siete pregati di segnalarlo immediatamente al mittente e distruggere quanto ricevuto (compresi i file allegati)
Re: [one-users] Opennebula 4.8 proble to upload iso
No I find following information ue Aug 26 20:39:06 2014 [Z0][InM][D]: Monitoring datastore files (2) Tue Aug 26 20:39:06 2014 [Z0][InM][D]: Monitoring datastore vmware-image (105) Tue Aug 26 20:39:07 2014 [Z0][ImM][D]: Datastore vmware-image (105) successfully monitored. Tue Aug 26 20:39:13 2014 [Z0][InM][D]: Host one-sandbox (0) successfully monitored. Tue Aug 26 20:39:26 2014 [Z0][ReM][D]: Req:3056 UID:0 VirtualMachinePoolInfo invoked, -2, -1, -1, -1 Tue Aug 26 20:39:26 2014 [Z0][ReM][D]: Req:3056 UID:0 VirtualMachinePoolInfo result SUCCESS, VM_POOLVMID24... Tue Aug 26 20:39:26 2014 [Z0][ReM][D]: Req:3056 UID:0 VirtualMachinePoolInfo invoked, -2, -1, -1, -1 Tue Aug 26 20:39:26 2014 [Z0][ReM][D]: Req:3056 UID:0 VirtualMachinePoolInfo result SUCCESS, VM_POOLVMID24... Tue Aug 26 20:39:29 2014 [Z0][ReM][D]: Req:7184 UID:1 DocumentPoolInfo invoked, -2, -1, -1, 100 Tue Aug 26 20:39:29 2014 [Z0][ReM][D]: Req:7184 UID:1 DocumentPoolInfo result SUCCESS, DOCUMENT_POOL/DOC... Tue Aug 26 20:39:33 2014 [Z0][InM][D]: Host one-sandbox (0) successfully monitored. Tue Aug 26 20:39:40 2014 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 14 - Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8512 UID:1 UserPoolInfo invoked Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8512 UID:1 UserPoolInfo result SUCCESS, USER_POOLUSERID... Tue Aug 26 20:39:40 2014 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 15 - Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8880 UID:0 UserInfo invoked, -1 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8880 UID:0 UserInfo result SUCCESS, USERID0/IDGID... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:448 UID:0 GroupInfo invoked, 0 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:448 UID:0 GroupInfo result SUCCESS, GROUPID0/IDNA... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:5440 UID:1 SystemConfig invoked Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:5440 UID:1 SystemConfig result SUCCESS, TEMPLATEAUTH_MAD... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:7808 UID:0 ZoneInfo invoked, 0 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:7808 UID:0 ZoneInfo result SUCCESS, ZONEID0/IDNAM... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8880 UID:0 UserInfo invoked, -1 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8880 UID:0 UserInfo result SUCCESS, USERID0/IDGID... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:448 UID:0 GroupInfo invoked, 0 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:448 UID:0 GroupInfo result SUCCESS, GROUPID0/IDNA... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8880 UID:0 UserInfo invoked, -1 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:8880 UID:0 UserInfo result SUCCESS, USERID0/IDGID... Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:448 UID:0 GroupInfo invoked, 0 Tue Aug 26 20:39:40 2014 [Z0][ReM][D]: Req:448 UID:0 GroupInfo result SUCCESS, GROUPID0/IDNA... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5440 UID:0 ZonePoolInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5440 UID:0 ZonePoolInfo result SUCCESS, ZONE_POOLZONEID... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:8528 UID:0 DatastorePoolInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:8528 UID:0 DatastorePoolInfo result SUCCESS, DATASTORE_POOLDAT... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:4912 UID:0 UserPoolInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:4912 UID:0 UserPoolInfo result SUCCESS, USER_POOLUSERID... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5536 UID:0 VirtualNetworkPoolInfo invoked, -2, -1, -1 Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5536 UID:0 VirtualNetworkPoolInfo result SUCCESS, VNET_POOLVNETID... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5936 UID:0 VirtualMachinePoolInfo invoked, -2, 0, -2000, -1 Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5936 UID:0 VirtualMachinePoolInfo result SUCCESS, VM_POOLVMID24... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:8512 UID:0 HostPoolInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:8512 UID:0 HostPoolInfo result SUCCESS, HOST_POOLHOSTID... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:4912 UID:0 UserPoolInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:4912 UID:0 UserPoolInfo result SUCCESS, USER_POOLUSERID... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:6080 UID:0 GroupPoolInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:6080 UID:0 GroupPoolInfo result SUCCESS, GROUP_POOLGROUP... Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5776 UID:0 AclInfo invoked Tue Aug 26 20:39:41 2014 [Z0][ReM][D]: Req:5776 UID:0 AclInfo result SUCCESS, ACL_POOLACLID0... Tue Aug 26 20:39:42 2014 [Z0][ReM][D]: Req:1472 UID:0 ImagePoolInfo invoked, -2, 0, -2000, -1 Tue Aug 26 20:39:42 2014 [Z0][ReM][D]: Req:1472 UID:0 ImagePoolInfo result SUCCESS, IMAGE_POOLIMAGE... Tue Aug 26 20:39:42 2014 [Z0][ReM][D]: Req:2272 UID:0 TemplatePoolInfo invoked, -2, -1, -1 Tue Aug 26 20:39:42 2014 [Z0][ReM][D]: Req:2272 UID:0 TemplatePoolInfo result SUCCESS, VMTEMPLATE_POOLVM... Tue Aug 26 20:39:42 2014 [Z0][ReM][D]: Req:6304 UID:0 ClusterPoolInfo invoked Tue Aug 26 20:39:42
Re: [one-users] Error while hot adding virtio nic model to VM
Well I also tired with a Linux Guest and it gave me the same error, is hot plugin supported for virtio nic model? Regards Kiran Ranjane On Fri, Aug 22, 2014 at 5:31 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT *Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1* Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-15 Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Error while hot adding virtio nic model to VM
There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-15 Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Error while hot adding virtio nic model to VM
Hi Javier, I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor? Regards Kiran Ranjane On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan jfon...@opennebula.org wrote: There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-15 Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Error while hot adding virtio nic model to VM
You can try but I think disabling apparmor will make libvirt unusable. I'm not sure about it. On Wed, Aug 27, 2014 at 2:20 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hi Javier, I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor? Regards Kiran Ranjane On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan jfon...@opennebula.org wrote: There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-15 Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Error while hot adding virtio nic model to VM
Yes, it made libvirt unusable and had to install apparmor it again. Tried again on a linux VM got the same error : Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Successfully execute network driver operation: pre. Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-30' '02:00:c0:a8:7a:13' 'virbr0' 'virtio' 'dummy' 30 kvm-node Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-30 ( Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: cat EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: interface type='bridge' Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: source bridge='virbr0'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:13'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: model type='virtio'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: /interface Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Could not attach () to one-30 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ExitCode: 1 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-30 On Wed, Aug 27, 2014 at 6:12 PM, Javier Fontan jfon...@opennebula.org wrote: You can try but I think disabling apparmor will make libvirt unusable. I'm not sure about it. On Wed, Aug 27, 2014 at 2:20 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hi Javier, I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor? Regards Kiran Ranjane On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan jfon...@opennebula.org wrote: There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-15 Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Error while hot adding virtio nic model to VM
It seems to be a bug in libvirt from Ubuntu 14.04. There is a fixed pakage in the trusty-proposed repo. You can try adding the ubuntu-proposed repo and upgrading libvirt or try applying this patch https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568/comments/3 The bug report is here: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568 On Wed, Aug 27, 2014 at 2:51 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Yes, it made libvirt unusable and had to install apparmor it again. Tried again on a linux VM got the same error : Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Successfully execute network driver operation: pre. Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-30' '02:00:c0:a8:7a:13' 'virbr0' 'virtio' 'dummy' 30 kvm-node Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-30 ( Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: cat EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: interface type='bridge' Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: source bridge='virbr0'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:13'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: model type='virtio'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: /interface Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Could not attach () to one-30 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ExitCode: 1 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-30 On Wed, Aug 27, 2014 at 6:12 PM, Javier Fontan jfon...@opennebula.org wrote: You can try but I think disabling apparmor will make libvirt unusable. I'm not sure about it. On Wed, Aug 27, 2014 at 2:20 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hi Javier, I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor? Regards Kiran Ranjane On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan jfon...@opennebula.org wrote: There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-15 Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org
Re: [one-users] Error while hot adding virtio nic model to VM
Hi Javier, I have upgraded to latest libvirt version also applied patch to the file still getting same error. Do I need to restart any other service? *Restarted Service* : sudo service apparmor restart sudo service libvirt-bin restart libvirtd --version libvirtd (libvirt) 1.2.7 Added patch to /etc/apparmor.d/abstractions/libvirt-qemu # this is needed with libcap-ng support, however it breaks a lot of things # atm, so just silence the denial until libcap-ng works right. LP: #522845 deny capability setpcap, network inet stream, network inet6 stream, /dev/net/tun rw, /dev/tap* rw, /dev/kvm rw, /dev/ptmx rw, /dev/kqemu rw, /dev/vhost-net rw, @{PROC}/*/status r, owner @{PROC}/*/auxv r, @{PROC}/sys/vm/overcommit_memory r, # For hostdev access. The actual devices will be added dynamically /sys/bus/usb/devices/ r, /sys/devices/**/usb[0-9]*/** r, # WARNING: this gives the guest direct access to host hardware and specific Regards Kiran Ranjane On Wed, Aug 27, 2014 at 6:36 PM, Javier Fontan jfon...@opennebula.org wrote: It seems to be a bug in libvirt from Ubuntu 14.04. There is a fixed pakage in the trusty-proposed repo. You can try adding the ubuntu-proposed repo and upgrading libvirt or try applying this patch https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568/comments/3 The bug report is here: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568 On Wed, Aug 27, 2014 at 2:51 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Yes, it made libvirt unusable and had to install apparmor it again. Tried again on a linux VM got the same error : Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Successfully execute network driver operation: pre. Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-30' '02:00:c0:a8:7a:13' 'virbr0' 'virtio' 'dummy' 30 kvm-node Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-30 ( Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: cat EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: interface type='bridge' Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: source bridge='virbr0'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:13'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: model type='virtio'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: /interface Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Could not attach () to one-30 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ExitCode: 1 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-30 On Wed, Aug 27, 2014 at 6:12 PM, Javier Fontan jfon...@opennebula.org wrote: You can try but I think disabling apparmor will make libvirt unusable. I'm not sure about it. On Wed, Aug 27, 2014 at 2:20 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hi Javier, I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor? Regards Kiran Ranjane On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan jfon...@opennebula.org wrote: There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: /interface Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command
Re: [one-users] Error while hot adding virtio nic model to VM
Hi Javier, Restarted ONE and Sunstone-server service and now I am able to hot attach virtio nic model. Thanks for you help Regards Kiran Ranjane On Wed, Aug 27, 2014 at 7:09 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hi Javier, I have upgraded to latest libvirt version also applied patch to the file still getting same error. Do I need to restart any other service? *Restarted Service* : sudo service apparmor restart sudo service libvirt-bin restart libvirtd --version libvirtd (libvirt) 1.2.7 Added patch to /etc/apparmor.d/abstractions/libvirt-qemu # this is needed with libcap-ng support, however it breaks a lot of things # atm, so just silence the denial until libcap-ng works right. LP: #522845 deny capability setpcap, network inet stream, network inet6 stream, /dev/net/tun rw, /dev/tap* rw, /dev/kvm rw, /dev/ptmx rw, /dev/kqemu rw, /dev/vhost-net rw, @{PROC}/*/status r, owner @{PROC}/*/auxv r, @{PROC}/sys/vm/overcommit_memory r, # For hostdev access. The actual devices will be added dynamically /sys/bus/usb/devices/ r, /sys/devices/**/usb[0-9]*/** r, # WARNING: this gives the guest direct access to host hardware and specific Regards Kiran Ranjane On Wed, Aug 27, 2014 at 6:36 PM, Javier Fontan jfon...@opennebula.org wrote: It seems to be a bug in libvirt from Ubuntu 14.04. There is a fixed pakage in the trusty-proposed repo. You can try adding the ubuntu-proposed repo and upgrading libvirt or try applying this patch https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568/comments/3 The bug report is here: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568 On Wed, Aug 27, 2014 at 2:51 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Yes, it made libvirt unusable and had to install apparmor it again. Tried again on a linux VM got the same error : Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Successfully execute network driver operation: pre. Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-30' '02:00:c0:a8:7a:13' 'virbr0' 'virtio' 'dummy' 30 kvm-node Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-30 ( Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: cat EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: interface type='bridge' Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: source bridge='virbr0'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:13'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: model type='virtio'/ Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: /interface Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: EOT Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ) failed: error: Failed to attach device from /dev/fd/63 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Could not attach () to one-30 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ExitCode: 1 Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-30 On Wed, Aug 27, 2014 at 6:12 PM, Javier Fontan jfon...@opennebula.org wrote: You can try but I think disabling apparmor will make libvirt unusable. I'm not sure about it. On Wed, Aug 27, 2014 at 2:20 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hi Javier, I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor? Regards Kiran Ranjane On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan jfon...@opennebula.org wrote: There seems to be a problem related with libvirt and selinux. Can you try disabling SElinux and doing the attach again? Virtio nic attach is supported. On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane kiran.ranj...@gmail.com wrote: Hello Everyone, I am getting error while hot plugging virtio nic model to VM One 4.8 Host - Ubuntu 14.04 VM - Windows 2008 R2 (Virtio Drivers already install in the VM) Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0' 'virtio' 'dummy' 15 kvm-node Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command virsh --connect qemu:///system attach-device one-15 ( Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat EOT Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: interface type='bridge' Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: source bridge='virbr0'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: mac address='02:00:c0:a8:7a:08'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: model type='virtio'/ Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Fri Aug 22 17:22:41 2014 [Z0][VMM][I]:
[one-users] Persistent qcow2 snapshots
Hello, Is there a way to make qcow2 snapshots persistent after VM is powered off? Regards Kiran Ranjane ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Edit template for instentinated VM.
After a VM is deployed you can not change those parameters. You can change the capacity (memory and cpu) when the VM is powered off or attach a new nic with a different model. On Mon, Aug 25, 2014 at 2:18 PM, Leszek Master keks...@gmail.com wrote: Hello. I've instantiated some of the VM's, and now i need to change some settings for them, for example network card model and add acpi. How can i edit the VM Settings in the template tab without redeploying vm ? Can i do it simply by editing deployment file? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] failed to deploy VM
It seems that the datastore 103 is not mounted in the hypervisor node: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: sh: cd: line 2: can't cd to /vmfs/volumes/103/21 On Mon, Aug 25, 2014 at 2:07 PM, Vincenzo Barbieri vincenzo.barbi...@blueit.it wrote: Hi I'm starting to study OpenNebula, I configured the environment, but I have problems when I deploy the VM. Can you help? Following error on Aug 25 13:48:06 2014 [Z0][DiM][I]: New VM state is ACTIVE. Mon Aug 25 13:48:06 2014 [Z0][LCM][I]: New VM state is PROLOG. Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/vmfs/clone one-sandbox:/vmfs/volumes/1/b8b9e642447d67a7f256d2a02989fba5 prdesx01:/vmfs/volumes/103/21/disk.0 21 1 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: clone: Cloning one-sandbox:/vmfs/volumes/1/b8b9e642447d67a7f256d2a02989fba5 in prdesx01:/vmfs/volumes/103/21/disk.0 Mon Aug 25 13:48:07 2014 [Z0][TM][E]: clone: Command cd /vmfs/volumes/103/21 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: export PATH=/usr/sbin:/sbin:$PATH Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: if [ FILE != CDROM ]; then Mon Aug 25 13:48:07 2014 [Z0][TM][I]: if [ ! -d /vmfs/volumes/103/21/disk.0 ]; then Mon Aug 25 13:48:07 2014 [Z0][TM][I]: mkdir -p /vmfs/volumes/103/21/disk.0 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: fi Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: vmkfstools -U /vmfs/volumes/103/21/disk.0/disk.vmdk Mon Aug 25 13:48:07 2014 [Z0][TM][I]: rm -f /vmfs/volumes/103/21/disk.0/* Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: vmkfstools -i /vmfs/volumes/1/b8b9e642447d67a7f256d2a02989fba5/disk.vmdk -d thin /vmfs/volumes/103/21/disk.0/disk.vmdk Mon Aug 25 13:48:07 2014 [Z0][TM][I]: else Mon Aug 25 13:48:07 2014 [Z0][TM][I]: if [ ! -d /vmfs/volumes/103/21 ]; then Mon Aug 25 13:48:07 2014 [Z0][TM][I]: mkdir -p /vmfs/volumes/103/21 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: fi Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: rm -f /vmfs/volumes/103/21/disk.0 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: cp /vmfs/volumes/1/b8b9e642447d67a7f256d2a02989fba5 /vmfs/volumes/103/21/disk.0 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Mon Aug 25 13:48:07 2014 [Z0][TM][I]: rm -f /vmfs/volumes/103/21/disk.0.iso Mon Aug 25 13:48:07 2014 [Z0][TM][I]: ln -s /vmfs/volumes/103/21/disk.0 /vmfs/volumes/103/21/disk.0.iso Mon Aug 25 13:48:07 2014 [Z0][TM][I]: fi failed: Warning: Permanently added 'prdesx01,192.168.1.251' (RSA) to the list of known hosts. Mon Aug 25 13:48:07 2014 [Z0][TM][I]: sh: cd: line 2: can't cd to /vmfs/volumes/103/21 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: Failed to delete virtual disk: The system cannot find the file specified (25). Mon Aug 25 13:48:07 2014 [Z0][TM][I]: DiskLib_Check() failed for source disk The system cannot find the file specified (25). Mon Aug 25 13:48:07 2014 [Z0][TM][E]: Error cloning one-sandbox:/vmfs/volumes/1/b8b9e642447d67a7f256d2a02989fba5 to prdesx01:/vmfs/volumes/103/21/disk.0 Mon Aug 25 13:48:07 2014 [Z0][TM][I]: ExitCode: 255 Mon Aug 25 13:48:07 2014 [Z0][TM][E]: Error executing image transfer script: Error cloning one-sandbox:/vmfs/volumes/1/b8b9e642447d67a7f256d2a02989fba5 to prdesx01:/vmfs/volumes/103/21/disk.0 Mon Aug 25 13:48:07 2014 [Z0][DiM][I]: New VM state is FAILED Grazie Vincenzo Barbieri ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Information about image size (oneimage list)
This happens because the stat method (the one that gets the size about the image) is called before the image is uncompressed. This is something we have to fix. You can make the way it gets the size in the stat script from the datastore remotes dir. Change qemu-img info to du and parse the output. On Mon, Aug 25, 2014 at 9:28 PM, Paulo A L Rego pauloalr@gmail.com wrote: Hello all, I downloaded two imagens from marketplace (Ubuntu 14.04 and CentOS 7.0). Both images disk size are + - 1 GB, with 10G virtual size.. Using qemu-img info something like this appears... file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 919M All good for these two images. The problem is: I created my own image of Ubuntu using vmbuilder with a 30 GB hard disk...The image disk size is 1 GB too. This is the qemu-img info: file format: qcow2 virtual size: 31G (33555480576 bytes) disk size: 1.0G However, when i use oneimage list...the images downloaded from marketplace appear occupying quite lower space. Actually, they are occupying exactly the disk size, and my image seems to be occupying the virtual size. $ oneimage list ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 0 oneadmin oneadmin UbuntuServer-14 qcow 1.1G OS No rdy 0 2 oneadmin oneadmin UbuntuServer-12 qcow 31.3G OS No rdy 0 3 oneadmin oneadmin CentOS-7.0_x86_ qcow 919M OS No rdy 0 Whats is going on? How can i make my image occupy less space too? Ps:. My datastore is using qcow driver. Thanks a lot! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] unable to attach cdrom to VM in opennebula 4.8
Fair enough. Then how does one provide an option to change a CD on a server? For example, I have a Windows server rolled and I need to install software on it that is only available on DVD. How can I change disks on those VMs? On Wed, Aug 27, 2014 at 10:27 AM, Javier Fontan jfon...@opennebula.org wrote: Attaching IDE devices (cdrom is an IDE device) is not supported. On Tue, Aug 26, 2014 at 5:20 PM, Randy Smith rbsm...@adams.edu wrote: Greetings, I am attempting to attach a CDROM image to a running VM via Sunstone but the command fails with the following error: Tue Aug 26 08:52:21 2014 [Z0][VMM][D]: Message received: LOG E 24 attach_disk: Command virsh --connect qemu:///system attach-device one-24 /var/lib/one//datastores/0/24/disk.3.attach failed: error: Failed to attach device from /var/lib/one//datastores/0/24/disk.3.attach Tue Aug 26 08:52:21 2014 [Z0][VMM][D]: Message received: LOG I 24 error: Failed to open file '/var/lib/one//datastores/0/24/disk.3': No such file or directory The disk.3.attach file looks like this: disk type='file' device='disk' driver name='qemu' type='raw' / source file='/var/lib/one//datastores/0/24/disk.3' /source target dev='hdd'/ readonly/ /disk The file listed in the source (disk.3), of course, does not exist. I've attempted to attach images from both a ceph store and the default image store with the same results. What can I do to fix this? Thanks -- Randall Smith Computing Services Adams State University http://www.adams.edu/ 719-587-7741 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan -- Randall Smith Computing Services Adams State University http://www.adams.edu/ 719-587-7741 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Information about image size (oneimage list)
Thanks, Javier. I'll change the code. 2014-08-27 13:24 GMT-03:00 Javier Fontan jfon...@opennebula.org: This happens because the stat method (the one that gets the size about the image) is called before the image is uncompressed. This is something we have to fix. You can make the way it gets the size in the stat script from the datastore remotes dir. Change qemu-img info to du and parse the output. On Mon, Aug 25, 2014 at 9:28 PM, Paulo A L Rego pauloalr@gmail.com wrote: Hello all, I downloaded two imagens from marketplace (Ubuntu 14.04 and CentOS 7.0). Both images disk size are + - 1 GB, with 10G virtual size.. Using qemu-img info something like this appears... file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 919M All good for these two images. The problem is: I created my own image of Ubuntu using vmbuilder with a 30 GB hard disk...The image disk size is 1 GB too. This is the qemu-img info: file format: qcow2 virtual size: 31G (33555480576 bytes) disk size: 1.0G However, when i use oneimage list...the images downloaded from marketplace appear occupying quite lower space. Actually, they are occupying exactly the disk size, and my image seems to be occupying the virtual size. $ oneimage list ID USER GROUP NAMEDATASTORE SIZE TYPE PER STAT RVMS 0 oneadmin oneadmin UbuntuServer-14 qcow 1.1G OS No rdy 0 2 oneadmin oneadmin UbuntuServer-12 qcow 31.3G OS No rdy 0 3 oneadmin oneadmin CentOS-7.0_x86_ qcow 919M OS No rdy 0 Whats is going on? How can i make my image occupy less space too? Ps:. My datastore is using qcow driver. Thanks a lot! ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org