Re: choosing desired os to boot over ssh

2012-02-11 Thread Tapas Mishra
I forgot to mention in previous message I do not want to be manually
editing the grub.cfg file each time if I have to frequently switch between
different OS.

On Sat, Feb 11, 2012 at 2:04 PM, Tapas Mishra mightydre...@gmail.comwrote:

 I have a machine which is multiple boot.For sysadmin kind of work I have
 to boot into different different Operating System's. Main Os is Ubuntu
 11.10 with grub2.

 Each time if I reboot then I want to be able to select desired operating
 system to boot while remotely logged in via ssh as we do when we are
 physically present on that machine by moving the up down arrow keys.I want
 to do some thing similar via ssh or if possible by some other protocol.
 Is it possible some how.Is there any package available for the same?

 --



-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: choosing desired os to boot over ssh

2012-02-11 Thread Pandu Poluan
Go here:

https://help.ubuntu.com/community/Grub2

find grub-set-default and grub-reboot. These commands will be available if
you set grub.cfg according to the procedure in the section.

Rgds,
 On Feb 11, 2012 3:39 PM, Tapas Mishra mightydre...@gmail.com wrote:

 I forgot to mention in previous message I do not want to be manually
 editing the grub.cfg file each time if I have to frequently switch between
 different OS.

 On Sat, Feb 11, 2012 at 2:04 PM, Tapas Mishra mightydre...@gmail.comwrote:

 I have a machine which is multiple boot.For sysadmin kind of work I have
 to boot into different different Operating System's. Main Os is Ubuntu
 11.10 with grub2.

 Each time if I reboot then I want to be able to select desired operating
 system to boot while remotely logged in via ssh as we do when we are
 physically present on that machine by moving the up down arrow keys.I want
 to do some thing similar via ssh or if possible by some other protocol.
 Is it possible some how.Is there any package available for the same?

 --




 --
 ubuntu-server mailing list
 ubuntu-server@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
 More info: https://wiki.ubuntu.com/ServerTeam

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: choosing desired os to boot over ssh

2012-02-11 Thread Tapas Mishra
No this is not what I want.I am aware of these options.


On Sat, Feb 11, 2012 at 3:39 PM, Pandu Poluan pa...@poluan.info wrote:

 Go here:

 https://help.ubuntu.com/community/Grub2

 find grub-set-default and grub-reboot. These commands will be available if
 you set grub.cfg according to the procedure in the section.

 Rgds,
  On Feb 11, 2012 3:39 PM, Tapas Mishra mightydre...@gmail.com wrote:

 I forgot to mention in previous message I do not want to be manually
 editing the grub.cfg file each time if I have to frequently switch between
 different OS.

 On Sat, Feb 11, 2012 at 2:04 PM, Tapas Mishra mightydre...@gmail.comwrote:

 I have a machine which is multiple boot.For sysadmin kind of work I have
 to boot into different different Operating System's. Main Os is Ubuntu
 11.10 with grub2.

 Each time if I reboot then I want to be able to select desired operating
 system to boot while remotely logged in via ssh as we do when we are
 physically present on that machine by moving the up down arrow keys.I want
 to do some thing similar via ssh or if possible by some other protocol.
 Is it possible some how.Is there any package available for the same?

 --



-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: choosing desired os to boot over ssh

2012-02-11 Thread Imre Gergely


The problem is that there's no networking up at GRUB stage. You'll 
probably need some KVM over IP or something.


On 2012-02-11 14:24, Tapas Mishra wrote:

No this is not what I want.I am aware of these options.

On Sat, Feb 11, 2012 at 3:39 PM, Pandu Poluan pa...@poluan.info [4]
wrote:


Go here:

https://help.ubuntu.com/community/Grub2 [2]

find grub-set-default and grub-reboot. These commands will be
available if you set grub.cfg according to the procedure in the
section.

Rgds,

On Feb 11, 2012 3:39 PM, Tapas Mishra mightydre...@gmail.com
[3] wrote:


I forgot to mention in previous message I do not want to be
manually editing the grub.cfg file each time if I have to
frequently switch between different OS.

On Sat, Feb 11, 2012 at 2:04 PM, Tapas Mishra
mightydre...@gmail.com [1] wrote:


I have a machine which is multiple boot.For sysadmin kind of
work I have to boot into different different Operating

System's.

Main Os is Ubuntu 11.10 with grub2.

Each time if I reboot then I want to be able to select desired
operating system to boot while remotely logged in via ssh as we
do when we are physically present on that machine by moving the
up down arrow keys.I want to do some thing similar via ssh or

if

possible by some other protocol.
Is it possible some how.Is there any package available for the
same?

--




Links:
--
[1] mailto:mightydre...@gmail.com
[2] https://help.ubuntu.com/community/Grub2
[3] mailto:mightydre...@gmail.com
[4] mailto:pa...@poluan.info


--
Imre Gergely
http://havaz.net
gpg --keyserver subkeys.pgp.net --recv-keys 0x34525305

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: choosing desired os to boot over ssh

2012-02-11 Thread Avi Greenbury
Tapas Mishra wrote:

 No this is not what I want.I am aware of these options.

That fits your requirements pretty well if you only have two systems to
choose from - run grub-reboot from init or something on the one that
controls grub and each reboot will boot into the other.

Otherwise I think that's the closest you'll get. To go between two
systems which don't control grub you'd need to reboot from one into a
system which does, then run grub-reboot, then reboot. Perhaps you could
install a tiny Linux for that purpose, one that boots within seconds?

-- 
Avi

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: choosing desired os to boot over ssh

2012-02-11 Thread Pandu Poluan
Similar to Neal, I'm scratching my head as to exactly what @Tapas wanted...

The only other possibility would be to install a hypervisor (XenServer
comes to mind) and access the VM's virtual console output using VNC or
whatever the management app the hypervisor uses (XenCenter in case of
XenServer). This will enable you to actually choose which OS to boot in the
grub menu.

If that still doesn't answer your needs, then I give up :-P

PS: grub is actually capable of booting non-grub-using OS like Windows;
you'll have to decipher the proper incantations for chainloading (plus
all the complexities of juggling partitions - Windows its wickedly invasive
and greedy in that regard), but it's doable.

Rgds,
On Feb 11, 2012 9:21 PM, Neal McBurnett n...@bcn.boulder.co.us wrote:

 It seems to me that grub-reboot does what you asked for.  You do have to
 modify /etc/default/grub *one time* to set the saved option, but after
 that you just quickly run grub-reboot before a reboot and it boots the one
 you picked, on just the next reboot.  If on that boot, you DON'T run
 grub-reboot, it will reboot the time after that with your default, safe
 boot option.  If you're worried about testing odd kernels and panics, you
 can also set a boot option like panic=30 so it reboots into a safe kernel
 after a panic.

 If that isn't what you wanted, can you clarify in more detail what you're
 looking for?

 You could set up a serial console connected to a separate computer let you
 connect to it at boot time, but it is much more complicated and expensive.
 I guess if you need to boot into OS's that don't use grub, a serial
 console boot would be more convenient than rebooting to the default one
 that does do grub, and then choosing the one you really want next via
 grub-reboot from there.

 Neal McBurnett http://neal.mcburnett.org/

 On Sat, Feb 11, 2012 at 05:54:30PM +0530, Tapas Mishra wrote:
  No this is not what I want.I am aware of these options.
 
 
  On Sat, Feb 11, 2012 at 3:39 PM, Pandu Poluan pa...@poluan.info wrote:
 
 
  Go here:
 
  https://help.ubuntu.com/community/Grub2
 
  find grub-set-default and grub-reboot. These commands will be
 available if
  you set grub.cfg according to the procedure in the section.
 
  Rgds,
 
  On Feb 11, 2012 3:39 PM, Tapas Mishra mightydre...@gmail.com
 wrote:
 
  I forgot to mention in previous message I do not want to be
 manually
  editing the grub.cfg file each time if I have to frequently
 switch
  between different OS.
 
  On Sat, Feb 11, 2012 at 2:04 PM, Tapas Mishra 
 mightydre...@gmail.com
  wrote:
 
  I have a machine which is multiple boot.For sysadmin kind of
 work I
  have to boot into different different Operating System's.
 Main Os
  is Ubuntu 11.10 with grub2.
 
  Each time if I reboot then I want to be able to select
 desired
  operating system to boot while remotely logged in via ssh as
 we do
  when we are physically present on that machine by moving the
 up
  down arrow keys.I want to do some thing similar via ssh or if
  possible by some other protocol.
  Is it possible some how.Is there any package available for
 the
  same?
 
  --
 
 
 
 

  --
  ubuntu-server mailing list
  ubuntu-server@lists.ubuntu.com
  https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
  More info: https://wiki.ubuntu.com/ServerTeam

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: choosing desired os to boot over ssh

2012-02-11 Thread Tapas Mishra
What I am looking for is some thing like a service console similar to IDRAC
of Dell Power edge (if available for Ubuntu)
or any software where in Wake On Lan with a special key combination can
boot my desired OS.

On Sat, Feb 11, 2012 at 9:00 PM, Pandu Poluan pa...@poluan.info wrote:

 Similar to Neal, I'm scratching my head as to exactly what @Tapas wanted...

 The only other possibility would be to install a hypervisor (XenServer
 comes to mind) and access the VM's virtual console output using VNC or
 whatever the management app the hypervisor uses (XenCenter in case of
 XenServer). This will enable you to actually choose which OS to boot in the
 grub menu.

 If that still doesn't answer your needs, then I give up :-P

 PS: grub is actually capable of booting non-grub-using OS like Windows;
 you'll have to decipher the proper incantations for chainloading (plus
 all the complexities of juggling partitions - Windows its wickedly invasive
 and greedy in that regard), but it's doable.

 Rgds,
 On Feb 11, 2012 9:21 PM, Neal McBurnett n...@bcn.boulder.co.us wrote:

 It seems to me that grub-reboot does what you asked for.  You do have to
 modify /etc/default/grub *one time* to set the saved option, but after
 that you just quickly run grub-reboot before a reboot and it boots the one
 you picked, on just the next reboot.  If on that boot, you DON'T run
 grub-reboot, it will reboot the time after that with your default, safe
 boot option.  If you're worried about testing odd kernels and panics, you
 can also set a boot option like panic=30 so it reboots into a safe kernel
 after a panic.

 If that isn't what you wanted, can you clarify in more detail what you're
 looking for?

 You could set up a serial console connected to a separate computer let
 you connect to it at boot time, but it is much more complicated and
 expensive.
 I guess if you need to boot into OS's that don't use grub, a serial
 console boot would be more convenient than rebooting to the default one
 that does do grub, and then choosing the one you really want next via
 grub-reboot from there.

 Neal McBurnett http://neal.mcburnett.org/

 On Sat, Feb 11, 2012 at 05:54:30PM +0530, Tapas Mishra wrote:
  No this is not what I want.I am aware of these options.
 
 
  On Sat, Feb 11, 2012 at 3:39 PM, Pandu Poluan pa...@poluan.info
 wrote:
 
 
  Go here:
 
  https://help.ubuntu.com/community/Grub2
 
  find grub-set-default and grub-reboot. These commands will be
 available if
  you set grub.cfg according to the procedure in the section.
 
  Rgds,
 
  On Feb 11, 2012 3:39 PM, Tapas Mishra mightydre...@gmail.com
 wrote:
 
  I forgot to mention in previous message I do not want to be
 manually
  editing the grub.cfg file each time if I have to frequently
 switch
  between different OS.
 
  On Sat, Feb 11, 2012 at 2:04 PM, Tapas Mishra 
 mightydre...@gmail.com
  wrote:
 
  I have a machine which is multiple boot.For sysadmin kind
 of work I
  have to boot into different different Operating System's.
 Main Os
  is Ubuntu 11.10 with grub2.
 
  Each time if I reboot then I want to be able to select
 desired
  operating system to boot while remotely logged in via ssh
 as we do
  when we are physically present on that machine by moving
 the up
  down arrow keys.I want to do some thing similar via ssh or
 if
  possible by some other protocol.
  Is it possible some how.Is there any package available for
 the
  same?
 
  --
 
 
 
 

  --
  ubuntu-server mailing list
  ubuntu-server@lists.ubuntu.com
  https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
  More info: https://wiki.ubuntu.com/ServerTeam




-- 
8960770858
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: choosing desired os to boot over ssh

2012-02-11 Thread Hakan Koseoglu
On 11 February 2012 17:52, Tapas Mishra mightydre...@gmail.com wrote:
 What I am looking for is some thing like a service console similar to IDRAC
 of Dell Power edge (if available for Ubuntu)
 or any software where in Wake On Lan with a special key combination can boot
 my desired OS.
DRAC/ILO/Similar out-of-band management options are not software as
such, they are firmware which runs alongside, providing the user with
a network address and capabilities for remote access. Whey you are at
grub selection menu, there's no networking available yet. Look for
outside-grub solutions. As mentioned, you can always boot into a small
OS and initiate the next one. If all you have is a cheap off-the-shelf
desktop PC with no out of band management capability, try using a
networked KVM, there are stand-alone versions where you plug USB and
mouse and plug it into the switch and do a remote desktop / vnc into
it. If you have plenty of these desktop-servers, invest in a rackmount
networked KVM, they work pretty well.

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam