Re: Problems with live block migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 06, 2016 at 07:50:58AM +0200, Josef Johansson wrote:
> I did hook up gdb to the process and stepped it to get a more decent error code and I would up in bdrv_rw_co
> 
> Inside vmstate_load it runs the following (savevm.c):
> 1609:        return se->load_state(f, se->opaque, version_id);
> And that goes to (block-migration.c):
> 484:static int block_load(QEMUFile *f, void *opaque, int version_id)
> and it all fails on (block-migration.c):
> 517:            ret = bdrv_write(bs, addr, buf, BDRV_SECTORS_PER_DIRTY_CHUNK);
> 518:
> 519:            qemu_free(buf);
> 520:            if (ret < 0) {
> 521:                return ret;
> 522:            }
> 
> print ret in gdb gives med -13 here. Now this is where I’m lost, what would that mean? Permission Denied?

EACCES -> read only disk

> -drive file=/root/grub.img,if=none,id=drive-fdc0-0-0,readonly=on,format=raw

Can you try migrating without this read-only drive or make it read-write?

Looks like your CentOS 6 QEMU binary is missing commit
d246673dcb9911218ff555bcdf28b250e38fa46c ("block migration: Fix test for
read-only drive").

Stefan

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux