Re: [one-users] Netmask setting

2014-02-19 Thread Javier Fontan
I advise you not to do this by hand if you don't now what you are
doing. From the top of my head (have not tested the procedure):

* Change /var/lib/one/vms/20/context.sh to add network contextualization info:

  ETH0_GATEWAY=172.16.192.1
  ETH0_IP=172.16.192.64
  ETH0_MASK=255.255.0.0

* Create a new iso9660 image that contains context.sh and has label CONTEXT.
* Poweroff the VM.
* Substitute disk.1 from the VM with the new created iso image.
* Resume the VM.

Again, in case you don't intimately know how this works don't do it.
You'll most probably end breaking the VM.

Change the network configuration manually or create a new VM with the
correct context.

On Tue, Feb 18, 2014 at 7:02 PM, SysSolutions99
syssolution...@gmail.com wrote:
 Hi Javier,

 I modified the template and rebooted the VMs, but the network settings did
 not take. I even created a new VM in another setup but still to no effect.


 Could you please share the steps to create the context CD manually? It will
 be very helpful for me to not have to redo all the work I have done so far.

 Thanks and Regards


 On Tue, Feb 18, 2014 at 8:19 AM, Javier Fontan jfon...@opennebula.org
 wrote:

 Unfortunately the contextualization CD is not regenerated after the VM
 is created so the only way to fix it is creating the context CD again
 manually.

 What you can do is modify the template from where the VMs were created
 and start them again.

 On Tue, Feb 18, 2014 at 4:52 PM, SysSolutions99
 syssolution...@gmail.com wrote:
  Thanks Javier,
 
  Much appreciated. However, how do I fix my current VMs? Is there a way
  to do
  so?
 
  Regards
 
 
  On Tue, Feb 18, 2014 at 7:21 AM, Javier Fontan jfon...@opennebula.org
  wrote:
 
  The problem is indeed your context section. It does not have
  networking configuration.
 
  When creating the template using Sunstone make sure the option Add
  Network contextualization in the Context tab is activated.
 
  In case you are creating the template manually add NETWORK=YES in
  CONTEXT.
 
  On Mon, Feb 17, 2014 at 9:57 PM, SysSolutions99
  syssolution...@gmail.com wrote:
   thank You for your  help Javier. Here are the details -
  
   $ onevm show 20 -a
   VIRTUAL MACHINE 20 INFORMATION
   ID  : 20
   NAME: testvm3
   USER: oneadmin
   GROUP   : oneadmin
   STATE   : ACTIVE
   LCM_STATE   : RUNNING
   RESCHED : No
   HOST: test
   CLUSTER ID  : -1
   START TIME  : 02/08 21:08:23
   END TIME: -
   DEPLOY ID   : one-20
  
   VIRTUAL MACHINE MONITORING
   NET_RX  : 68.4G
   NET_TX  : 96.1G
   USED MEMORY : 2G
   USED CPU: 112
  
  
   PERMISSIONS
   OWNER   : um-
   GROUP   : ---
   OTHER   : ---
  
   VM DISKS
ID TARGET IMAGE   TYPE SAVE SAVE_AS
 0 hdaCentOS-6.4_x86_64 -Copy 2   file   NO   -
  
   VM NICS
ID NETWORK  VLAN BRIDGE   IP  MAC
 0 privateno br0  172.16.192.64
   02:00:ac:10:c0:40
  
  fe80::400:acff:fe10:c040
  
   VIRTUAL MACHINE HISTORY
   SEQ HOSTACTION DS   STARTTIME
   PROLOG
 0 teststop0  02/08 21:08:43   0d 20h51m
   0h00m14s
 1 testundeploy0  02/09 18:02:12   0d 00h02m
   0h00m00s
 2 testnone0  02/09 18:07:42   7d 18h43m
   0h00m00s
  
   VIRTUAL MACHINE TEMPLATE
   AUTOMATIC_REQUIREMENTS=!(PUBLIC_CLOUD = YES)
   CONTEXT=[
 DISK_ID=1,
 SSH_PUBLIC_KEY=ssh-rsa
  
  
   B3NzaC1yc2EBIwAAAQEAtDxiwxLzNnlvGPBJEmVRNfV5bCxw1MMPh5/qWtEGNOnamzDr+Qyn6qZcAn3gHUP8FTm0HagsYLgjfJrfu6F0BY4Nk+8R3l9TzwJS1EzaeZ4GQOAjsL51opckxw3fjwctKCPC2nTXcvtiy9lpdo9hl1vKerCAfwwoKTnvyoNaykys+TXNR22fhrJzxVbX81BI2rte0ReNEwYyKzh/aBslKHadmvibkv1msC9+GHPOgmJF8cKzpEqxEQrj+x7FwpcHqwhVvwZfDYMn/nNTHubTWoR0Rl0+u5j6B1MGnY9ueMmqHWgy/m6RU8ctuyYa4/yMffpTHTvZ3mqGIcSgFRtoFQ==
   oneadmin@fermi,
 TARGET=hdb ]
   CPU=1
   DISK=[
 CLONE=YES,
 CLONE_TARGET=SYSTEM,
 DATASTORE=default,
 DATASTORE_ID=1,
 DEV_PREFIX=hd,
 DISK_ID=0,
 DRIVER=qcow2,
 IMAGE=CentOS-6.4_x86_64 -Copy 2,
 IMAGE_ID=3,
 IMAGE_UNAME=oneadmin,
 LN_TARGET=NONE,
 READONLY=NO,
 SAVE=NO,
 SIZE=218,
  
   SOURCE=/var/lib/one//datastores/1/e2b9535f84eef5185c2554371e0e8727,
 TARGET=hda,
 TM_MAD=shared,
 TYPE=FILE ]
   GRAPHICS=[
 LISTEN=0.0.0.0,
 PORT=5920,
 TYPE=VNC ]
   MEMORY=2048
   NIC=[
 BRIDGE=br0,
  
 IP=172.16.192.64,
 IP6_LINK=fe80::400:acff:fe10:c040,
 MAC=02:00:ac:10:c0:40,
 NETWORK=private,
 NETWORK_ID=0,
 NETWORK_UNAME=oneadmin,
 NIC_ID=0,
 VLAN=NO ]
   OS=[
 ARCH=x86_64 ]
   TEMPLATE_ID=5
   VCPU=2
   VMID=20
  
  
  
  
   On Fri, Feb 14, 2014 at 

Re: [one-users] Netmask setting

2014-02-18 Thread Javier Fontan
The problem is indeed your context section. It does not have
networking configuration.

When creating the template using Sunstone make sure the option Add
Network contextualization in the Context tab is activated.

In case you are creating the template manually add NETWORK=YES in CONTEXT.

On Mon, Feb 17, 2014 at 9:57 PM, SysSolutions99
syssolution...@gmail.com wrote:
 thank You for your  help Javier. Here are the details -

 $ onevm show 20 -a
 VIRTUAL MACHINE 20 INFORMATION
 ID  : 20
 NAME: testvm3
 USER: oneadmin
 GROUP   : oneadmin
 STATE   : ACTIVE
 LCM_STATE   : RUNNING
 RESCHED : No
 HOST: test
 CLUSTER ID  : -1
 START TIME  : 02/08 21:08:23
 END TIME: -
 DEPLOY ID   : one-20

 VIRTUAL MACHINE MONITORING
 NET_RX  : 68.4G
 NET_TX  : 96.1G
 USED MEMORY : 2G
 USED CPU: 112


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

 VM DISKS
  ID TARGET IMAGE   TYPE SAVE SAVE_AS
   0 hdaCentOS-6.4_x86_64 -Copy 2   file   NO   -

 VM NICS
  ID NETWORK  VLAN BRIDGE   IP  MAC
   0 privateno br0  172.16.192.64   02:00:ac:10:c0:40

fe80::400:acff:fe10:c040

 VIRTUAL MACHINE HISTORY
 SEQ HOSTACTION DS   STARTTIME
 PROLOG
   0 teststop0  02/08 21:08:43   0d 20h51m   0h00m14s
   1 testundeploy0  02/09 18:02:12   0d 00h02m   0h00m00s
   2 testnone0  02/09 18:07:42   7d 18h43m   0h00m00s

 VIRTUAL MACHINE TEMPLATE
 AUTOMATIC_REQUIREMENTS=!(PUBLIC_CLOUD = YES)
 CONTEXT=[
   DISK_ID=1,
   SSH_PUBLIC_KEY=ssh-rsa
 B3NzaC1yc2EBIwAAAQEAtDxiwxLzNnlvGPBJEmVRNfV5bCxw1MMPh5/qWtEGNOnamzDr+Qyn6qZcAn3gHUP8FTm0HagsYLgjfJrfu6F0BY4Nk+8R3l9TzwJS1EzaeZ4GQOAjsL51opckxw3fjwctKCPC2nTXcvtiy9lpdo9hl1vKerCAfwwoKTnvyoNaykys+TXNR22fhrJzxVbX81BI2rte0ReNEwYyKzh/aBslKHadmvibkv1msC9+GHPOgmJF8cKzpEqxEQrj+x7FwpcHqwhVvwZfDYMn/nNTHubTWoR0Rl0+u5j6B1MGnY9ueMmqHWgy/m6RU8ctuyYa4/yMffpTHTvZ3mqGIcSgFRtoFQ==
 oneadmin@fermi,
   TARGET=hdb ]
 CPU=1
 DISK=[
   CLONE=YES,
   CLONE_TARGET=SYSTEM,
   DATASTORE=default,
   DATASTORE_ID=1,
   DEV_PREFIX=hd,
   DISK_ID=0,
   DRIVER=qcow2,
   IMAGE=CentOS-6.4_x86_64 -Copy 2,
   IMAGE_ID=3,
   IMAGE_UNAME=oneadmin,
   LN_TARGET=NONE,
   READONLY=NO,
   SAVE=NO,
   SIZE=218,
   SOURCE=/var/lib/one//datastores/1/e2b9535f84eef5185c2554371e0e8727,
   TARGET=hda,
   TM_MAD=shared,
   TYPE=FILE ]
 GRAPHICS=[
   LISTEN=0.0.0.0,
   PORT=5920,
   TYPE=VNC ]
 MEMORY=2048
 NIC=[
   BRIDGE=br0,

   IP=172.16.192.64,
   IP6_LINK=fe80::400:acff:fe10:c040,
   MAC=02:00:ac:10:c0:40,
   NETWORK=private,
   NETWORK_ID=0,
   NETWORK_UNAME=oneadmin,
   NIC_ID=0,
   VLAN=NO ]
 OS=[
   ARCH=x86_64 ]
 TEMPLATE_ID=5
 VCPU=2
 VMID=20




 On Fri, Feb 14, 2014 at 1:47 AM, Javier Fontan jfon...@opennebula.org
 wrote:

 Can you send us the VM definition (onevm show 20 -a). It looks like
 the network info is not in the context section.

 On Wed, Feb 12, 2014 at 10:21 PM, SysSolutions99
 syssolution...@gmail.com wrote:
  Hi,
 
  The netmask on my network is 255.255.0.0, yet the VMs get plumbed with
  255.255.255.0.
  I have tried setting up the netmask using the onevnet command but I am
  not
  able to.  Please help.
 
  here are the network details of the main host
 
  - # ifconfig br0
  br0   Link encap:Ethernet  HWaddr 00:25:90:E2:C5:98
inet addr:172.16.192.60  Bcast:172.16.255.255
  Mask:255.255.0.0
inet6 addr: fe80::225:90ff:fee2:c598/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:10352600 errors:0 dropped:0 overruns:0 frame:0
TX packets:5714417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6383539896 (5.9 GiB)  TX bytes:8971371821 (8.3 GiB)
 
  # netstat -rn
  Kernel IP routing table
  Destination Gateway Genmask Flags   MSS Window  irtt
  Iface
  192.168.122.0   0.0.0.0 255.255.255.0   U 0 0  0
  virbr0
  169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0
  br0
  172.16.0.0  0.0.0.0 255.255.0.0 U 0 0  0
  br0
  0.0.0.0 172.16.192.10.0.0.0 UG0 0  0
  br0
 
 
  Here are the networking details of the VM:
 
  # ifconfig eth0
  eth0  Link encap:Ethernet  HWaddr 02:00:AC:10:C0:40
inet addr:172.16.192.64  Bcast:172.16.192.255
  Mask:255.255.255.0
inet6 addr: fe80::acff:fe10:c040/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:165669946 errors:0 dropped:1041 overruns:0 frame:0
TX packets:170954965 

Re: [one-users] Netmask setting

2014-02-18 Thread SysSolutions99
Thanks Javier,

Much appreciated. However, how do I fix my current VMs? Is there a way to
do so?

Regards


On Tue, Feb 18, 2014 at 7:21 AM, Javier Fontan jfon...@opennebula.orgwrote:

 The problem is indeed your context section. It does not have
 networking configuration.

 When creating the template using Sunstone make sure the option Add
 Network contextualization in the Context tab is activated.

 In case you are creating the template manually add NETWORK=YES in
 CONTEXT.

 On Mon, Feb 17, 2014 at 9:57 PM, SysSolutions99
 syssolution...@gmail.com wrote:
  thank You for your  help Javier. Here are the details -
 
  $ onevm show 20 -a
  VIRTUAL MACHINE 20 INFORMATION
  ID  : 20
  NAME: testvm3
  USER: oneadmin
  GROUP   : oneadmin
  STATE   : ACTIVE
  LCM_STATE   : RUNNING
  RESCHED : No
  HOST: test
  CLUSTER ID  : -1
  START TIME  : 02/08 21:08:23
  END TIME: -
  DEPLOY ID   : one-20
 
  VIRTUAL MACHINE MONITORING
  NET_RX  : 68.4G
  NET_TX  : 96.1G
  USED MEMORY : 2G
  USED CPU: 112
 
 
  PERMISSIONS
  OWNER   : um-
  GROUP   : ---
  OTHER   : ---
 
  VM DISKS
   ID TARGET IMAGE   TYPE SAVE SAVE_AS
