Hey folks, Playing around at home this time on an Ubuntu 12.04 box that I just installed xen on. I don''t have LVM on this machine (stupid me) so I''m trying to use a raw file that I created with "truncate -s 10G filename". I seem to be doing everything right best I can tell but I''m not sure why it is crashing when I try to create the domain. root@amckay-desktop:~/iso# ls -al /var/lib/xendisk/ total 8 drwxr-xr-x 2 root root 4096 Apr 27 19:43 . drwxr-xr-x 95 root root 4096 Apr 27 19:49 .. -rw-rw-rw- 1 root root 10737418240 Apr 27 19:43 ubuntu.13.04 root@amckay-desktop:~/iso# xl list Name ID Mem VCPUs State Time(s) Domain-0 0 5815 4 r----- 2288.1 root@amckay-desktop:~/iso# xl -vvv create /etc/xen/ubuntu.cfg Parsing config file /etc/xen/ubuntu.cfg libxl: error: libxl_create.c:317:libxl__domain_make domain creation fail cannot make domain: -3 libxl: error: libxl.c:703:libxl_domain_destroy non-existant domain -1 xc: debug: hypercall buffer: total allocations:4 total releases:4 xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 xc: debug: hypercall buffer: cache current size:2 xc: debug: hypercall buffer: cache hits:2 misses:2 toobig:0 root@amckay-desktop:~/iso# cat /etc/xen/ubuntu.cfg builder = "hvm" name = "ubuntu-test" memory = "1024" vcpus = 1 vif = [''bridge=xenbr1''] disk = [''phy:/var/lib/xendisk/ubuntu.13.04,xvda,w'',''file:/root/iso/ubuntu.13.04.desktop.64.iso,hdc:cdrom,r''] vnc = 1 boot="c" -- “Don''t eat anything you''ve ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"
root@amckay-desktop:~/iso# dpkg -l | grep xen ii libxen-4.1 4.1.2-2ubuntu2.6 Public libs for Xen rc libxen3 3.3.0-1ubuntu12 library interface for Xen, a Virtual Machine Monitor ii libxenstore3.0 4.1.2-2ubuntu2.6 Xenstore communications library for Xen ii xen-hypervisor-4.1-amd64 4.1.2-2ubuntu2.7 Xen Hypervisor on AMD64 ii xen-tools 4.2.1-1 Tools to manage Xen virtual servers ii xen-utils-4.1 4.1.2-2ubuntu2.6 XEN administrative tools ii xen-utils-common 4.1.2-1ubuntu1 XEN administrative tools - common files ii xenstore-utils 4.1.2-2ubuntu2.6 Xenstore utilities for Xen ii xenwatch 0.5.4-3ubuntu3 Virtualization utilities, mostly for Xen -- “Don''t eat anything you''ve ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food"
Is the hypervisor actually running? Do you have intel vt/amd svm enabled in bios? On Sat, Apr 27, 2013 at 8:16 PM, Alan McKay <alan.mckay@gmail.com> wrote:> Hey folks, > > Playing around at home this time on an Ubuntu 12.04 box that I just > installed xen on. I don''t have LVM on this machine (stupid me) so > I''m trying to use a raw file that I created with "truncate -s 10G > filename". I seem to be doing everything right best I can tell but > I''m not sure why it is crashing when I try to create the domain. > > root@amckay-desktop:~/iso# ls -al /var/lib/xendisk/ > total 8 > drwxr-xr-x 2 root root 4096 Apr 27 19:43 . > drwxr-xr-x 95 root root 4096 Apr 27 19:49 .. > -rw-rw-rw- 1 root root 10737418240 Apr 27 19:43 ubuntu.13.04 > > root@amckay-desktop:~/iso# xl list > Name ID Mem VCPUs State Time(s) > Domain-0 0 5815 4 r----- 2288.1 > > root@amckay-desktop:~/iso# xl -vvv create /etc/xen/ubuntu.cfg > Parsing config file /etc/xen/ubuntu.cfg > libxl: error: libxl_create.c:317:libxl__domain_make domain creation fail > cannot make domain: -3 > libxl: error: libxl.c:703:libxl_domain_destroy non-existant domain -1 > xc: debug: hypercall buffer: total allocations:4 total releases:4 > xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 > xc: debug: hypercall buffer: cache current size:2 > xc: debug: hypercall buffer: cache hits:2 misses:2 toobig:0 > > root@amckay-desktop:~/iso# cat /etc/xen/ubuntu.cfg > builder = "hvm" > name = "ubuntu-test" > memory = "1024" > vcpus = 1 > vif = [''bridge=xenbr1''] > disk = [''phy:/var/lib/xendisk/ubuntu.13.04,xvda,w'',''file:/root/iso/ubuntu.13.04.desktop.64.iso,hdc:cdrom,r''] > vnc = 1 > boot="c" > > > > -- > “Don''t eat anything you''ve ever seen advertised on TV” > - Michael Pollan, author of "In Defense of Food" > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
Sorry didnt see the xl list output :) Whats the qemu log in /var/log/ say? On Sat, Apr 27, 2013 at 8:22 PM, chris <tknchris@gmail.com> wrote:> Is the hypervisor actually running? Do you have intel vt/amd svm > enabled in bios? > > On Sat, Apr 27, 2013 at 8:16 PM, Alan McKay <alan.mckay@gmail.com> wrote: >> Hey folks, >> >> Playing around at home this time on an Ubuntu 12.04 box that I just >> installed xen on. I don''t have LVM on this machine (stupid me) so >> I''m trying to use a raw file that I created with "truncate -s 10G >> filename". I seem to be doing everything right best I can tell but >> I''m not sure why it is crashing when I try to create the domain. >> >> root@amckay-desktop:~/iso# ls -al /var/lib/xendisk/ >> total 8 >> drwxr-xr-x 2 root root 4096 Apr 27 19:43 . >> drwxr-xr-x 95 root root 4096 Apr 27 19:49 .. >> -rw-rw-rw- 1 root root 10737418240 Apr 27 19:43 ubuntu.13.04 >> >> root@amckay-desktop:~/iso# xl list >> Name ID Mem VCPUs State Time(s) >> Domain-0 0 5815 4 r----- 2288.1 >> >> root@amckay-desktop:~/iso# xl -vvv create /etc/xen/ubuntu.cfg >> Parsing config file /etc/xen/ubuntu.cfg >> libxl: error: libxl_create.c:317:libxl__domain_make domain creation fail >> cannot make domain: -3 >> libxl: error: libxl.c:703:libxl_domain_destroy non-existant domain -1 >> xc: debug: hypercall buffer: total allocations:4 total releases:4 >> xc: debug: hypercall buffer: current allocations:0 maximum allocations:2 >> xc: debug: hypercall buffer: cache current size:2 >> xc: debug: hypercall buffer: cache hits:2 misses:2 toobig:0 >> >> root@amckay-desktop:~/iso# cat /etc/xen/ubuntu.cfg >> builder = "hvm" >> name = "ubuntu-test" >> memory = "1024" >> vcpus = 1 >> vif = [''bridge=xenbr1''] >> disk = [''phy:/var/lib/xendisk/ubuntu.13.04,xvda,w'',''file:/root/iso/ubuntu.13.04.desktop.64.iso,hdc:cdrom,r''] >> vnc = 1 >> boot="c" >> >> >> >> -- >> “Don''t eat anything you''ve ever seen advertised on TV” >> - Michael Pollan, author of "In Defense of Food" >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users
On Sun, 2013-04-28 at 01:16 +0100, Alan McKay wrote:> Hey folks, > > Playing around at home this time on an Ubuntu 12.04 box that I just > installed xen on. I don''t have LVM on this machine (stupid me) so > I''m trying to use a raw file that I created with "truncate -s 10G > filename". I seem to be doing everything right best I can tell but > I''m not sure why it is crashing when I try to create the domain.To be pedantic it is not crashing, it is "only" failing...> root@amckay-desktop:~/iso# ls -al /var/lib/xendisk/ > total 8 > drwxr-xr-x 2 root root 4096 Apr 27 19:43 . > drwxr-xr-x 95 root root 4096 Apr 27 19:49 .. > -rw-rw-rw- 1 root root 10737418240 Apr 27 19:43 ubuntu.13.04 > > root@amckay-desktop:~/iso# xl list > Name ID Mem VCPUs State Time(s) > Domain-0 0 5815 4 r----- 2288.1 > > root@amckay-desktop:~/iso# xl -vvv create /etc/xen/ubuntu.cfg > Parsing config file /etc/xen/ubuntu.cfg > libxl: error: libxl_create.c:317:libxl__domain_make domain creation fail > cannot make domain: -3Is there anything in xl dmesg which may correspond to this, which I think comes from xl in 4.1.x is a bit "tech preview" but something as simple as what you are doing ought to work. What does xl info say? chris'' question about Vt-d support is a good one. Ian.