<br><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 1:10 AM, Tapas Mishra <span dir="ltr"><<a href="mailto:mightydreams@gmail.com">mightydreams@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Mar 8, 2011 at 1:03 AM, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 03/07/2011 02:24 PM, Tapas Mishra wrote:<br>
><br>
><br>
> On Tue, Mar 8, 2011 at 12:45 AM, Cole Robinson <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a><br>
</div><div>> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>> wrote:<br>
><br>
>     On 03/07/2011 02:06 PM, Tapas Mishra wrote:<br>
>     ><br>
>     ><br>
>     > On Mon, Mar 7, 2011 at 11:07 PM, Cole Robinson <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a><br>
>     <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>><br>
</div><div><div></div><div>>     > <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>>> wrote:<br>

>     ><br>
>     >     On 03/01/2011 03:54 AM, Tapas Mishra wrote:<br>
>     >     > Hi,<br>
>     >     > I just installed a pv-ops Dom0 2.6.32.27 Kernel on a 64 bit non VT<br>
>     machine.<br>
>     >     > Following instructions here<br>
>     >     > <a href="http://wiki.xensource.com/xenwiki/Xen4.0" target="_blank">http://wiki.xensource.com/xenwiki/Xen4.0</a><br>
>     >     > for 64 bit Ubuntu 10.04<br>
>     >     ><br>
>     >     > apt-get install bcc bin86 gawk bridge-utils iproute libcurl3<br>
>     >     > libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo<br>
>     >     > texlive-latex-base texlive-latex-recommended texlive-fonts-extra<br>
>     >     > texlive-fonts-recommended pciutils-dev mercurial build-essential make<br>
>     >     > gcc libc6-dev zlib1g-dev python python-dev python-twisted<br>
>     >     > libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl<br>
>     >     > libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex<br>
>     >     ><br>
>     >     > apt-get install gcc-multilib<br>
>     >     > apt-get install xz-utils<br>
>     >     ><br>
>     >     > make xen<br>
>     >     > make tools<br>
>     >     > make install-xen<br>
>     >     > make install-tools PYTHON_PREFIX_ARG=<br>
>     >     ><br>
>     >     > I did not do make install-stubdom.<br>
>     >     ><br>
>     >     ><br>
>     >     ><br>
>     >     > It is a Ubuntu Desktop 10.04 amd64 bit version.<br>
>     >     > Then as  mentioned here on this guide<br>
>     >     ><br>
>     ><br>
>     <a href="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/" target="_blank">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/</a><br>


>     >     > (I did not follow the above guide strictly)<br>
>     >     ><br>
>     >     > Commented out (xend-unix-server yes) in /etc/xen/xend-config.sxp ,<br>
>     >     > here is my xend-config.sxp<br>
>     >     > <a href="http://pastebin.com/M8CfrqBc" target="_blank">http://pastebin.com/M8CfrqBc</a><br>
>     >     > Then  exported variable  VIRSH_DEFAULT_CONNECT_URI=”xen:///”<br>
>     >     > in root’s .bashrc.<br>
>     >     > Then :-<br>
>     >     > # apt-get install ubuntu-virt-server ubuntu-virt-mgmt<br>
>     >     ><br>
>     >     > Now when I open virt-manager the option to install from Local ISO or<br>
>     >     > PXE are greyed out.<br>
>     >     > virt-manager version is 0.8.2<br>
>     >     ><br>
>     >     ><br>
>     >     > Let me know if there is any possibility of improvement so that I can<br>
>     >     > get the option of install from Local ISO here.<br>
>     >     ><br>
>     ><br>
>     >     Can you please provide the output of virsh --connect xen:///<br>
>     capabilities<br>
>     ><br>
>     ><br>
>     > Here is the output<br>
>     ><br>
>     > virsh --connect xen:/// capabilities<br>
>     ><br>
>     > <capabilities><br>
>     ><br>
>     >   <host><br>
>     >     <cpu><br>
>     >       <arch>x86_64</arch><br>
>     >       <features><br>
>     >         <pae/><br>
>     ><br>
>     >       </features><br>
>     >     </cpu><br>
>     >     <migration_features><br>
>     >       <live/><br>
>     >       <uri_transports><br>
>     >         <uri_transport>xenmigr</uri_transport><br>
>     >       </uri_transports><br>
>     >     </migration_features><br>
>     >   </host><br>
>     ><br>
>     >   <guest><br>
>     >     <os_type>xen</os_type><br>
>     >     <arch name='x86_64'><br>
>     >       <wordsize>64</wordsize><br>
>     >       <emulator>/usr/lib64/xen/bin/qemu-dm</emulator><br>
>     >       <machine>xenpv</machine><br>
>     >       <domain type='xen'><br>
>     >       </domain><br>
>     >     </arch><br>
>     >   </guest><br>
>     ><br>
>     >   <guest><br>
>     >     <os_type>xen</os_type><br>
>     >     <arch name='i686'><br>
>     >       <wordsize>32</wordsize><br>
>     >       <emulator>/usr/lib64/xen/bin/qemu-dm</emulator><br>
>     >       <machine>xenpv</machine><br>
>     >       <domain type='xen'><br>
>     >       </domain><br>
>     >     </arch><br>
>     >     <features><br>
>     >       <pae/><br>
>     >     </features><br>
>     >   </guest><br>
>     ><br>
>     > </capabilities><br>
>     ><br>
>     ><br>
><br>
> I want to  know what is the meaning of above output and what you wanted to see<br>
> in it.<br>
> I want to know it for my own understanding so please give some url where you<br>
> debug<br>
> virt-manager or such things because what you asked I did not had a clue of it.<br>
><br>
><br>
>     ><br>
>     >     My guess is that libvirt did not detect fullvirt xen capability, so<br>
>     >     virt-manager is only providing install options for PV guest (which<br>
>     is URL only<br>
>     >     on linux).<br>
>     ><br>
>     > The machine which  I am having is a non VT 64 bit machine and I am trying to<br>
>     > create 32 bit guest on it<br>
>     > since hardware is non VT so  I feel it will only have either a 32 bit HVM<br>
>     > guest or PV guest.<br>
>     ><br>
><br>
>     If your machine does not have VT support, you will only be able to install a<br>
>     PV guest, and the only way to install a PV guest on linux is using a direct<br>
>     kernel/initrd boot (basically a URL install).<br>
><br>
> Ohh ok.Thanks for clarifying that out.<br>
><br>
><br>
>     If you have an install DVD, you can mount it and export it over http on your<br>
>     local machine, then point virt-manager at that.<br>
><br>
> Exactly I did that only and have been trying this only I have done such an<br>
> installation on a Dell Server which was VT and have created HVM guests on it<br>
> by the method you suggested above.<br>
> But this time on my non VT machine it is failing.<br>
><br>
> Here is what I did<br>
> 1) Download ubuntu 10.04 32 bit ISO<br>
> 2) Kept it in /var/www (apache2 is running)<br>
> 3) renamed it to ubuntu.iso<br>
><br>
> and when I reached a stage where installation begins I gave<br>
> path <a href="http://localhost/ubuntu.iso" target="_blank">http://localhost/ubuntu.iso</a><br>
> but I got an error saying any installable distribution not found.<br>
><br>
> 4) After this I did<br>
> mkdir /var/www/sk<br>
><br>
> mount -t iso9660 /var/www/ubuntu.iso /var/www/w -o loop<br>
><br>
> and this time during the installation I gave path <a href="http://localhost/" target="_blank">http://localhost/</a><br>
</div></div>> <<a href="http://localhost/sk" target="_blank">http://localhost/sk</a>>w<br>
<div>> I was able to see the contents in browser <a href="http://localhost/" target="_blank">http://localhost/</a><br>
</div>> <<a href="http://localhost/sk" target="_blank">http://localhost/sk</a>>w which you will see in a normal CD.<br>
<div>> But beginning installation I got same error<br>
><br>
> DistroInstaller.py", line 249, in prepare<br>
>     self._prepare_kernel_and_initrd(guest, distro, meter)<br>
>   File "/usr/lib/pymodules/python2.6/virtinst/DistroInstaller.py", line 194,<br>
> in _prepare_kernel_and_initrd<br>
>     type=self.os_type, distro=distro)<br>
>   File "/usr/lib/pymodules/python2.6/virtinst/OSDistro.py", line 144, in<br>
> acquireKernel<br>
>     scratchdir, type, distro)<br>
>   File "/usr/lib/pymodules/python2.6/virtinst/OSDistro.py", line 124, in<br>
> _acquireMedia<br>
>     scratchdir=scratchdir, arch=arch)<br>
>   File "/usr/lib/pymodules/python2.6/virtinst/OSDistro.py", line 110, in<br>
> _storeForDistro<br>
>     baseuri)<br>
>         ValueError: Could not find an installable distribution at<br>
> '<a href="http://localhost/w" target="_blank">http://localhost/w</a>'<br>
><br>
> So is the above way wrong to do?<br>
<br>
</div>Is that a live CD or an full install tree DVD or similar? I'm not that<br>
familiar with ubuntu install media.<br>
<br></blockquote></div></div><div>Ubuntu basically by default gives the full installation CD which is also live CD but you can do installation completely from it.</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


virtinst/virt-manager expect a URL to look like:<br>
<br>
<a href="http://us.archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/" target="_blank">http://us.archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/</a><br>
<br>
(in fact you should be able to use that URL). So if your mounted ISO doesn't<br>
have a directory listing similar to that (with a 'current' directory at least)<br>
virt-manager isn't going to know what to do.<br>
<br></blockquote></div><div>Ok no the URL in my case does not looks like that.</div><div>When I mount the ISO (from which I have done installations on actual physical machines)</div><div>then <a href="http://localhost" target="_blank">http://localhost</a> shows following</div>

<div><br></div><div> autorun.inf</div><div> casper</div><div>dists</div><div> install</div><div>isolinux</div><div>md5sum.txt</div><div>pics</div><div>pool</div><div>preseed</div><div>README.diskdefines</div><div>ubuntu -> </div>

<div>wubi.exe</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What versions or virtinst and virt-manager are you using?<br>
<font color="#888888"><br></font></blockquote><div><br></div></div><div> virt-install --version</div><div>0.500.1</div><div> </div><div>and virt-manager is 0.8.2</div></div></blockquote><div><br></div><div>I want to update in this thread it appears that the trick mounting the install ISO and then doing an http install works for CentOS/RedHat systems but the same does not work with Debian/Ubuntu based systems and it appears I might need to create a local mirror as explained here</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.howtoforge.com/local_debian_ubuntu_mirror">http://www.howtoforge.com/local_debian_ubuntu_mirror</a></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.debian.org/releases/stable/amd64/ch06s03.html.en#di-setup">http://www.debian.org/releases/stable/amd64/ch06s03.html.en#di-setup</a></div>
<div><br></div><div>while I do see in apache logs the requests for installation reaching </div><div>here is the apache log on host machine </div><div><br></div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/ HTTP/1.1" 200 169 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/.treeinfo HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/Fedora HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/Server HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/Client HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/RedHat HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/CentOS HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/SL HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/directory.yast HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/current/images/MANIFEST HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/images/daily/MANIFEST HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/boot/platform/i86xpv/kernel/unix HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/platform/i86xpv/kernel/unix HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/STARTUP/XNLOADER.SYS HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/images/xen/vmlinuz HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/images/boot.iso HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/boot/boot.iso HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/current/images/netboot/mini.iso HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:27 +0530] "HEAD /sk/install/images/boot.iso HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/ HTTP/1.1" 200 169 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/.treeinfo HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/Fedora HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/Server HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/Client HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/RedHat HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/CentOS HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/SL HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/directory.yast HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
127.0.0.1 - - [08/Mar/2011:00:26:35 +0530] "HEAD /sk/current/images/MANIFEST HTTP/1.1" 404 182 "-" "Python-urllib/2.6"</div></div></div><br><br clear="all"><br>-- <br><a href="http://mightydreams.blogspot.com" target="_blank">http://mightydreams.blogspot.com</a><br>