13 Replies Latest reply on Oct 13, 2011 11:36 PM by Abhijit

    Unable to install paravirtualized guest on Oracle VM 2.2

    Abhijit
      [root@ovs2 /]# virt-install paravirt name oel2 ram 8192 file /var/ovs/mount/A52CB661C1CF41D198D50F6379822694/running_pool/10_oel2/System.img file-size 40 nographics --location nfs:192.168.229.110:/el/EL5-x86


      Starting install...
      Traceback (most recent call last):
      File "/opt/oracle///usr/sbin/virt-install", line 506, in ?
      main()
      File "/opt/oracle///usr/sbin/virt-install", line 470, in main
      dom = guest.start_install(conscb)
      File "/opt/oracle/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line 242, in start_install
      (self.kernel, self.initrd) = self._get_paravirt_install_images()
      File "/opt/oracle/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line 129, in getparavirt_install_images
      kfn = copytemp(kernel, prefix="vmlinuz.")
      File "/opt/oracle/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line 28, in copytemp
      buff = fileobj.read(block_size)
      IOError: [Errno 5] Input/output error
      [root@ovs2 /]#

      Why am i getting this error? I am able to manually mount the file system. Matter of fact, i created a nfs repository on the same ovs server. How do i fix this?
        • 1. Re: Unable to install paravirtualized guest on Oracle VM 2.2
          Avi Miller-Oracle
          Abhijit wrote:
          Why am i getting this error? I am able to manually mount the file system. Matter of fact, i created a nfs repository on the same ovs server. How do i fix this?
          It's because virt-install can't find the paravirt images for boot purposes. Did you copy the install DVD into that location on your NFS store, or just the RPMs?
          • 2. Re: Unable to install paravirtualized guest on Oracle VM 2.2
            Abhijit
            The entire install DVD is present.

            [root@ovs2 isos]# cd /el/EL5-x86/
            [root@ovs2 EL5-x86]# ls
            blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server VT
            Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
            ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL
            [root@ovs2 EL5-x86]#

            And why is it looking for vmlinuz-xen ?? <i tried specifying all locations for vmlinuz> and get same error.

            [root@ovs2 EL5-x86]# find / -name vmlinuz-xen
            [root@ovs2 EL5-x86]# find / -name vmlinuz
            /el/EL5-x86/images/pxeboot/vmlinuz
            /el/EL5-x86/images/xen/vmlinuz
            /el/EL5-x86/isolinux/vmlinuz

            [root@ovs2 xen]# virt-install paravirt name oel3 ram 8192 file /var/ovs/mount/A52CB661C1CF41D198D50F6379822694/running_pool/oel3/System.img file-size 40 nographics --location nfs:192.168.229.110:/el/EL5-x86/images/xen

            Starting install...
            ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.JSSEsd/boot/x86_64/vmlinuz-xen'

            Edited by: Abhijit on Oct 13, 2011 2:53 PM

            Edited by: Abhijit on Oct 13, 2011 2:57 PM
            • 3. Re: Unable to install paravirtualized guest on Oracle VM 2.2
              Avi Miller-Oracle
              Abhijit wrote:
              And why is it looking for vmlinuz-xen ?? <i tried specifying all locations for vmlinuz> and get same error.
              It checks in order for:
              * images/xen/vmlinuz
              * images/pxeboot/vmlinuz-PAE
              * images/pxeboot/vmlinuz
              * boot/i386/vmlinuz-xen
              * boot/x86_64/vmlinux-xen
              ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.JSSEsd/boot/x86_64/vmlinuz-xen'
              This is the last file it checks for (which is used for SLES). It essentially means that all the rest listed above cannot be found for some reason. Not entirely sure why, though. I would manually mount the NFS share and make sure you can see/read those files over NFS. You may need to add the "no_root_squash" option to NFS for this to work.
              • 4. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                Abhijit
                It is all present

                [root@ovs2 EL5-x86]# find . -name vmlinuz\*
                ./images/pxeboot/vmlinuz
                ./images/xen/vmlinuz
                ./isolinux/vmlinuz
                [root@ovs2 EL5-x86]#

                And, no_rootsquash is also present

                [root@ovs2 EL5-x86]# more /etc/exports
                /var/isos 192.168.229.0/255.255.255.0(rw,sync,no_root_squash)
                /el/EL5-x86 192.168.229.0/255.255.255.0(rw,sync,no_root_squash)
                • 5. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                  Avi Miller-Oracle
                  Abhijit wrote:
                  It is all present
                  And, no_rootsquash is also present
                  Can you mount the NFS share manually and check on the mount point?
                  • 6. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                    Abhijit
                    Yes ... see below (am running the nfs server now on the same ovs server)

                    [root@ovs2 /]# mount -o ro,loop /var/isos/OracleLinux-R5-U7-Server-x86_64-dvd.iso /el/EL5-x86/
                    [root@ovs2 /]# df
                    Filesystem 1K-blocks Used Available Use% Mounted on
                    /dev/cciss/c0d0p2 3050092 3033292 0 100% /
                    /dev/cciss/c0d0p1 101086 47114 48753 50% /boot
                    tmpfs 288856 0 288856 0% /dev/shm
                    none 288768 40 288728 1% /var/lib/xenstored
                    /dev/cciss/c0d0p3 288623616 301056 288322560 1% /var/ovs/mount/A52CB661C1CF41D198D50F6379822694
                    /var/isos/OracleLinux-R5-U7-Server-x86_64-dvd.iso
                    3755446 3755446 0 100% /el/EL5-x86
                    [root@ovs2 /]# mount -t nfs 192.168.229.110:/el/EL5-x86 /opt1
                    [root@ovs2 /]# cd /opt1
                    [root@ovs2 opt1]# ls
                    blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server VT
                    Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
                    ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL
                    [root@ovs2 opt1]# find . -name vmlinuz\*
                    ./images/pxeboot/vmlinuz
                    ./images/xen/vmlinuz
                    ./isolinux/vmlinuz
                    [root@ovs2 opt1]#
                    • 7. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                      Abhijit
                      and i go to the temp mountpoint that the script will mount on

                      Starting install...
                      ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.7x4Rf4/boot/x86_64/vmlinuz-xen'
                      [root@ovs2 opt1]# df
                      Filesystem 1K-blocks Used Available Use% Mounted on
                      /dev/cciss/c0d0p2 3050092 3033308 0 100% /
                      /dev/cciss/c0d0p1 101086 47114 48753 50% /boot
                      tmpfs 288856 0 288856 0% /dev/shm
                      none 288768 40 288728 1% /var/lib/xenstored
                      /dev/cciss/c0d0p3 288623616 301056 288322560 1% /var/ovs/mount/A52CB661C1CF41D198D50F6379822694
                      /var/isos/OracleLinux-R5-U7-Server-x86_64-dvd.iso
                      3755446 3755446 0 100% /el/EL5-x86
                      192.168.229.110:/el/EL5-x86
                      3755456 3755456 0 100% /opt1
                      192.168.229.110:/el/EL5-x86/
                      3755456 3755456 0 100% /var/lib/xen/xennfs.NnE54I
                      [root@ovs2 opt1]# cd /var/lib/xen/xen
                      xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
                      xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
                      [root@ovs2 opt1]# cd /var/lib/xen/xen
                      xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
                      xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
                      [root@ovs2 opt1]# cd /var/lib/xen/xennfs.NnE54I/
                      [root@ovs2 xennfs.NnE54I]# ls
                      blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server VT
                      Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
                      ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL
                      [root@ovs2 xennfs.NnE54I]# find . -name vmlinuz\*
                      ./images/pxeboot/vmlinuz
                      ./images/xen/vmlinuz
                      ./isolinux/vmlinuz
                      [root@ovs2 xennfs.NnE54I]#
                      • 8. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                        Avi Miller-Oracle
                        Dunno, I'm afraid. I don't really use virt-install much. It's not even in OVM3 any more. The --location parameter should point to the root of the mount point, so don't specify anything lower.                                                                                                                                                                                                                                                                                                                                                                                               
                        • 9. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                          Abhijit
                          ok no worries. at least you tried ... i have different issues with 3.0 and hence i had to drop to 2.2 .. PVM install doesnt work this way, so sad .. it works perfect on my other Citrix xen server though :(
                          • 10. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                            Avi Miller-Oracle
                            Abhijit wrote:
                            ok no worries. at least you tried ... i have different issues with 3.0 and hence i had to drop to 2.2 .. PVM install doesnt work this way, so sad .. it works perfect on my other Citrix xen server though :(
                            Any reason why you're not running Oracle VM Manager and installing via that? Or just using an Oracle Linux PVM template? Obviously PVM install should work this way, and I'm pretty sure I've done it with virt-install in the past, I'm just not sure why it's not working for you now. The original error is an I/O error so make sure you can read/copy the vmlinuz file from the /var/lib/xen mount location successfully. Essentially, it's breaking when it tries to copy the vmlinuz file into the /tmp location, but it looks like it's breaking on the read part, not the write part.
                            • 11. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                              Abhijit
                              Installing via Oracle VM Manager is not working as well. I tried putting my location as http or nfs ... http returns 404 and nfs returns the same error. Hence i reverted to command line. The same syntax is working for me on Citrix Xen 3.0 (just a different machine)

                              I can install via CD but i dont want HVM. But, with HVM also am facing vnc freezing. the vnc window once opened, it freezes and does not accept any keyboard input. No such vnc issues on the same server when connecting to templates.

                              importing vm template works (am working on it now as we speak), but each template contains like 1000 rpms and my custom image only need 140+ rpms. Template is not going to work for me.

                              Edited by: Abhijit on Oct 13, 2011 4:22 PM
                              • 12. Re: Unable to install paravirtualized guest on Oracle VM 2.2
                                Avi Miller-Oracle
                                Abhijit wrote:
                                importing vm template works (am working on it now as we speak), but each template contains like 1000 rpms and my custom image only need 140+ rpms. Template is not going to work for me.
                                Use the modifyjeos tool[1] to create your own custom template.

                                [1] http://www.oracle.com/technetwork/topics/virtualization/downloads/vm-jeos-083859.html