Web lists-archives.com

Re: Restore backup to KVM




	Hi.

On Mon, Sep 25, 2017 at 09:16:35PM +0200, solitone wrote:
> On 24/09/17 11:51, Reco wrote:
> > Cheat it then and run QEMU like this (I don't know what's your root
> > filesystem is called, you may need to replace sda2 with something else):
> > 
> > qemu-system-x86_64 -hda <your_qemu_file_here> \
> > 	-kernel <restored_kernel> \
> > 	-initrd <restored_initrd> \
> > 	-append "root=/dev/sda2 ro init=/bin/bash"
> 
> Hi Reco, does /dev/sda2 refer to the partition containing the root file
> system of the *host*?

No. /dev/sda2 refers to the partition in QEMU disk that contains your
restored root filesystem.

Reco