[virt-tools-list] Problem Installing Ubuntu 13.10 on KVM CentOS 6.5 host

Cole Robinson crobinso at redhat.com
Thu Dec 19 20:24:04 UTC 2013


On 12/19/2013 02:30 PM, Ned Schumann wrote:
> The problem is that virt-install throws "Couldn't find hvm kernel for Ubuntu tree."
> 
> Host OS is CentOS 6.5 with up-to-date (2013-12-19) patches
> virt-manager.x86_64   0.9.0-19.el6
> Guest is ubuntu=13.10-server-amd64.iso
> 
> [root at xxxx ~]# virt-install         \
>> --name=methow       \
>> --hvm               \
>> --os-type=linux     \
>> --disk=/xxxx/ubuntu-methow.qcow2,format=qcow2 --network bridge=br2,model=virtio \
>> --ram=5000          \
>> --vcpus=2           \
>> --nographics        \
>> --autostart         \
>> --location /dev/sr1 \
>> --extra-args="console=ttyS0,115200n8"
> 
> Starting install...
> Retrieving file version.info...                                                                            |  116 B     00:00 ... 
> ERROR    Couldn't find hvm kernel for Ubuntu tree.
> 
> The details
> ***********
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (cli:222) Launched with command line:
> /usr/sbin/virt-install --name=methow --hvm --os-type=linux --disk=/virtualstorage/ubuntu-methow.qcow2,format=qcow2 --network bridge=br2,model=virtio --ram=5000 --vcpus=2 --nographics --autostart --location /dev/sr1 --extra-args=console=ttyS0,115200n8
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (cli:326) Requesting libvirt URI default
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (cli:328) Received libvirt URI qemu:///system
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (virt-install:259) Requesting virt method 'hvm', hv type 'default'.
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (virt-install:467) Received virt method 'hvm'
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (virt-install:468) Hypervisor name is 'kvm'
> [Thu, 19 Dec 2013 11:26:41 virt-install 842] DEBUG (cli:951) --graphics compat generated: none
> [Thu, 19 Dec 2013 11:26:42 virt-install 842] DEBUG (DistroInstaller:208) DistroInstaller location is a local file/path: /dev/sr1
> [Thu, 19 Dec 2013 11:26:42 virt-install 842] DEBUG (virt-install:619) Guest.has_install_phase: True
> [Thu, 19 Dec 2013 11:26:42 virt-install 842] DEBUG (Installer:182) scratchdir=/var/lib/libvirt/boot
> [Thu, 19 Dec 2013 11:26:42 virt-install 842] DEBUG (ImageFetcher:184) Preparing mount at /var/lib/libvirt/boot/virtinstmnt.sih8w2
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (OSDistro:65) Attempting to detect distro:
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/.treeinfo
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/Fedora
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/Server
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/Client
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/RedHat
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/CentOS
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/SL
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/directory.yast
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/current/images/MANIFEST
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/images/daily/MANIFEST
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/current/images/MANIFEST
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:83) Fetching URI: /var/lib/libvirt/boot/virtinstmnt.sih8w2/install/netboot/version.info
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:94) Saved file to /var/lib/libvirt/boot/virtinst-version.info.F1Tg8z
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (OSDistro:969) Detected an Ubuntu distro
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /var/lib/libvirt/boot/virtinstmnt.sih8w2/install/netboot/ubuntu-installer/i386/linux
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (ImageFetcher:205) Cleaning up mount at /var/lib/libvirt/boot/virtinstmnt.sih8w2
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] ERROR (cli:440) Couldn't find hvm kernel for Ubuntu tree.
> [Thu, 19 Dec 2013 11:26:43 virt-install 842] DEBUG (_util:233) Traceback (most recent call last):
>   File "/usr/sbin/virt-install", line 629, in start_install
>     noboot=options.noreboot)
>   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1206, in start_install
>     self._prepare_install(meter, dry)
>   File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 963, in _prepare_install
>     meter=meter)
>   File "/usr/lib/python2.6/site-packages/virtinst/DistroInstaller.py", line 425, in prepare
>     dev = self._prepare_kernel_and_initrd(guest, meter)
>   File "/usr/lib/python2.6/site-packages/virtinst/DistroInstaller.py", line 364, in _prepare_kernel_and_initrd
>     self.os_type)
>   File "/usr/lib/python2.6/site-packages/virtinst/OSDistro.py", line 156, in acquireKernel
>     scratchdir, type)
>   File "/usr/lib/python2.6/site-packages/virtinst/OSDistro.py", line 150, in _acquireMedia
>     None, media_cb)
>   File "/usr/lib/python2.6/site-packages/virtinst/OSDistro.py", line 131, in _locationCheckWrapper
>     return callback(store, fetcher)
>   File "/usr/lib/python2.6/site-packages/virtinst/OSDistro.py", line 143, in media_cb
>     media = store.acquireKernel(guest, fetcher, progresscb)
>   File "/usr/lib/python2.6/site-packages/virtinst/OSDistro.py", line 278, in acquireKernel
>     { "distro": self.name, "type" : self.type })
> RuntimeError: Couldn't find hvm kernel for Ubuntu tree.
> 

Maybe ubuntu tree changed format? Either way, since it looks like you are
using cdrom media, just change --location to --cdrom and it should work.

- Cole




More information about the virt-tools-list mailing list