Is there any way of executing a console command on the host machine when a specific VZ container is started (and/or stopped)? Something like in the /etc/network/interfaces where you can specify an on up and on down command.
Execute command on VZ container start and stop
204 views Asked by Jers At
1
There are 1 answers
Related Questions in VIRTUAL-MACHINE
- My server TCP doesn't receive messages from the client in C
- How do I fix VERR_INVALID_HANDLE (0X80004005) Error in VirtualBox?
- Why when I want to open a folder from Visual Studio Code does the screen go crazy?
- net.show command only shows my own ip not other devices
- Azure VM RDP doesn't require 'Virtual Machine Admin/User Login' roles despite what documentation says
- How to create a VM with proxmox API?
- Broken Windows Server, after crash of VM - CBS_E_SOURCE_MISSING
- Trouble Connecting USB Wireless Adapter via Bridged Adapter in VirtualBox for Kali Linux
- Using Maven to feed minikube on a VM
- New to llvm - trying to make the files but getting collect2: fatal error
- virStorageFileBackendFileRead Failed to open file '/dev/...': Permission denied
- How to run kubernetes on a virtual windows server 2019?
- Is it possible to connect to a Google Cloud VM using IPv6?
- Provide access to Azure Storage Account for all VMs in resource group
- In a Managed Application Azure Marketplace deployment template, if one of the resources is a VM, how can the vendor access the vm?
Related Questions in OPENVZ
- Where is the code of subroutine in the VZDump package?
- Unable to deploy portainer agent to docker swarm - /proc/sys/net/bridge/bridge-nf-call-iptables: permission denied
- Do Delphi Linux apps on Ubuntu servers have a minimum RAM requirement for console-only applications?
- LXC - Failed to create macvlan interface - Operation not permitted
- Limit network bandwith per container with OpenVZ
- Boost cannot find headers for UUID on CentOS
- .NET Core Tasks not working on OpenVZ virtual server
- JBoss WildFly 15.0.1 Final not starting on ubuntu 14.04 vServer with 2 GB: insufficient memory for JRE
- PhP shell_exec output convert to variable, and variable to image
- Convert openVZ container to VMware
- OPenVZ: IS it safe to remove config files of destroyed containers?
- installing OpenVZ on CentOS 6
- Virtualise and duplicate Qt application 20 times
- Bash commands putting out extra information which results into issues with scripts
- Gitlab exceeds numtcpsock beancounter limit (OpenVZ)
Related Questions in PROXMOX
- How do I access data from an lvm volume on a drive?
- How to create a VM with proxmox API?
- Proxmox Web Gui buttons greyed out
- Proxmox not reachable by SSH and web GUI
- Considering Proxmox to replace individual legacy PCs and LAN servers
- Proxmox all containers are grey
- Using noVNC client to connect to proxmox
- Apache VirtualHost DocumentRoot to another server
- Access ".local" domain name from Docker conatiner without having Avahi installed inside
- How to create a NAS for the office using proxmox and docker container
- I have this error "dial tcp <My IP>:443: connect: connection refused", how can I solve it?
- get next free vnc port via proxmox api
- Proxmox Wget not working stuck on HTTP request sent, awaiting response... / after connection success
- NFS on ProxMox linked clones
- proxmox lxc UID/GID mapping
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Yes, You can setup the cron on your VPS to start the network service. You will have to setup the cron @reboot on your VPS.