<br><tt><font size=2>"Perry N. Myers" <pmyers@redhat.com>
wrote on 2008-08-06 21:34:35:<br>
<br>
> Guo Lian Yun wrote:<br>
> >   Thanks for your great help!<br>
> <br>
> You're welcome :)<br>
> <br>
> >   I installed successfully all dependency RPM by yum. But
it report <br>
> > error when<br>
> >   I'm installing Ovirt.<br>
> > <br>
> > 1) It fails for me by running create-wui-appliance.sh to create
virtual <br>
> > server.<br>
> > <br>
> > #bash create-wui-appliance.sh -t <br>
> > http://download.fedora.redhat.<br>
> com/pub/fedora/linux/releases/9/Fedora/x86_64/os/ <br>
> > -k http://ovirt.org/download/wui-rel-x86_64.ks -v<br>
> > Domain node3 defined from /tmp/tmp.b3q8JWVRoM<br>
> > <br>
> > Domain node4 defined from /tmp/tmp.jtalRXJK3k<br>
> > <br>
> > Domain node5 defined from /tmp/tmp.B8zlcSB1Cj<br>
> > <br>
> > Network dummybridge destroyed<br>
> > <br>
> > Network dummybridge has been undefined<br>
> > <br>
> > Network dummybridge defined from /tmp/tmp.s8cSkpypob<br>
> > <br>
> > Network dummybridge started<br>
> > <br>
> > Network dummybridge marked as autostarted<br>
> > <br>
> > Formatting '/var/lib/libvirt/images/developer.img', fmt=qcow2,
<br>
> > size=6144000 kB<br>
> > Wed, 06 Aug 2008 03:40:05 ERROR    virConnectOpen()
failed<br>
> > Traceback (most recent call last):<br>
> >   File "/usr/sbin/virt-install", line 496, in
<module><br>
> >     main()<br>
> >   File "/usr/sbin/virt-install", line 345, in
main<br>
> >     conn = cli.getConnection(options.connect)<br>
> >   File "/usr/lib/python2.5/site-packages/virtinst/cli.py",
line 92, in <br>
> > getConnection<br>
> >     return libvirt.open(connect)<br>
> >   File "/usr/lib64/python2.5/site-packages/libvirt.py",
line 135, in open<br>
> >     if ret is None:raise libvirtError('virConnectOpen()
failed')<br>
> > libvirtError: virConnectOpen() failed<br>
> > <br>
> > Who knows why it is?<br>
> <br>
> Hmm. The command above should work to create a completely new appliance
<br>
> image in the current directory.  Some logs to look at would be:<br>
> /root/.virtinst/virt-install.log<br>
> /var/log/libvirt/qemu/*.log<br>
> <br>
> Attach these logs to a mail message and I'll take a look at them.
 They <br>
> might reveal something useful.  The command you're using above
is only <br>
> necessary if you want to create the appliance from scratch.  If
you have <br>
> downloaded the appliance tar.gz file from ovirt.org, then you can
simply <br>
> just use it.  No need to recreate it from the RPM repositories.<br>
> <br>
> > Then I try to run below command and pass for me.<br>
> > <br>
> > #bash create-wui-appliance.sh -d "`pwd`" -v<br>
> > <br>
> > Also, I can start 'developer' successfully.<br>
> <br>
> Good.  This is the command that just reuses the existing .img
file that is <br>
> downloaded from ovirt.org.<br>
> <br>
> > <br>
> > 2) I tried to invoke the main Virt page, but it fails for me.<br>
> > <br>
> > #ssh -Y root@192.168.50.2 firefox (or  ssh -fY root@192.168.50.2
firefox <br>
> > -no-remote)<br>
> > ssh: connect to host 192.168.50.2 port 22: No route to host<br>
> > <br>
> > What's the ip refer to? Is it refer to the ip address of my own
machine?<br>
> > It still fails for me by trying conncect to myself.<br>
> <br>
> This is sshing to the appliance which has an IP address of 192.168.50.2
on <br>
> the dummybridge network.  If you just started the appliance when
you ran <br>
> that command, the networking stack might not have been up yet.  Wait
a few <br>
> minutes and try again...</font></tt>
<br>
<br>
<br><tt><font size=2>  I tried several times but still fails for me.</font></tt>
<br><tt><font size=2>  Here is the steps of my installation.</font></tt>
<br>
<br><tt><font size=2>1) #bash create-wui-appliance.sh -d "`pwd`"
-v</font></tt>
<br><tt><font size=2>    </font></tt>
<br><tt><font size=2>  </font></tt>
<br><tt><font size=2>Domain node3 defined from /tmp/tmp.uf02Scb6Jq</font></tt>
<br>
<br><tt><font size=2>Domain node4 defined from /tmp/tmp.oYYPU1RmEJ</font></tt>
<br>
<br><tt><font size=2>Domain node5 defined from /tmp/tmp.sfDi0RKEwA</font></tt>
<br>
<br><tt><font size=2>Network dummybridge destroyed</font></tt>
<br>
<br><tt><font size=2>Network dummybridge has been undefined</font></tt>
<br>
<br><tt><font size=2>Network dummybridge defined from /tmp/tmp.K0RCG16KS2</font></tt>
<br>
<br><tt><font size=2>Network dummybridge started</font></tt>
<br>
<br><tt><font size=2>Network dummybridge marked as autostarted</font></tt>
<br>
<br><tt><font size=2>Domain developer defined from /tmp/tmp.LWLYom3gGz</font></tt>
<br>
<br><tt><font size=2>Application defined using disk located at /var/lib/libvirt/images/developer.img.</font></tt>
<br><tt><font size=2>Run virsh start developer to start the appliance</font></tt>
<br>
<br><tt><font size=2>2) #virsh start developer</font></tt>
<br>
<br><tt><font size=2>Domain developer started</font></tt>
<br>
<br><tt><font size=2>3£©#virt-viewer developer </font></tt>
<br><tt><font size=2>libvir: Remote error : unsupported authentication
type 2</font></tt>
<br><tt><font size=2>unable to connect to libvirt xen</font></tt>
<br>
<br><tt><font size=2>The command of 'virt-viewer developer' connect to
the guest running under xen, we have to connect to the guest developer
running under QEMU.</font></tt>
<br><tt><font size=2>(Maybe it's better to do some explanation of this
command in Ovirt install instruction)</font></tt>
<br>
<br><tt><font size=2>I try to connect to developer as follows, still fail
for me.</font></tt>
<br><tt><font size=2> </font></tt>
<br><tt><font size=2>[root@test]# virt-viewer -c qemu:///system developer</font></tt>
<br><tt><font size=2>libvir: Remote error : unsupported authentication
type 2</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu:///system</font></tt>
<br>
<br><tt><font size=2>[root@test]#  virt-viewer -c qemu:///system 6</font></tt>
<br><tt><font size=2>libvir: Remote error : unsupported authentication
type 2</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu:///system</font></tt>
<br>
<br><tt><font size=2>[root@test]#  virt-viewer --connect qemu:///system
6</font></tt>
<br><tt><font size=2>libvir: Remote error : unsupported authentication
type 2</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu:///system</font></tt>
<br>
<br><tt><font size=2>Actually, the developer domain run normally.</font></tt>
<br>
<br><tt><font size=2>virsh # list --all</font></tt>
<br><tt><font size=2> Id Name            
    State</font></tt>
<br><tt><font size=2>----------------------------------</font></tt>
<br><tt><font size=2>  6 developer          
 running</font></tt>
<br><tt><font size=2>  - node3          
     shut off</font></tt>
<br><tt><font size=2>  - node4          
     shut off</font></tt>
<br><tt><font size=2>  - node5          
     shut off</font></tt>
<br>
<br>
<br><tt><font size=2>virsh #  dumpxml developer</font></tt>
<br><tt><font size=2><domain type='kvm' id='6'></font></tt>
<br><tt><font size=2>  <name>developer</name></font></tt>
<br><tt><font size=2>  <uuid>bae8bbf9-2b42-4e3d-326d-db6869874ee5</uuid></font></tt>
<br><tt><font size=2>  <memory>786432</memory></font></tt>
<br><tt><font size=2>  <currentMemory>786432</currentMemory></font></tt>
<br><tt><font size=2>  <vcpu>1</vcpu></font></tt>
<br><tt><font size=2>  <os></font></tt>
<br><tt><font size=2>    <type arch='i686' machine='pc'>hvm</type></font></tt>
<br><tt><font size=2>    <boot dev='hd'/></font></tt>
<br><tt><font size=2>  </os></font></tt>
<br><tt><font size=2>  <clock offset='utc'/></font></tt>
<br><tt><font size=2>  <on_poweroff>destroy</on_poweroff></font></tt>
<br><tt><font size=2>  <on_reboot>restart</on_reboot></font></tt>
<br><tt><font size=2>  <on_crash>destroy</on_crash></font></tt>
<br><tt><font size=2>  <devices></font></tt>
<br><tt><font size=2>    <emulator>/usr/bin/qemu-kvm</emulator></font></tt>
<br><tt><font size=2>    <disk type='file' device='disk'></font></tt>
<br><tt><font size=2>      <source file='/var/lib/libvirt/images/developer.img'/></font></tt>
<br><tt><font size=2>      <target dev='hda' bus='ide'/></font></tt>
<br><tt><font size=2>    </disk></font></tt>
<br><tt><font size=2>    <interface type='network'></font></tt>
<br><tt><font size=2>      <mac address='52:54:00:8f:9e:3f'/></font></tt>
<br><tt><font size=2>      <source network='default'/></font></tt>
<br><tt><font size=2>      <target dev='vnet0'/></font></tt>
<br><tt><font size=2>    </interface></font></tt>
<br><tt><font size=2>    <interface type='network'></font></tt>
<br><tt><font size=2>      <mac address='52:54:00:f3:8e:92'/></font></tt>
<br><tt><font size=2>      <source network='dummybridge'/></font></tt>
<br><tt><font size=2>      <target dev='vnet1'/></font></tt>
<br><tt><font size=2>    </interface></font></tt>
<br><tt><font size=2>    <input type='mouse' bus='ps2'/></font></tt>
<br><tt><font size=2>    <graphics type='vnc' port='5900'
autoport='yes' listen='127.0.0.1'/></font></tt>
<br><tt><font size=2>  </devices></font></tt>
<br><tt><font size=2></domain></font></tt>
<br>
<br><tt><font size=2>I tried to connect developer again and again, but
still fail for me.</font></tt>
<br>
<br><tt><font size=2>[root@test]# virt-viewer -c qemu:///system developer</font></tt>
<br><tt><font size=2>libvir: Remote error : unsupported authentication
type 2</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu:///system</font></tt>
<br>
<br><tt><font size=2>[root@test]# virt-viewer -c qemu+tcp://localhost/system
developer</font></tt>
<br><tt><font size=2>libvir: Remote error : Connection refused</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu+tcp://localhost/system</font></tt>
<br>
<br><tt><font size=2>[root@test]# virt-viewer -c qemu+tcp:///system developer</font></tt>
<br><tt><font size=2>libvir: Remote error : Connection refused</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu+tcp:///system</font></tt>
<br>
<br><tt><font size=2>[root@test]# virt-viewer -c qemu+tcp://root@localhost/system
developer</font></tt>
<br><tt><font size=2>libvir: Remote error : Connection refused</font></tt>
<br><tt><font size=2>unable to connect to libvirt qemu+tcp://root@localhost/system</font></tt>
<br>
<br><tt><font size=2>However, I can connect to it by virsh successfully.</font></tt>
<br>
<br><tt><font size=2>[root@test]# virsh -c qemu:///system</font></tt>
<br><tt><font size=2>Welcome to virsh, the virtualization interactive terminal.</font></tt>
<br>
<br><tt><font size=2>Type:  'help' for help with commands</font></tt>
<br><tt><font size=2>       'quit' to quit</font></tt>
<br><tt><font size=2>   </font></tt>
<br>
<br><tt><font size=2><br>
> Also, give me the output of:<br>
> virsh list --all<br>
> virsh dumpxml developer<br>
> <br>
> > Here is the dummybridge output for my own machine.<br>
> > <br>
> > dummybridge Link encap:Ethernet  HWaddr 00:FF:99:97:1A:8F<br>
> >           inet addr:192.168.50.1  Bcast:192.168.50.255
 Mask:255.255.255.0<br>
> >           inet6 addr: fe80::3cb0:b6ff:feed:cab/64
Scope:Link<br>
> >           UP BROADCAST RUNNING MULTICAST
 MTU:1500  Metric:1<br>
> >           RX packets:0 errors:0 dropped:0
overruns:0 frame:0<br>
> >           TX packets:26 errors:0 dropped:0
overruns:0 carrier:0<br>
> >           collisions:0 txqueuelen:0<br>
> >           RX bytes:0 (0.0 b)  TX
bytes:4427 (4.3 KiB)<br>
> > <br>
> > #ssh -fY root@192.168.50.1 firefox -no-remote<br>
> > Error: no display specified<br>
> <br>
> This is sshing to your physical host running Fedora 9, so this is
not <br>
> going to work.<br>
> <br>
> > Does this fail because of putty? The set up machine isn't on
my hand, I <br>
> > connect to it<br>
> > by putty. Do I have to install it on my local machine?<br>
> <br>
> The command is trying to run firefox on a remote display using X <br>
> forwarding.  If you are running these commands in Putty on a
Windows box <br>
> none of this will work since Windows can't natively display X <br>
> applications.  The easiest way to do this is to log into the
local console <br>
> of the host that is running F9 and the developer appliance.  From
the <br>
> local console open up an xterm and run the ssh commands from there.</font></tt>
<br>
<br><tt><font size=2>  Thanks for your advise and I do again. I can't
ssh to it yet.</font></tt>
<br>
<br><tt><font size=2>  [root@test]# ssh -fY root@192.168.50.2 firefox
-no-remote</font></tt>
<br><tt><font size=2>   ssh: connect to host 192.168.50.2 port
22: No route to host</font></tt>
<br>
<br><tt><font size=2>  Then I try to ssh to my physical host(</font></tt><font size=2 face="Times New Roman">ssh
-fY root@192.168.50.1 firefox -no-remote</font><tt><font size=2>), and
I can bring up </font></tt>
<br><tt><font size=2>  the main firefox screen on the guest, which
verify the Xterm and display X works for me.</font></tt>
<br><tt><font size=2> </font></tt>
<br><tt><font size=2>  Thanks!</font></tt>
<br><tt><font size=2>  <br>
> <br>
> Perry<br>
</font></tt>