[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-14 Thread Frank Heimes
** Changed in: ubuntu-z-systems
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-14 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 6.0.0-0ubuntu3

---
libvirt (6.0.0-0ubuntu3) focal; urgency=medium

  * rebuild against libxen-dev 4.11.3 (no change needed)
  * d/p/ubuntu-aa/virt-aa-helper-Add-support-for-smartcard-host-certif.patch:
allow emulation of smartcard via host certificates
  * d/p/ubuntu/lp-1861125-*: fix non host-model migrations from old machine
types (LP: #1861125)
  * d/p/ubuntu-aa/apparmor-allow-to-call-vhost-user-gpu.patch: do not apparmor
block vhost-user-gpu usage

 -- Christian Ehrhardt   Wed, 12 Feb
2020 14:20:08 +0100

** Changed in: libvirt (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-14 Thread Frank Heimes
** Changed in: ubuntu-z-systems
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-14 Thread Christian Ehrhardt 
** Changed in: libvirt (Ubuntu)
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-13 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~paelzer/ubuntu/+source/libvirt/+git/libvirt/+merge/379048

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-08 Thread Bug Watch Updater
Launchpad has imported 12 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=1795651.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2020-01-28T14:53:06+00:00 paelzer wrote:

Description of problem:
Libvirt defaults to model an s390x CPU but some older machine types are unable 
to consume that therefore starting old XML guests or migrations to a old->new 
system fail.

Version-Release number of selected component (if applicable):
- libvirt 6.0
- qemu 4.2

How reproducible:
100%

Steps to Reproduce:
1. define a simple guest XML with old machine type
$ cat breakme.xml

  breakme
  524288
  
hvm
  

$ virsh define breakme.xml
Domain breakme defined from breakme.xml

2. check the cpu model it got
I get cpu + old-type:
root@testkvm-focal-to:~# virsh dumpxml breakme | grep cpu
  

3. That breaks on start:
# virsh start breakme
error: Failed to start domain breakme
error: internal error: qemu unexpectedly closed the monitor: 
2020-01-28T14:37:27.477232Z qemu-system-s390x: CPU models are not available: 
KVM doesn't support CPU models


Actual results:
Fails to start the guest:
qemu-system-s390x: CPU models are not available: KVM doesn't support CPU models

Reason:
It creates a commandline that can't work.


Expected results:
Guest with old machine type can be started-on and/or migrated-to new systems.


Additional info:
I found this while testing migration across releases.
If migrating a guest that was initially started on Xenial (qemu 2.5) to a new 
virtualization stack (qemu 4.2 libvirt 6.0) it fails.

The reason is that the old system has defined the machine type of the time e.g.
  machine type: s390-ccw-virtio-2.5
The matching commandline is part:
  -machine s390-ccw-virtio-2.5,accel=kvm,usb=off
  -cpu (not present here)

But on the migration to the new stack this becomes:
  -machine s390-ccw-virtio-2.5,accel=kvm,usb=off (kept from the source of the 
migration)
  -cpu z13-base,aen=on,aefsi=on,... (modelled on the target)

The problem is that s390x prior to qemu 2.8 had no cpu modelling.
Therefore it fails with:
  qemu-system-s390x: CPU models are not available: KVM doesn't support CPU 
models

Source XML:

  x-guest2
  c4545c20-5415-4f2c-86c7-df77eab1f6bb
  524288
  524288
  1
  
/machine
  
  
hvm

  
  



  
  
  destroy
  restart
  destroy
  
/usr/bin/qemu-system-s390x

  
  
  



  
  
  
  


  
  
  
  
  
  


  
  
  
  
  
  


  
  
  


  
  

  
  
libvirt-c4545c20-5415-4f2c-86c7-df77eab1f6bb
libvirt-c4545c20-5415-4f2c-86c7-df77eab1f6bb
  


Source log/commandline:
2020-01-28 13:58:28.719+: starting up libvirt version: 1.3.1, package: 
1ubuntu10.29 (Matthew Ruffell  Thu, 31 Oct 2019 
10:52:41 +1300), qemu version: 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.42), 
hostname: testkvm-xenial-from
LC_ALL=C 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin 
QEMU_AUDIO_DRV=none /usr/bin/qemu-system-s390x -name x-guest2 -S -machine 
s390-ccw-virtio-2.5,accel=kvm,usb=off -m 512 -realtime mlock=off -smp 
1,sockets=1,cores=1,threads=1 -uuid c4545c20-5415-4f2c-86c7-df77eab1f6bb 
-nographic -no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-x-guest2/monitor.sock,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-boot strict=on -drive 
file=/var/lib/uvtool/libvirt/images/x-guest2.qcow,format=qcow2,if=none,id=drive-virtio-disk0
 -device 
virtio-blk-ccw,scsi=off,devno=fe.0.,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -drive 
file=/var/lib/uvtool/libvirt/images/x-guest2-ds.qcow,format=raw,if=none,id=drive-virtio-disk1
 -device 
virtio-blk-ccw,scsi=off,devno=fe.0.0001,drive=drive-virtio-disk1,id=virtio-disk1
 -netdev tap,fd=25,id=hostnet0 -device 
virtio-net-ccw,netdev=hostnet0,id=net0,mac=52:54:00:39:e7:fb,devno=fe.0.0002 
-chardev pty,id=charconsole0 -device 
sclpconsole,chardev=charconsole0,id=console0 -device 
virtio-balloon-ccw,id=balloon0,devno=fe.0.0003 -msg timestamp=on
char device redirected to /dev/pts/1 (label charconsole0)

Target log/commandline:
2020-01-28 13:59:04.396+: starting up libvirt version: 6.0.0, package: 
0ubuntu1~ppa2 (Christian Ehrhardt  Mon, 13 
Jan 2020 13:14:14 +0100), qemu version: 4.2.0Debian 1:4.2-1ubuntu1~ppa4, 
kernel: 5.4.0-9-generic, hostname: testkvm-focal-to
LC_ALL=C \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \
HOME=/var/lib/libvirt/qemu/domain-3-x-guest2 \
XDG_DATA_HOME=/var/lib/libvirt/qemu/domain-3-x-guest2/.local/share \

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-07 Thread Christian Ehrhardt 
Tests with the fix worked

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-07 Thread Christian Ehrhardt 
FYI suggested fixes where pushed to the ML and I'm planning to test
those.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-02-04 Thread Christian Ehrhardt 
Hi Colin, this host runs on 5.4.0-9-generic
Full line:
Linux s1lp05 5.4.0-9-generic #12-Ubuntu SMP Mon Dec 16 22:31:38 UTC 2019 s390x 
s390x s390x GNU/Linux

If it needs a newer kernel commits in regard to this issue please let me
know so that I can flag them for the kernel team.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-01-28 Thread bugproxy
** Tags added: architecture-s39064 bugnameltc-183486 severity-high
targetmilestone-inin2004

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-01-28 Thread Christian Ehrhardt 
Note: "Migrating through" like qemu 2.5 -> 2.11 -> 4.2  also doesn't
work (like a normal upgrade path)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-01-28 Thread Christian Ehrhardt 
Reported to upstream as requested by the s390x people.
=> https://bugzilla.redhat.com/show_bug.cgi?id=1795651

** Bug watch added: Red Hat Bugzilla #1795651
   https://bugzilla.redhat.com/show_bug.cgi?id=1795651

** Also affects: libvirt via
   https://bugzilla.redhat.com/show_bug.cgi?id=1795651
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1861125] Re: s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

2020-01-28 Thread Frank Heimes
** Also affects: ubuntu-z-systems
   Importance: Undecided
   Status: New

** Changed in: ubuntu-z-systems
   Status: New => Triaged

** Changed in: ubuntu-z-systems
   Importance: Undecided => High

** Changed in: ubuntu-z-systems
 Assignee: (unassigned) => bugproxy (bugproxy)

** Tags added: reverse-proxy-bugzilla s390x

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1861125

Title:
  s390x can't migrate pre qemu 2.8 to qemu4.2/libvirt6.0 (X->F)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs