sudo apt-get install libjpeg-dev sudo apt-get install libvncserver-dev libsdl-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev aria2c -x 5 https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.1.tar.xz tar xfvJ linux-3.16.1.tar.xz dom0 CONFIG_ACPI_PROCFS is missing in linux kernel 3.16.1 CONFIG_XEN_PRIVILEGED_GUEST is missing in linux kernel 3.16.1 domu CONFIG_PARAVIRT_GUEST is missing in linux kernel 3.16.1 CONCURRENCY_LEVEL=5 sudo fakeroot make-kpkg --initrd \ --append-to-version=-xen-teo.en.ming-sgp --revision=04.sep.2014 kernel_image kernel_headers Compile start: 12.42 AM Compile end: 2.06 AM ========================================================================================================= Xen VGA Passthrough with AMD Display Cards ========================================== tar xfvz xen-4.4.1.tar.gz cd xen-4.4.1/ sudo -s sudo apt-get install libaio1 sudo apt-get install libaio-dev sudo apt-get install libpixman-1-dev nano README ./configure make world make install sudo update-rc.d xend defaults (File does not exist) sudo nano /etc/default/grub GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_TIMEOUT=100 sudo update-grub sudo nano /etc/ld.so.conf /usr/lib64 sudo ldconfig -v VGA PCI ID: 01:00.0 Audio PCI ID: 01:00.1 (AMD) 00:1b.0 (Intel) USB Controllers PCI ID: 00:14.0 00:1a.0 00:1d.0 sudo nano /etc/grub.d/40_custom menuentry 'Ubuntu 14.04 LTS with Xen 4.4.1 and 3.16.1-xen-teo.en.ming-sgp' --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='hd0,msdos1' search --no-floppy --fs-uuid --set=root 8d86148d-b6d4-414f-b515-37d97452772f multiboot /boot/xen.gz placeholder dom0_mem=1024M iommu=1 loglvl=all guest_loglvl=all unrestricted_guest=1 msi=1 module /boot/vmlinuz-3.16.1-xen-teo.en.ming-sgp placeholder root=UUID=8d86148d-b6d4-414f-b515-37d97452772f ro quiet xen-pciback.hide=(01:00.0)(01:00.1)(00:1b.0)(00:14.0)(00:1a.0)(00:1d.0) xen-pciback.permissive module /boot/initrd.img-3.16.1-xen-teo.en.ming-sgp } sudo update-grub Prevents radeon and snd_hda_intel kernel modules from loading. sudo nano /etc/modprobe.d/blacklist.conf # blacklist radeon kernel module blacklist radeon # blacklist snd_hda_intel kernel module blacklist snd_hda_intel Uninstall the lightdm display manager. Previous versions of Ubuntu uses gdm. sudo apt-get remove lightdm cd /home/teo-en-ming dd if=/dev/sr0 of=win8.iso cd /etc/xen sudo dd if=/dev/zero of=win8.img bs=1024k seek=20000 count=0 sudo nano /etc/xen/win7.cfg builder='hvm' memory = 8192 name = 'win7' vcpus=4 pae=1 acpi=1 apic=1 on_xend_stop='shutdown' #vif = [ 'mac=00:16:3e:68:e1:01,bridge=xenbr0' ] #disk = [ '/etc/xen/win7.img,raw,hda,rw' , '/home/teo-en-ming/win7.iso,raw,hdc,devtype=cdrom' ] disk = [ '/etc/xen/win7.img,raw,hda,rw' , '/home/teo-en-ming/6450.iso,raw,hdc,devtype=cdrom' ] device_model_version = 'qemu-xen-traditional' boot='dc' sdl=0 vnc=1 vncpasswd='' vnclisten="192.168.1.39" stdvga=0 serial='pty' tsc_mode='default' viridian=1 usb=1 usbdevice='tablet' gfx_passthru=0 pci=[ '01:00.0', '01:00.1', '00:1b.0', '00:14.0', '00:1a.0', '00:1d.0' ] localtime=1 pci_power_mgmt=1 sudo apt-get install ssh sudo xl create /etc/xen/win7.cfg sudo reboot sudo apt-get install lightdm sudo service lightdm start