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:07]
tschulz [Configure Bridge]
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 15: Line 15:
 make -j8 && make modules_install make -j8 && make modules_install
 cp .config /​boot/​config-3.17.0-rc4-vgt+ cp .config /​boot/​config-3.17.0-rc4-vgt+
-mkinitramfs -o /​boot/​initrd.img-3.17.0-rc4-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 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 49: Line 49:
  
 ===== Add New Grub Entry ===== ===== Add New Grub Entry =====
-====   First find root UUID ==== +
-<​file>​ +
-cat /etc/fstab | grep " / " | tr -s " " | cut -d " " -f1 | cut -d "​="​ -f2 +
-</​file>​+
 ==== Add to /​etc/​grub.d/​40_custom,​ replace <​UUID>​ without output of command from above ==== ==== Add to /​etc/​grub.d/​40_custom,​ replace <​UUID>​ without output of command from above ====
 <​file>​ <​file>​
-menuentry 'Xen-VGT 3.17.0-rc4'​ --class ubuntu --class gnu-linux --class gnu --class os { +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 part_msdos 
-insmod ext2 +        insmod ext2 
-set root='(hd0,msdos1)+        set root='​hd0,​msdos1'​ 
-search --no-floppy --fs-uuid --set=root <​UUID>​ +       search --no-floppy --fs-uuid --set=root <​UUID>​ 
-multiboot /​boot/​xen-vgt.gz dom0_mem=2048M loglvl=all guest_loglvl=all +        ​echo ​   '​Loading Xen vgt ...' 
-conring_size=4M noreboot +        ​multiboot ​      ​/​boot/​xen-vgt.gz ​placeholder ​dom0_mem=2048M loglvl=all guest_loglvl=all 
-module /​boot/​vmlinuz-vgt-3.17.0-rc4-vgt +        ​echo ​   '​Loading Linux 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/​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 
-module /​boot/​initrd-vgt-3.17.0-rc4-vgt.img+        echo    '​Loading initial ramdisk ...' 
 + module ​ ​--nounzip ​  /​boot/​initrd.img-3.17.0-rc4-vgt
 +
 +</​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>​ </​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 ====
Line 81: Line 85:
  
 ===== Configure Bridge ===== ===== Configure Bridge =====
-<file bash> +==== Add to /etc/​network/​interfaces ====
-brctl addif xenbr0 eth0 +
-ifconfig eth0 0 +
-dhclient xenbr0 +
-</file>+
  
-<file /​etc/​network/​interfaces>​+<​file ​sh /​etc/​network/​interfaces>​ 
 +auto xenbr0
 iface xenbr0 inet dhcp iface xenbr0 inet dhcp
         bridge_ports eth0         bridge_ports eth0
virt/xen_gt.1421435250.txt.gz · Last modified: 2015/01/16 13:07 by tschulz