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
Last revision Both sides next revision
virt:xen_gt [2015/01/15 14:57]
tschulz [Add New Grub Entry]
virt:xen_gt [2015/01/19 14:05]
tschulz [Add to /etc/grub.d/40_custom, replace <UUID> without output of command from above]
Line 13: Line 13:
 cd XenGT-Preview-kernel/​ cd XenGT-Preview-kernel/​
 cp config-3.17.0-dom0 .config cp config-3.17.0-dom0 .config
-make j8 && make modules_install +make -j8 && make modules_install 
-mkinitramfs -o /​boot/​initrd-vgt-3.17.0-rc4-vgt.img 3.17.0-rc4-vgt+ +cp .config /​boot/​config-3.17.0-rc4-vgt+ 
-cp arch/​x86/​boot/​bzImage /​boot/​vmlinuz-vgt-3.17.0-rc4-vgt+mkinitramfs -o /​boot/​initrd.img-3.17.0-rc4-vgt3.17.0-rc4-vgt+ 
 +cp arch/​x86/​boot/​bzImage /​boot/​vmlinuz-3.17.0-rc4-vgt+
 cp vgt.rules /​etc/​udev/​rules.d cp vgt.rules /​etc/​udev/​rules.d
 chmod a+x vgt_mgr chmod a+x vgt_mgr
Line 48: Line 49:
  
 ===== Add New Grub Entry ===== ===== Add New Grub Entry =====
-  * 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+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 319fbd3c-e5ef-42b1-807e-16c87cc1a0c6 
 +        echo    '​Loading Xen vgt ...' 
 +        multiboot ​      /​boot/​xen-vgt.gz placeholder ​  ​${xen_rm_opts} 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=319fbd3c-e5ef-42b1-807e-16c87cc1a0c6 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>​
 +
 +==== The following command should insert the UUID for your root partition ====
 +<file bash>
 +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
 +</​file>​
 +==== Edit /​etc/​default/​grub,​ this shows the boot menu for 10 secs ====
 <​file>​ <​file>​
-menuentry '​Xen-VGT 3.17.0-rc4' --class ubuntu --class gnu-linux --class gnu --class os { +GRUB_DEFAULT=
-insmod part_msdos +#​GRUB_HIDDEN_TIMEOUT=0 
-insmod ext2 +GRUB_HIDDEN_TIMEOUT_QUIET=false 
-set root='​(hd0,​msdos1)'​ +GRUB_TIMEOUT=10
-search --no-floppy --fs-uuid --set=root 2e01a442-d848-4695-b031-9296ce3105b1 +
-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=2e01a442-d848-4695-b031-9296ce3105b1 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>​
-===== Configure Bridge ​=====+ 
 +===== Enable Xen Services ​=====
 <file bash> <file bash>
-brctl addif xenbr0 eth0 +update-rc.d xencommons defaults
-ifconfig eth0 0 +
-dhclient xenbr0+
 </​file>​ </​file>​
  
 +
 +===== Configure Bridge =====
 +==== Add to /​etc/​network/​interfaces ====
 +
 +<file sh /​etc/​network/​interfaces>​
 +auto xenbr0
 +iface xenbr0 inet dhcp
 +        bridge_ports eth0
 +</​file>​
 ===== Example DomU Config ===== ===== Example DomU Config =====
 <file xen> <file xen>
Line 98: Line 119:
 vgt_monitor_config_file=’/​path/​to/​monitor.config’ #only valid for indirect display mode vgt_monitor_config_file=’/​path/​to/​monitor.config’ #only valid for indirect display mode
 </​file>​ </​file>​
 +
  
  
  
  
virt/xen_gt.txt · Last modified: 2015/01/19 14:05 by tschulz