OK, I''m not "new" to Xen, but it''s been a few years (Xen 3.x) since I last really messed with it. I''m now stuck trying to get back into my recently installed new guest. My host is running Ubuntu 12.04.1 and Xen 4.1 with the xl toolstack. I originally created/installed the guest using virt-manager. The install went well and the guest rebooted successfully and I was able to access it via xl vncviewer guest-name Now, the first problem, where''s the config file? Xen 3.x used fairly straight forward config files that were stored in /etc/xen/. virt-install doesn''t create that file. I found an sxp format config file in /var/lib/xend/domains/UUID/ that matches my guest. But I''m unable to boot from that. When I try, I get a lot of parser errors and finally complaints about it looking like Python code. So this: sudo xl create /var/lib/xend/domains/UUID/config.sxp doesn''t allow me to reboot the guest. I then tried creating a basic old-style config file: builder=''hvm'' name=''precise-hvm'' memory=1024 maxmemory=1024 uuid=''18069c40-e01f-ddf8-5932-bc6bb6b5bba1'' vif=''xenbr0'' disk=[ ''file:/vms/precise-hvm.img,qcow2,hda'' ] I then tried starting the guest there. That also fails because despite what I read here: http://xenbits.xen.org/docs/unstable/misc/xl-disk-configuration.txt None of these disk lines are accepted by xl: disk=[ ''/vms/precise-hvm.img,,hda'' ] disk=[ ''/vms/precise-hvm.img,qcow,hda'' ] disk=[ ''/vms/precise-hvm.img,qcow2,hda'' ] disk=[ ''file:/vms/precise-hvm.img,qcow2,hda'' ] For each disk line where I specify a format (qcow or qcow2) I get the following output: Parsing config file /etc/xen/precise-hvm.cfg /etc/xen/precise-hvm.cfg:10: warning: parameter `vif'' is a single value but should be a list xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader: 0000000000100000->000000000017c510 TOTAL: 0000000000000000->000000003f800000 ENTRY ADDRESS: 00000000001015a0 xc: info: PHYSICAL MEMORY ALLOCATION: 4KB PAGES: 0x0000000000000200 2MB PAGES: 0x00000000000001fb 1GB PAGES: 0x0000000000000000 libxl: error: libxl.c:938:libxl_device_disk_add Invalid or unsupported virtual disk identifier qcow2 cannot add disk 0 to domain: -6 libxl: error: libxl_dm.c:747:libxl__destroy_device_model Couldn''t find device model''s pid: No such file or directory libxl: error: libxl.c:730:libxl_domain_destroy libxl__destroy_device_model failed for 6 and if I DON''T specify a format, I get this: Parsing config file /etc/xen/precise-hvm.cfg parse error in disk config near '',hda'' So I have a file backed guest that "should" be perfectly usable, only I can''t figure out how to boot the thing... Can someone point me to a clue to help me catch up to the state of Xen today? Cheers Jeff
On Wed, 2013-03-27 at 20:08 +0000, J wrote:> OK, I''m not "new" to Xen, but it''s been a few years (Xen 3.x) since I > last really messed with it. I''m now stuck trying to get back into my > recently installed new guest. > > My host is running Ubuntu 12.04.1 and Xen 4.1 with the xl toolstack. > > I originally created/installed the guest using virt-manager. The > install went well and the guest rebooted successfully and I was able > to access it via > > xl vncviewer guest-name > > Now, the first problem, where''s the config file? Xen 3.x used fairly > straight forward config files that were stored in /etc/xen/. > virt-install doesn''t create that file. > > I found an sxp format config file in /var/lib/xend/domains/UUID/ that > matches my guest. But I''m unable to boot from that.AIUI virt-manager uses libvirt which is a hypervisor abstraction. The XML is likely its own format. libvirt can backend onto either xend or xl (or a variety of other hypervisors). If you want to continue using virt-manager then I think you will have to use it completely and not try to mix and match with the lower level toolstack on a single domain.> When I try, I get a lot of parser errors and finally complaints about > it looking like Python code. So this: > > sudo xl create /var/lib/xend/domains/UUID/config.sxp > > doesn''t allow me to reboot the guest.Right, I wouldn''t expect this to work since xl doesn''t speak this sxp format.> I then tried creating a basic old-style config file: > > builder=''hvm'' > name=''precise-hvm'' > memory=1024 > maxmemory=1024 > uuid=''18069c40-e01f-ddf8-5932-bc6bb6b5bba1'' > vif=''xenbr0''This needs [] around it.> disk=[ ''file:/vms/precise-hvm.img,qcow2,hda'' ] > > I then tried starting the guest there. That also fails because > despite what I read here: > > http://xenbits.xen.org/docs/unstable/misc/xl-disk-configuration.txt > > None of these disk lines are accepted by xl:xl in 4.1 was a bit "tech previewy". I''m not sure when the xl disk paring stuff was fixed to be properly compatible but I have a feeling it was post 4.1 (the doc you are referencing at the link above is for xen-unstable). I''d recommend either updating to Xen 4.2 (where xl works much better) or sticking with xend if you want to use Xen 4.1. Ian.
>I''d recommend either updating to Xen 4.2 (where xl works much better) >or sticking with xend if you want to use Xen 4.1.I recently I tried virt-manager with Ubuntu 13.04 and Xen 4.2, and for me, the xl toolstack was a no-go. On the other hand, xend worked great with virt-manager and Xen 4.2. So if you want to use virt-manager, either with Xen 4.1 or Xen 4.2, xend is probably still the path of least resistance. I''ve gotten virt-manager working in recent releases of Ubuntu by doing the following: 1) $ sudo apt-get install ubuntu-virt-mgmt (includes virt-manager and dependencies) 2) using a terminal, start nautilus as root ($ sudo nautilus) 3) find and open the file /etc/xen/xend-config.sxp 4) uncomment the following lines: (xend-unix-server no) (xend-unix-path /var/lib/xend/xend-socket) 5) edit the line (xend-unix-server no) to read as (xend-unix-server yes) and 6) save the edited file and reboot. See https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/915954 Also, so that you can successfully start virt-manager as the currently logged in user (not just as root), run the following in a terminal: $ sudo adduser `id -un` libvirtd Aside from the need to do all of the above, virt-manager seems to work great. On Wed, Apr 10, 2013 at 4:58 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:> On Wed, 2013-03-27 at 20:08 +0000, J wrote: > > OK, I''m not "new" to Xen, but it''s been a few years (Xen 3.x) since I > > last really messed with it. I''m now stuck trying to get back into my > > recently installed new guest. > > > > My host is running Ubuntu 12.04.1 and Xen 4.1 with the xl toolstack. > > > > I originally created/installed the guest using virt-manager. The > > install went well and the guest rebooted successfully and I was able > > to access it via > > > > xl vncviewer guest-name > > > > Now, the first problem, where''s the config file? Xen 3.x used fairly > > straight forward config files that were stored in /etc/xen/. > > virt-install doesn''t create that file. > > > > I found an sxp format config file in /var/lib/xend/domains/UUID/ that > > matches my guest. But I''m unable to boot from that. > > AIUI virt-manager uses libvirt which is a hypervisor abstraction. The > XML is likely its own format. libvirt can backend onto either xend or xl > (or a variety of other hypervisors). > > If you want to continue using virt-manager then I think you will have to > use it completely and not try to mix and match with the lower level > toolstack on a single domain. > > > When I try, I get a lot of parser errors and finally complaints about > > it looking like Python code. So this: > > > > sudo xl create /var/lib/xend/domains/UUID/config.sxp > > > > doesn''t allow me to reboot the guest. > > Right, I wouldn''t expect this to work since xl doesn''t speak this sxp > format. > > > I then tried creating a basic old-style config file: > > > > builder=''hvm'' > > name=''precise-hvm'' > > memory=1024 > > maxmemory=1024 > > uuid=''18069c40-e01f-ddf8-5932-bc6bb6b5bba1'' > > vif=''xenbr0'' > > This needs [] around it. > > > disk=[ ''file:/vms/precise-hvm.img,qcow2,hda'' ] > > > > I then tried starting the guest there. That also fails because > > despite what I read here: > > > > http://xenbits.xen.org/docs/unstable/misc/xl-disk-configuration.txt > > > > None of these disk lines are accepted by xl: > > xl in 4.1 was a bit "tech previewy". I''m not sure when the xl disk > paring stuff was fixed to be properly compatible but I have a feeling it > was post 4.1 (the doc you are referencing at the link above is for > xen-unstable). > > I''d recommend either updating to Xen 4.2 (where xl works much better) or > sticking with xend if you want to use Xen 4.1. > > Ian. > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users