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

Mark Kusch mark.kusch at silpion.de
Tue Nov 12 09:04:14 PST 2013


That did it!
Thanks a lot. 

Please provide such information more clearly in the docs below! ;)

# kraM

On 17:54 Tue 12 Nov, Javier Fontan wrote:
> Use IMAGE_UNAME instead of DISK_UNAME [1]. It only supports one "raw"
> parameter with an enter inside quotes:
> 
> onetemplate instantiate 0 \
>   --raw "NIC=[MODEL=virtio,IP=192.168.198.45,NETWORK_UNAME=oneadmin,NETWORK=net-mms]
> \
> DISK=[IMAGE_UNAME=oneadmin,IMAGE=disk-mms,CACHE=unsafe]"
> 
> Cheers
> 
> [1] http://opennebula.org/documentation:rel4.2:vm_guide#defining_a_vm_in_3_steps
> 
> On Tue, Nov 12, 2013 at 5:33 PM, Mark Kusch <mark.kusch at silpion.de> wrote:
> > 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
> 
> 
> 
> -- 
> 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/e6ab2e2b/attachment-0002.pgp>


More information about the Users mailing list