proxmox version 7.4.1
execute command:
under /usr/share/lxc/hooks/
test file content below :
finally when exec command :
terminal has no content ,and the start job never stopped !
how can i use the script ?
execute command:
echo "lxc.hook.start-host = /usr/share/lxc/hooks/test" >/usr/share/lxc/config/common.conf.d/03-test.conf
under /usr/share/lxc/hooks/
touch test
test file content below :
Code:
#!/bin/bash
vmid=$1
output=$(lxc-info -n "$vmid" -iH )
echo "$output "
echo " testing \n $vmid \n host script ..."
exit 0
chmod +x test
finally when exec command :
pct start 101 --debug
terminal has no content ,and the start job never stopped !
how can i use the script ?
Last edited: