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

Re: [virt-tools-list] virt-manager 0.8.2 local ISO and PXE boot install option greyed out on 2.6.32.27 pv-ops Dom0 kernel



On 03/07/2011 02:24 PM, Tapas Mishra wrote:
> 
> 
> On Tue, Mar 8, 2011 at 12:45 AM, Cole Robinson <crobinso redhat com
> <mailto:crobinso redhat com>> wrote:
> 
>     On 03/07/2011 02:06 PM, Tapas Mishra wrote:
>     >
>     >
>     > On Mon, Mar 7, 2011 at 11:07 PM, Cole Robinson <crobinso redhat com
>     <mailto:crobinso redhat com>
>     > <mailto:crobinso redhat com <mailto:crobinso redhat com>>> wrote:
>     >
>     >     On 03/01/2011 03:54 AM, Tapas Mishra wrote:
>     >     > Hi,
>     >     > I just installed a pv-ops Dom0 2.6.32.27 Kernel on a 64 bit non VT
>     machine.
>     >     > Following instructions here
>     >     > http://wiki.xensource.com/xenwiki/Xen4.0
>     >     > for 64 bit Ubuntu 10.04
>     >     >
>     >     > apt-get install bcc bin86 gawk bridge-utils iproute libcurl3
>     >     > libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo
>     >     > texlive-latex-base texlive-latex-recommended texlive-fonts-extra
>     >     > texlive-fonts-recommended pciutils-dev mercurial build-essential make
>     >     > gcc libc6-dev zlib1g-dev python python-dev python-twisted
>     >     > libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl
>     >     > libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex
>     >     >
>     >     > apt-get install gcc-multilib
>     >     > apt-get install xz-utils
>     >     >
>     >     > make xen
>     >     > make tools
>     >     > make install-xen
>     >     > make install-tools PYTHON_PREFIX_ARG=
>     >     >
>     >     > I did not do make install-stubdom.
>     >     >
>     >     >
>     >     >
>     >     > It is a Ubuntu Desktop 10.04 amd64 bit version.
>     >     > Then as  mentioned here on this guide
>     >     >
>     >    
>     http://bderzhavets.wordpress.com/2010/03/26/virst-installvirt-manager-at-xen-4-0-rc8-2-6-32-10-pvops-dom0-on-top-ubuntu-karmic-koala-server/
>     >     > (I did not follow the above guide strictly)
>     >     >
>     >     > Commented out (xend-unix-server yes) in /etc/xen/xend-config.sxp ,
>     >     > here is my xend-config.sxp
>     >     > http://pastebin.com/M8CfrqBc
>     >     > Then  exported variable  VIRSH_DEFAULT_CONNECT_URI=”xen:///”
>     >     > in root’s .bashrc.
>     >     > Then :-
>     >     > # apt-get install ubuntu-virt-server ubuntu-virt-mgmt
>     >     >
>     >     > Now when I open virt-manager the option to install from Local ISO or
>     >     > PXE are greyed out.
>     >     > virt-manager version is 0.8.2
>     >     >
>     >     >
>     >     > Let me know if there is any possibility of improvement so that I can
>     >     > get the option of install from Local ISO here.
>     >     >
>     >
>     >     Can you please provide the output of virsh --connect xen:///
>     capabilities
>     >
>     >
>     > Here is the output
>     >
>     > virsh --connect xen:/// capabilities
>     >
>     > <capabilities>
>     >
>     >   <host>
>     >     <cpu>
>     >       <arch>x86_64</arch>
>     >       <features>
>     >         <pae/>
>     >
>     >       </features>
>     >     </cpu>
>     >     <migration_features>
>     >       <live/>
>     >       <uri_transports>
>     >         <uri_transport>xenmigr</uri_transport>
>     >       </uri_transports>
>     >     </migration_features>
>     >   </host>
>     >
>     >   <guest>
>     >     <os_type>xen</os_type>
>     >     <arch name='x86_64'>
>     >       <wordsize>64</wordsize>
>     >       <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
>     >       <machine>xenpv</machine>
>     >       <domain type='xen'>
>     >       </domain>
>     >     </arch>
>     >   </guest>
>     >
>     >   <guest>
>     >     <os_type>xen</os_type>
>     >     <arch name='i686'>
>     >       <wordsize>32</wordsize>
>     >       <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
>     >       <machine>xenpv</machine>
>     >       <domain type='xen'>
>     >       </domain>
>     >     </arch>
>     >     <features>
>     >       <pae/>
>     >     </features>
>     >   </guest>
>     >
>     > </capabilities>
>     >
>     >
> 
> I want to  know what is the meaning of above output and what you wanted to see
> in it.
> I want to know it for my own understanding so please give some url where you
> debug 
> virt-manager or such things because what you asked I did not had a clue of it.
>  
> 
>     >
>     >     My guess is that libvirt did not detect fullvirt xen capability, so
>     >     virt-manager is only providing install options for PV guest (which
>     is URL only
>     >     on linux).
>     >
>     > The machine which  I am having is a non VT 64 bit machine and I am trying to
>     > create 32 bit guest on it
>     > since hardware is non VT so  I feel it will only have either a 32 bit HVM
>     > guest or PV guest.
>     >
> 
>     If your machine does not have VT support, you will only be able to install a
>     PV guest, and the only way to install a PV guest on linux is using a direct
>     kernel/initrd boot (basically a URL install).
> 
> Ohh ok.Thanks for clarifying that out. 
> 
> 
>     If you have an install DVD, you can mount it and export it over http on your
>     local machine, then point virt-manager at that.
> 
> Exactly I did that only and have been trying this only I have done such an
> installation on a Dell Server which was VT and have created HVM guests on it
> by the method you suggested above.
> But this time on my non VT machine it is failing.
> 
> Here is what I did 
> 1) Download ubuntu 10.04 32 bit ISO
> 2) Kept it in /var/www (apache2 is running) 
> 3) renamed it to ubuntu.iso
> 
> and when I reached a stage where installation begins I gave
> path http://localhost/ubuntu.iso
> but I got an error saying any installable distribution not found.
> 
> 4) After this I did
> mkdir /var/www/sk
> 
> mount -t iso9660 /var/www/ubuntu.iso /var/www/w -o loop
> 
> and this time during the installation I gave path http://localhost/
> <http://localhost/sk>w
> I was able to see the contents in browser http://localhost/
> <http://localhost/sk>w which you will see in a normal CD.
> But beginning installation I got same error 
> 
> DistroInstaller.py", line 249, in prepare
>     self._prepare_kernel_and_initrd(guest, distro, meter)
>   File "/usr/lib/pymodules/python2.6/virtinst/DistroInstaller.py", line 194,
> in _prepare_kernel_and_initrd
>     type=self.os_type, distro=distro)
>   File "/usr/lib/pymodules/python2.6/virtinst/OSDistro.py", line 144, in
> acquireKernel
>     scratchdir, type, distro)
>   File "/usr/lib/pymodules/python2.6/virtinst/OSDistro.py", line 124, in
> _acquireMedia
>     scratchdir=scratchdir, arch=arch)
>   File "/usr/lib/pymodules/python2.6/virtinst/OSDistro.py", line 110, in
> _storeForDistro
>     baseuri)
>         ValueError: Could not find an installable distribution at
> 'http://localhost/w'
> 
> So is the above way wrong to do?

Is that a live CD or an full install tree DVD or similar? I'm not that
familiar with ubuntu install media.

virtinst/virt-manager expect a URL to look like:

http://us.archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/

(in fact you should be able to use that URL). So if your mounted ISO doesn't
have a directory listing similar to that (with a 'current' directory at least)
virt-manager isn't going to know what to do.

What versions or virtinst and virt-manager are you using?

- Cole


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