User Tools

Site Tools


virt:xen_gt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virt:xen_gt [2015/01/16 13:18]
tschulz [Add to /etc/grub.d/40_custom, replace <UUID> without output of command from above]
virt:xen_gt [2015/01/19 14:05] (current)
tschulz [Add to /etc/grub.d/40_custom, replace <UUID> without output of command from above]
Line 49: Line 49:
  
 ===== Add New Grub Entry ===== ===== Add New Grub Entry =====
-====   First find root UUID ====+ 
 +==== Add to /​etc/​grub.d/​40_custom,​ replace <UUID> without output of command from above ====
 <​file>​ <​file>​
-cat /etc/fstab | grep " ​" | tr -s " " | cut -d " " ​-f1 | cut -d "=" ​-f2+menuentry '​Ubuntu GNU/Linux, with Xen vgt and Linux 3.17.0-rc4-vgt+'​ --class ubuntu --class gnu-linux --class gnu --class os --class xen $menuentry_id_option '​xen-gnulinux-3.17.0-rc4-vgt+-advanced-319fbd3c-e5ef-42b1-807e-16c87cc1a0c6'​ { 
 +        insmod part_msdos 
 +        insmod ext2 
 +        set root='​hd0,​msdos1'​ 
 +       ​ search --no-floppy --fs-uuid --set=root <​UUID>​ 
 +        echo    '​Loading Xen vgt ...' 
 +        multiboot ​      /boot/xen-vgt.gz placeholder dom0_mem=2048M loglvl=all guest_loglvl=all 
 +        echo    '​Loading Linux 3.17.0-rc4-vgt+ ...' 
 +        module ​ /​boot/​vmlinuz-3.17.0-rc4-vgt+ placeholder root=UUID=<​UUID>​ ro w 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 
 +        echo    '​Loading initial ramdisk ...' 
 + module ​ --nounzip ​  /​boot/​initrd.img-3.17.0-rc4-vgt+ 
 +}
 </​file>​ </​file>​
-==== Add to /​etc/​grub.d/​40_custom,​ replace <UUID> without output of command from above ==== + 
-<​file>​ +==== The following command should insert the UUID for your root partition ​==== 
-menuentry '​Xen-VGT 3.17.0-rc4'​ --class ubuntu --class gnu-linux --class gnu --class os { +<​file ​bash
-insmod part_msdos +cat /etc/grub.d/40_custom | sed "s/<​UUID>/​`cat /etc/fstab | grep \" ​\" |grep -v \"#​\"​ | tr -s \" \" | cut -d \" \" ​-f1 | cut -d \"=\" ​-f2`/g" > /etc/grub.d/40_custom
-insmod ext2 +
-set root='​(hd0,​msdos1)'​ +
-search --no-floppy --fs-uuid --set=root ​<​UUID>​ +
-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=<​UUID>​ 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++
 </​file>​ </​file>​
 ==== Edit /​etc/​default/​grub,​ this shows the boot menu for 10 secs ==== ==== Edit /​etc/​default/​grub,​ this shows the boot menu for 10 secs ====
virt/xen_gt.1421435924.txt.gz · Last modified: 2015/01/16 13:18 by tschulz