[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] pvgrub2 launch of Xen 4.5.1 DomU just drops to grub2 prompt ?
cat boot/grub2/grub.cfg root='(xen/xvda)' <----- configfile /boot/grub2/grub.cfg your root is actually at (xen/xvda,msdos1) since you use partitions in each device. I usually don't. When you drop to a shell during the boot attempt, try and browse around and you should see all the partitions: >ls == all the partitions == >root=(xen/xvda,msdos1) >ls / list of files in /boot PryMar56 On Saturday, October 17, 2015 12:37 PM, PGNet Dev <pgnet.dev@xxxxxxxxx> wrote: I'm running a Xen 4.5.1 Dom0 xl info | egrep "release|machine|xen_version" release : 4.2.3-3.g9c478b9-xen machine : x86_64 xen_version : 4.5.1_10-389 on Opensuse host lsb_release -rd Description: openSUSE 13.2 (Harlequin) (x86_64) Release: 13.2 I'm revisiting booting a DomU using pvgrub2 (instead of usual 'pygrub') Piecing together info & procedures from http://wiki.xenproject.org/wiki/PvGrub2 https://blog.xenproject.org/2015/01/07/using-grub-2-as-a-bootloader-for-xen-pv-guests/ http://lists.xenproject.org/archives/html/xen-users/2015-04/msg00046.html http://www.hellion.org.uk/blog/posts/debian-pvgrub2/ https://tech.mendix.com/linux/2014/09/06/pvgrub2/ I create a standalone pvgrub2 binary cd /home/tmp/pvgrub2 mkdir -p boot/grub2 cat boot/grub2/grub-xen-pvgrub2.cfg search -s root -f /boot/grub2/grub.cfg configfile /boot/grub2/grub.cfg cat boot/grub2/grub.cfg root='(xen/xvda)' configfile /boot/grub2/grub.cfg grub2-mkstandalone \ -o grub-x86_64-xen \ -O x86_64-xen \ boot/grub2/grub-xen-pvgrub2.cfg /usr/bin/tree . âââ boot â âââ grub2 â âââ grub.cfg âââ grub-x86_64-xen Reference it in a Xen cfg cat test.cfg name = 'test' builder = 'linux' kernel = /home/tmp/pvgrub2/grub-x86_64-xen disk = [ 'phy:/dev/vg0/BOOT,xvda,w', 'phy:/dev/vg0/ROOT,xvdc,w' ] root = '/dev/xvdc1' vif = [ 'mac=00:16:3E:10:10:01, bridge=br0, vifname=vifT' ] extra = 'textmode=1 xencons=xvc0 noirqdebug elevator=noop console=hvc0' maxmem = 1024 memory = 1024 On DomU launch, it drops to a grub prompt ls -al /var/log/xen (empty) xl create -c test.cfg -------------------------------------------------------------- GNU GRUB version 2.02~beta2 Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions. grub> -------------------------------------------------------------- and sits At another shell to Dom0 xl list Name ID Mem VCPUs State Time(s) Domain-0 0 2984 1 r----- 31.1 msg 10 1024 1 r----- 4.0 ls -al /var/log/xen -rw-r--r-- 1 root root 0 Oct 17 12:18 qemu-dm-test.log -rw-r--r-- 1 root root 0 Oct 17 12:18 xen-hotplug.log -rw-r--r-- 1 root root 51 Oct 17 12:18 xl-test.log cat /var/log/xen/xl-test.log Waiting for domain test (domid 10) to die [pid 10230] What's missing or wrong in my Dom0's pvgrub2 launch config? Is the root='(xen/xvda)' specification in boot/grub2/grub.cfg incorrect? _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |