Script before VM startup....

diaolin

Active Member
Jul 7, 2008
220
0
36
Trentino Italy
I know that the VMID.conf file allows to add an
args:

argument that is passed to kvm
Is there a possiblity to launch a script before launching vm?
Example:

Mkdir /etc/qemu-server/before

if a script like VMID.sh exists in that dir it shoud be before at startup
of the VM...

The problem because i need to dinamically add an USB port...

In the wait time take a look at the sources...
Tx, Diaolin
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
16,666
359
103
Austria
www.proxmox.com
There was a plan to add some kind of hooks skripts in V2.0. But so far nobody contributed that code ;-)
 

diaolin

Active Member
Jul 7, 2008
220
0
36
Trentino Italy
ok, next week i'll write this hooks for 1.9...
and then...

i wrote the hooks for args:
and i hope it's possible to add some hooks like this quickly

when ready i'll post here the code
Ciao
 

diaolin

Active Member
Jul 7, 2008
220
0
36
Trentino Italy
Ok. i'll write even for 2.0 but for now i'm using the 1.9 version and i'll write it even for it.

Another problem is the USB support of kvm 0.15.... it does not work
pass'through i intend

but this is another thread
Diaolin
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!