Here's a simple example:
razor
`
In the child component `Child1`, you can then define a CascadingParameter:
razor
`
And in `Child2`, you can use it like so:
razor
@CascadingValue
`
This way, the `Child2` component can access the value of `Parameter` passed from its ancestor without needing to explicitly pass it through each intermediate child.
How can I restart proxmox vm everytime it shuts down
To automatically restart a Proxmox VM every time it shuts down, you can use the `qm set` command with the `-onboot 1` option. This will ensure that your virtual machine (VM) is started automatically when Proxmox boots.
Here's how you can do it:
bash
qm set
`
Replace `
### Example:
If you have a VM with an ID of `100`, you would run:
bash
qm set 100 -onboot 1
`
This command tells Proxmox to start VM `100` every time it boots.
### Additional Options
- **Autostart on Host Boot**: The `-onboot 1` option ensures that the VM starts automatically when Proxmox itself boots.
### Important Notes
- Ensure your VM has a valid boot disk and BIOS settings configured correctly to allow it to start up properly.
By following these steps, you can ensure that your Proxmox VM is automatically restarted every time the host machine shuts down.
Login to Continue, We will bring you back to this content 0