Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

XenGT_Setup_Guide #6

Open
Bill32 opened this issue Jan 7, 2015 · 12 comments
Open

XenGT_Setup_Guide #6

Bill32 opened this issue Jan 7, 2015 · 12 comments

Comments

@Bill32
Copy link

Bill32 commented Jan 7, 2015

hi,
would you offer a new XenGT_Setup_Guide? It seems not suit for the new repo now.
thanks.

@vmmqa
Copy link
Contributor

vmmqa commented Jan 7, 2015

sure, we are working on it, will update it ASAP, to be ready tomorrow.

@vmmqa
Copy link
Contributor

vmmqa commented Jan 8, 2015

updated. please have a try.

@Bill32
Copy link
Author

Bill32 commented Jan 9, 2015

I just followed the guide,then I saw warning below, I'm not sure this is an important warning or not.

root@new:/XenGT-Preview-kernel# mkinitramfs -o /boot/initrd-vgt-3.17.0-rc4-vgt.img 3.17.0-rc4-vgt+
grep: /boot/config-3.17.0-rc4-vgt+: No such file or directory
root@new:
/XenGT-Preview-kernel#

Should I copy and rename .config to /boot and enter command like this "mkinitramfs -o /boot/initrd-vgt-3.17.0-rc4-vgt.img -v 3.17.0-rc4-vgt+" ?

@vmmqa
Copy link
Contributor

vmmqa commented Jan 9, 2015

does NOT matter. keep going. :)

@Bill32
Copy link
Author

Bill32 commented Jan 9, 2015

I updated UUID and root partition according to my environment and added the new grub entry in /boot/grub/grub.cfg .

I saw "error: no such disk. Press any key to continue" when I rebooted.
and "VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6".

@vmmqa
Copy link
Contributor

vmmqa commented Jan 9, 2015

Double check this line? “set root='hd0,msdos1'”
Maybe his default grub option is not hd0, msdos1, for example hd1,msods5.

and double check the UUID number

@Bill32
Copy link
Author

Bill32 commented Jan 9, 2015

I have checked these, seems no wrong.
Detail imformation is as below:

root@new:~# blkid
/dev/sda1: UUID="eee4f0b8-06ee-4675-a258-07e625cc3056" TYPE="ext4"
/dev/sda5: UUID="278799a4-b74d-4c10-afa3-3170c0352ff3" TYPE="swap"

grub.cfg

DO NOT EDIT THIS FILE

It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0

Fallback hidden-timeout code in case the timeout_style feature is

unavailable.

elif sleep --interruptible 0 ; then
set timeout=0
fi
fi

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi

menuentry 'Xen-VGT 3.17.0-rc4' --class ubuntu --class gnu-linux --class gnu --class os{
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
multiboot /boot/xen-vgt.gz dom0_mem=2048M loglvl=all guest_loglvl=all conring_size=4M noreboot
module /boot/vmlinuz-vgt-3.17.0-rc4-vgt
root=UUID=eee4f0b8-06ee-4675-a258-07e625cc3056 rw rd_NO_LUKS rd_NO_LVM
LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto
KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM ignore_loglevel console=tty0 console=hvc0 consoleblank=0 log_buf_len=4M xen_vgt.hvm_boot_foreground=1
module /boot/initrd-vgt-3.17.0-rc4-vgt.img}

menuentry 'Ubuntu, with Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=eee4f0b8-06ee-4675-a258-07e625cc3056 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-32-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=eee4f0b8-06ee-4675-a258-07e625cc3056 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/20_memtest86+

menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root eee4f0b8-06ee-4675-a258-07e625cc3056
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

END /etc/grub.d/20_memtest86+

BEGIN /etc/grub.d/30_os-prober

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/30_uefi-firmware

END /etc/grub.d/30_uefi-firmware

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the 'exec tail' line above.

END /etc/grub.d/40_custom

BEGIN /etc/grub.d/41_custom

if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi

END /etc/grub.d/41_custom

@vmmqa
Copy link
Contributor

vmmqa commented Jan 9, 2015

sees fine. please check if there is any typo.

@Bill32
Copy link
Author

Bill32 commented Jan 9, 2015

I don't think there is any typo and I have checked again.
I have tried many times, everything seems well except this warning:


I just followed the guide,then I saw warning below, I'm not sure this is an important warning or not.

root@new:/XenGT-Preview-kernel# mkinitramfs -o /boot/initrd-vgt-3.17.0-rc4-vgt.img 3.17.0-rc4-vgt+
grep: /boot/config-3.17.0-rc4-vgt+: No such file or directory
root@new:
/XenGT-Preview-kernel#

Should I copy and rename .config to /boot and enter command like this "mkinitramfs -o /boot/initrd-vgt-3.17.0-rc4-vgt.img -v 3.17.0-rc4-vgt+" ?


I just Installed Basic Packages in Ubuntu, Built Kernel and Built Xen and Qemu. Then I just typed the new menuentry in the grub.cfg according to the guide and my evironment , rebooted.
Should I do any other operation after add menuentry to grub.cfg ?

@l1viathan
Copy link
Contributor

Hi Bill32, xengt should only matter when xen_vgt.vgt=1 in the kernel cmdline is set. Please make sure that with "xen_vgt.vgt=0", your new kernel boots.

The configuration provided in this repository is FYI only, you may want to customize it according to your hardware/environment.

@Bill32
Copy link
Author

Bill32 commented Jan 9, 2015

I can boot now with "xen_vgt.vgt=0" in the kernel cmdline.

@Bill32
Copy link
Author

Bill32 commented Jan 12, 2015

hi,
Thank you for your advice, now I can run windows7 guest and install display driver. But I can't connect the network(I have configured Xen Bridge). I don't know why, would you help me? Thank you very much!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants