On 10/30/2015 01:38 PM, Charles Arnold wrote:
Here is a generic (but working) example of a config file.
Here, Opensuse's pvgrub kernel fails to boot a guest, still dropping to
a grub prompt.
My DIY-kernel works fine.
Using Opensuse's provided pvgrub2 kernel,
cat /home/xen/test.cfg
name = 'msg'
builder = 'linux'
kernel = '/usr/lib/grub2/x86_64-xen/grub.xen'
disk = [ '/dev/VG0/testBOOT,raw,xvda,backendtype=phy,rw',
'/dev/VG0/testROOT,raw,xvdc,backendtype=phy,rw',]
vif = [ 'mac=00:16:3E:10:10:01, bridge=br0,
vifname=vifT',]
vfb = [ 'type=vnc, vncdisplay=1001,
vnclisten=127.0.0.1' ]
extra = 'textmode=1 xencons=xvc0 noirqdebug elevator=noop
console=hvc0'
localtime = 0
on_shutdown = 'destroy'
on_reboot = 'restart'
on_crash = 'destroy'
maxmem = 1024
memory = 1024
vcpus = 1
cpus = "1-3"
cpu_cap = 100
cpu_weight = 256
exec of
xl create -c /home/xen/test.cfg
fails, and just drops me to a boot prompt,
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> ls
(proc) (memdisk) (xen/xvda) (xen/xvda,msdos1) (xen/xvdb)
(xen/xvdb,msdos1) (xen
/xvdc) (xen/xvdc,msdos1)
grub>
Otoh, if I simply change to my own pvgrub2 blob
cat /home/xen/test.cfg
...
- kernel = '/usr/lib/grub2/x86_64-xen/grub.xen'
+ kernel = '/home/tmp/pvgrub2/grub-x86_64-xen'
...
where
cd /home/tmp
rm -rf /home/tmp/pvgrub2
mkdir -p /home/tmp/pvgrub2/boot/grub/
cd /home/tmp/pvgrub2
cat << EOF > boot/grub/grub.cfg
insmod part_msdos
set root=(xen/xvda,msdos1)
linux /vmlinuz-xen root=/dev/xvdc1 noresume splash=silent quiet
textmode=1 xencons=xvc0 noirqdebug elevator=noop console=hvc0
initrd /initrd-xen
configfile /boot/grub/grub.cfg
boot
EOF
( note the changes from previous path(s) /boot/grub2, to /boot/grub ...)
grub2-mkstandalone \
--compress=no \
--locales="" \
--fonts="unicode" \
--themes="" \
-O x86_64-xen \
-o grub-x86_64-xen \
boot/grub/grub.cfg
now exec of
xl create -c /home/xen/test.cfg
boots the guest,
Welcome to openSUSE 13.2 "Harlequin" - Kernel 4.2.3-1.gef1562d-xen
(xvc0).
opensuse-test login:
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]