All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mykola Ivanets <1636217@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1636217] Re: qemu-kvm 2.7 does not boot kvm VMs with virtio on top of VMware ESX
Date: Thu, 07 Jun 2018 10:12:17 -0000	[thread overview]
Message-ID: <152836633743.24753.14618544270904989268.malone@gac.canonical.com> (raw)
In-Reply-To: 20161024141318.21041.87583.malonedeb@gac.canonical.com

Well, it appeared that it is not enough to set "disable-modern=on" for
virtio-blk-pci devices. You have to do the same for virtio-scsi-pci, and
may be for other virtio devices you are using to disable virtio 1.0. But
VM will hangs latter on during boot process if you use virtio-rng-pci.

"-machine accel=tcg" will work but in cost of performance penalty due to
software virtualization.

So I found "-machine type=pc-i440fx-x" where x <= 2.6 the only reliable
workaround.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1636217

Title:
  qemu-kvm 2.7 does not boot kvm VMs with virtio on top of VMware ESX

Status in QEMU:
  New

Bug description:
  After todays Proxmox update all my Linux VMs stopped booting.

  # How to reproduce
  - Have KVM on top of VMware ESX (I use VMware ESX 6)
  - Boot Linux VM with virtio Disk drive.

  
  # Result
  virtio based VMs do not boot anymore:

  root@demotuxdc:/etc/pve/nodes/demotuxdc/qemu-server# grep virtio0 100.conf 
  bootdisk: virtio0
  virtio0: pvestorage:100/vm-100-disk-1.raw,discard=on,size=20G

  (initially with cache=writethrough, but that doesn´t matter)

  What happens instead is:

  - BIOS displays "Booting from harddisk..."
  - kvm process of VM loops at about 140% of Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz Skylake dual core CPU

  Disk of course has valid bootsector:

  root@demotuxdc:/srv/pvestorage/images/100# file -sk vm-100-disk-1.raw 
  vm-100-disk-1.raw: DOS/MBR boot sector DOS/MBR boot sector DOS executable (COM), boot code
  root@demotuxdc:/srv/pvestorage/images/100# head -c 2048 vm-100-disk-1.raw | hd | grep GRUB
  00000170  be 94 7d e8 2e 00 cd 18  eb fe 47 52 55 42 20 00  |..}.......GRUB .|

  
  # Workaround 1
  - Change disk from virtio0 to scsi0
  - Debian boots out of the box after this change
  - SLES 12 needs a rebuilt initrd
  - CentOS 7 too, but it seems that is not even enough and it still fails (even in hostonly="no" mode for dracut)

  
  # Workaround 2
  Downgrade pve-qemu-kvm 2.7.0-3 to 2.6.2-2.

  
  # Expected results
  Disk boots just fine via virtio like it did before.

  
  # Downstream bug report
  Downstream suggests an issue with upstream qemu-kvm:

  https://bugzilla.proxmox.com/show_bug.cgi?id=1181

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1636217/+subscriptions

  parent reply	other threads:[~2018-06-07 10:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 14:13 [Qemu-devel] [Bug 1636217] [NEW] qemu-kvm 2.7 does not boot kvm VMs with virtio on top of VMware ESX MartinSteigerwald
2016-10-28  8:23 ` [Qemu-devel] [Bug 1636217] " Fabian Grünbichler
2016-11-02 22:19   ` Laszlo Ersek
2016-11-03  8:29     ` Gerd Hoffmann
2016-11-02 11:40 ` MartinSteigerwald
2016-11-03  7:35 ` Fabian Grünbichler
2017-11-16  2:24 ` introom
2018-01-30 11:58 ` Adrien
2018-02-23  9:24 ` zzfancy
2018-06-06 11:51 ` Mykola Ivanets
2018-06-06 13:23 ` Martin Steigerwald
2018-06-07 10:12 ` Mykola Ivanets [this message]
2018-06-07 17:29 ` Roman Kagan
2018-06-07 17:45 ` Mykola Ivanets
2018-06-08  5:53 ` Thomas Huth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=152836633743.24753.14618544270904989268.malone@gac.canonical.com \
    --to=1636217@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.