Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have Ubuntu 12.04 Virtual Machine running in cloud and the only way I can connect to it, is via SSH using Putty. If I want to boot Ubuntu in recovery mode, is it possible to create some kind of script and push over SSH to reboot Ubuntu Virtual Machine in recovery mode?

share|improve this question
    
If you only have access to the VM via ssh, you will not be able to access it once it's in recovery mode. Is this what you want? –  ephsmith Jul 5 '12 at 22:49
    
I think you are right. looks like there is no solution or trick to get the way I want. –  AvkashChauhan Jul 5 '12 at 23:10
    
I found this link but it still needed machine access to start ssh first before connecting it: askubuntu.com/questions/22013/… –  AvkashChauhan Jul 5 '12 at 23:24
    
Out of curiosity, why do you think you need to be booted into recovery mode? Couldn't you just adjust the system so it boots a livecd, or mount the virtual disk from another instance? –  Zoredache Jul 6 '12 at 0:07
2  
You can not do that. You need a console provided by your provider. If ssh is started on the system, it means the system already booted. –  abdelsaid Jul 14 '13 at 13:53

1 Answer 1

try shutdown now

This will set the system into maintenance state/single-user mode. Unfortunately, this might also sever your connection.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.