Unable to create guest VM using virt-install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
High
|
Unassigned | ||
virtinst (Ubuntu) |
Expired
|
High
|
Unassigned |
Bug Description
Working in Ubuntu 14.04 (Trusty Tahr), running libvirt version 1.2.1.
root@srvr-931:~# virt-install --name nam --ram 4096 --disk path=/var/
Starting install...
ERROR Connection is closed
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start nam
otherwise, please restart your installation.
root@srvr-931:~# virsh --connect qemu:///system start nam
error: failed to get domain 'nam'
error: Domain not found: no domain with matching name 'nam'
I see this in virt-install.log -
[Wed, 02 Apr 2014 07:26:55 virt-install 16207] ERROR (cli:445) Connection is closed
[Wed, 02 Apr 2014 07:26:55 virt-install 16207] DEBUG (cli:448)
Traceback (most recent call last):
File "/usr/bin/
noboot=
File "/usr/lib/
noboot)
File "/usr/lib/
dom = self.conn.
File "/usr/lib/
if ret is None:raise libvirtError(
libvirtError: Connection is closed
[Wed, 02 Apr 2014 07:26:55 virt-install 16207] DEBUG (cli:457) Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start nam
otherwise, please restart your installation.
I run the same command on Ubuntu 12.04.1 LTS and I don't see any problem there. This looks very similar to Bug#1180281, but I don't see a solution there. Does anyone know if this is fixed now? And the versions that I need to use?
Thank you!
You did not include "--connect lxc:///" in your command, so virsh connected to the qemu driver.