Re: Restore backup to KVM
- Date: Tue, 26 Sep 2017 09:46:17 +0300
- From: Reco <recoverym4n@xxxxxxxxx>
- Subject: Re: Restore backup to KVM
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.