Giter Site home page Giter Site logo

How to use bridged network? about kcli HOT 1 CLOSED

karmab avatar karmab commented on August 23, 2024
How to use bridged network?

from kcli.

Comments (1)

karmab avatar karmab commented on August 23, 2024

hello,
when you dont specify a network, kcli defaults to default but you can specify your own settings.

so you can either define a profile or a plan and create a file for them.

  • profiles are used for creating vms with similar settings
  • plans are used to create several vms at once ( and additional objects like networks, containers,...)

in both cases, a basic yaml could look like this ( note how i indicate your bridged network, but it works the same for any nat network you have or create with kcli network of within a plan)

centos:
 template: CentOS-7-x86_64-GenericCloud.qcow2
 numcpus: 2
 disks:
  - size: 10
 nets:
  - name: enp3s0

put this in ~/.kcli/profiles.yml and you can then define vms with

kcli vm -p centos your_vm

or you can save this file anywhere and use this as a plan with

kcli plan -f your_file.yml

( the vm would be called centos in this case, but you can adjust the name in the file or run

kcli plan -f your_file.yml -P name=your_vm

to be complete, you can also treat this file as a profile (since the syntax for profiles and plans is similar), so you can run

kcli vm -p your_file.xml your_vm

from kcli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.