[Pkg-libvirt-maintainers] Bug#503008: virtinst tries to create a temporal file in inexistent directory /var/lib/xen and dies

Nahuel Greco ngreco at gmail.com
Tue Oct 21 18:36:41 UTC 2008


Package: virtinst
Version: 0.300.3-5
Severity: normal

virtinst dies when he tries to create a temporal file in the
inexistent directory /var/lib/xen, when I manually create that
directory everything goes ok:

morron:~/virtual_machines# virt-install  --os-type=linux --os-variant=rhel4
What is the name of your virtual machine? rhel4-1
 How much RAM should be allocated (in megabytes)? 728
 What would you like to use as the disk (file path)?
/root/virtual_machines/RHEL4-1.disk
 How large would you like the disk
(/root/virtual_machines/RHEL4-1.disk) to be (in gigabytes)? 10
 Would you like to enable graphics support? (yes or no) yes
 What is the install location? /root/virtual_machines/RHEL4-U5-i386-AS-disc1.iso

Starting install...
[Errno 2] No such file or directory: '/var/lib/xen/virtinstmnt.mpUlvF'
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start rhel4-1'; otherwise, please
 restart your installation.
Tue, 21 Oct 2008 16:14:09 ERROR    [Errno 2] No such file or
directory: '/var/lib/xen/virtinstmnt.mpUlvF'
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 497, in <module>
    main()
  File "/usr/bin/virt-install", line 457, in main
    dom = guest.start_install(conscb,progresscb)
  File "/var/lib/python-support/python2.5/virtinst/Guest.py", line
893, in start_install
    self._prepare_install(meter)
  File "/var/lib/python-support/python2.5/virtinst/ParaVirtGuest.py",
line 68, in _prepare_install
    self._installer.prepare(guest = self, meter = meter)
  File "/var/lib/python-support/python2.5/virtinst/DistroManager.py",
line 216, in prepare
    self._prepare_kernel_and_initrd(guest, distro, meter)
  File "/var/lib/python-support/python2.5/virtinst/DistroManager.py",
line 186, in _prepare_kernel_and_initrd
    distro = distro)
  File "/var/lib/python-support/python2.5/virtinst/DistroManager.py",
line 93, in acquireKernel
    fetcher.prepareLocation(progresscb)
  File "/var/lib/python-support/python2.5/virtinst/ImageFetcher.py",
line 173, in prepareLocation
    self.srcdir = tempfile.mkdtemp(prefix="virtinstmnt.", dir=self.scratchdir)
  File "/usr/lib/python2.5/tempfile.py", line 328, in mkdtemp
    _os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory:
'/var/lib/xen/virtinstmnt.mpUlvF'
morron:~/virtual_machines#
morron:~/virtual_machines# ls -d /var/lib/xen*
xend/      xenstored/
morron:~/virtual_machines# mkdir /var/lib/xen
morron:~/virtual_machines# virt-install  --os-type=linux --os-variant=rhel4
What is the name of your virtual machine? rhel4-1
 How much RAM should be allocated (in megabytes)? 728
 What would you like to use as the disk (file path)?
/root/virtual_machines/RHEL4-1.disk
 How large would you like the disk
(/root/virtual_machines/RHEL4-1.disk) to be (in gigabytes)? 10
 Would you like to enable graphics support? (yes or no) yes
 What is the install location? /root/virtual_machines/RHEL4-U5-i386-AS-disc1.iso

Starting install...
Creating storage file...  100% |=========================|  10 GB
00:00
Creating domain...                                                 0 B
00:03

(virt-viewer:3526): Gtk-WARNING **: cannot open display:
Domain installation still in progress.  You can reconnect to
the console to complete the installation process.
morron:~/virtual_machines# ls /var/lib/xen
morron:~/virtual_machines#





More information about the Pkg-libvirt-maintainers mailing list