Hi guys, I''m running Xen 4.2.1, compiled manually so I can play with Remus and DRBD, running on Ubuntu 12.10. I keep getting this error when trying to start up my first VM to run the Ubuntu netboot installer. ----------------------------------------------------------------- root@left:/home/eross# xl create /etc/xen/ubuntu.cfg -c Parsing config from /etc/xen/ubuntu.cfg Daemon running with PID 1513 libxl: error: libxl_dom.c:34:libxl__domain_type: unable to get domain type for domid=1 Unable to attach console libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console child [0] exited with error status 1 ----------------------------------------------------------------- Here''s my VM''s config: ----------------------------------------------------------------- root@left:/home/eross# cat /etc/xen/ubuntu.cfg name = "ubuntu" memory = 256 disk = [ ''drbd:drbd-vm,xvda,w'' ] vif = ['' ''] kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" extra = "debian-installer/exit/always_halt=true -- console=hvc0" ----------------------------------------------------------------- The ubuntu-netboot image there is 64-bit 12.04 Precise. Any ideas? Thank you! Andrew _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Strangely, if I use Ubuntu 13.04 (raring) for the installer netboot, it works just fine with exactly the same configuration. However, I can''t imagine that Ubuntu 12.04 wouldn''t be supported for some reason? On Mon, Feb 18, 2013 at 7:58 AM, Andrew Eross <eross@locatrix.com> wrote:> Hi guys, > > I''m running Xen 4.2.1, compiled manually so I can play with Remus and > DRBD, running on Ubuntu 12.10. > > I keep getting this error when trying to start up my first VM to run the > Ubuntu netboot installer. > > ----------------------------------------------------------------- > root@left:/home/eross# xl create /etc/xen/ubuntu.cfg -c > Parsing config from /etc/xen/ubuntu.cfg > Daemon running with PID 1513 > libxl: error: libxl_dom.c:34:libxl__domain_type: unable to get domain type > for domid=1 > Unable to attach console > libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console > child [0] exited with error status 1 > ----------------------------------------------------------------- > > Here''s my VM''s config: > ----------------------------------------------------------------- > root@left:/home/eross# cat /etc/xen/ubuntu.cfg > name = "ubuntu" > > memory = 256 > > disk = [ ''drbd:drbd-vm,xvda,w'' ] > vif = ['' ''] > > kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" > ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" > extra = "debian-installer/exit/always_halt=true -- console=hvc0" > ----------------------------------------------------------------- > > The ubuntu-netboot image there is 64-bit 12.04 Precise. > > Any ideas? > > Thank you! > Andrew > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi guys, I eventually gave up and went back to Xen 4.1.4, which works perfectly fine using the exact same install method and Ubuntu domU configuration, but just with xm. I wrote up how I did the Xen 4.2.1 install here for reference - http://locatrix.com/building-and-installing-xen-4-2-1-from-source-on-ubuntu-12-10/ And the Xen 4.1.4 install here - http://locatrix.com/building-and-install-xen-4-1-4-from-source-on-ubuntu-12-10/ I hope maybe some others could give it a try and see if they also are unable to install Ubuntu domUs with xl on 4.2.1 like I''d been trying to. Cheers, Andrew On Mon, Feb 18, 2013 at 10:04 AM, Andrew Eross <eross@locatrix.com> wrote:> Strangely, if I use Ubuntu 13.04 (raring) for the installer netboot, it > works just fine with exactly the same configuration. > > However, I can''t imagine that Ubuntu 12.04 wouldn''t be supported for some > reason? > > > On Mon, Feb 18, 2013 at 7:58 AM, Andrew Eross <eross@locatrix.com> wrote: > >> Hi guys, >> >> I''m running Xen 4.2.1, compiled manually so I can play with Remus and >> DRBD, running on Ubuntu 12.10. >> >> I keep getting this error when trying to start up my first VM to run the >> Ubuntu netboot installer. >> >> ----------------------------------------------------------------- >> root@left:/home/eross# xl create /etc/xen/ubuntu.cfg -c >> Parsing config from /etc/xen/ubuntu.cfg >> Daemon running with PID 1513 >> libxl: error: libxl_dom.c:34:libxl__domain_type: unable to get domain >> type for domid=1 >> Unable to attach console >> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console >> child [0] exited with error status 1 >> ----------------------------------------------------------------- >> >> Here''s my VM''s config: >> ----------------------------------------------------------------- >> root@left:/home/eross# cat /etc/xen/ubuntu.cfg >> name = "ubuntu" >> >> memory = 256 >> >> disk = [ ''drbd:drbd-vm,xvda,w'' ] >> vif = ['' ''] >> >> kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" >> ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" >> extra = "debian-installer/exit/always_halt=true -- console=hvc0" >> ----------------------------------------------------------------- >> >> The ubuntu-netboot image there is 64-bit 12.04 Precise. >> >> Any ideas? >> >> Thank you! >> Andrew >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On 18/02/13 20:17, Andrew Eross wrote:> Hi guys, > > I eventually gave up and went back to Xen 4.1.4, which works perfectly > fine using the exact same install method and Ubuntu domU > configuration, but just with xm. > > I wrote up how I did the Xen 4.2.1 install here for reference - > http://locatrix.com/building-and-installing-xen-4-2-1-from-source-on-ubuntu-12-10/ > > And the Xen 4.1.4 install here - > http://locatrix.com/building-and-install-xen-4-1-4-from-source-on-ubuntu-12-10/ > > I hope maybe some others could give it a try and see if they also are > unable to install Ubuntu domUs with xl on 4.2.1 like I''d been trying to. > > Cheers, > Andrew >I have 12.04 DomU''s running under 12.04 Dom0 on self compiled 4.2.1, using xl toolstack The only issue I have had is that 12.04 DomU ends up with a non-PAE kernel, which needs to be fixed after the install. 12.10 DomU''s don''t appear to suffer this. No idea what the difference is between our set-ups, although I just use LVMs and always specify a MAC address.
Hi Ian, Thanks for the feedback - Strangely myself I''ve given it another shot, and I''ve had better luck now using the xen-create-image tool instead of trying to directly launch the netboot installer myself. Using the exact same setup as I had before, I manually installed the Ubuntu packaged xen-tools and created an image with xen-create-image, like this: apt-get install libtext-template-perl libconfig-inifiles-perl libfile-slurp-perl liblist-moreutils-perl wget http://mirror.pnl.gov/ubuntu/pool/universe/x/xen-tools/xen-tools_4.3.1-1_all.deb dpkg -i xen-tools_4.3.1-1_all.deb xen-create-image --hostname=ubuntu \ --memory=512mb \ --vcpus=2 \ --lvm=center \ --dhcp \ --pygrub \ --dist=precise I''m still a little wary that perhaps there''s a bug in xl since the netboot image should''ve worked I think, but happy that this method does work. Cheers, Andrew On Mon, Feb 18, 2013 at 6:33 PM, Ian <murrayie@yahoo.co.uk> wrote:> On 18/02/13 20:17, Andrew Eross wrote: > >> Hi guys, >> >> I eventually gave up and went back to Xen 4.1.4, which works perfectly >> fine using the exact same install method and Ubuntu domU configuration, but >> just with xm. >> >> I wrote up how I did the Xen 4.2.1 install here for reference - >> http://locatrix.com/building-**and-installing-xen-4-2-1-from-** >> source-on-ubuntu-12-10/<http://locatrix.com/building-and-installing-xen-4-2-1-from-source-on-ubuntu-12-10/> >> >> And the Xen 4.1.4 install here - >> http://locatrix.com/building-**and-install-xen-4-1-4-from-** >> source-on-ubuntu-12-10/<http://locatrix.com/building-and-install-xen-4-1-4-from-source-on-ubuntu-12-10/> >> >> I hope maybe some others could give it a try and see if they also are >> unable to install Ubuntu domUs with xl on 4.2.1 like I''d been trying to. >> >> Cheers, >> Andrew >> >> > I have 12.04 DomU''s running under 12.04 Dom0 on self compiled 4.2.1, using > xl toolstack > > The only issue I have had is that 12.04 DomU ends up with a non-PAE > kernel, which needs to be fixed after the install. 12.10 DomU''s don''t > appear to suffer this. No idea what the difference is between our set-ups, > although I just use LVMs and always specify a MAC address. > > ______________________________**_________________ > 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
>Hi Ian, > > >Thanks for the feedback -No problem.> > >I''m still a little wary that perhaps there''s a bug in xl since the netboot image should''ve worked I think, but happy that this method does work. > >I''ve just tried it again with 12.04.2 xen boot images and all went well. Here is my config file... name = "ubuntu-calendar-test" memory = 1024 disk = [''phy:/dev/VG1/ubuntu-calendar-test,xvda,w'' ] vif = [ ''mac=00:16:31:55:1c:82'' ] kernel = "/root/xen/ubuntu1204/vmlinuz" ramdisk = "/root/xen/ubuntu1204/initrd.gz" vcpus = 2 on_reboot = ''destroy'' on_crash = ''destroy'' Are you sure there is no problem with your images? Here is are md5 hashes for the two files I used (12.04.2, 32bit as far as I remember)... f1f36dbfe47ebda085f41394dd079d09 initrd.gz 8525c3e8d6131ae462ba85b935a70bae vmlinuz
Hi Ian, Yep, confirmed, exact same images as you: 8525c3e8d6131ae462ba85b935a70bae vmlinuz f1f36dbfe47ebda085f41394dd079d09 initrd.gz And I tried a very similar config: name = "ubuntu-calendar-test" memory = 1024 disk = [''phy:/dev/mapper/center-calendar,xvda,w''] vif = [ ''mac=00:16:31:55:1c:82'' ] kernel = "/root/ubuntu1204/vmlinuz" ramdisk = "/root/ubuntu1204/initrd.gz" vcpus = 2 on_reboot = ''destroy'' on_crash = ''destroy'' Unfortunately still not able to launch this VM, very strange! xl create /etc/xen/ubuntu-calendar-test.cfg -c # Parsing config from /etc/xen/ubuntu-calendar-test.cfg Daemon running with PID 28828 xenconsole: Could not read tty from store: No such file or directory libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console child [0] exited with error status 2 # cat /var/log/xen/xl-ubuntu-calendar-test.log # Waiting for domain ubuntu-calendar-test (domid 2) to die [pid 27391] Domain 2 has shut down, reason code 3 0x3 Action for shutdown reason code 3 is destroy Domain 2 needs to be cleaned up: destroying the domain Done. Exiting now # I''m glad I can create VMs with "xen-create-image", but still this is strange... any possible other ideas? Thanks much, Andrew On Tue, Feb 19, 2013 at 10:41 AM, Ian Murray <murrayie@yahoo.co.uk> wrote:> > > >Hi Ian, > > > > > >Thanks for the feedback - > > > No problem. > > > > > > >I''m still a little wary that perhaps there''s a bug in xl since the > netboot image should''ve worked I think, but happy that this method does > work. > > > > > > > I''ve just tried it again with 12.04.2 xen boot images and all went well. > Here is my config file... > > name = "ubuntu-calendar-test" > memory = 1024 > disk = [''phy:/dev/VG1/ubuntu-calendar-test,xvda,w'' ] > vif = [ ''mac=00:16:31:55:1c:82'' ] > kernel = "/root/xen/ubuntu1204/vmlinuz" > ramdisk = "/root/xen/ubuntu1204/initrd.gz" > vcpus = 2 > on_reboot = ''destroy'' > on_crash = ''destroy'' > > > Are you sure there is no problem with your images? Here is are md5 hashes > for the two files I used (12.04.2, 32bit as far as I remember)... > > f1f36dbfe47ebda085f41394dd079d09 initrd.gz > 8525c3e8d6131ae462ba85b935a70bae vmlinuz > > _______________________________________________ > 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
On 21/02/13 15:11, Andrew Eross wrote:> Hi Ian, > > Yep, confirmed, exact same images as you: > > 8525c3e8d6131ae462ba85b935a70bae vmlinuz > f1f36dbfe47ebda085f41394dd079d09 initrd.gz > > And I tried a very similar config: > > name = "ubuntu-calendar-test" > memory = 1024 > disk = [''phy:/dev/mapper/center-calendar,xvda,w''] > vif = [ ''mac=00:16:31:55:1c:82'' ] > kernel = "/root/ubuntu1204/vmlinuz" > ramdisk = "/root/ubuntu1204/initrd.gz" > vcpus = 2 > on_reboot = ''destroy'' > on_crash = ''destroy'' > > Unfortunately still not able to launch this VM, very strange! > > xl create /etc/xen/ubuntu-calendar-test.cfg -c > # > Parsing config from /etc/xen/ubuntu-calendar-test.cfg > Daemon running with PID 28828 > xenconsole: Could not read tty from store: No such file or directory > libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console > child [0] exited with error status 2 > # > > cat /var/log/xen/xl-ubuntu-calendar-test.log > # > Waiting for domain ubuntu-calendar-test (domid 2) to die [pid 27391] > Domain 2 has shut down, reason code 3 0x3 > Action for shutdown reason code 3 is destroy > Domain 2 needs to be cleaned up: destroying the domain > Done. Exiting now > # >I am sure I had this once but can''t for the life of me remember what was wrong. You did use... make install-tools PYTHON_PREFIX_ARG= ?
Hi Ian, I think so!, or sorta =) To be exact, this is what my build/install steps looked like: git clone git://xenbits.xen.org/xen.git cd xen ./configure vi ./.config # PYTHON_PREFIX_ARG=--install-layout=deb # make world make deb cd ./dist ./install.sh What do you think? On Thu, Feb 21, 2013 at 8:10 PM, Ian <murrayie@yahoo.co.uk> wrote:> On 21/02/13 15:11, Andrew Eross wrote: > >> Hi Ian, >> >> Yep, confirmed, exact same images as you: >> >> 8525c3e8d6131ae462ba85b935a70b**ae vmlinuz >> f1f36dbfe47ebda085f41394dd079d**09 initrd.gz >> >> And I tried a very similar config: >> >> name = "ubuntu-calendar-test" >> memory = 1024 >> disk = [''phy:/dev/mapper/center-**calendar,xvda,w''] >> vif = [ ''mac=00:16:31:55:1c:82'' ] >> kernel = "/root/ubuntu1204/vmlinuz" >> ramdisk = "/root/ubuntu1204/initrd.gz" >> vcpus = 2 >> on_reboot = ''destroy'' >> on_crash = ''destroy'' >> >> Unfortunately still not able to launch this VM, very strange! >> >> xl create /etc/xen/ubuntu-calendar-test.**cfg -c >> # >> Parsing config from /etc/xen/ubuntu-calendar-test.**cfg >> Daemon running with PID 28828 >> xenconsole: Could not read tty from store: No such file or directory >> libxl: error: libxl_exec.c:118:libxl_report_**child_exitstatus: console >> child [0] exited with error status 2 >> # >> >> cat /var/log/xen/xl-ubuntu-**calendar-test.log >> # >> Waiting for domain ubuntu-calendar-test (domid 2) to die [pid 27391] >> Domain 2 has shut down, reason code 3 0x3 >> Action for shutdown reason code 3 is destroy >> Domain 2 needs to be cleaned up: destroying the domain >> Done. Exiting now >> # >> >> > I am sure I had this once but can''t for the life of me remember what was > wrong. > > You did use... make install-tools PYTHON_PREFIX_ARG= ? >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On 22/02/13 01:52, Andrew Eross wrote:> Hi Ian, > > I think so!, or sorta =) > > To be exact, this is what my build/install steps looked like: > > git clone git://xenbits.xen.org/xen.git <http://xenbits.xen.org/xen.git> > cd xen > ./configure > vi ./.config > # > PYTHON_PREFIX_ARG=--install-layout=deb > # > make world > make deb > cd ./dist > ./install.sh > > What do you think? >I think I had the error you had when 64 bits libs went in the wrong place. See if this applies to you. From the Wiki... Library Installation Directory Xen 4.2 onwards defaults to installing libraries into /usr/lib by default. Users on systems which use /usr/lib64 for 64-bit libraries should use the --libdir option. e.g: $ ./configure --libdir=/usr/lib64 Also from the wiki, the python_prefix_arg needs to be blank like below for certain dists due to a bug. Well, as far as I remember, I normally get the release bundle, then... ./configure --libdir=/usr/lib64 make xen (I think) make stubdom (I think) make tools (I think) make install-xen make install-stubdom (I think) make install-tools PYTHON_PREFIX_ARGmake install-docs update-rc.d xencommons defaults update-rc.d xendomains defaults fiddle about with grub, fix xendomains, insert network bridge script somewhere, etc... _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Possibly Parallel Threads
- XCP & Openstack
- [XCP] Error when trying to import vmware images
- Wanted: XCP 1.1 tutorial for creating VMs from scratch using xe CLI
- Bug#798510: xen-utils-common: xendomains domU auto-starting fails after upgrade to Debian 8
- [PATCH 1/3] libxenlight: Clean up logging arrangements