Re: Unable to Create an Oracle Linux VM Using virt-install or virt-manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once more, with --debug:

> xen2:~ # virt-install -p --name dns2 --ram 786 --disk /dev/disk/by-id/scsi-14945540000000000705f69534353492d73616e315f300000 --location nfs://192.168.0.2/srv/md128/repositories/oracle/6.3/os/x86_64/ --debug
> Thu, 14 Feb 2013 11:48:20 DEBUG    Launched with command line:
> /usr/bin/virt-install -p --name dns2 --ram 786 --disk /dev/disk/by-id/scsi-14945540000000000705f69534353492d73616e315f300000 --location nfs://192.168.0.2/srv/md128/repositories/oracle/6.3/os/x86_64/ --debug
> Thu, 14 Feb 2013 11:48:20 DEBUG    Requesting libvirt URI default
> Thu, 14 Feb 2013 11:48:22 DEBUG    Received libvirt URI xen:///
> Thu, 14 Feb 2013 11:48:22 DEBUG    Requesting virt method 'xen', hv type 'default'.
> Thu, 14 Feb 2013 11:48:22 DEBUG    Received virt method 'xen'
> Thu, 14 Feb 2013 11:48:22 DEBUG    Hypervisor name is 'xen'
> Thu, 14 Feb 2013 11:48:22 DEBUG    DISPLAY is not set: defaulting to nographics.
> Thu, 14 Feb 2013 11:48:22 DEBUG    --graphics compat generated: none
> Thu, 14 Feb 2013 11:48:22 DEBUG    DistroInstaller location is a network source.
> Thu, 14 Feb 2013 11:48:22 DEBUG    Preparing mount at /var/tmp/virtinstmnt.r5psf_
> Thu, 14 Feb 2013 11:48:22 DEBUG    Attempting to detect distro:
> Thu, 14 Feb 2013 11:48:22 DEBUG    local hasFile: Couldn't find /var/tmp/virtinstmnt.r5psf_/.treeinfo
> Thu, 14 Feb 2013 11:48:22 DEBUG    local hasFile: Couldn't find /var/tmp/virtinstmnt.r5psf_/Fedora
> Thu, 14 Feb 2013 11:48:22 DEBUG    Detected a RHEL 5 Server distro
> Thu, 14 Feb 2013 11:48:22 DEBUG    Cleaning up mount at /var/tmp/virtinstmnt.r5psf_
> Thu, 14 Feb 2013 11:48:22 DEBUG    Guest.has_install_phase: True
>
> Starting install...
> Thu, 14 Feb 2013 11:48:22 DEBUG    scratchdir=/var/lib/xen
> Thu, 14 Feb 2013 11:48:22 DEBUG    Preparing mount at /var/lib/xen/virtinstmnt.X0dm9e
> Thu, 14 Feb 2013 11:48:22 DEBUG    Attempting to detect distro:
> Thu, 14 Feb 2013 11:48:22 DEBUG    local hasFile: Couldn't find /var/lib/xen/virtinstmnt.X0dm9e/.treeinfo
> Thu, 14 Feb 2013 11:48:22 DEBUG    local hasFile: Couldn't find /var/lib/xen/virtinstmnt.X0dm9e/Fedora
> Thu, 14 Feb 2013 11:48:22 DEBUG    Detected a RHEL 5 Server distro
> Thu, 14 Feb 2013 11:48:22 DEBUG    local hasFile: Couldn't find /var/lib/xen/virtinstmnt.X0dm9e/images/xen/vmlinuz
> Thu, 14 Feb 2013 11:48:22 DEBUG    Cleaning up mount at /var/lib/xen/virtinstmnt.X0dm9e
> Thu, 14 Feb 2013 11:48:22 ERROR    Couldn't find xen kernel for Red Hat Enterprise Linux tree.
> Thu, 14 Feb 2013 11:48:22 DEBUG    Traceback (most recent call last):
>   File "/usr/bin/virt-install", line 633, in start_install
>     noboot=options.noreboot)
>   File "/usr/lib64/python2.6/site-packages/virtinst/Guest.py", line 1207, in start_install
>     self._prepare_install(meter, dry)
>   File "/usr/lib64/python2.6/site-packages/virtinst/Guest.py", line 964, in _prepare_install
>     meter=meter)
>   File "/usr/lib64/python2.6/site-packages/virtinst/DistroInstaller.py", line 429, in prepare
>     dev = self._prepare_kernel_and_initrd(guest, meter)
>   File "/usr/lib64/python2.6/site-packages/virtinst/DistroInstaller.py", line 368, in _prepare_kernel_and_initrd
>     self.os_type)
>   File "/usr/lib64/python2.6/site-packages/virtinst/OSDistro.py", line 158, in acquireKernel
>     scratchdir, type)
>   File "/usr/lib64/python2.6/site-packages/virtinst/OSDistro.py", line 152, in _acquireMedia
>     None, media_cb)
>   File "/usr/lib64/python2.6/site-packages/virtinst/OSDistro.py", line 133, in _locationCheckWrapper
>     return callback(store, fetcher)
>   File "/usr/lib64/python2.6/site-packages/virtinst/OSDistro.py", line 145, in media_cb
>     media = store.acquireKernel(guest, fetcher, progresscb)
>   File "/usr/lib64/python2.6/site-packages/virtinst/OSDistro.py", line 276, in acquireKernel
>     { "distro": self.name, "type" : self.type })
> RuntimeError: Couldn't find xen kernel for Red Hat Enterprise Linux tree.

I assume that the last line contains the most valuable clue: "Couldn't find xen kernel for Red Hat Enterprise Linux tree."

Does this have anything to do with the lack of a .treeinfo as you mentioned (below), Cole?

Eric Pretorious
Truckee, CA


From: Cole Robinson <crobinso@xxxxxxxxxx>
To: Eric <epretorious@xxxxxxxxx>
Cc: "virt-tools-list@xxxxxxxxxx" <virt-tools-list@xxxxxxxxxx>
Sent: Tuesday, February 12, 2013 3:10 PM
Subject: Re: Unable to Create an Oracle Linux VM Using virt-install or virt-manager

On 02/12/2013 05:50 PM, Eric wrote:
> I've copied the contents of the Oracle Linux 6.3 installation media to an
> directory that's exported via NFS:
>
> san2:~ # ls -1 /srv/md128/repositories/oracle/6.3/os/x86_64/
> EFI
> EULA
> eula.en_US
> eula.py <http://eula.py/>
> GPL
> HighAvailability
> images
> isolinux
> LoadBalancer
> media.repo
> Packages
> README-en
> README-en.html
> RELEASE-NOTES-en
> RELEASE-NOTES-en.html
> RELEASE-NOTES-x86_64-en
> RELEASE-NOTES-x86_64-en.html
> RELEASE-NOTES-x86-en
> RELEASE-NOTES-x86-en.html
> repodata
> ResilientStorage
> RPM-GPG-KEY
> RPM-GPG-KEY-oracle
> ScalableFileSystem
> Server
> supportinfo
> TRANS.TBL
> UEK2
>
> ...and tried to use the directory to install an Oracle Linux VM with virt-install:
>
> xen2:~ # virt-install -p --name dns2 --ram 786 --disk
> /dev/disk/by-id/scsi-14945540000000000705f69534353492d73616e315f310000
> --location nfs://192.168.0.2/srv/md128/repositories/oracle/6.3/os/x86_64/
> --graphics none
>
> ...but virt-install complains:
>
> Starting install...
> ERROR    Couldn't find xen kernel for Red Hat Enterprise Linux tree.
>
> If I use the NFS respository with virt-manager, virt-manager complains...
>
> Error: coercing to Unicode: need string or buffer, instance found
>

Please run with --debug and post the output here.


> This is a tried-and-true methodology: I use this method for installing CentOS
> & SuSE regularly:
>
> san2:~ # ls -1 /srv/md128/repositories/centos/6.3/os/x86_64/
> CentOS_BuildTag
> .discinfo
> EFI
> EULA
> GPL
> images
> isolinux
> Packages
> RELEASE-NOTES-en-US.html
> repodata
> RPM-GPG-KEY-CentOS-6
> RPM-GPG-KEY-CentOS-Debug-6
> RPM-GPG-KEY-CentOS-Security-6
> RPM-GPG-KEY-CentOS-Testing-6
> .treeinfo
>
> xen2:~ # virt-install -p --name dns2 --ram 786 --disk
> /dev/disk/by-id/scsi-14945540000000000705f69534353492d73616e315f310000
> --location nfs://192.168.0.2/srv/md128/repositories/centos/6.3/os/x86_64/
> --graphics none
>
> What is it that's different about the Oracle Linux installation media that
> causes this failure? Is there a workaround?
>

OEL seems to lack .treeinfo which virt-install depends on for finding media in
RHEL6 trees.

- Cole


_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux