Re: [one-users] 802.1q tagging

2010-12-20 Thread Rangababu Chakravarthula
I was referring to creating vlan devices with vconfig. So you create
multiple vlan devices on the host and associate each with separate bridge.
However the switch that is used to connect multiple hosts should not add its
own VLAN tag. It must be capable of forwarding VLAN tagged traffic. This is
only addressing separation of networks and intra-VM communication within the
Cloud.

I think openvswitch does the same thing and more. Atleast what I gather from
here. http://openvswitch.org/?page_id=146

In case when you want a VM in the private cloud to be part of your
organization VLAN then the packet leaving your VM should carry the VLAN tag
configured in the switch. Obviously all the VM's using that bridge are part
of one network.

On Sun, Dec 19, 2010 at 11:05 AM, Shi Jin jinzish...@gmail.com wrote:

 I am curious about the same thing.
 Is it possible to setup libvirt to have different VMs on the same phyiscal
 NIC on the same physical machine to run under different VLAN? My
 understanding is that VLAN is setup on the switch for each physical port.
 Thanks.

 Shi


 On Sun, Dec 19, 2010 at 5:43 AM, Gnep Zhao jass.z...@gmail.com wrote:


 Hi,

 I don't really understant:

 1) create VLAN on the host --- I suppose the vlan is configured on the
 switch. Do you mean the host-wide vlan?

 2) link VLAN to an interface on the host

 And  what's the difference between your solution (802.1q)  and
 openvswitch's?

 Gnep


 On Sun, Dec 19, 2010 at 6:31 AM, Rangababu Chakravarthula 
 rb...@hexagrid.com wrote:

 John
 Yes you can use 802.1q VLAN tagging to your VM interface.

 The following steps will help you do that.
 1)  create VLAN on the host
 2)  link VLAN to an interface on the host
 3) create a bridge on the host
 4) associate interface to the bridge
 5) Define the following in VM template

 NIC=[
   BRIDGE=bridge name given above,
   MAC=00:e5:8d:9f:c1:ba
]

 Hope this helps.
 Ranga

 On Fri, Dec 17, 2010 at 7:45 PM, John Dewey j...@dewey.ws wrote:

 I was curious if anyone has used 802.1q tagging with their VMs.  It
 looks as though libvirt supports vlan tagging,
 but OpenNebula at this time does not generate an appropriate deployment
 stanza.

 I was hoping I could use network contextualization as a way to configure
 the guest's 802.1q tags.
 I guess I don't understand vlan tagging when dom0 bridging is in the
 mix.

 Does anyone have anymore information on this topic, I would love to talk
 with you a bit more offline.

 Thanks -
 John

 ___
 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




 --
 =
  *Often wrong, Never in doubt*
 =


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




 --
 Shi Jin, Ph.D.


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


Re: [one-users] Difficulty in accessing the virtual instance

