[Pkg-libvirt-maintainers] Bug#582269: virtinst virt-manager-0.8.4 fail to create a vm by import mode in xen

IAN DELANEY johneed at hotmail.com
Wed May 19 16:07:36 UTC 2010







Subject: virtinst 
Package: virtinst
Version: 0.500.3-1
Severity: minor
Tags: squeeze experimental

Using virt-managger, and therefore virtinst, can't manage to create a vm in xen by the import mode.
This occurs in the packages in debian and gentoo.
I've made a submission to gentoo, which can tell all required, re virt-manager, and I am adding more for this description.

See           https://bugs.gentoo.org/show_bug.cgi?id=320557

The site suggested to add a run using virtinst, so I've done this.  This actually clarifies it a little more.

This is an added feature to these packages.  All that is said re their use is to see man virt-install.  
This is just a few lines, citing how to state the paths.

Frankly it's still not clear to me how this is intended to work.  It should create a vm, importing an established vm.

I firstly used virt-install --prompt, and had the same result.  Boots the established vm, and that's it.
So, again, long hand

/usr/bin/virt-install -n sample -r 300 -v --os-type=linux --os-variant=ubuntukarmic -w bridge=eth0 --arch=i386 --disk path=/mnt/images/xen/images/ubuntu/ubuntu9.1/ubuntu9.1 path=/mnt/images/xen/images/fedora/fedora8/sample8.img --import

yields the same result.  This output is not too long, so rather than attach it;

[Wed, 19 May 2010 22:25:52 virt-install 21123] DEBUG (cli:216) Requesting libvirt URI default
[Wed, 19 May 2010 22:25:52 virt-install 21123] DEBUG (cli:218) Received libvirt URI xen:///
[Wed, 19 May 2010 22:25:52 virt-install 21123] DEBUG (virt-install-2:473) Requesting virt method 'hvm', hv type 'default'.
[Wed, 19 May 2010 22:25:52 virt-install 21123] DEBUG (virt-install-2:795) Received virt method 'hvm'
[Wed, 19 May 2010 22:25:52 virt-install 21123] DEBUG (virt-install-2:796) Hypervisor name is 'xen'
[Wed, 19 May 2010 22:25:52 virt-install 21123] ERROR (cli:196) Cannot mix --file, --nonsparse, or --file-size with --disk options. Please see the manual for --disk syntax.
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (cli:192) Launched with command line:
/usr/bin/virt-install -n sample -r 300 -v --os-type=linux --os-variant=ubuntukarmic -w bridge=eth0 --arch=i386 --disk path=/mnt/images/xen/images/ubuntu/ubuntu9.1/ubuntu9.1 path=/mnt/images/xen/images/fedora/fedora8/sample8.img --import
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (cli:216) Requesting libvirt URI default
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (cli:218) Received libvirt URI xen:///
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (virt-install-2:473) Requesting virt method 'hvm', hv type 'default'.
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (virt-install-2:795) Received virt method 'hvm'
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (virt-install-2:796) Hypervisor name is 'xen'
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (virt-install-2:330) parse_disk: returning {'format': None, 'bus': None, 'readOnly': False, 'volInstall': None, 'path': '/mnt/images/xen/images/ubuntu/ubuntu9.1/ubuntu9.1', 'device': 'disk', 'volName': None, 'conn': <libvirt.virConnect instance at 0xd35b00>, 'size': None, 'driverCache': None, 'shareable': False, 'sparse': True}
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (cli:757) DISPLAY is set: graphics defaulting to VNC.
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (util:358) Could not open "/etc/sysconfig/keyboard" [Errno 2] No such file or directory: '/etc/sysconfig/keyboard'
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (util:321) Didn't find keymap in '/etc/X11/xorg.conf'!
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (util:333) Could not open "/etc/default/console-setup": [Errno 2] No such file or directory: '/etc/default/console-setup' 
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (util:380) Did not parse any usable keymapping.
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (Guest:1002) Generated install XML: None required
[Wed, 19 May 2010 22:26:39 virt-install 27199] DEBUG (Guest:1020) Generated boot XML: 
<domain type='xen'>
  <name>sample</name>
  <currentMemory>307200</currentMemory>
  <memory>307200</memory>
  <uuid>e6885474-a3c5-076a-13fb-673496656a5f</uuid>
  <os>
    <type arch='i686'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/><apic/><pae/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
    <disk type='file' device='disk'>
      <source file='/mnt/images/xen/images/ubuntu/ubuntu9.1/ubuntu9.1'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <source bridge='eth0'/>
      <mac address='00:16:36:b2:14:fc'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
    <console type='pty'/>
    <video>
      <model type='cirrus'/>
    </video>
  </devices>
</domain>

[Wed, 19 May 2010 22:26:40 virt-install 27199] DEBUG (Guest:1060) Launching console callback

In the description in the report to gentoo, I had added the second path manually before getting the xml dump.
Here is the dump unfettered.  Just one path, and I entered two paths in the long hand entry.  In gentoo I submitted it under virt-manager, but this added layer makes it look more like the handcraft of virtinst, again.

It just doesn't do anything other than boot the established guest.
Just like in virt-manager, it discards, actually discards the destination entry.
Now I call that a bug.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-bpo.4-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages virtinst depends on:
ii  python                      2.5.4-9      An interactive high-level object-o
ii  python-libvirt              0.8.0-2      libvirt Python bindings
ii  python-libxml2              2.7.7.dfsg-2 Python bindings for the GNOME XML 
ii  python-support              1.0.8        automated rebuilding support for P
ii  python-urlgrabber           3.1.0-5      A high-level cross-protocol url-gr

Versions of packages virtinst recommends:
ii  qemu                       0.12.3+dfsg-4 fast processor emulator
ii  virt-viewer                0.2.1-1       Displaying the graphical console o

virtinst suggests no packages.

-- no debconf information
 		 	   		  
_________________________________________________________________
Need a new place to live? Find it on Domain.com.au
http://clk.atdmt.com/NMN/go/157631292/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20100520/8d17384f/attachment.htm>


More information about the Pkg-libvirt-maintainers mailing list