[one-users] Specify IP:MAC from command line

Mark Kusch mark.kusch at silpion.de
Tue Nov 12 08:33:13 PST 2013


Hi,

onetemplate instantiate 0 \
  --raw "NIC=[MODEL=virtio,IP=192.168.198.45,NETWORK_UNAME=oneadmin,NETWORK=net-mms]" \
  --raw "DISK=[DISK_UNAME=oneadmin,IMAGE=disk-mms,CACHE=unsafe]"

results in

[TemplateInstantiate] Error allocating a new virtual machine. User 2 does not own a network with name: net-mms . Set NETWORK_UNAME or NETWORK_UID of owner in NIC.

Any further hints?

Is that supported to provide multiple --raw arguments? If that's not
the case, what would be the syntax for the command above?

Thanks a lot!,

# kraM

On 17:33 Tue 05 Nov, Javier Fontan wrote:
> In case you only have one NIC you can use:
> 
> $ onetemplate instantiate 0 --raw
> "NIC=[IP=10.0.0.1,MAC=00:00:00:00:00:01,NETWORK=my_network]"
> 
> On Mon, Nov 4, 2013 at 4:52 PM, Mark Kusch <mark.kusch at silpion.de> wrote:
> > |16:46:05| < kraM> Hi, what do I need to tell onetemplate instantiate when I want to force a MAC:IP pair from
> >                    virtual network on the command line?
> >
> > # kraM
> >
> > --
> > Mark Kusch
> > Silpion IT-Solutions GmbH: Systems Engineer
> >
> > Tel.: +49 (40) 399976-51
> > Fax.: +49 (40) 399976-40
> > Mail: mark.kusch at 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 at 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

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

Tel.: +49 (40) 399976-50
Fax.: +49 (40) 399976-40
Mail: mark.kusch at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131112/e56b37bf/attachment-0002.pgp>


More information about the Users mailing list