avanzzzi / hypy Goto Github PK
View Code? Open in Web Editor NEWMultiplatform Hyper-V Manager using Python and freeRDP
License: GNU General Public License v3.0
Multiplatform Hyper-V Manager using Python and freeRDP
License: GNU General Public License v3.0
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.
Whenever there are more than one snapshot with the same name, an exception is raised on "rm" or "restore" actions passing the name as it's identity.
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?
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
Show ip address in machine list
We need unit tests ASAP.
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.
The /cert-ignore of xfreerdp command has been deprecated.
The new flag is /cert:ignore.
Linux still has the old flag active but mac version already removed it.
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.
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.
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.
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.
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]
The output of the freerdp command is being ignored so hypy just exists without any error and the virtual machine does not show.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.