[one-users] Could not find information driver im_vmware

2013-10-21 Thread cosmin cucu
Hello,
 
I am having some issues with an Open Nebula instalation. I
am trying to add a ESX host, and it works, just that in the interface it shows
that it has an error ( nothing else specified ) . 
 
In /var/log/one/oned.log i found : 
 
Mon Oct 21 13:57:21 2013 [ReM][D]: Req:2240 UID:0
VirtualMachinePoolInfo invoked, -2, -1, -1, -1
Mon Oct 21 13:57:21 2013 [ReM][D]: Req:2240 UID:0
VirtualMachinePoolInfo result SUCCESS,
""
Mon Oct 21 13:57:21 2013 [ReM][D]: Req:2240 UID:0
VirtualMachinePoolInfo invoked, -2, -1, -1, -1
Mon Oct 21 13:57:22 2013 [ReM][D]: Req:2240 UID:0
VirtualMachinePoolInfo result SUCCESS,
""
Mon Oct 21 13:57:36 2013 [InM][I]: Monitoring host
192.168.10.10 (0)
Mon Oct 21 13:57:36 2013 [InM][E]: Could not find
information driver im_vmware
 
It keeps repeating, as i assume that the probe is
continuously trying to gather information about the ESX host. 
 
Any ideas would be apreciated.
 
 
Thanks,
Cosmin ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] how to change disk-snapshot from deferred to hot (--live) from CLI

2013-10-21 Thread Carlos Martín Sánchez
Hi,

A snapshot procedure cannot be cancelled. But if you really need to save
the VM contents, you can edit the DB manually.

To do so, stop opennebula, and then look for the corresponding body column
in the vm_pool table.
You need to set the DISK/SAVE element text to NO, and delete the elements
DISK/SAVE_AS and DISK/SAVE_AS_SOURCE.

If this is a common problem, please open a feature request in our
development portal: http://dev.opennebula.org

Best regards.

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula


On Mon, Oct 21, 2013 at 5:11 PM, Fabella, Wesley wrote:

> I've recently started managing our virtual machines using OpenNebula in
> our environment.  It runs on top of our CentOS KVM servers.
>
> I have taken have already ran the cmd:
>
> onevm disk-snapshot 37 0 X-test-20131018
>
> which will take a deferred snapshot of the disk upon 'onevm shutdown' ...
> problem is I have decided I want to do a "hot" live snapshot and receive
> the following exception:
>
> *oneadmin@headnode:~ $ onevm disk-snapshot --live 37 0 X-test-20131018*
> *[VirtualMachineSaveDisk] Cannot use selected DISK. The DISK 0 is already
> going to be saved.*
>
> You will also see below VM no. 37 has deferred image to set to be no. 11.
>  I have also deleted image no. 11 in hopes of free'ing VM no. 37 from
> deferred image capture.  Turns out this wasn't the best option and I
> probably should have went the Sunstone GUI route.
>
> Any ideas here to free my VM no. 37 from wanting to save image as no. 11
> which now does not exist?  At several glances I don't see a clear cut way
> to back out of my situation in order to choose Hot (--live) snapshot.
>
> Thanks in advance, (see output below pertaining to this issue)
>
> oneadmin@headnode:~ $ onevm show 37
> VIRTUAL MACHINE 37 INFORMATION
> ID  : 37
> NAME: X
> USER: oneadmin
> GROUP   : oneadmin
> STATE   : ACTIVE
> LCM_STATE   : RUNNING
> RESCHED : No
> HOST: headnode
> START TIME  : 10/16 17:30:16
> END TIME: -
> DEPLOY ID   : one-37
>
> VIRTUAL MACHINE MONITORING
> NET_RX  : 533.4M
> USED CPU: 2
> NET_TX  : 189M
> USED MEMORY : 8G
>
> PERMISSIONS
> OWNER   : um-
> GROUP   : ---
> OTHER   : u--
>
> VM DISKS
>  ID TARGET IMAGE   TYPE SAVE SAVE_AS
>   0 hdaX  file  YES  11
>
> VM NICS
>  ID NETWORK  VLAN BRIDGE   IP  MAC
>   0 meganetno br0  128.123.0.1202
> :00:80:7b:00:0c
> fe80::400:80ff:fe7b:c
>   1 tfbnet no br1  10.191.10.212
> 02:00:0a:bf:0a:d4
>fe80::400:aff:febf:ad4
>
> VIRTUAL MACHINE HISTORY
> SEQ HOSTACTION   REAS   STARTTIME
> PROLOG
>   0 headnodenone none  10/16 17:30:30   4d 15h19m
> 0h49m48s
>
> USER TEMPLATE
> ERROR="Fri Oct 18 11:32:14 2013 : Error creating new VM Snapshot: Could
> not create snapshot  for domain one-37."
> SAVE="NO"
> SAVE_AS="NO"
>
> VIRTUAL MACHINE TEMPLATE
> AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100"
> CPU="8"
> GRAPHICS=[
>   LISTEN="0.0.0.0",
>   PORT="5937",
>   TYPE="vnc" ]
> MEMORY="8192"
> OS=[
>   ARCH="x86_64" ]
> TEMPLATE_ID="11"
> VMID="37"
>
> oneadmin@headnode:~ $ oneimage list
>   ID USER   GROUP  NAMEDATASTORE SIZE TYPE PER
> STAT RVMS
>4 oneadmin   oneadmin   X   default   100G OSNo used1
>9 oneadmin   oneadmin   X  default   100G OSNo used1
>   12 wfabella   oneadmin   X default   100G OSNo used5
>   13 wfabella   oneadmin   ttylinux test   default40M OSNo rdy
> 0
>
>
> *"As the shadow follows the body,*
> *As we think,*
> *so we become." -zen quote*
>
> --
> Wesley J. Fabella
> Novetta - DevOps Engineer
> (desk) 813.304.2936
> (cell) at request
>
> *"As the shadow follows the body,*
> *As we think,*
> *so we become." -zen quote*
> *
> *
> IMPORTANT NOTICE:
> This e-mail message is intended for the use of the addressee and may
> contain company proprietary and/or confidential information that is subject
> to disclosure agreements. If you are not the authorized recipient, your
> viewing of such information, as well as any disclosure, copying,
> distribution or use of any of the information contained in or attached
> therein, is strictly prohibited. If you received this e-mail in error,
> please reply to the sender and delete the original message.*
> *
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___

[one-users] how to change disk-snapshot from deferred to hot (--live) from CLI

2013-10-21 Thread Fabella, Wesley
I've recently started managing our virtual machines using OpenNebula in our
environment.  It runs on top of our CentOS KVM servers.

I have taken have already ran the cmd:

onevm disk-snapshot 37 0 X-test-20131018

which will take a deferred snapshot of the disk upon 'onevm shutdown' ...
problem is I have decided I want to do a "hot" live snapshot and receive
the following exception:

*oneadmin@headnode:~ $ onevm disk-snapshot --live 37 0 X-test-20131018*
*[VirtualMachineSaveDisk] Cannot use selected DISK. The DISK 0 is already
going to be saved.*

You will also see below VM no. 37 has deferred image to set to be no. 11.
 I have also deleted image no. 11 in hopes of free'ing VM no. 37 from
deferred image capture.  Turns out this wasn't the best option and I
probably should have went the Sunstone GUI route.

Any ideas here to free my VM no. 37 from wanting to save image as no. 11
which now does not exist?  At several glances I don't see a clear cut way
to back out of my situation in order to choose Hot (--live) snapshot.

Thanks in advance, (see output below pertaining to this issue)

oneadmin@headnode:~ $ onevm show 37
VIRTUAL MACHINE 37 INFORMATION
ID  : 37
NAME: X
USER: oneadmin
GROUP   : oneadmin
STATE   : ACTIVE
LCM_STATE   : RUNNING
RESCHED : No
HOST: headnode
START TIME  : 10/16 17:30:16
END TIME: -
DEPLOY ID   : one-37

