wiki:RebootingVM0cryptech

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

Last modified 4 years ago Last modified on Mar 8, 2016, 3:53:19 AM