Task: start a paravirtualized machine in Single mode.
If using kernel and ramdiskIf 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 usedIf 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