VIRTUAL MACHINE MONITORING
NET_RX  : 533.4M
USED CPU: 2
NET_TX  : 189M
USED MEMORY : 8G

PERMISSIONS
OWNER   : um-
GROUP   : ---
OTHER   : u--

VM DISKS
 ID TARGET IMAGE   TYPE SAVE SAVE_AS
  0 hdaX  file  YES  11

VM NICS
 ID NETWORK  VLAN BRIDGE   IP  MAC
  0 meganetno br0  128.123.0.1202:00:80:7b:00:0c
   fe80::400:80ff:fe7b:c
  1 tfbnet no br1  10.191.10.212   02:00:0a:bf:0a:d4
   fe80::400:aff:febf:ad4

VIRTUAL MACHINE HISTORY
SEQ HOSTACTION   REAS   STARTTIME
PROLOG
  0 headnodenone none  10/16 17:30:30   4d 15h19m
0h49m48s

USER TEMPLATE
ERROR="Fri Oct 18 11:32:14 2013 : Error creating new VM Snapshot: Could not
create snapshot  for domain one-37."
SAVE="NO"
SAVE_AS="NO"

VIRTUAL MACHINE TEMPLATE
AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100"
CPU="8"
GRAPHICS=[
  LISTEN="0.0.0.0",
  PORT="5937",
  TYPE="vnc" ]
MEMORY="8192"
OS=[
  ARCH="x86_64" ]
TEMPLATE_ID="11"
VMID="37"

oneadmin@headnode:~ $ oneimage list
  ID USER   GROUP  NAMEDATASTORE SIZE TYPE PER STAT
RVMS
   4 oneadmin   oneadmin   X   default   100G OSNo used1
   9 oneadmin   oneadmin   X  default   100G OSNo used1
  12 wfabella   oneadmin   X default   100G OSNo used5
  13 wfabella   oneadmin   ttylinux test   default40M OSNo rdy
0


*"As the shadow follows the body,*
*As we think,*
*so we become." -zen quote*

-- 
Wesley J. Fabella
Novetta - DevOps Engineer
(desk) 813.304.2936
(cell) at request

*"As the shadow follows the body,*
*As we think,*
*so we become." -zen quote*
*
*
IMPORTANT NOTICE:
This e-mail message is intended for the use of the addressee and may
contain company proprietary and/or confidential information that is subject
to disclosure agreements. If you are not the authorized recipient, your
viewing of such information, as well as any disclosure, copying,
distribution or use of any of the information contained in or attached
therein, is strictly prohibited. If you received this e-mail in error,
please reply to the sender and delete the original message.*
*
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] can't import image with oneimage

2013-10-21 Thread Wojciech Giel

Hello,

I'm running opennebula 4.2 on centos 6.4 installed from rpm. I have 
small problem I trying to sort out.

when I try to import vm image with oneimage I'm getting:

[oneadmin@gamma ~]$ oneimage create -d 1 --name windows7 --type OS 
--driver raw --description "A OS plain installation" templates/windows7.img

Connection reset by peer
[oneadmin@gamma ~]$


when I trying upload with sunstone getting error about hash:
Error copying image in the datastore: Error copying 
/var/tmp/thin-body20131021-2353-1sluvsm-0 to 
/var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1


Mon Oct 21 15:03:51 2013 [ReM][D]: Req:3744 UID:0 ImageInfo result 
SUCCESS, "4Mon Oct 21 15:03:51 2013 [ImM][I]: Command execution fail: 
/var/lib/one/remotes/datastore/fs/cp 
PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjQ8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5YdWJ1bnR1IDEyLjA0LjEgTFRTPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4wPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxUWVBFPjE8L1RZUEU+PERJU0tfVFlQRT4wPC9ESVNLX1RZUEU+PFBFUlNJU1RFTlQ+MTwvUEVSU0lTVEVOVD48UkVHVElNRT4xMzgyMzY0MjA2PC9SRUdUSU1FPjxTT1VSQ0U+PC9TT1VSQ0U+PFBBVEg+L3Zhci90bXAvdGhpbi1ib2R5MjAxMzEwMjEtMjM1My0xc2x1dnNtLTA8L1BBVEg+PEZTVFlQRT48L0ZTVFlQRT48U0laRT42OTg8L1NJWkU+PFNUQVRFPjQ8L1NUQVRFPjxSVU5OSU5HX1ZNUz4wPC9SVU5OSU5HX1ZNUz48Q0xPTklOR19PUFM+MDwvQ0xPTklOR19PUFM+PENMT05JTkdfSUQ+LTE8L0NMT05JTkdfSUQ+PERBVEFTVE9SRV9JRD4xPC9EQVRBU1RPUkVfSUQ+PERBVEFTVE9SRT5kZWZhdWx0PC9EQVRBU1RPUkU+PFZNUz48L1ZNUz48Q0xPTkVTPjwvQ0xPTkVTPjxURU1QTEFURT

48REVWX1BSRUZJWD48IVtDREFUQVtoZF1dPjwvREVWX1BSRUZJWD48RFJJVkVSPjwhW0NEQVRBW3Jhd11dPjwvRFJJVkVSPjxNRDU+PCFbQ0RBVEFbYzMzOWVhNDY3ZWEzNWVlYzBkOGFmNmY4MjZjMTY0NGFdXT48L01ENT48L1RFTVBMQVRFPjwvSU1BR0U+PERBVEFTVE9SRT48SUQ+MTwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b25lYWRtaW48L0dOQU1FPjxOQU1FPmRlZmF1bHQ8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjE8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjE8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PERTX01BRD5mczwvRFNfTUFEPjxUTV9NQUQ+c2hhcmVkPC9UTV9NQUQ+PEJBU0VfUEFUSD4vdmFyL2xpYi9vbmUvZGF0YXN0b3Jlcy8xPC9CQVNFX1BBVEg+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPjA8L0RJU0tfVFlQRT48Q0xVU1RFUl9JRD4xMDA8L0NMVVNURVJfSUQ+PENMVVNURVI+ZGlsPC9DTFVTVEVSPjxUT1RBTF9NQj4yMDM4NDU2PC9UT1RBTF9NQj48RlJFRV9NQj4xODk3NzU3PC9GUkVFX01CPjxVU0VEX01CPjI5NzM3PC9VU0VEX01CPjxJTUFHRVM+PElEPjA8L0lEPjxJRD4
xPC9JRD48SUQ+MjwvSUQ+PElEPjM8L0lEPjwvSU1BR0VTPjxURU1QTEFURT48RFNfTUFEPjwhW0NEQVRBW2ZzXV0+PC9EU19NQUQ+PFRNX01BRD48IVtDREFUQVtzaGFyZWRdXT48L1RNX01BRD48VFlQRT48IVtDREFUQVtJTUFHRV9EU11dPjwvVFlQRT48L1RFTVBMQVRFPjwvREFUQVNUT1JFPjwvRFNfRFJJVkVSX0FDVElPTl9EQVRBPg== 
4
Mon Oct 21 15:03:51 2013 [ImM][I]: cp: Copying local image 
/var/tmp/thin-body20131021-2353-1sluvsm-0 to the image repository
Mon Oct 21 15:03:51 2013 [ImM][E]: cp: Command 
"/var/lib/one/remotes/datastore/fs/../downloader.sh --md5 
c339ea467ea35eec0d8af6f826c1644a 
/var/tmp/thin-body20131021-2353-1sluvsm-0 
/var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1" failed: Hash 
does not match
Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying 
/var/tmp/thin-body20131021-2353-1sluvsm-0 to 
/var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1

Mon Oct 21 15:03:51 2013 [ImM][I]: ExitCode: 255
Mon Oct 21 15:03:51 2013 [ImM][E]: Error copying image in the datastore: 
Error copying /var/tmp/thin-body20131021-2353-1sluvsm-0 to 
/var/lib/one/datastores/1/d39ed100c4786d223d0a347fe7f510b1

Mon Oct 21 15:03:51 2013 [InM][I]: Monitoring datastore default (1)
Mon Oct 21 15:03:51 2013 [ImM][I]: Datastore default (1) successfully 
monitored.


what might be a proble and how to fix it.
thanks
Wojciech

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error: Domain 'one-22' does not exist.

2013-10-21 Thread Documented Facts
yes, it's there. are there any problem using .img files with LVM.
I have installed Ubuntu according to this method
https://help.ubuntu.com/community/Xen#During_installation_of_Ubuntu so Dom
0 is in the LVM.

Please reply me every possible way to resolve this it's very helpful.


On Mon, Oct 21, 2013 at 6:52 PM, Javier Fontan wrote:

> Can you check that the pygrub executable is at /usr/bin/pygrub in the
> nodes where you are trying to start the VMs?
>
> On Mon, Oct 21, 2013 at 7:29 AM, Documented Facts
>  wrote:
> > hi
> >
> > Sorry since I' m late to reply.
> >
> > I have attached oned.conf, vmm_exec_xen3.conf, xenrc to this email.
> >
> > Network bridge xenbr0 exist. I have put the output of brctl show command
> >
> > bridge name bridge id STP enabled interfaces
> > virbr0 8000.feff yes vif1.0
> > xenbr0 8000.0021856e8e4a no eth0
> >
> > also I have changed the template to make it similar to xen config file of
> > this. New template is given bellow
> >
> > TEMPLATE 6 INFORMATION
> > ID : 6
> > NAME   : UbuntuParaV64
> > USER   : oneadmin
> > GROUP  : oneadmin
> > REGISTER TIME  : 10/04 10:33:23
> >
> > PERMISSIONS
> > OWNER  : um-
> > GROUP  : ---
> > OTHER  : ---
> >
> > TEMPLATE CONTENTS
> > CONTEXT=[
> >   NETWORK="YES",
> >   SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
> > CPU="0.5"
> > DISK=[
> >   DEV_PREFIX="xvd",
> >   DRIVER="file",
> >   IMAGE_ID="7",
> >   READONLY="no" ]
> > GRAPHICS=[
> >   LISTEN="0.0.0.0",
> >   TYPE="VNC" ]
> > MEMORY="512"
> > NIC=[
> >   NETWORK_ID="0" ]
> > OS=[
> >   ARCH="x86_64",
> >   BOOT="hd",
> >   BOOTLOADER="/usr/bin/pygrub",
> >   GUESTOS="ubuntu64Guest",
> >   ROOT="xvda" ]
> > REQUIREMENTS="ID=\"0\""
> >
> > it produce the deployment.0 file with content
> >
> > name = 'one-29'
> > #O CPU_CREDITS = 128
> > memory  = '512'
> > bootloader = "/usr/bin/pygrub"
> > disk = [
> > 'file:/var/lib/one//datastores/0/29/disk.0,xvda,w',
> > 'file:/var/lib/one//datastores/0/29/disk.1,xvdb,r',
> > ]
> > vif = [
> > ' mac=02:00:0a:16:81:a3,ip=10.22.129.163,bridge=xenbr0',
> > ]
> > vfb = ['type=vnc,vnclisten=0.0.0.0,vncdisplay=29']
> >
> >
> > On Thu, Oct 17, 2013 at 10:40 PM, Javier Fontan 
> > wrote:
> >>
> >> Can you send us the conf file of a Xen VM you can run? Does xenbr0
> exist?
> >>
> >> On Mon, Oct 7, 2013 at 8:38 AM, Documented Facts
> >>  wrote:
> >> > Hi
> >> >
> >> > I have installed XEN according to below URL
> >> >
> >> > https://help.ubuntu.com/community/Xen#During_installation_of_Ubuntu
> >> >
> >> > it can run a VM itself.
> >> >
> >> > then I created a Image according this URL
> >> >
> >> > http://opennebula.org/documentation:ubuntu12-xen
> >> >
> >> > and it works on the host.
> >> >
> >> > But when I used extracted ubuntu image of that through the Opennebula
> I
> >> > got
> >> > the below error message
> >> >
> >> > Mon Oct 7 10:19:51 2013 [VMM][I]: Command execution fail: cat << EOT |
> >> > /var/tmp/one/vmm/xen3/deploy
> >> > '/var/lib/one//datastores/0/22/deployment.0'
> >> > 'node01' 22 node01
> >> > Mon Oct 7 10:19:51 2013 [VMM][I]: Error: Domain 'one-22' does not
> exist.
> >> > Mon Oct 7 10:19:51 2013 [VMM][E]: Unable
> >> > Mon Oct 7 10:19:51 2013 [VMM][I]: ExitCode: 3
> >> > Mon Oct 7 10:19:51 2013 [VMM][I]: Failed to execute virtualization
> >> > driver
> >> > operation: deploy.
> >> > Mon Oct 7 10:19:51 2013 [VMM][E]: Error deploying virtual machine:
> >> > Unable
> >> > Mon Oct 7 10:19:51 2013 [DiM][I]: New VM state is FAILED
> >> >
> >> > My Virtual Machine template is given below and it was created through
> >> > sun
> >> > stone
> >> >
> >> > TEMPLATE CONTENTS
> >> > CONTEXT=[
> >> >   NETWORK="YES",
> >> >   SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
> >> > CPU="0.5"
> >> > DISK=[
> >> >   IMAGE_ID="7" ]
> >> > GRAPHICS=[
> >> >   LISTEN="0.0.0.0",
> >> >   TYPE="VNC" ]
> >> > MEMORY="512"
> >> > NIC=[
> >> >   NETWORK_ID="0" ]
> >> > OS=[
> >> >   ARCH="x86_64",
> >> >   BOOT="hd",
> >> >   BOOTLOADER="pygrub",
> >> >   GUESTOS="ubuntu64Guest" ]
> >> > REQUIREMENTS="ID=\"0\""
> >> >
> >> > and the deployment.0 file content is
> >> >
> >> > name = 'one-22'
> >> > #O CPU_CREDITS = 128
> >> > memory  = '512'
> >> > bootloader = "pygrub"
> >> > disk = [
> >> > 'file:/var/lib/one//datastores/0/22/disk.0,hda,w',
> >> > 'file:/var/lib/one//datastores/0/22/disk.1,hdb,r',
> >> > ]
> >> > vif = [
> >> > ' mac=02:00:0a:16:81:a3,ip=10.22.129.163,bridge=xenbr0',
> >> > ]
> >> > vfb = ['type=vnc,vnclisten=0.0.0.0,vncdisplay=22']
> >> >
> >> > System data store and default data store have configured to use SSH.
> >> >
> >> > I m very new to open nebula. Can anybody please help me to find
> solution
> >> > to
> >> > this problem ?
> >> >
> >> > My intention is to configure open nebula to use a PHP CMS hosting on a
> >> > XEN
> >> > para virtualized guests because Machines doesn't have Hardware
> support.
> >> > Can
> >> > you please let me know how to do it too ?
>

Re: [one-users] VM networking configuration CentOS

2013-10-21 Thread Mark Kusch
Hi list!

Problem solved... Still it FEELS like NetworkManager broke networking
in the VMs, still not confirmed.

Solution:
$ sudo su -
# modprobe nbd max_part=63
# qemu-nbd -c /dev/nbd0 /tmp/qcowimag
# install -d /mnt/centos
# mount /dev/nbd0p1 /mnt/centos
# chattr +i /mnt/centos/etc/sysconfig/network-scripts/ifcfg-eth0
# umount /mnt/centos
# ...

No, that's not nice!, but setting NM_CONTROLLED="no" didn't help.
Hope this may help someone sometime.

# kraM

On 15:24 Mon 21 Oct, Mark Kusch wrote:
> Hi list,
> 
> feels like an issue with NetworkManager in CentOS (not confirmed yet).
> ifcfg-eth0 has configured eth0 to be managed by
> `NetworkManager' (NM_CONTROLLED="yes").
> 
> Current approach is to mount and modify the qcow image
> and configure NM_CONTROLLED="no".
> 
> Currently no success.
> 
> # kraM
> 
> 
> On 14:49 Mon 21 Oct, Mark Kusch wrote:
> > Hi list,
> > 
> > I've a vnet defining IP and MAC address fields (required).
> > I've a working bridge configuration which should grant accecss to a
> > corporate DHCP server configured for exactly these IP/MAC pairs.
> > I've a CentOS qcow2 image with eth0 configuration set to DHCP.
> > 
> > When instantiating a VM it comes up with eth0 configured with IP
> > 0.192.222.10/24. MAC address is configured correctly from the vnet.
> > 
> > onevm show $ID lists expected networking configuration.
> > 
> > Any hint why the VMs come up with such an IP address? Could that be
> > OpenNebula related? Or does this feel to you like CentOS related?
> > 
> > In HOPE anyone has seen such an issue and can point me somewhere
> > which explains it to me and hopefully results in a solution ;)
> > 
> > Thanks!
> > 
> > # kraM
> > 
> > 
> > Some details:
> > $ onevnet show $ID # perfectly fine
> > USED LEASES 
> > 
> > LEASE=[ MAC="54:52:00:c0:de:0a", IP="192.168.198.10", 
> > IP6_LINK="fe80::5652:ff:fec0:de0a", USED="1", VID="19" ]
> > 
> > $onevm show $ID # perfectly fine
> > VM NICS 
> > 
> > ID NETWORK  VLAN BRIDGE   IP  MAC  
> > 0  VNet yes br1   192.168.198.10  54:52:00:c0:de:0a
> >   fe80::5652:ff:fec0:de0a
> > 
> > ifcfg-eth0 from qcow2 image:
> > DEVICE="eth0"
> > BOOTPROTO="dhcp"
> > IPV6INIT="yes"
> > MTU="1500"
> > NM_CONTROLLED="yes"
> > ONBOOT="yes"
> > TYPE="Ethernet"
> > UUID="708d6105-c3fe-44e9-8572-f6738042f930"
> > 
> > ifcfg-eth0 on VM:
> > DEVICE=eth0
> > BOOTPROTO=none
> > ONBOOT=yes
> > TYPE=Ethernet
> > NETMASK=255.255.255.0
> > IPADDR=0.192.222.10
> > GATEWAY=0.192.222.1
> > 
> > qcow2 image source:
> > - http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz
> > - http://wiki.centos.org/Cloud/OpenNebula/QuickStart (found in this guide)
> > 
> > -- 
> > Mark Kusch
> > Silpion IT-Solutions GmbH: Systems Engineer
> > 
> > Tel.: +49 (40) 399976-51
> > Fax.: +49 (40) 399976-40
> > Mail: mark.ku...@silpion.de
> > 
> > Firmensitz: Brandshofer Deich 48, 20539 Hamburg
> > Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel
> > Registergericht: Amtsgericht Hamburg HRB 78585
> > Finanzbehörde: Hamburg
> > USt.-Ident.-Nr.: DE213610768
> 
> 
> 
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> 
> -- 
> Mark Kusch
> Silpion IT-Solutions GmbH: Systems Engineer
> 
> Tel.: +49 (40) 399976-51
> Fax.: +49 (40) 399976-40
> Mail: mark.ku...@silpion.de
> 
> Firmensitz: Brandshofer Deich 48, 20539 Hamburg
> Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel
> Registergericht: Amtsgericht Hamburg HRB 78585
> Finanzbehörde: Hamburg
> USt.-Ident.-Nr.: DE213610768



> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Mark Kusch
Silpion IT-Solutions GmbH: Systems Engineer

Tel.: +49 (40) 399976-51
Fax.: +49 (40) 399976-40
Mail: mark.ku...@silpion.de

Firmensitz: Brandshofer Deich 48, 20539 Hamburg
Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel
Registergericht: Amtsgericht Hamburg HRB 78585
Finanzbehörde: Hamburg
USt.-Ident.-Nr.: DE213610768


pgpaLZdcSuMf5.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM networking configuration CentOS

2013-10-21 Thread Mark Kusch
Hi list,

feels like an issue with NetworkManager in CentOS (not confirmed yet).
ifcfg-eth0 has configured eth0 to be managed by
`NetworkManager' (NM_CONTROLLED="yes").

Current approach is to mount and modify the qcow image
and configure NM_CONTROLLED="no".

Currently no success.

# kraM


On 14:49 Mon 21 Oct, Mark Kusch wrote:
> Hi list,
> 
> I've a vnet defining IP and MAC address fields (required).
> I've a working bridge configuration which should grant accecss to a
> corporate DHCP server configured for exactly these IP/MAC pairs.
> I've a CentOS qcow2 image with eth0 configuration set to DHCP.
> 
> When instantiating a VM it comes up with eth0 configured with IP
> 0.192.222.10/24. MAC address is configured correctly from the vnet.
> 
> onevm show $ID lists expected networking configuration.
> 
> Any hint why the VMs come up with such an IP address? Could that be
> OpenNebula related? Or does this feel to you like CentOS related?
> 
> In HOPE anyone has seen such an issue and can point me somewhere
> which explains it to me and hopefully results in a solution ;)
> 
> Thanks!
> 
> # kraM
> 
> 
> Some details:
> $ onevnet show $ID # perfectly fine
> USED LEASES   
>   
> LEASE=[ MAC="54:52:00:c0:de:0a", IP="192.168.198.10", 
> IP6_LINK="fe80::5652:ff:fec0:de0a", USED="1", VID="19" ]
> 
> $onevm show $ID # perfectly fine
> VM NICS   
>   
> ID NETWORK  VLAN BRIDGE   IP  MAC  
> 0  VNet yes br1   192.168.198.10  54:52:00:c0:de:0a
>   fe80::5652:ff:fec0:de0a
> 
> ifcfg-eth0 from qcow2 image:
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> IPV6INIT="yes"
> MTU="1500"
> NM_CONTROLLED="yes"
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="708d6105-c3fe-44e9-8572-f6738042f930"
> 
> ifcfg-eth0 on VM:
> DEVICE=eth0
> BOOTPROTO=none
> ONBOOT=yes
> TYPE=Ethernet
> NETMASK=255.255.255.0
> IPADDR=0.192.222.10
> GATEWAY=0.192.222.1
> 
> qcow2 image source:
> - http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz
> - http://wiki.centos.org/Cloud/OpenNebula/QuickStart (found in this guide)
> 
> -- 
> Mark Kusch
> Silpion IT-Solutions GmbH: Systems Engineer
> 
> Tel.: +49 (40) 399976-51
> Fax.: +49 (40) 399976-40
> Mail: mark.ku...@silpion.de
> 
> Firmensitz: Brandshofer Deich 48, 20539 Hamburg
> Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel
> Registergericht: Amtsgericht Hamburg HRB 78585
> Finanzbehörde: Hamburg
> USt.-Ident.-Nr.: DE213610768



> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Mark Kusch
Silpion IT-Solutions GmbH: Systems Engineer

Tel.: +49 (40) 399976-51
Fax.: +49 (40) 399976-40
Mail: mark.ku...@silpion.de

Firmensitz: Brandshofer Deich 48, 20539 Hamburg
Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel
Registergericht: Amtsgericht Hamburg HRB 78585
Finanzbehörde: Hamburg
USt.-Ident.-Nr.: DE213610768


pgp8AhMFfV0T8.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error: Domain 'one-22' does not exist.

2013-10-21 Thread Javier Fontan
Can you check that the pygrub executable is at /usr/bin/pygrub in the
nodes where you are trying to start the VMs?

On Mon, Oct 21, 2013 at 7:29 AM, Documented Facts
 wrote:
> hi
>
> Sorry since I' m late to reply.
>
> I have attached oned.conf, vmm_exec_xen3.conf, xenrc to this email.
>
> Network bridge xenbr0 exist. I have put the output of brctl show command
>
> bridge name bridge id STP enabled interfaces
> virbr0 8000.feff yes vif1.0
> xenbr0 8000.0021856e8e4a no eth0
>
> also I have changed the template to make it similar to xen config file of
> this. New template is given bellow
>
> TEMPLATE 6 INFORMATION
> ID : 6
> NAME   : UbuntuParaV64
> USER   : oneadmin
> GROUP  : oneadmin
> REGISTER TIME  : 10/04 10:33:23
>
> PERMISSIONS
> OWNER  : um-
> GROUP  : ---
> OTHER  : ---
>
> TEMPLATE CONTENTS
> CONTEXT=[
>   NETWORK="YES",
>   SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
> CPU="0.5"
> DISK=[
>   DEV_PREFIX="xvd",
>   DRIVER="file",
>   IMAGE_ID="7",
>   READONLY="no" ]
> GRAPHICS=[
>   LISTEN="0.0.0.0",
>   TYPE="VNC" ]
> MEMORY="512"
> NIC=[
>   NETWORK_ID="0" ]
> OS=[
>   ARCH="x86_64",
>   BOOT="hd",
>   BOOTLOADER="/usr/bin/pygrub",
>   GUESTOS="ubuntu64Guest",
>   ROOT="xvda" ]
> REQUIREMENTS="ID=\"0\""
>
> it produce the deployment.0 file with content
>
> name = 'one-29'
> #O CPU_CREDITS = 128
> memory  = '512'
> bootloader = "/usr/bin/pygrub"
> disk = [
> 'file:/var/lib/one//datastores/0/29/disk.0,xvda,w',
> 'file:/var/lib/one//datastores/0/29/disk.1,xvdb,r',
> ]
> vif = [
> ' mac=02:00:0a:16:81:a3,ip=10.22.129.163,bridge=xenbr0',
> ]
> vfb = ['type=vnc,vnclisten=0.0.0.0,vncdisplay=29']
>
>
> On Thu, Oct 17, 2013 at 10:40 PM, Javier Fontan 
> wrote:
>>
>> Can you send us the conf file of a Xen VM you can run? Does xenbr0 exist?
>>
>> On Mon, Oct 7, 2013 at 8:38 AM, Documented Facts
>>  wrote:
>> > Hi
>> >
>> > I have installed XEN according to below URL
>> >
>> > https://help.ubuntu.com/community/Xen#During_installation_of_Ubuntu
>> >
>> > it can run a VM itself.
>> >
>> > then I created a Image according this URL
>> >
>> > http://opennebula.org/documentation:ubuntu12-xen
>> >
>> > and it works on the host.
>> >
>> > But when I used extracted ubuntu image of that through the Opennebula I
>> > got
>> > the below error message
>> >
>> > Mon Oct 7 10:19:51 2013 [VMM][I]: Command execution fail: cat << EOT |
>> > /var/tmp/one/vmm/xen3/deploy
>> > '/var/lib/one//datastores/0/22/deployment.0'
>> > 'node01' 22 node01
>> > Mon Oct 7 10:19:51 2013 [VMM][I]: Error: Domain 'one-22' does not exist.
>> > Mon Oct 7 10:19:51 2013 [VMM][E]: Unable
>> > Mon Oct 7 10:19:51 2013 [VMM][I]: ExitCode: 3
>> > Mon Oct 7 10:19:51 2013 [VMM][I]: Failed to execute virtualization
>> > driver
>> > operation: deploy.
>> > Mon Oct 7 10:19:51 2013 [VMM][E]: Error deploying virtual machine:
>> > Unable
>> > Mon Oct 7 10:19:51 2013 [DiM][I]: New VM state is FAILED
>> >
>> > My Virtual Machine template is given below and it was created through
>> > sun
>> > stone
>> >
>> > TEMPLATE CONTENTS
>> > CONTEXT=[
>> >   NETWORK="YES",
>> >   SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
>> > CPU="0.5"
>> > DISK=[
>> >   IMAGE_ID="7" ]
>> > GRAPHICS=[
>> >   LISTEN="0.0.0.0",
>> >   TYPE="VNC" ]
>> > MEMORY="512"
>> > NIC=[
>> >   NETWORK_ID="0" ]
>> > OS=[
>> >   ARCH="x86_64",
>> >   BOOT="hd",
>> >   BOOTLOADER="pygrub",
>> >   GUESTOS="ubuntu64Guest" ]
>> > REQUIREMENTS="ID=\"0\""
>> >
>> > and the deployment.0 file content is
>> >
>> > name = 'one-22'
>> > #O CPU_CREDITS = 128
>> > memory  = '512'
>> > bootloader = "pygrub"
>> > disk = [
>> > 'file:/var/lib/one//datastores/0/22/disk.0,hda,w',
>> > 'file:/var/lib/one//datastores/0/22/disk.1,hdb,r',
>> > ]
>> > vif = [
>> > ' mac=02:00:0a:16:81:a3,ip=10.22.129.163,bridge=xenbr0',
>> > ]
>> > vfb = ['type=vnc,vnclisten=0.0.0.0,vncdisplay=22']
>> >
>> > System data store and default data store have configured to use SSH.
>> >
>> > I m very new to open nebula. Can anybody please help me to find solution
>> > to
>> > this problem ?
>> >
>> > My intention is to configure open nebula to use a PHP CMS hosting on a
>> > XEN
>> > para virtualized guests because Machines doesn't have Hardware support.
>> > Can
>> > you please let me know how to do it too ?
>> >
>> > Thank you
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>>
>>
>>
>> --
>> Javier Fontán Muiños
>> Developer
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization
>> www.OpenNebula.org | @OpenNebula | github.com/jfontan
>
>



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.openn

[one-users] VM networking configuration CentOS

2013-10-21 Thread Mark Kusch
Hi list,

I've a vnet defining IP and MAC address fields (required).
I've a working bridge configuration which should grant accecss to a
corporate DHCP server configured for exactly these IP/MAC pairs.
I've a CentOS qcow2 image with eth0 configuration set to DHCP.

When instantiating a VM it comes up with eth0 configured with IP
0.192.222.10/24. MAC address is configured correctly from the vnet.

onevm show $ID lists expected networking configuration.

Any hint why the VMs come up with such an IP address? Could that be
OpenNebula related? Or does this feel to you like CentOS related?

In HOPE anyone has seen such an issue and can point me somewhere
which explains it to me and hopefully results in a solution ;)

Thanks!

# kraM


Some details:
$ onevnet show $ID # perfectly fine
USED LEASES 
LEASE=[ MAC="54:52:00:c0:de:0a", IP="192.168.198.10", 
IP6_LINK="fe80::5652:ff:fec0:de0a", USED="1", VID="19" ]

$onevm show $ID # perfectly fine
VM NICS 
ID NETWORK  VLAN BRIDGE   IP  MAC  
0  VNet yes br1   192.168.198.10  54:52:00:c0:de:0a
  fe80::5652:ff:fec0:de0a

ifcfg-eth0 from qcow2 image:
DEVICE="eth0"
BOOTPROTO="dhcp"
IPV6INIT="yes"
MTU="1500"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="708d6105-c3fe-44e9-8572-f6738042f930"

ifcfg-eth0 on VM:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=0.192.222.10
GATEWAY=0.192.222.1

qcow2 image source:
- http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz
- http://wiki.centos.org/Cloud/OpenNebula/QuickStart (found in this guide)

-- 
Mark Kusch
Silpion IT-Solutions GmbH: Systems Engineer

Tel.: +49 (40) 399976-51
Fax.: +49 (40) 399976-40
Mail: mark.ku...@silpion.de

Firmensitz: Brandshofer Deich 48, 20539 Hamburg
Geschäftsführer: Dipl.-Ing. (FH) Patrick Postel
Registergericht: Amtsgericht Hamburg HRB 78585
Finanzbehörde: Hamburg
USt.-Ident.-Nr.: DE213610768


pgpMt2wXfE979.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Inter operability VM Migration between Two open nebula clouds

2013-10-21 Thread aok pan
Dear Sir ,
I sent my request before but you didn't reply.
waiting your reply.
I am a master student at the Arab Academy for science and technology
.Alexandria ,Egypt.

I am doing a project on cloud computing interoperability.

I already installed two centos operating systems on my two machines and
then installed open nebula cloud with sunstone GUI.

It is requested from me to do migration of Virtual machines between the two
clouds using the occi.

What i did is as follows:

   1. first step: $ su
   2. then enter the password of the server
   3. in our case : amira30
   4. then $ su - oneadmin
   5. this will appear :[oneadmin@localhost ~]
   6. then write the following command :oneuser show
   7. this will appear :

USER 0
INFORMATION
ID : 0
NAME   : oneadmin
GROUP  : oneadmin
PASSWORD   : b1b3773a05c0ed0176787a4f1574ff0075f7521e
AUTH_DRIVER: core
ENABLED: Yes
USER
TEMPLATE
RESOURCE USAGE & QUOTAS

su
to go to the root and then write the following command
$vim /var/lib/one/.one/occi_auth
the file will appear for you  press insert
and then write :oneadmin:b1b3773a05c0ed0176787a4f1574ff0075f7521e
the after theh one admin is the 
after you finish to save what you have added press 

then
$ occi-server start

then $install yum install curl

now to create vm.xml file write the following:
$vim vm.xml
the white screen of the file will open
press i
then paste the following data:
///
  
  test
  medium
  
 
  
  
 x86_64
  
  
  
  
  
  vnc
  -1
  0.0.0.0
  
  
//

then esc
then : then x then press enter
the the last line .
curl -X POST -u oneadmin:password http://localhost:5678/compute -T vm.xml
didn't show the on the cloud.

so please tell me what is the nest step for migration.



Your reply will be highly appreciated.

B.rgds

Amira
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Some questions about overcommitment in OpenNebula 4.2 using KVM

2013-10-21 Thread Gerry O'Brien

On 18/10/2013 20:10, Michał Madziar wrote:

On 2013-10-18 17:36, Gerry O'Brien wrote:

On 16/10/2013 20:40, Michał Madziar wrote:

On 2013-10-16 21:00, Gerry O'Brien wrote:

On 16/10/2013 17:19, Michał Madziar wrote: _requirements" lives?

I didn't touch the scheduler, just patched the reporting script.
On my system it exists in ~oneadmin/remotes/im/kvm.d/kvm.rb and is
copied by ON (idr when exactly - restart?)  to /var/tmp/one/im/kvm.d/ on
every host in cluster.
I just added above lines near the end of script - before printing,
copied it manually and about minute later changes were visible in chart.

Hi,
 This file get copied over to the host when oned is restarted. If
you run it on the host it reports the increased memory size. However,
the scheduler seems to ignore this. I'm running version 4.2. Is that
what you are running?

Remember that values reported to ON must be consistent - total == free +
used or ON will ignore them.

That how it's look like on our system:
http://img822.imageshack.us/img822/1152/n5g6.png
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Hi,

Below is the modified section of kvm.rb. I have only added three 
lines to try to report double the actual memory.


39d38
< $total_memory = $total_memory.to_i * 2
70d68
< $total_memory = $total_memory.to_i * 2
75d72
< $free_memory=$total_memory - $used_memory.to_i


When I run the modified kvm.rb on the host it reports back twice the 
memory but ON seems to ignore it.

Do you know if VMEMORY has been implemented?









nodeinfo_text.split(/\n/).each{|line|
if line.match('^CPU\(s\)')
$total_cpu   = line.split(":")[1].strip.to_i * 100
elsif  line.match('^CPU frequency')
$cpu_speed   = line.split(":")[1].strip.split(" ")[0]
elsif  line.match('^Memory size')
$total_memory = line.split(":")[1].strip.split(" ")[0]
$total_memory = $total_memory.to_i * 2
end
}

##
#   for everything else, top & proc
#

NETINTERFACE = "eth1"

top_text=`top -bin2`
exit(-1) if $?.exitstatus != 0

top_text.gsub!(/^top.*^top.*?$/m, "") # Strip first top output

top_text.split(/\n/).each{|line|
if line.match('^%?Cpu')
line[7..-1].split(",").each{|elemento|
temp = elemento.strip.split(/[% ]/)
if temp[1]=="id"
idle = temp[0]
$free_cpu = idle.to_f * $total_cpu.to_f / 100
$used_cpu = $total_cpu.to_f - $free_cpu
break
end

}
end
}

$total_memory = `free -k|grep "Mem:" | awk '{print $2}'`
$total_memory = $total_memory.to_i * 2
tmp=`free -k|grep "buffers\/cache"|awk '{print $3 " " $4}'`.split

$used_memory=tmp[0]
$free_memory=tmp[1]
$free_memory=$total_memory - $used_memory.to_i




--
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Lecture about OpenNebula

2013-10-21 Thread Tino Vazquez
Hi Daniel,

Thanks a lot for elaborating on your project, it looks very
interesting. Let us know if you bump into any installation and/or
configuration issue.

Regarding the question  “How to migrate our vSphere to OpenNebula?”,
I'd like to provide some feedback. VMware support in OpenNebula is
mature, there is no problem supporting existing networking and storage
configurations of the ESX nodes, OpenNebula is able to manage them
with the same or a very similar configuration as they had before.
There are a large number of OpenNebula commercial customers that are
using OpenNebula as a replacement of vCenter and vCloud in their
infrastructures.

One question that is asked often is the matter of how to import
existing appliances. Currently there is no OVA support, but we are
working on it [1], and will be available in the short term (OpenNebua
v4.6). The idea would be to support import OVA packages (which can be
exported from existing ESX or vCenter), to offer a migration path from
vSphere to OpenNebula as smooth and seamless as possible.

Hope this helps if the question arises again.

Best regards,

-Tino

[1] http://dev.opennebula.org/issues/2032

--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Fri, Oct 18, 2013 at 8:14 PM, Daniel Dehennin
 wrote:
> Daniel Dehennin  writes:
>
>> I'm making a 20mn slideshow about OpenNebula at my work.
>
> [...]
>
> Hello,
>
> I would like to thank you very much, the presentation of our feedback on
> the few months with OpenNebula 3.8 was a success.
>
> Everybody was very interested.
>
> The most asked question was “How to migrate our vSphere to OpenNebula?”
>
> As we do not manage the proprietary solution and missing ressources[1],
> we could not give much response but “It looks to one target of
> OpenNebula, we need to make some tests”.
>
> I'll build a handout of our slides[2] to give more documentation than
> just slides and give you URLs of them if anybody is interested.
>
> I'm sorry! I was a “little” in the hurry with the surprise of ONE
> presentation and failed netiquette as a newbie on this mailing-list
> by not introducing myself.
>
> Here is the correction of my miss-behaviour:
>
> Quick and dirty personal curriculum vitae:
>
> I started computing in around 1999, thanks to Free Software and I'm more
> a sysadmin than a coder. Well, I like coding my configurations[3] ;-)
>
> I started to work in computing in 2003 as sysadmin.
>
> I'm interested in ONE for two reasons:
>
> 1. personally to manage my home servers (single node). virt-manager was
>no more an option ;-)
>
> 2. professionally, I'm working for the french ministry of National
>Education[4] in a group providing Free as in Freedom solution for
>schools, named EOLE[5]
>
> At work, we investigate to install a 2 or 3 nodes ONE in schools,
> sometime to replace single nodes ESXi, and federate all the nebulas to
> make a single portal and deploy new VM remotely.
>
> As I said, we are just starting, we installed a two nodes 3.8 ONE few
> months ago to QA tests for our solutions replacing the “unusable for us”
> vCenter Lab Manager and get some feedbacks.
>
> Now the test is successful, we will switch to 4.2 in a week or two.
>
> Regards.
>
> Footnotes:
> [1]  Financial and humans
>
> [2]  in french
>
> [3]  thanks CFEngine, Puppet and the last I'm interested in but did not
>  get the time to learn: SaltStack
>
> [4]  https://en.wikipedia.org/wiki/Ministry_of_National_Education_%28France%29
>
> [5]  https://fr.wikipedia.org/wiki/EOLE_%28Linux%29
>
> --
> Daniel Dehennin
> Récupérer ma clef GPG:
> gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula 4.4(?)

