Richard Broberg
2011-Oct-21 02:31 UTC
[Xen-users] Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run
I''m using a fresh ubuntu/11.10 install (I''ve tried this on both x86 and x86_64 - same behavior on each). After installation and applying outstanding o/s updates, I issue: apt-get install -y xen-hypervisor-4.1-i386 I reboot, choose the xen choice from the grub menu at bootup. root@ubuntu-server:~# virsh version error: failed to get the hypervisor version error: internal error Cannot find suitable emulator for i686 Compiled against library: libvir 0.9.2 Using library: libvir 0.9.2 Using API: QEMU 0.9.2 I can see services running: root@ubuntu-server:~# pgrep xen -l 20 xenwatch 21 xenbus 946 xenstored 951 xenconsoled 1094 xend 1095 xend root@ubuntu-server:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 7153 4 r----- 115.6 root@ubuntu-server:~# xl info host : ubuntu-server release : 3.0.0-12-generic-pae version : #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 machine : i686 nr_cpus : 4 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2400 hw_caps : bfebfbff:20100000:00000000:00000940:0000e3bd:00000000:00000001:00000000 virt_caps : hvm total_memory : 8157 free_memory : 1730 free_cpus : 0 xen_major : 4 xen_minor : 1 xen_extra : .1 xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable xen_commandline : placeholder cc_compiler : gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) cc_compile_by : doko cc_compile_domain : ubuntu.com cc_compile_date : Thu Oct 6 13:29:48 UTC 2011 xend_config_format : 4 Also - running ''virt-install'' fails as well: virt-install --hvm --name demo --ram 1024 --nodisks --livecd --graphics vnc --cdrom /mnt/iso-images/linux/ubuntu-11.10-desktop-i386.iso ERROR unable to connect to ''localhost:8000'': Connection refused _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2011-Oct-21 05:35 UTC
Re: [Xen-users] Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run
virsh&libvirt environment is not set for Xen. Boris. --- On Thu, 10/20/11, Richard Broberg <rhbroberg@yahoo.com> wrote: From: Richard Broberg <rhbroberg@yahoo.com> Subject: [Xen-users] Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run To: xen-users@lists.xensource.com Date: Thursday, October 20, 2011, 10:31 PM I''m using a fresh ubuntu/11.10 install (I''ve tried this on both x86 and x86_64 - same behavior on each). After installation and applying outstanding o/s updates, I issue: apt-get install -y xen-hypervisor-4.1-i386 I reboot, choose the xen choice from the grub menu at bootup. root@ubuntu-server:~# virsh version error: failed to get the hypervisor version error: internal error Cannot find suitable emulator for i686 Compiled against library: libvir 0.9.2 Using library: libvir 0.9.2 Using API: QEMU 0.9.2 I can see services running: root@ubuntu-server:~# pgrep xen -l 20 xenwatch 21 xenbus 946 xenstored 951 xenconsoled 1094 xend 1095 xend root@ubuntu-server:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 7153 4 r----- 115.6 root@ubuntu-server:~# xl info host : ubuntu-server release : 3.0.0-12-generic-pae version : #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 machine : i686 nr_cpus : 4 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 2400 hw_caps : bfebfbff:20100000:00000000:00000940:0000e3bd:00000000:00000001:00000000 virt_caps : hvm total_memory : 8157 free_memory : 1730 free_cpus : 0 xen_major : 4 xen_minor : 1 xen_extra : .1 xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=0xf5800000 xen_changeset : unavailable xen_commandline : placeholder cc_compiler : gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) cc_compile_by : doko cc_compile_domain : ubuntu.com cc_compile_date : Thu Oct 6 13:29:48 UTC 2011 xend_config_format : 4 Also - running ''virt-install'' fails as well: virt-install --hvm --name demo --ram 1024 --nodisks --livecd --graphics vnc --cdrom /mnt/iso-images/linux/ubuntu-11.10-desktop-i386.iso ERROR unable to connect to ''localhost:8000'': Connection refused _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Richard Broberg
2011-Oct-21 16:15 UTC
Re: [Xen-users] Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run
That may indeed be the case, but I need more details in a response to fix the problem - as in - what to do to fix it. The end result is that I have a xen-enabled kernel with xen installed, but cannot run any (useful) xen commands (virt-install fails, as noted). I could not find any obvious document explaining "follow these guidelines for setting up xen on ubuntu/11.10" - but I''d be happy to be pointed to one. I am very excited that xen is in the mainstream kernel - and I would like to see better adoption of xen as well. Having it work out-of-the-box will help that cause. From what I can tell, there seems to be some installation issues with respect to pathnames - keymap directories and qemu binaries and the like. ________________________________ From: Boris Derzhavets <bderzhavets@yahoo.com> To: xen-users@lists.xensource.com; Richard Broberg <rhbroberg@yahoo.com> Sent: Friday, October 21, 2011 1:35 AM Subject: Re: [Xen-users] Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run virsh&libvirt environment is not set for Xen. Boris. --- On Thu, 10/20/11, Richard Broberg <rhbroberg@yahoo.com> wrote:>From: Richard Broberg <rhbroberg@yahoo.com> >Subject: [Xen-users] Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run >To: xen-users@lists.xensource.com >Date: Thursday, October 20, 2011, 10:31 PM > > >I''m using a fresh ubuntu/11.10 install (I''ve tried this on both x86 and x86_64 - same behavior on each). >After installation and applying outstanding o/s updates, I issue: > >apt-get install -y xen-hypervisor-4.1-i386 > >I reboot, choose the xen choice from the grub menu at bootup. > >root@ubuntu-server:~# virsh version >error: failed to get thehypervisor version>error: internal error Cannot find suitable emulator for i686 >Compiled against library: libvir 0.9.2 >Using library: libvir 0.9.2 >Using API: QEMU 0.9.2 > >I can see services running: > >root@ubuntu-server:~# pgrep xen -l >20 xenwatch >21 xenbus >946 xenstored >951 xenconsoled >1094 xend >1095 xend > >root@ubuntu-server:~# xm list >Name ID Mem VCPUs State Time(s) >Domain-0 0 7153 4 r----- 115.6 > >root@ubuntu-server:~# xl info >host: ubuntu-server>release : 3.0.0-12-generic-pae >version : #20-Ubuntu SMP Fri Oct 7 16:37:17 UTC 2011 >machine : i686 >nr_cpus : 4 >nr_nodes : 1 >cores_per_socket : 4 >threads_per_core : 1 >cpu_mhz : 2400 >hw_caps : bfebfbff:20100000:00000000:00000940:0000e3bd:00000000:00000001:00000000 >virt_caps : hvm >total_memory : 8157 >free_memory :1730>free_cpus : 0 >xen_major : 4 >xen_minor : 1 >xen_extra : .1 >xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p >xen_scheduler : credit >xen_pagesize : 4096 >platform_params : virt_start=0xf5800000 >xen_changeset : unavailable >xen_commandline : placeholder >cc_compiler : gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) >cc_compile_by : doko >cc_compile_domain : ubuntu.com >cc_compile_date: Thu Oct 6 13:29:48 UTC 2011>xend_config_format : 4 > > >Also - running ''virt-install'' fails as well: > >virt-install --hvm --name demo --ram 1024 --nodisks --livecd --graphics vnc --cdrom /mnt/iso-images/linux/ubuntu-11.10-desktop-i386.iso >ERROR unable to connect to ''localhost:8000'': Connection refused > > > > > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
dbaxps
2011-Oct-24 17:45 UTC
[Xen-users] Re: Fresh ubuntu/11.10 install with xen/4.1; virsh doesn''t run
Comment out (xend-unix-server yes) in /etc/xen/xend-config.sxp and export variable (service xend restart) and export VIRSH_DEFAULT_CONNECT_URI="xen:///" -- View this message in context: http://xen.1045712.n5.nabble.com/Fresh-ubuntu-11-10-install-with-xen-4-1-virsh-doesn-t-run-tp4923482p4933494.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users