Coder Social home page Coder Social logo

thushan / proxmox-vm-to-ct Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 3.0 1.39 MB

Convert your Promox VM to a Container easily with docker support and some extra sweetness for DietPi VMs (zero calories tho!)

License: MIT License

Shell 100.00%
containers debian dietpi proxmox shell-script terminal virtualisation virtualization

proxmox-vm-to-ct's People

Contributors

jwgn avatar thushan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

proxmox-vm-to-ct's Issues

Pass in custom target configuration

Currently, only creating a default configuration is supported and no switches for target configurations are implemented.

Considering either individual options for target CT, eg:

  • --target-cpu 2
  • --target-ram 2048
  • --target-hdd 20g

etc or, pass in a .env style configuration:

  • --target-config <env file>

Which would look like:

target_cpu=2
target_ram=2048
target_network=name=eth0,ip=dhcp,ip6=auto,bridge=vmbr0,firewall=0

This would make it easier to run multiple configurations and store them somewhere.

Reuse created image instead of recreating

Currently we recreate the VM image each time but save the image for later interrogation.

Reuse that image by a switch like --source-image <path to tar.gz> which negates the --source.

Or potentially accept a *.tar.gz file in the same --source parameter and determine if it's a file, if not try it as a VM.

Failed to Create CT

unable to create CT 101 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - -z --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' -C /var/lib/lxc/101/rootfs --skip-old-files --anchored --exclude './dev/'' failed: exit code 2

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.