[one-users] KVM default NAT networking and port forwarding

2013-11-02 Thread Andy Coates
Hey,

I have a very basic setup that requires no ON configured networking, just
the default NAT that KVM provides out of the box.

I'm not sure how to properly define an interface to achieve this.  I've
got it working via the RAW section by adding:

interface type='network'source network='default'/ model
type='virtio'//interface

This works and it provides the default NAT interface, but is that how it
should be done?  I ask because the second issue I have is that I cannot
port forward from the host.  According to the KVM docs, using these
parameters (added via qemu:commandline option) should forward TCP port 3389:

-net user,hostfwd=tcp::3389-:3389

It doesn't work though, and I have a feeling this is because of how I
defined the network/interface above.  The host does start to listen on port
3389 when KVM starts, I can see that through netstat/lsof - it just doesn't
seem to connect through to the VM.

Any ideas?

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


[one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-11-02 Thread yuchang_subscribe
Hi,

The problem is still bothering me.
Now I run this router with opennebula,and the following configuration:
router-template.one:
NAME   = router
CPU= 0.1
MEMORY = 256
DISK   = [ IMAGE = router ]
NIC= [ NETWORK = cloud ]
FEATURES=[ acpi=no ]
GRAPHICS = [
TYPE= vnc,
LISTEN  = 0.0.0.0
]
CONTEXT= [
hostname = router,
ip_public = 172.16.100.210,
files = /var/lib/one/init.sh /var/lib/one/.ssh/id_dsa.pub,
target= hdb,
root_pubkey = id_dsa.pub
]
init.sh:
#!/usr/bin/env bash
if [ -n $HOSTNAME ];then
   echo $HOSTNAME /etc/HOSTNAME
   hostname $HOSTNAME
fi
if [ -n $IP_PUBLIC ];then
   ifconfig eth0 $IP_PUBLIC
fi
echo context initing...
if [ -f /mnt/context/$ROOT_PUBKEY ];then
cat /mnt/context/$ROOT_PUBKEY /root/.ssh/authorized_keys
fi

But ttylinux-template works.In ttylinux-template.one,the context's target was 
modified to hdc.I saw the log context initing... from ttylinux's console.

Where was my configuration wrong?

Best Regards
yuchang
2013-11-02



yuchang_subscribe



发件人:yuchangw yuchang_subscr...@126.com
发送时间:2013-10-31 16:43
主题:Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.
收件人:Valentin Budvalentin@gmail.com
抄送:openNebulaGroupusers@lists.opennebula.org

Sorry,I didn't setup ROOT_PUBKEY,because I tried to run this router without 
opennebula environment.
So I should try this Router under opennebula next  time.

thank you .






At 2013-10-31 16:36:11,Valentin Bud valentin@gmail.com wrote:

Hello Yuchang,


Have you set up ROOT_PUBKEY or ROOT_PASSWORD in the CONTEXT of the Virtual 
Router VMs' template, as stated in the Virtual Router documentation [1] in 
Configuration section?


[1]: http://opennebula.org/documentation:rel4.2:router


Good Will,



On Thu, Oct 31, 2013 at 3:38 AM, yuchangw yuchang_subscr...@126.com wrote:

 Hi,

I download OpenNebual Virtual Router 4.2 which is apline linux based.When I 
start the virutal machine with libvirt's virtual machine manager,
I cannot login without password,the account used is root.

So I try  Virtual Router 3.8(root,password:router).It works ok.

Anyone help me?

thanks yuchang




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







-- 

Valentin Bud
http://databus.pro | valen...@databus.pro___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] my DevOps install notes for openSUSE 12.3 on Github --- (WAS: First post - Error on New install of Open Nebula on OpenSuSE 12.3)

2013-11-02 Thread Ruben S. Montero
Hi Mark,

Yes, we have some issues with the paths used by every distro. We are
working to get the packages right, so it is no need to update the paths...

Thanks again for the feedback


On Thu, Oct 31, 2013 at 10:18 PM, Mark Biggers mbigg...@ine.com wrote:

 Hello Ruben:

 ** Yow, I should have seen this one!  ( this .conf had OS[ KERNEL =
 /vmlinuz ] )

   cd /etc/one/vmm_exec
   diff -ub  vmm_exec_kvm.conf.dist vmm_exec_kvm.conf | dpaste

   SEE  http://dpaste.de/Q4HI 


 ** Had a failure to VM instantiate (onevm delete --recreate), due to
 ebtables path:

   # Note: hard-coded paths in this Ruby script, to Linux networking
 tools...

   (from grep) /var/lib/one/remotes/vnm/OpenNebulaNetwork.rb

  31 -
  32 - COMMANDS = {
  33 :   :ebtables = sudo /sbin/ebtables,
  34 +   :iptables = sudo /sbin/iptables,
  35 +   :brctl= sudo /sbin/brctl,


   !! WORKAROUND
   cd /usr/sbin; for cmd in ebtables iptables; do sudo ln -s /usr/sbin/$cmd
 /sbin/; done


 ** My first VM is instantiated, and running.  Now to fix the missing
 VNC-console proxy, for my VM (as seen from Sunstone UI)

 thank you,
 mark

 Mark Biggers http://www.ine.com

 
 From: Ruben S. Montero [rsmont...@opennebula.org]
 Sent: Thursday, October 31, 2013 3:07 PM
 To: Mark Biggers
 Cc: users@lists.opennebula.org
 Subject: Re: [one-users] my DevOps install notes for openSUSE 12.3 on
 Github --- (WAS: First post - Error on New install of Open Nebula on
 OpenSuSE 12.3)

 Hi Mark

 It seems that your domain is trying to boot from /vmlinuz that cannot be
 found in the host. This primitive is not in your original template as shown
 in the template of VM 13 (there is no OSKERNEL).

 So this is most probably coming from the driver configuration file. Could
 you check (and remove) /etc/vmm_exec/vmm_exec_kvm.conf  for a line setting
 KERNEL to /vmlinuz?

 Cheers

 Ruben


 On Thu, Oct 31, 2013 at 5:57 PM, Mark Biggers mbigg...@ine.commailto:
 mbigg...@ine.com wrote:
 Thanks Ruben, I appreciate the help.   Here's what I have (see the
 dpaste.dehttp://dpaste.de links).  It's consistent, regardless of any
 VM image that is  instantiated ...


   cat /var/log/13.log | dpaste
   # http://dpaste.de/5yts

   oneadmin@sealion:~  onevm show 13 --all -x | dpaste
   http://dpaste.de/y1XS

   cat /var/log/libvirt/qemu/one-13.log | dpaste
   http://dpaste.de/Zpr5

 mark

 
 From: Ruben S. Montero [rsmont...@opennebula.orgmailto:
 rsmont...@opennebula.org]
 Sent: Thursday, October 31, 2013 12:30 PM
 To: Mark Biggers
 Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org
 Subject: Re: [one-users] my DevOps install notes for openSUSE 12.3 on
 Github --- (WAS: First post - Error on New install of Open Nebula on
 OpenSuSE 12.3)

 Hi Mike

 Thank you very much for sharing, great doc!

 Could we get more details about still does not work for me (VMs don't
 instantiate)? So we can clear any issue and complete the document?


 Thanks

 Ruben


 On Thu, Oct 31, 2013 at 4:36 PM, Mark Biggers mbigg...@ine.commailto:
 mbigg...@ine.commailto:mbigg...@ine.commailto:mbigg...@ine.com
 wrote:
 Although my attempt at configuration of ONE 4.2 on openSUSE 12.3 still
 does not work for me (VMs don't instantiate), here's my contribution, in
 a restructuredText document.

 https://gist.github.com/biggers/7251574

 Perhaps this will help others, trying to do what I am attempting to do --
 just bring up ONE 4.2 for a Developer/DevOps Cloud + Host node.   In my
 case, I must  write some Cloud automation code in Python, against the OCCI
 APIs.

 Any changes or comments appreciated!   Thank you.

 mark


 Mark Biggers
 INE, Inc
 2530 Meridian Parkway, Suite 2061
 Durham, NC 27713
 Internets: Freenode.net IRC:  markb1, #trizpug, #trilug (now #opennebula)
 ..Google chat:  mbiggers.01 ATT gmail.com
 http://gmail.com
 ___
 Users mailing list
 Users@lists.opennebula.orgmailto:Users@lists.opennebula.orgmailto:
 Users@lists.opennebula.orgmailto:Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


 --
 --
 Ruben S. Montero, PhD
 Project co-Lead and Chief Architect
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.orghttp://www.OpenNebula.org | rsmont...@opennebula.org
 mailto:rsmont...@opennebula.org | @OpenNebula




-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org