2013-10-21 Thread Tino Vazquez
Hi Martin,

Indeed, this is very helpful.

We've opened a feature request [1] to include windows guest
contextualization support in OpenNebula.

Thanks a lot for your feedback,

-Tino

[1] http://dev.opennebula.org/issues/2395
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Mon, Oct 21, 2013 at 8:49 AM, Martin Alfke  wrote:
> Hi,
>
> we used the contextualisation from 
> http://wiki.ieeta.pt/wiki/index.php/OpenNebula#Using_Windows_Images_for_new_Virtual_Machines
> (which is also linked at the OpenNebula Wiki) and did some minor changes.
>
> We only assign IP address, hostname and enable RDP
> Hostname is set as contextualisation variable: HOSTNAME = $name
> (We use the VM name as fqdn).
>
> We now only miss setting the DNS according to contextualisation (we need to 
> split the variable into an array).
>
>
> This is the diff to the one_context.ps1 file:
>
> --- one-context_orig.ps12013-10-21 08:43:14.0 +0200
> +++ one-contextWin8.ps1 2013-10-18 14:35:34.0 +0200
> @@ -4,14 +4,14 @@
>  #DETI/IEETA Universidade de Aveiro 2011 #
>  #
>
> -Set-ExecutionPolicy unrestricted -force # not needed if already done once on 
> the VM
> +Set-ExecutionPolicy Unrestricted -force # not needed if already done once on 
> the VM
>  [string]$computerName = "$env:computername"
>  [string]$ConnectionString = "WinNT://$computerName"
>
>  function getContext($file) {
>  $context = @{}
>  switch -regex -file $file {
> -'(.+)="(.+)"' {
> +"(.+)='(.+)'" {
>  $name,$value = $matches[1..2]
>  $context[$name] = $value
>  }
> @@ -77,13 +77,14 @@
>  function configureNetwork($context) {
>  $Nics = Get-WMIObject Win32_NetworkAdapterConfiguration | where 
> {$_.IPEnabled -eq "TRUE" -and ($_.MACAddress)}
>  foreach ($nic in $Nics) {
> -[String]$mac = $nic.MACAddress
> -[String]$ip = getIp($mac)
> -[String]$gw = getGateway($mac)
> +[String]$ip = $context["ETH0_IP"]
> +[String]$gw = $context["ETH0_GATEWAY"]
> +[String]$mask = $context["ETH0_MASK"]
>  $nic.ReleaseDHCPLease()
> -$nic.EnableStatic($ip , "255.255.255.0")
> +$nic.EnableStatic($ip , $mask)
>  $nic.SetGateways($gw)
> -$DNSServers = "193.136.172.20", "193.136.171.21"
> +$DNSServers = "10.175.4.11", "10.175.4.12"
> +# $DNSServers = $context["ETH0_DNS"]
>  $nic.SetDNSServerSearchOrder($DNSServers)
>  $nic.SetDynamicDNSRegistration("TRUE")
>  $nic.SetWINSServer($DNSServers[0], $DNSServers[1])
> @@ -91,8 +92,10 @@
>  }
>
>  function renameComputer($context) {
> -$ComputerInfo = Get-WmiObject -Class Win32_ComputerSystem
> -$ComputerInfo.rename($context["HOSTNAME"])
> +$fullName = $context["HOSTNAME"]
> +$computerName = $fullName.Split(".")[0]
> +$computerInfo = Get-WmiObject -Class Win32_ComputerSystem
> +$computerInfo.rename($computerName)
>  }
>
>  function enableRemoteDesktop()
>
> hth,
>
> Martin
>
> On Oct 18, 2013, at 4:18 PM, Tino Vazquez  wrote:
>
>> Hi Martin,
>>
>> That sounds great. Did you extend the ecosystem windows
>> contextualization contribution, or is it something custom made from
>> scratch?
>>
>> Regards,
>>
>> -Tino
>> --
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>>
>> --
>> Constantino Vázquez Blanco, PhD, MSc
>> Senior Infrastructure Architect at C12G Labs
>> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>>
>> --
>> Confidentiality Warning: The information contained in this e-mail and
>> any accompanying documents, unless otherwise expressly indicated, is
>> confidential and privileged, and is intended solely for the person
>> and/or entity to whom it is addressed (i.e. those identified in the
>> "To" and "cc" box). They are the property of C12G Labs S.L..
>> Unauthorized distribution, review, use, disclosure, or copying of this
>> communication, or any part thereof, is strictly prohibited and may be
>> unlawful. If you have received this e-mail in error, please notify us
>> immediately by e-mail at ab..

Re: [one-users] Booting VM from CD Image

2013-10-21 Thread Christoph Pleger
Hello,

> Could you please send us through the contents of the deployment file?
> It should be in the front-end, under
>
> /var/lib/one/vms//deployment.0
>

I have changed the device prefix from "sr" to "hd" and mount target from
"sr0" to "hda", now I can boot from virtual CD.

Regards
  Christoph

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Ubuntu Cloud Images

2013-10-21 Thread Ricardo Duarte
Hi,

I forgot that if you use instance-data, you should set the opennebula-metadata 
port to 8773 (it defaults to 8775).
Cloud-init will then try:

1. http://169.254.169.254
2. http://instance-data:8773

To check if metadata-server is working, please use the following application 
from a running instance:

http://aws.amazon.com/code/1825

Regards,
Ricardo Duarte


From: rjt...@hotmail.com
To: tob...@tobru.ch
Date: Mon, 21 Oct 2013 08:23:45 +
CC: users@lists.opennebula.org
Subject: Re: [one-users] Ubuntu Cloud Images




Hi there,

The image will default to 169.254.169.254 IP address.
You either NAT it to the metadata server on your router, or redirect it to the 
metadata server with IPtables on each host.
Please have a look at the "REDIRECT TO 169.254.169.254:80" section on [1]. 
This will make everything (cloud-init, byobu, etc) work as if it was running on 
EC2.

You can try to set a instance-data DNS record, pointing to the metadata-server, 
as some images also try to reach that if 169.254.169.254 fails.
But be aware it will not work for every image. 

For the serial port I use the following, and it works:

RAW = [ DATA="", TYPE="kvm" ]

It looks similiar to yours, so I don't know what can be wrong,

[1] https://bitbucket.org/ricardoduarte/opennebula-metadata

Regards,
Ricardo Duarte

> Date: Fri, 18 Oct 2013 22:36:18 +0200
> From: tob...@tobru.ch
> To: rjt...@hotmail.com
> CC: users@lists.opennebula.org
> Subject: RE: [one-users] Ubuntu Cloud Images
> 
> Hi,
> 
> Thanks for the fast reply.
> 
> > Assuming you are using a KVM hypervisor,
> 
> Yes, I'm using KVM with libivrt.
> 
> > you will need:
> > 
> > - A serial port on your VM [1].
> > - DHCP on the network (just do a static One Mac to IP)
> > - Opennebula-metadata server [2]
> > 
> > They will work without any changes afterwards, and you can even use
> > cloud-init to contextualize them.
> > 
> > If you need more than the 2GB they have, just increase the size of the
> > qcow2.
> > 
> > qemu-img resize filename [+ | -]size
> > No need to change the filesystem inside of it. Cloud-init will
> > increase the size of the ext fs to the qcow size.
> 
> I've tried to get it running using your hints, but I seem to miss 
> several things. Here's what I did until now:
> 
> * Installed and started opennebula-metadata server. Verified that it's 
> running:
> oneadmin 11123  0.0  1.3 179076 26812 ?Sl   21:01   0:02 ruby 
> /usr/lib/one/ruby/cloud/metadata/metadata-server.rb
> tcp0  0 0.0.0.0:87750.0.0.0:*   
> LISTEN  11123/ruby
> 
> * Downloaded 
> http://cloud-images.ubuntu.com/saucy/current/saucy-server-cloudimg-amd64-disk1.img
> 
> * Imported the .img file into the image store: oneimage create -d 101 
> --name saucy-cloud-amd64 --path 
> /tmp/saucy-server-cloudimg-amd64-disk1.img --type OS
> 
> * Created a template:
> 
> CONTEXT=[
>NETWORK="YES" ]
> CPU="1"
> DISK=[
>IMAGE_ID="41" ]
> GRAPHICS=[
>LISTEN="0.0.0.0",
>TYPE="VNC" ]
> MEMORY="1024"
> NIC=[
>NETWORK_ID="0" ]
> OS=[
>ARCH="x86_64" ]
> RAW=[
>DATA=" type='pty'>",
>TYPE="kvm" ]
> 
> * Instantied a VM with this template: onetemplate instantiate 19 --name 
> ucitest
> 
> The VM is now running and booted from the cloud image (I see this using 
> the VNC console). But:
> * Looking at the generated libvirt XML, the two parameters "serial" and 
> "console" are missing. What could be wrong with the template?
> * The VM seems not to get data from the metadata server. How does the VM 
> find the metadata server? The DHCP server assigned an IP to this VM and 
> the IP is pingable. But how does the VM know the IP to contact for the 
> metadata? Are there any other parameters which must be passed on? How 
> can I set a password to log into the VM?
> 
> Some other questions: Could the disk be automatically resized using 
> http://dev.opennebula.org/issues/1727? Will the metadata server find 
> it's way into the opennebula distribution?
> 
> Thanks for clarifying things...
> 
> Cheers,
> Tobias
> 
  

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org   
  ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Ubuntu Cloud Images

2013-10-21 Thread Ricardo Duarte
Hi there,

The image will default to 169.254.169.254 IP address.
You either NAT it to the metadata server on your router, or redirect it to the 
metadata server with IPtables on each host.
Please have a look at the "REDIRECT TO 169.254.169.254:80" section on [1]. 
This will make everything (cloud-init, byobu, etc) work as if it was running on 
EC2.

You can try to set a instance-data DNS record, pointing to the metadata-server, 
as some images also try to reach that if 169.254.169.254 fails.
But be aware it will not work for every image. 

For the serial port I use the following, and it works:

RAW = [ DATA="", TYPE="kvm" ]

It looks similiar to yours, so I don't know what can be wrong,

[1] https://bitbucket.org/ricardoduarte/opennebula-metadata

Regards,
Ricardo Duarte

> Date: Fri, 18 Oct 2013 22:36:18 +0200
> From: tob...@tobru.ch
> To: rjt...@hotmail.com
> CC: users@lists.opennebula.org
> Subject: RE: [one-users] Ubuntu Cloud Images
> 
> Hi,
> 
> Thanks for the fast reply.
> 
> > Assuming you are using a KVM hypervisor,
> 
> Yes, I'm using KVM with libivrt.
> 
> > you will need:
> > 
> > - A serial port on your VM [1].
> > - DHCP on the network (just do a static One Mac to IP)
> > - Opennebula-metadata server [2]
> > 
> > They will work without any changes afterwards, and you can even use
> > cloud-init to contextualize them.
> > 
> > If you need more than the 2GB they have, just increase the size of the
> > qcow2.
> > 
> > qemu-img resize filename [+ | -]size
> > No need to change the filesystem inside of it. Cloud-init will
> > increase the size of the ext fs to the qcow size.
> 
> I've tried to get it running using your hints, but I seem to miss 
> several things. Here's what I did until now:
> 
> * Installed and started opennebula-metadata server. Verified that it's 
> running:
> oneadmin 11123  0.0  1.3 179076 26812 ?Sl   21:01   0:02 ruby 
> /usr/lib/one/ruby/cloud/metadata/metadata-server.rb
> tcp0  0 0.0.0.0:87750.0.0.0:*   
> LISTEN  11123/ruby
> 
> * Downloaded 
> http://cloud-images.ubuntu.com/saucy/current/saucy-server-cloudimg-amd64-disk1.img
> 
> * Imported the .img file into the image store: oneimage create -d 101 
> --name saucy-cloud-amd64 --path 
> /tmp/saucy-server-cloudimg-amd64-disk1.img --type OS
> 
> * Created a template:
> 
> CONTEXT=[
>NETWORK="YES" ]
> CPU="1"
> DISK=[
>IMAGE_ID="41" ]
> GRAPHICS=[
>LISTEN="0.0.0.0",
>TYPE="VNC" ]
> MEMORY="1024"
> NIC=[
>NETWORK_ID="0" ]
> OS=[
>ARCH="x86_64" ]
> RAW=[
>DATA=" type='pty'>",
>TYPE="kvm" ]
> 
> * Instantied a VM with this template: onetemplate instantiate 19 --name 
> ucitest
> 
> The VM is now running and booted from the cloud image (I see this using 
> the VNC console). But:
> * Looking at the generated libvirt XML, the two parameters "serial" and 
> "console" are missing. What could be wrong with the template?
> * The VM seems not to get data from the metadata server. How does the VM 
> find the metadata server? The DHCP server assigned an IP to this VM and 
> the IP is pingable. But how does the VM know the IP to contact for the 
> metadata? Are there any other parameters which must be passed on? How 
> can I set a password to log into the VM?
> 
> Some other questions: Could the disk be automatically resized using 
> http://dev.opennebula.org/issues/1727? Will the metadata server find 
> it's way into the opennebula distribution?
> 
> Thanks for clarifying things...
> 
> Cheers,
> Tobias
> 
  ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] how to verify whether or not the motherboard support virtualization technology

2013-10-21 Thread Carlo Daffara
Usually it's not a motherboard problem, but a BIOS one. We have found some 
hardware platform where there is cpu support for virtualization, but the BIOS 
(not updated by the manufacturer) does not enable it.
A few useful notes are here: http://virt-tools.org/learning/check-hardware-virt/
To check for virtualization support in the processor and bios, you can use the 
kvm-ok tool, or if you don't find it in your kvm installation you can use the 
cpu-checker utility:
https://launchpad.net/cpu-checker
cheers,
carlo daffara

- Messaggio originale -
Da: "Qiubo Su (David Su)" 
A: "Users OpenNebula" , disc...@lists.opennebula.org
Inviato: Lunedì, 21 ottobre 2013 3:17:09
Oggetto: [one-users] how to verify whether or not the motherboard support   
virtualization technology





Dear OpenNebula Community, 

I want to upgrade an desktop PC bought 6 years ago to support virtualization 
technology. For the whole PC to support virtualization, apart from the CPU 
supporting virtualization, the motherboard needs to support virtualization as 
well. It is easy to upgrade the CPU, but difficult to upgrade the motherboard. 
If the motherboard already supports virtualization, then I don't need to 
upgrade the motherboard. 

Does anyone know how to check whether the motherboard support virtualization or 
not? 



in the Ubuntu terminal, run the below commands and get the corresponding 
return: 


1) dmidecode | grep -A4 'Base Board Information' 
Base Board Information 
Manufacturer: Intel Corporation 
Product Name: D945GCCR 
Version: AAD78647-301 
Serial Number: BTCR71100WJ1 


2) dmidecode -t 4 | grep Socket 
Socket Designation: LGA 775 
The above return is the information of the motherboard of my desktop PC. don't 
know whether or not it support virtualization. 


Thanks for your help ! 


Kind regards, 
Q.S. 
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org