2010-12-20 Thread Prakhar Srivastava
Hi,
I tried to use the contextualization in the template file. But everytime I
create the instance, it fails at boot time saying tap device could not be
connected. I belive this is the problem with xen. Is there any way I can
change the driver of the iso file created by the opennebula when the
instance is created. Following is the instance log
-
Mon Dec 20 15:23:14 2010 [DiM][I]: New VM state is ACTIVE.
Mon Dec 20 15:23:14 2010 [LCM][I]: New VM state is PROLOG.
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh:
prakhar-desktop:/var/lib/one//images/32e8224dac203aa2874167c7b180f666c1c77da2
192.168.145.71:/var/lib/one//48/images/disk.0
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh: DST:
/var/lib/one//48/images/disk.0
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh: Creating directory
/var/lib/one//48/images
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh: Executed /usr/bin/ssh
192.168.145.71 mkdir -p /var/lib/one//48/images.
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh: Cloning
prakhar-desktop:/var/lib/one//images/32e8224dac203aa2874167c7b180f666c1c77da2
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh: Executed /usr/bin/scp
prakhar-desktop:/var/lib/one//images/32e8224dac203aa2874167c7b180f666c1c77da2
192.168.145.71:/var/lib/one//48/images/disk.0.
Mon Dec 20 15:24:46 2010 [TM][I]: tm_clone.sh: Executed /usr/bin/ssh
192.168.145.71 chmod a+rw /var/lib/one//48/images/disk.0.
Mon Dec 20 15:24:47 2010 [TM][I]: tm_mkswap.sh: Creating 1024Mb image in
/var/lib/one//48/images/disk.1
Mon Dec 20 15:24:47 2010 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.71 mkdir -p /var/lib/one//48/images.
Mon Dec 20 15:24:47 2010 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.71 /bin/dd if=/dev/zero of=/var/lib/one//48/images/disk.1 bs=1
count=1 seek=1024M.
Mon Dec 20 15:24:47 2010 [TM][I]: tm_mkswap.sh: Initializing swap space
Mon Dec 20 15:24:47 2010 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.71 /sbin/mkswap /var/lib/one//48/images/disk.1.
Mon Dec 20 15:24:47 2010 [TM][I]: tm_mkswap.sh: Executed /usr/bin/ssh
192.168.145.71 chmod a+w /var/lib/one//48/images/disk.1.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed mkdir -p
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/isofiles.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed cp -R
/var/lib/one/48/context.sh
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/isofiles.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed cp -R
/home/prakhar/cloud/context/init.sh
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/isofiles.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed cp -R
/home/prakhar/cloud/context/init.sh
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/isofiles.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed cp -R
/root/.ssh/id_dsa.pub
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/isofiles.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed /usr/bin/mkisofs
-o /var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/disk.2 -J -R
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/isofiles.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed /usr/bin/scp
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5/disk.2 192.168.145.71:
/var/lib/one//48/images/disk.2.
Mon Dec 20 15:24:48 2010 [TM][I]: tm_context.sh: Executed rm -rf
/var/lib/one/b18484d61cd76a74c80d8576ecc7a1d5.
Mon Dec 20 15:24:48 2010 [LCM][I]: New VM state is BOOT
Mon Dec 20 15:24:48 2010 [VMM][I]: Generating deployment file:
/var/lib/one/48/deployment.0
Mon Dec 20 15:26:36 2010 [VMM][I]: Command execution fail: 'if [ -x
/var/tmp/one/vmm/xen/deploy ]; then /var/tmp/one/vmm/xen/deploy
/var/lib/one//48/images/deployment.0; else  exit
42; fi'
Mon Dec 20 15:26:36 2010 [VMM][I]: STDERR follows.
Mon Dec 20 15:26:36 2010 [VMM][I]: Error: Device 51744 (tap) could not be
connected. Hotplug scripts not working.
Mon Dec 20 15:26:36 2010 [VMM][I]: ExitCode: 1
Mon Dec 20 15:26:36 2010 [VMM][E]: Error deploying virtual machine: Error:
Device 51744 (tap) could not be connected. Hotplug scripts not working.
Mon Dec 20 15:26:36 2010 [DiM][I]: New VM state is FAILED
Mon Dec 20 15:26:37 2010 [TM][W]: Ignored: LOG - 48 tm_delete.sh: Deleting
/var/lib/one//48/images

---
The deployment file is created as follows (Managed to copy it before it was
deleted)

name = 'one-48'
#O CPU_CREDITS = 256
memory  = '256'
vcpus  = '1'
kernel = '/home/cloud/vm2/vmlinuz-2.6.27.21-0.1-xen'
ramdisk = '/home/cloud/vm2/initrd-2.6.27.21-0.1-xen'
root = '/dev/xvda'
extra = 'xencons=tty'
disk = [
'file:/var/lib/one//48/images/disk.0,xvda,w',
'file:/var/lib/one//48/images/disk.1,xvdd,w',
'tap:aio:/var/lib/one//48/images/disk.2,xvdc,r',
]

Re: [one-users] 802.1q tagging

2010-12-20 Thread John Dewey
Thank you all for the information.  I was having difficulties figuring out
how to handle vlan tagging.
I realized the dom0 must have a tagged interface connected to a seperate
bridge (as Rangababu described).

