0

How to start a KVM-guest as single user mode?

When I tried to start the VM as sigle user mode, it displayed "Booting a command line" on the screen and got stucked. This guest VM starts fine as multi user mode.

Here is the procedure I did:

  1. Start a guest VM on a Host.

    $ virsh start --console myguestvm
    
  2. Select a menu on grub menu and press e.

  3. Edit a line below and add "single" parameter

    linux /boot/vmlinuz-3.11.0-20-generic root=UUID=XXXXX ro quiet splash $vt_handoff
    
  4. Then press ctrl + x.

Thanks in advance.

g_p
  • 19,034
  • 6
  • 59
  • 69
matsuzaki
  • 3
  • 1
  • 1
  • 3

1 Answers1

2

Remove the $vt_handoff, quiet, and splash parts of the line.

The vt_handoff option causes the kernel not to display the text console so that there can be a flickerless transition to Xwindows when it starts up, which is why you don't see anything when you boot to single user mode. The splash option tells plymouth to show the pretty splash screen, and the quiet option suppresses a bunch of text console output.

psusi
  • 38,031