Giter Club home page Giter Club logo

hypy's People

Contributors

avanzzzi avatar codacy-badger avatar dunossauro 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  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  avatar  avatar  avatar  avatar  avatar

hypy's Issues

Automatic cache file creation by host

Remove the static cache file from config and create a cache file in the OS temp storage so we can have different cache files, one for each host used.

Where is hypy.py?

In the README.md file it's said that hypy.py file is the handler for any interfacing with Hyper-V, but I couldn't find it.

Could you help me, please?

Virtual network switch management in hypy

Create a group of commands to manage virtual network switches.
The vm will be specified with index or name.

hypy switch ls
hypy switches (alias to command above)
hypy switch set 10 my_virtual_switch
hypy switch get 10

Group checkpoint management commands

Create a subcommand that group the following commands: create, restore and snaps.

The commands would look like this:

hypy snap ls 10
hypy snap create 10 my_snap_name
hypy snap restore 10 my_snap_name

The old commands can still work as aliases for the commands mentioned above.

Remove unexistent virtual machine entries from cache

If a virtual machine is removed from the hyper-v server, the entry will not disappear since the cache only updates or creates entries.

Removing the cache file and creating it again with hypy ls will do, but, operating directly with the cache file must be avoided.

Error to install on Python3.7

Comand: pip install hypy

Traceback:

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_dmgc9ed/hypy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_dmgc9ed/hypy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /tmp/pip-install-_dmgc9ed/hypy/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-_dmgc9ed/hypy/setup.py", line 8, in <module>
        execfile('hypy/_version.py', _version)
    NameError: name 'execfile' is not defined
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Find out if there is a user connected to the vm

Before sending commands, verify if there is already a user connected to the vm and prompt the user to proceed or cancel.

This can be accomplished by running a custom powershell script in the server since it keeps track of all logged users.

There must be created a option to skip the prompt message.

Override checkpoint already present with a flag

hypy uses the checkpoint name to find out which one to restore.

If there are two checkpoints with the same name, the powershell will emit a error message trying to restore it.

It can be solved, only for those exclusevely using hypy, by creating a flag in snap create command to force overwriting already present checkpoints with the same name.

The default behavior will be to emit a error when the checkpoint is present.

Allow transfer files to virtual machines

Create a subcommand that allows copying files between client machine and remote virtual machine.
The virtual machine can be specified by index or name.

This can be done using hyper-v console to identify the vm ip address and send or getting the files direct with winrm or ssh.

The command would look like this:

# by index
hypy cp put 10 local_file remote_file 
hypy cp get 10 remote_file [local_file]

# by name
hypy cp put -n MYVM local_file remote_file 
hypy cp get -n MYVM remote_file [local_file]

Fix invalid cache data

Network errors while writing cache data can cause invalid cache leaving hypy in invalid state for subsequent commands.

The idea is to validate cache data and rewrite it as needed.

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.