Here's the procedure: # qemu-img -f qcow2 /vm/win2k3.img 8G # virt-install --connect qemu:///system -n win2k3 -r 512 --vcpus=1 -c /home/temp/win2003sp2ins.iso -f /vm/win2k3.img -s 4 --network=bridge:br0 --mac=00:ff:ff:ff:58:58 --noautoconsole --vnc --os-type=windows --os-variant=win2k3 --hvm --accelerate
And I get error as below: Starting install... internal error unable to start guest: qemu: could not open disk image /vm/win2k3.img Domain installation may not have been successful. If it was, you can restart your domain by running 'virsh start win2k3'; otherwise, please restart your installation. ERROR internal error unable to start guest: qemu: could not open disk image /vm/win2k3.img Traceback (most recent call last): File "/usr/sbin/virt-install", line 861, in ? main() File "/usr/sbin/virt-install", line 759, in main start_time, guest.start_install) File "/usr/sbin/virt-install", line 814, in do_install dom = install_func(conscb, progresscb, wait=(not wait)) File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 541, in start_install return self._do_install(consolecb, meter, removeOld, wait) File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 633, in _do_install self.domain = self.conn.createLinux(install_xml, 0) File "/usr/lib64/python2.4/site-packages/libvirt.py", line 974, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: internal error unable to start guest: qemu: could not open disk image /vm/win2k3.img
any idea?
2009-12-08
rewing
On 8 Dec 2009, at 09:58, rewing wrote:
libvirtError: internal error unable to start guest: qemu: could not open disk image /vm/win2k3.img
Do you have selinux enabled ? As far as I know the location for images is restricted to /var/lib/libvirt/images by default.
On Tue, 2009-12-08 at 12:41 +0100, Markus Falb wrote:
On 8 Dec 2009, at 09:58, rewing wrote:
libvirtError: internal error unable to start guest: qemu: could not open disk image /vm/win2k3.img
Do you have selinux enabled ? As far as I know the location for images is restricted to /var/lib/libvirt/images by default.
--
Or does the actual disk image exist at /vm/win2k3.img with r/w access to whoever is running the virt-install command?
Does the /vm directory exist and does the user have permissions to access it?