On i386 hosts, qemu errors if the memory size is > 2047 MB

Bug #1257891 reported by Jeff Lane 
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
maas-test
Fix Committed
High
Raphaël Badin

Bug Description

Installed maas-test 0.1+bzr58+81+8~ppa0~ubuntu13.10.1 on a system with a fresh saucy install.

I then tried to run it in interactive mode but that failed because --interactive is apparently not a recognized argument.

So I attempted to run manually like so:

maas-test --bmc-ip 192.168.0.5 --bmc-username <username> --bmc-password <password> eth0

and got the following output including the traceback:

2013-12-04 14:44:16,751 INFO Checking for KVM extensions.
2013-12-04 14:44:19,436 INFO Checking for virtualised hardware...
2013-12-04 14:44:19,545 INFO Checking for running proxy instance...
2013-12-04 14:44:19,545 INFO Starting proxy...
2013-12-04 14:44:19,548 INFO Done starting proxy.
2013-12-04 14:44:19,550 INFO Downloading KVM image for series=saucy, arch=i386...
2013-12-04 14:44:22,212 INFO Done downloading KVM image for series=saucy, arch=i386.
2013-12-04 14:44:22,212 INFO Creating virtual machine 776f5c68-5d1c-11e3-8c4d-001f16355790, arch=i386...
2013-12-04 14:44:24,998 INFO Killing proxy...
2013-12-04 14:44:25,003 INFO Done killing proxy.
ERROR

======================================================================
ERROR: setUpClass (maastest.main.ConfiguredTestMAAS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/maastest/cases.py", line 88, in setUpClass
    cls.fixtures.useFixture(cls.machine)
  File "/usr/lib/python2.7/dist-packages/maastest/cases.py", line 45, in useFixture
    super(ClassFixture, self).useFixture(fixture)
  File "/usr/lib/python2.7/dist-packages/fixtures/fixture.py", line 192, in useFixture
    fixture.setUp()
  File "/usr/lib/python2.7/dist-packages/maastest/kvmfixture.py", line 142, in setUp
    self.start()
  File "/usr/lib/python2.7/dist-packages/maastest/kvmfixture.py", line 267, in start
    input=template, check_call=True)
  File "/usr/lib/python2.7/dist-packages/maastest/utils.py", line 63, in run_command
    stderr.decode('ascii')))
Exception: Command 'sudo uvt-kvm create --ssh-public-key-file=/home/bladernr/.config/maas-test/vm_ssh_id_rsa.pub --unsafe-caching --memory 2048 --disk 20 776f5c68-5d1c-11e3-8c4d-001f16355790 arch=i386 release=saucy --template -' failed (1):

Warning: this CLI is experimental and may change.
wrote ds.img with filesystem=iso9660 and diskformat=raw
libvirt: QEMU Driver error : internal error: process exited while connecting to monitor: W: kvm binary is deprecated, please use qemu-system-x86_64 instead
char device redirected to /dev/pts/1 (label charserial0)
qemu: at most 2047 MB RAM can be simulated
Traceback (most recent call last):
  File "/usr/bin/uvt-kvm", line 597, in <module>
    main(sys.argv[1:])
  File "/usr/bin/uvt-kvm", line 593, in main
    args.func(parser, args)
  File "/usr/bin/uvt-kvm", line 436, in main_create
    unsafe_caching=args.unsafe_caching,
  File "/usr/bin/uvt-kvm", line 323, in create
    domain.create()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 698, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: internal error: process exited while connecting to monitor: W: kvm binary is deprecated, please use qemu-system-x86_64 instead
char device redirected to /dev/pts/1 (label charserial0)
qemu: at most 2047 MB RAM can be simulated

----------------------------------------------------------------------
Ran 0 tests in 5.462s

FAILED (errors=1)

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

Right, this is memory-limit bug: on i386 systems, qemu errors if --memory is > 2047. We're in the process of fixing it.

Changed in maas-test:
status: New → In Progress
importance: Undecided → High
Raphaël Badin (rvb)
Changed in maas-test:
assignee: nobody → Raphaël Badin (rvb)
Raphaël Badin (rvb)
summary: - maas-test on saucy fails with traceback
+ On i386 hosts, qemu errors if the memory size is > 2047 MB
Raphaël Badin (rvb)
Changed in maas-test:
status: In Progress → Fix Committed
Revision history for this message
Narcis Garcia (narcisgarcia) wrote :

Fix is not included on Ubuntu 14 LTS?

$ lsb_release -ir
Distributor ID: Ubuntu
Release: 14.04

$ uname -srp
Linux 3.13.0-30-generic i686

$ qemu-system-i386 -version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.1), Copyright (c) 2003-2008 Fabrice Bellard

$ qemu-system-i386 -m 2048
qemu: at most 2047 MB RAM can be simulated

Revision history for this message
Shentino (shentino) wrote :

Has this been punted upstream to debian as well?

Revision history for this message
Shentino (shentino) wrote :

Actually I just took a look at the actual source code. It seems that refusing to allocate more than 2G is deliberate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.