You get a bonus - 1 coin for daily activity. Now you have 1 coin

Xen: How to Boot a Paravirtualized Machine into Single Mode (Linux Debian, CentOS, RedHat)

Practice



Task: start a paravirtualized machine in Single mode.


If using kernel and ramdisk

If the paravirtualized guest is started using a kernel (kernel=) and ramdisk (ramdisk=) from domain-0 (i.e. without using PyGRUB or PvGRUB).

Open the virtual machine's configuration file for editing and find the line describing the "root=" parameter. It looks something like this (this is an example):

...
root = "root=/dev/xvda2 ro console=hvc0"
...

now append a space and the word "single" to the end of the line:

...
root = "root=/dev/xvda2 ro console=hvc0 single"
...

Restart the virtual machine.


If PyGRUB is used

If you're using PyGRUB to start this guest, simply start the virtual machine with the -c flag so you can see its console right away. Once the Grub prompt appears, proceed as usual to bring this machine into Single mode:

a) Either press "additional command line parameters" and likewise append " single" to the end of the boot line.

b) Or, if this is Debian, you can simply select "Single" mode from the menu

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "LINUX operating system"

Terms: LINUX operating system