vm-new fails when no display is available
Bug #967816 reported by
Max Brustkern
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Tools used by the Ubuntu QA Team |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On Oneiric amd64 desktop, with DISPLAY not properly set, if I run:
./vm-new -f -r -b virbr0 -t server oneiric i386 test
in the vm-tools directory on revision 787, virt-install runs and begins the vm initialization process, but immediately exits when it cannot display the console due to the lack of an X server. The script then continues up to vm-cmd, which runs vm_wait and waits for the vm to come up. Unfortunately, when the installer finishes, the vm halts instead of rebooting, and vm-cmd has already detected it as running, it will not try to start it again.
To post a comment you must log in.
I've attached a patch that adds --noautoconsole to the list of virt-install options, then waits 30 minutes for VM to finish installation and shut down before proceeding. Please let me know if this is a reasonable solution.