0 hdaCentOS-6.4_x86_64 -Copy 2   file   NO   -
 
  VM NICS
   ID NETWORK  VLAN BRIDGE   IP  MAC
0 privateno br0  172.16.192.64
 02:00:ac:10:c0:40
 
 fe80::400:acff:fe10:c040
 
  VIRTUAL MACHINE HISTORY
  SEQ HOSTACTION DS   STARTTIME
  PROLOG
0 teststop0  02/08 21:08:43   0d 20h51m
 0h00m14s
1 testundeploy0  02/09 18:02:12   0d 00h02m
 0h00m00s
2 testnone0  02/09 18:07:42   7d 18h43m
 0h00m00s
 
  VIRTUAL MACHINE TEMPLATE
  AUTOMATIC_REQUIREMENTS=!(PUBLIC_CLOUD = YES)
  CONTEXT=[
DISK_ID=1,
SSH_PUBLIC_KEY=ssh-rsa
 
 B3NzaC1yc2EBIwAAAQEAtDxiwxLzNnlvGPBJEmVRNfV5bCxw1MMPh5/qWtEGNOnamzDr+Qyn6qZcAn3gHUP8FTm0HagsYLgjfJrfu6F0BY4Nk+8R3l9TzwJS1EzaeZ4GQOAjsL51opckxw3fjwctKCPC2nTXcvtiy9lpdo9hl1vKerCAfwwoKTnvyoNaykys+TXNR22fhrJzxVbX81BI2rte0ReNEwYyKzh/aBslKHadmvibkv1msC9+GHPOgmJF8cKzpEqxEQrj+x7FwpcHqwhVvwZfDYMn/nNTHubTWoR0Rl0+u5j6B1MGnY9ueMmqHWgy/m6RU8ctuyYa4/yMffpTHTvZ3mqGIcSgFRtoFQ==
  oneadmin@fermi,
TARGET=hdb ]
  CPU=1
  DISK=[
CLONE=YES,
CLONE_TARGET=SYSTEM,
DATASTORE=default,
DATASTORE_ID=1,
DEV_PREFIX=hd,
DISK_ID=0,
DRIVER=qcow2,
IMAGE=CentOS-6.4_x86_64 -Copy 2,
IMAGE_ID=3,
IMAGE_UNAME=oneadmin,
LN_TARGET=NONE,
READONLY=NO,
SAVE=NO,
SIZE=218,
SOURCE=/var/lib/one//datastores/1/e2b9535f84eef5185c2554371e0e8727,
TARGET=hda,
TM_MAD=shared,
TYPE=FILE ]
  GRAPHICS=[
LISTEN=0.0.0.0,
PORT=5920,
TYPE=VNC ]
  MEMORY=2048
  NIC=[
BRIDGE=br0,
 
IP=172.16.192.64,
IP6_LINK=fe80::400:acff:fe10:c040,
MAC=02:00:ac:10:c0:40,
NETWORK=private,
NETWORK_ID=0,
NETWORK_UNAME=oneadmin,
NIC_ID=0,
VLAN=NO ]
  OS=[
ARCH=x86_64 ]
  TEMPLATE_ID=5
  VCPU=2
  VMID=20
 
 
 
 
  On Fri, Feb 14, 2014 at 1:47 AM, Javier Fontan jfon...@opennebula.org
  wrote:
 
  Can you send us the VM definition (onevm show 20 -a). It looks like
  the network info is not in the context section.
 
  On Wed, Feb 12, 2014 at 10:21 PM, SysSolutions99
  syssolution...@gmail.com wrote:
   Hi,
  
   The netmask on my network is 255.255.0.0, yet the VMs get plumbed with
   255.255.255.0.
   I have tried setting up the netmask using the onevnet command but I am
   not
   able to.  Please help.
  
   here are the network details of the main host
  
   - # ifconfig br0
   br0   Link encap:Ethernet  HWaddr 00:25:90:E2:C5:98
 inet addr:172.16.192.60  Bcast:172.16.255.255
   Mask:255.255.0.0
 inet6 addr: fe80::225:90ff:fee2:c598/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:10352600 errors:0 dropped:0 overruns:0 frame:0
 TX packets:5714417 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:6383539896 (5.9 GiB)  TX bytes:8971371821 (8.3 GiB)
  
   # netstat -rn
   Kernel IP routing table
   Destination Gateway Genmask Flags   MSS Window
  irtt
   Iface
   192.168.122.0   0.0.0.0 255.255.255.0   U 0 0
  0
   virbr0
   169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
  0
   br0
   172.16.0.0  0.0.0.0 255.255.0.0 U 0 0
  0
   br0
   0.0.0.0 172.16.192.10.0.0.0 UG0 0
  0
   br0
  
  
   Here are the networking details of the VM:
  
   # ifconfig eth0
   eth0  Link encap:Ethernet  HWaddr 02:00:AC:10:C0:40
   

Re: [one-users] Netmask setting

2014-02-18 Thread Javier Fontan
Unfortunately the contextualization CD is not regenerated after the VM
is created so the only way to fix it is creating the context CD again
manually.

What you can do is modify the template from where the VMs were created
and start them again.

On Tue, Feb 18, 2014 at 4:52 PM, SysSolutions99
syssolution...@gmail.com wrote:
 Thanks Javier,

 Much appreciated. However, how do I fix my current VMs? Is there a way to do
 so?

 Regards


 On Tue, Feb 18, 2014 at 7:21 AM, Javier Fontan jfon...@opennebula.org
 wrote:

 The problem is indeed your context section. It does not have
 networking configuration.

 When creating the template using Sunstone make sure the option Add
 Network contextualization in the Context tab is activated.

 In case you are creating the template manually add NETWORK=YES in
 CONTEXT.

 On Mon, Feb 17, 2014 at 9:57 PM, SysSolutions99
 syssolution...@gmail.com wrote:
  thank You for your  help Javier. Here are the details -
 
  $ onevm show 20 -a
  VIRTUAL MACHINE 20 INFORMATION
  ID  : 20
  NAME: testvm3
  USER: oneadmin
  GROUP   : oneadmin
  STATE   : ACTIVE
  LCM_STATE   : RUNNING
  RESCHED : No
  HOST: test
  CLUSTER ID  : -1
  START TIME  : 02/08 21:08:23
  END TIME: -
  DEPLOY ID   : one-20
 
  VIRTUAL MACHINE MONITORING
  NET_RX  : 68.4G
  NET_TX  : 96.1G
  USED MEMORY : 2G
  USED CPU: 112
 
 
  PERMISSIONS
  OWNER   : um-
  GROUP   : ---
  OTHER   : ---
 
  VM DISKS
   ID TARGET IMAGE   TYPE SAVE SAVE_AS
0 hdaCentOS-6.4_x86_64 -Copy 2   file   NO   -
 
  VM NICS
   ID NETWORK  VLAN BRIDGE   IP  MAC
0 privateno br0  172.16.192.64
  02:00:ac:10:c0:40
 
 fe80::400:acff:fe10:c040
 
  VIRTUAL MACHINE HISTORY
  SEQ HOSTACTION DS   STARTTIME
  PROLOG
0 teststop0  02/08 21:08:43   0d 20h51m
  0h00m14s
1 testundeploy0  02/09 18:02:12   0d 00h02m
  0h00m00s
2 testnone0  02/09 18:07:42   7d 18h43m
  0h00m00s
 
  VIRTUAL MACHINE TEMPLATE
  AUTOMATIC_REQUIREMENTS=!(PUBLIC_CLOUD = YES)
  CONTEXT=[
DISK_ID=1,
SSH_PUBLIC_KEY=ssh-rsa
 
  B3NzaC1yc2EBIwAAAQEAtDxiwxLzNnlvGPBJEmVRNfV5bCxw1MMPh5/qWtEGNOnamzDr+Qyn6qZcAn3gHUP8FTm0HagsYLgjfJrfu6F0BY4Nk+8R3l9TzwJS1EzaeZ4GQOAjsL51opckxw3fjwctKCPC2nTXcvtiy9lpdo9hl1vKerCAfwwoKTnvyoNaykys+TXNR22fhrJzxVbX81BI2rte0ReNEwYyKzh/aBslKHadmvibkv1msC9+GHPOgmJF8cKzpEqxEQrj+x7FwpcHqwhVvwZfDYMn/nNTHubTWoR0Rl0+u5j6B1MGnY9ueMmqHWgy/m6RU8ctuyYa4/yMffpTHTvZ3mqGIcSgFRtoFQ==
  oneadmin@fermi,
TARGET=hdb ]
  CPU=1
  DISK=[
CLONE=YES,
CLONE_TARGET=SYSTEM,
DATASTORE=default,
DATASTORE_ID=1,
DEV_PREFIX=hd,
DISK_ID=0,
DRIVER=qcow2,
IMAGE=CentOS-6.4_x86_64 -Copy 2,
IMAGE_ID=3,
IMAGE_UNAME=oneadmin,
LN_TARGET=NONE,
READONLY=NO,
SAVE=NO,
SIZE=218,
SOURCE=/var/lib/one//datastores/1/e2b9535f84eef5185c2554371e0e8727,
TARGET=hda,
TM_MAD=shared,
TYPE=FILE ]
  GRAPHICS=[
LISTEN=0.0.0.0,
PORT=5920,
TYPE=VNC ]
  MEMORY=2048
  NIC=[
BRIDGE=br0,
 
IP=172.16.192.64,
IP6_LINK=fe80::400:acff:fe10:c040,
MAC=02:00:ac:10:c0:40,
NETWORK=private,
NETWORK_ID=0,
NETWORK_UNAME=oneadmin,
NIC_ID=0,
VLAN=NO ]
  OS=[
ARCH=x86_64 ]
  TEMPLATE_ID=5
  VCPU=2
  VMID=20
 
 
 
 
  On Fri, Feb 14, 2014 at 1:47 AM, Javier Fontan jfon...@opennebula.org
  wrote:
 
  Can you send us the VM definition (onevm show 20 -a). It looks like
  the network info is not in the context section.
 
  On Wed, Feb 12, 2014 at 10:21 PM, SysSolutions99
  syssolution...@gmail.com wrote:
   Hi,
  
   The netmask on my network is 255.255.0.0, yet the VMs get plumbed
   with
   255.255.255.0.
   I have tried setting up the netmask using the onevnet command but I
   am
   not
   able to.  Please help.
  
   here are the network details of the main host
  
   - # ifconfig br0
   br0   Link encap:Ethernet  HWaddr 00:25:90:E2:C5:98
 inet addr:172.16.192.60  Bcast:172.16.255.255
   Mask:255.255.0.0
 inet6 addr: fe80::225:90ff:fee2:c598/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:10352600 errors:0 dropped:0 overruns:0 frame:0
 TX packets:5714417 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:6383539896 (5.9 GiB)  TX bytes:8971371821 (8.3
   GiB)
  
   # netstat -rn
   Kernel IP routing table
   Destination Gateway Genmask Flags   MSS Window
   irtt
   Iface
   192.168.122.0   0.0.0.0 255.255.255.0   U 0 0
   0
   virbr0
   169.254.0.0 

Re: [one-users] Netmask setting

2014-02-17 Thread SysSolutions99
thank You for your  help Javier. Here are the details -

$ onevm show 20 -a
VIRTUAL MACHINE 20 INFORMATION
ID  : 20
NAME: testvm3
USER: oneadmin
GROUP   : oneadmin
STATE   : ACTIVE
LCM_STATE   : RUNNING
RESCHED : No
HOST: test
CLUSTER ID  : -1
START TIME  : 02/08 21:08:23
END TIME: -
DEPLOY ID   : one-20

VIRTUAL MACHINE MONITORING
NET_RX  : 68.4G
NET_TX  : 96.1G
USED MEMORY : 2G
USED CPU: 112

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

VM DISKS
 ID TARGET IMAGE   TYPE SAVE SAVE_AS
  0 hdaCentOS-6.4_x86_64 -Copy 2   file   NO   -

VM NICS
 ID NETWORK  VLAN BRIDGE   IP  MAC
  0 privateno br0  172.16.192.64   02:00:ac:10:c0:40
   fe80::400:acff:fe10:c040

VIRTUAL MACHINE HISTORY
SEQ HOSTACTION DS   STARTTIME
PROLOG
  0 teststop0  02/08 21:08:43   0d 20h51m   0h00m14s
  1 testundeploy0  02/09 18:02:12   0d 00h02m   0h00m00s
  2 testnone0  02/09 18:07:42   7d 18h43m   0h00m00s

VIRTUAL MACHINE TEMPLATE
AUTOMATIC_REQUIREMENTS=!(PUBLIC_CLOUD = YES)
CONTEXT=[
  DISK_ID=1,
  SSH_PUBLIC_KEY=ssh-rsa
B3NzaC1yc2EBIwAAAQEAtDxiwxLzNnlvGPBJEmVRNfV5bCxw1MMPh5/qWtEGNOnamzDr+Qyn6qZcAn3gHUP8FTm0HagsYLgjfJrfu6F0BY4Nk+8R3l9TzwJS1EzaeZ4GQOAjsL51opckxw3fjwctKCPC2nTXcvtiy9lpdo9hl1vKerCAfwwoKTnvyoNaykys+TXNR22fhrJzxVbX81BI2rte0ReNEwYyKzh/aBslKHadmvibkv1msC9+GHPOgmJF8cKzpEqxEQrj+x7FwpcHqwhVvwZfDYMn/nNTHubTWoR0Rl0+u5j6B1MGnY9ueMmqHWgy/m6RU8ctuyYa4/yMffpTHTvZ3mqGIcSgFRtoFQ==
oneadmin@fermi,
  TARGET=hdb ]
CPU=1
DISK=[
  CLONE=YES,
  CLONE_TARGET=SYSTEM,
  DATASTORE=default,
  DATASTORE_ID=1,
  DEV_PREFIX=hd,
  DISK_ID=0,
  DRIVER=qcow2,
  IMAGE=CentOS-6.4_x86_64 -Copy 2,
  IMAGE_ID=3,
  IMAGE_UNAME=oneadmin,
  LN_TARGET=NONE,
  READONLY=NO,
  SAVE=NO,
  SIZE=218,
  SOURCE=/var/lib/one//datastores/1/e2b9535f84eef5185c2554371e0e8727,
  TARGET=hda,
  TM_MAD=shared,
  TYPE=FILE ]
GRAPHICS=[
  LISTEN=0.0.0.0,
  PORT=5920,
  TYPE=VNC ]
MEMORY=2048
NIC=[
  BRIDGE=br0,
  IP=172.16.192.64,
  IP6_LINK=fe80::400:acff:fe10:c040,
  MAC=02:00:ac:10:c0:40,
  NETWORK=private,
  NETWORK_ID=0,
  NETWORK_UNAME=oneadmin,
  NIC_ID=0,
  VLAN=NO ]
OS=[
  ARCH=x86_64 ]
TEMPLATE_ID=5
VCPU=2
VMID=20



On Fri, Feb 14, 2014 at 1:47 AM, Javier Fontan jfon...@opennebula.orgwrote:

 Can you send us the VM definition (onevm show 20 -a). It looks like
 the network info is not in the context section.

 On Wed, Feb 12, 2014 at 10:21 PM, SysSolutions99
 syssolution...@gmail.com wrote:
  Hi,
 
  The netmask on my network is 255.255.0.0, yet the VMs get plumbed with
  255.255.255.0.
  I have tried setting up the netmask using the onevnet command but I am
 not
  able to.  Please help.
 
  here are the network details of the main host
 
  - # ifconfig br0
  br0   Link encap:Ethernet  HWaddr 00:25:90:E2:C5:98
inet addr:172.16.192.60  Bcast:172.16.255.255  Mask:255.255.0.0
inet6 addr: fe80::225:90ff:fee2:c598/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:10352600 errors:0 dropped:0 overruns:0 frame:0
TX packets:5714417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6383539896 (5.9 GiB)  TX bytes:8971371821 (8.3 GiB)
 
  # netstat -rn
  Kernel IP routing table
  Destination Gateway Genmask Flags   MSS Window  irtt
  Iface
  192.168.122.0   0.0.0.0 255.255.255.0   U 0 0  0
  virbr0
  169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0
 br0
  172.16.0.0  0.0.0.0 255.255.0.0 U 0 0  0
 br0
  0.0.0.0 172.16.192.10.0.0.0 UG0 0  0
 br0
 
 
  Here are the networking details of the VM:
 
  # ifconfig eth0
  eth0  Link encap:Ethernet  HWaddr 02:00:AC:10:C0:40
inet addr:172.16.192.64  Bcast:172.16.192.255
  Mask:255.255.255.0
inet6 addr: fe80::acff:fe10:c040/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:165669946 errors:0 dropped:1041 overruns:0 frame:0
TX packets:170954965 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27122115947 (25.2 GiB)  TX bytes:41114623111 (38.2
 GiB)
Interrupt:10
 
  # netstat -rn
  Kernel IP routing table
  Destination Gateway Genmask Flags   MSS Window  irtt
  Iface
  172.16.192.00.0.0.0 255.255.255.0   U 0 0  0
  eth0
  0.0.0.0 172.16.192.10.0.0.0 UG0 0  0
  eth0
 

Re: [one-users] Netmask setting

2014-02-14 Thread Javier Fontan
Can you send us the VM definition (onevm show 20 -a). It looks like
the network info is not in the context section.

On Wed, Feb 12, 2014 at 10:21 PM, SysSolutions99
syssolution...@gmail.com wrote:
 Hi,

 The netmask on my network is 255.255.0.0, yet the VMs get plumbed with
 255.255.255.0.
 I have tried setting up the netmask using the onevnet command but I am not
 able to.  Please help.

 here are the network details of the main host

 - # ifconfig br0
 br0   Link encap:Ethernet  HWaddr 00:25:90:E2:C5:98
   inet addr:172.16.192.60  Bcast:172.16.255.255  Mask:255.255.0.0
   inet6 addr: fe80::225:90ff:fee2:c598/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:10352600 errors:0 dropped:0 overruns:0 frame:0
   TX packets:5714417 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:6383539896 (5.9 GiB)  TX bytes:8971371821 (8.3 GiB)

 # netstat -rn
 Kernel IP routing table
 Destination Gateway Genmask Flags   MSS Window  irtt
 Iface
 192.168.122.0   0.0.0.0 255.255.255.0   U 0 0  0
 virbr0
 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 br0
 172.16.0.0  0.0.0.0 255.255.0.0 U 0 0  0 br0
 0.0.0.0 172.16.192.10.0.0.0 UG0 0  0 br0


 Here are the networking details of the VM:

 # ifconfig eth0
 eth0  Link encap:Ethernet  HWaddr 02:00:AC:10:C0:40
   inet addr:172.16.192.64  Bcast:172.16.192.255  Mask:255.255.255.0
   inet6 addr: fe80::acff:fe10:c040/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:165669946 errors:0 dropped:1041 overruns:0 frame:0
   TX packets:170954965 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:27122115947 (25.2 GiB)  TX bytes:41114623111 (38.2 GiB)
   Interrupt:10

 # netstat -rn
 Kernel IP routing table
 Destination Gateway Genmask Flags   MSS Window  irtt
 Iface
 172.16.192.00.0.0.0 255.255.255.0   U 0 0  0
 eth0
 0.0.0.0 172.16.192.10.0.0.0 UG0 0  0
 eth0



 Here is the onevnet definition -

 [oneadmin@fermi ~]$ onevnet show 0
 VIRTUAL NETWORK 0 INFORMATION
 ID : 0
 NAME   : private
 USER   : oneadmin
 GROUP  : oneadmin
 CLUSTER: -
 TYPE   : FIXED
 BRIDGE : br0
 VLAN   : No
 USED LEASES: 4

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

 VIRTUAL NETWORK TEMPLATE
 GATEWAY=172.16.192.1
 NETMASK=255.255.0.0

 USED LEASES
 LEASE=[ MAC=02:00:ac:10:c0:40, IP=172.16.192.64,
 IP6_LINK=fe80::400:acff:fe10:c040, USED=1, VID=20 ]
 LEASE=[ MAC=02:00:ac:10:c0:55, IP=172.16.192.85,
 IP6_LINK=fe80::400:acff:fe10:c055, USED=1, VID=13 ]
 LEASE=[ MAC=02:00:ac:10:c0:56, IP=172.16.192.86,
 IP6_LINK=fe80::400:acff:fe10:c056, USED=1, VID=9 ]
 LEASE=[ MAC=02:00:ac:10:c0:5c, IP=172.16.192.92,
 IP6_LINK=fe80::400:acff:fe10:c05c, USED=1, VID=19 ]

 FREE LEASES
 LEASE=[ MAC=02:00:ac:10:c0:57, IP=172.16.192.87,
 IP6_LINK=fe80::400:acff:fe10:c057, USED=0, VID=-1 ]
 LEASE=[ MAC=02:00:ac:10:c0:58, IP=172.16.192.88,
 IP6_LINK=fe80::400:acff:fe10:c058, USED=0, VID=-1 ]
 LEASE=[ MAC=02:00:ac:10:c0:59, IP=172.16.192.89,
 IP6_LINK=fe80::400:acff:fe10:c059, USED=0, VID=-1 ]
 LEASE=[ MAC=02:00:ac:10:c0:5a, IP=172.16.192.90,
 IP6_LINK=fe80::400:acff:fe10:c05a, USED=0, VID=-1 ]
 LEASE=[ MAC=02:00:ac:10:c0:5b, IP=172.16.192.91,
 IP6_LINK=fe80::400:acff:fe10:c05b, USED=0, VID=-1 ]
 LEASE=[ MAC=02:00:ac:10:c0:5d, IP=172.16.192.93,
 IP6_LINK=fe80::400:acff:fe10:c05d, USED=0, VID=-1 ]

 VIRTUAL MACHINES

 ID USER GROUPNAMESTAT UCPUUMEM HOST
 TIME
  9 oneadmin oneadmin testvm9 runn0512M test32d 20h47
 13 oneadmin oneadmin testvm1 runn0  2G test29d 02h33
 19 oneadmin oneadmin testvm2 runn0  2G test3d 17h13
 20 oneadmin oneadmin testvm3 runn1  2G test3d 15h54
 [oneadmin@fermi ~]$


 Regards.

 ___
 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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org