Ugly error spewed when kernel doesn't support virtualisation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-test |
Triaged
|
Medium
|
Unassigned |
Bug Description
It would be nice if it caught this and presented a nicer error - in particular I just needed to reboot because my kernel was out of date.
=================
2014-01-08 12:58:31,842 INFO Checking for KVM extensions.
2014-01-08 12:58:31,883 INFO Checking for virtualised hardware...
2014-01-08 12:58:31,973 INFO Scanning for unexpected DHCP servers on testing network...
2014-01-08 12:58:35,197 INFO Checking for running proxy instance...
2014-01-08 12:58:35,198 INFO Starting proxy...
2014-01-08 12:58:35,207 INFO Done starting proxy.
2014-01-08 12:58:35,214 INFO Downloading KVM image for series=saucy, arch=amd64...
2014-01-08 13:11:36,328 INFO Done downloading KVM image for series=saucy, arch=amd64.
2014-01-08 13:11:36,740 INFO Creating virtual machine c3dd8de0-
2014-01-08 13:11:40,400 INFO Killing proxy...
2014-01-08 13:11:40,479 INFO Done killing proxy.
ERROR
=======
ERROR: setUpClass (maastest.
-------
Traceback (most recent call last):
File "/usr/lib/
cls.
File "/usr/lib/
super(
File "/usr/lib/
fixture.setUp()
File "/usr/lib/
self.start()
File "/usr/lib/
input=template, check_call=True)
File "/usr/lib/
raise make_exception(
Exception: Command 'sudo uvt-kvm create --ssh-public-
Warning: this CLI is experimental and may change.
wrote ds.img with filesystem=iso9660 and diskformat=raw
libvirt: Domain Config error : unknown OS type hvm
Traceback (most recent call last):
File "/usr/bin/uvt-kvm", line 597, in <module>
main(
File "/usr/bin/uvt-kvm", line 593, in main
args.
File "/usr/bin/uvt-kvm", line 436, in main_create
unsafe_
File "/usr/bin/uvt-kvm", line 321, in create
domain = conn.defineXML(xml)
File "/usr/lib/
if ret is None:raise libvirtError(
libvirt.
-------
Ran 0 tests in 785.317s
Changed in maas-test: | |
status: | New → Triaged |
importance: | Undecided → Medium |
I agree that it would be nice explaining the user out to fix this… But is an out of date kernel really the cause of this? I've seen this happen a couple of times and it turned out that running the following command made the problem disappear:
$ sudo service libvirt-bin restart
It might be work poking rbasak about this.