from wiki
This commit is contained in:
parent
658c5a437b
commit
0fab894714
1 changed files with 84 additions and 0 deletions
84
pages/RebootingVM0cryptech.md
Normal file
84
pages/RebootingVM0cryptech.md
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
# Rebooting vm0.cryptech.is
|
||||
|
||||
Let the IPMI out to the world just in case.
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# ipmitool lan set 1 defgw ipaddr 130.208.201.1
|
||||
Setting LAN Default Gateway IP to 130.208.201.1
|
||||
```
|
||||
|
||||
Know your VMs
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# virsh list --all
|
||||
Id Name State
|
||||
----------------------------------------------------
|
||||
2 bob.cryptech.is running
|
||||
3 wp.cryptech.is running
|
||||
4 bikeshed.cryptech.is running
|
||||
5 lager.cryptech.is running
|
||||
```
|
||||
|
||||
Shut the VMs down
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# virsh shutdown bikeshed.cryptech.is
|
||||
vm0.cryptech.is:/root# virsh shutdown wp.cryptech.is
|
||||
vm0.cryptech.is:/root# virsh shutdown lager.cryptech.is
|
||||
vm0.cryptech.is:/root# virsh shutdown bob.cryptech.is
|
||||
```
|
||||
|
||||
Be sure they are down
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# virsh list --all
|
||||
Id Name State
|
||||
----------------------------------------------------
|
||||
- bikeshed.cryptech.is shut off
|
||||
- bob.cryptech.is shut off
|
||||
- lager.cryptech.is shut off
|
||||
- wp.cryptech.is shut off
|
||||
```
|
||||
|
||||
If one or more do not shut down, you can do a
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# virsh destroy lager.cryptech.is
|
||||
```
|
||||
|
||||
instead of a shutdown. don't worry, destroy is not undefine.
|
||||
|
||||
Now you can
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# shutdown -r because I am mean and heartless
|
||||
```
|
||||
|
||||
vm0 is really slow rebooting; be patient. You can amuse yourself with the IPMI console.
|
||||
|
||||
Once it comes up, all the VMs should come back up because they have autostart set.
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# virsh list --all
|
||||
Id Name State
|
||||
----------------------------------------------------
|
||||
2 bob.cryptech.is running
|
||||
3 wp.cryptech.is running
|
||||
4 bikeshed.cryptech.is running
|
||||
5 lager.cryptech.is running
|
||||
```
|
||||
|
||||
If not you can
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# virsh start lager.cryptech.is
|
||||
```
|
||||
|
||||
remember to hide the ipmi as it is very vulnerable
|
||||
|
||||
```
|
||||
vm0.cryptech.is:/root# ipmitool lan set 1 defgw ipaddr 130.208.201.42
|
||||
Setting LAN Default Gateway IP to 130.208.201.42
|
||||
```
|
||||
|
||||
And bob's your uncle
|
||||
Loading…
Add table
Add a link
Reference in a new issue