Since OpenNebula allows you to specify the bridge in the vnet definition it
all just works properly (given
the bridge is setup on all of the onehosts).

Our guest OSes have a pool of addresses from many disperse /24s.  Using vlan
tagging, allows us to use the
same IP address anywhere in the datacenter (no need to map which /24 must
come up on a specific dom0).
Also, useful when migrating VMs as well.

John

On Mon, Dec 20, 2010 at 12:04 AM, Rangababu Chakravarthula 
rb...@hexagrid.com wrote:

 I was referring to creating vlan devices with vconfig. So you create
 multiple vlan devices on the host and associate each with separate bridge.
 However the switch that is used to connect multiple hosts should not add its
 own VLAN tag. It must be capable of forwarding VLAN tagged traffic. This is
 only addressing separation of networks and intra-VM communication within the
 Cloud.

 I think openvswitch does the same thing and more. Atleast what I gather
 from here. http://openvswitch.org/?page_id=146

 In case when you want a VM in the private cloud to be part of your
 organization VLAN then the packet leaving your VM should carry the VLAN tag
 configured in the switch. Obviously all the VM's using that bridge are part
 of one network.


 On Sun, Dec 19, 2010 at 11:05 AM, Shi Jin jinzish...@gmail.com wrote:

 I am curious about the same thing.
 Is it possible to setup libvirt to have different VMs on the same phyiscal
 NIC on the same physical machine to run under different VLAN? My
 understanding is that VLAN is setup on the switch for each physical port.
 Thanks.

 Shi


 On Sun, Dec 19, 2010 at 5:43 AM, Gnep Zhao jass.z...@gmail.com wrote:


 Hi,

 I don't really understant:

 1) create VLAN on the host --- I suppose the vlan is configured on the
 switch. Do you mean the host-wide vlan?

 2) link VLAN to an interface on the host

 And  what's the difference between your solution (802.1q)  and
 openvswitch's?

 Gnep


 On Sun, Dec 19, 2010 at 6:31 AM, Rangababu Chakravarthula 
 rb...@hexagrid.com wrote:

 John
 Yes you can use 802.1q VLAN tagging to your VM interface.

 The following steps will help you do that.
 1)  create VLAN on the host
 2)  link VLAN to an interface on the host
 3) create a bridge on the host
 4) associate interface to the bridge
 5) Define the following in VM template

 NIC=[
   BRIDGE=bridge name given above,
   MAC=00:e5:8d:9f:c1:ba
]

 Hope this helps.
 Ranga

 On Fri, Dec 17, 2010 at 7:45 PM, John Dewey j...@dewey.ws wrote:

 I was curious if anyone has used 802.1q tagging with their VMs.  It
 looks as though libvirt supports vlan tagging,
 but OpenNebula at this time does not generate an appropriate deployment
 stanza.

 I was hoping I could use network contextualization as a way to
 configure the guest's 802.1q tags.
 I guess I don't understand vlan tagging when dom0 bridging is in the
 mix.

 Does anyone have anymore information on this topic, I would love to
 talk with you a bit more offline.

 Thanks -
 John

 ___
 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




 --
 =
  *Often wrong, Never in doubt*
 =


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




 --
 Shi Jin, Ph.D.



 ___
 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


[one-users] multipart post

2010-12-20 Thread John Dewey
I have been working on a portal (which I will submit back to the
eco-system) at some point.
The portal interacts with OpenNebula via OCCI.  Since the portal runs
on a different system
than the controller, I have written a very basic OCCI client.

I was looking at the following documentation, and a bit confused by
it.  Has anyone had any luck doing
what is described below in curl?

Looking at the OCCI server, it looks as though it expects a
multipart-post with the image file?

http://www.opennebula.org/documentation:rel2.2:occiug

--
Storage

Assuming we have a working Gentoo installation residing in an .img
file, we can upload it into the OpenNebula OCCIcloud using the
following OCCI representation of the image:

STORAGE
NAMEUbuntu Desktop/NAME
DESCRIPTIONUbuntu 10.04 desktop for students./DESCRIPTION
TYPEOS/TYPE
URLfile:///images/ubuntu/jaunty.img/URL
/STORAGE

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