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/16 12:44]
tschulz
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 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 ====+ 
 +==== 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 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 <​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>​
  
Line 73: Line 85:
  
 ===== Configure Bridge ===== ===== Configure Bridge =====
-<file bash> +==== Add to /etc/​network/​interfaces ====
-brctl addif xenbr0 eth0 +
-ifconfig eth0 0 +
-dhclient xenbr0 +
-</file>+
  
 +<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>
virt/xen_gt.txt · Last modified: 2015/01/19 14:05 by tschulz