Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine
New Posts  All Forums:Forum Nav:

{Guide} Create a Gaming Virtual Machine - Page 53

post #521 of 769
Quote:
Originally Posted by nbhusain View Post

You dont need the rom for the sata controller as long as it is on ahci mode and even then, you would need an efi driver, one easy way to check if this works for you is using the duet image i provided and passing your sata controller to the vm, if it picks up your disk your good to go.
Xen does actually support uefi, im using xen-4.1.4 and kernel-3.6.11 on arch and i can boot just fine, or you could just boot linux in legacy mode and with duet you'll still be able to boot windows on xen on uefi mode with duet.

Good to know about the AHCI mode and not needing the ROM.

About Xen supporting UEFI, that's new to me. Actually, I believe I read some release note to the 3.7x kernel that mentioned UEFI support for Xen. I had tried it with a 3.2 kernel and Xen 4.1.2. I recently installed Linux Mint 14 which comes with a 3.5 kernel and Xen 4.1.3, but didn't try UEFI. Is there any advantage to UEFI, except perhaps a faster boot (I'm not sure on that)?
post #522 of 769
Quote:
Is there any advantage to UEFI, except perhaps a faster boot (I'm not sure on that)?

I guess one advantage is booting gpt disks but i think you can do that with hybrid mbr, as for boot time, for me is about the same.
post #523 of 769
Is here any ASRock Z77 Extreme4 user with BIOS version >= 2.70 or ASRock Z77 Extreme6 user with BIOS version >= 2.40? If yes, could you confirm whether VT-d works for you or not? Could you also state whether you bought your mobo with such BIOS version or whether you upgraded it yourself?

The info on the BIOS change version:
Quote:
Modify VT-d Capability will be unsupported after flashing BIOS P2.XX
could be also read as "turning off possibility to change its enable state". After all these sites are known for bad English. (Well, there are naming mistakes in BIOSes too, like I showed once in case of Abit KN9, thus double or triple checking anything is almost always required.)

Also front-line support people are often incompetent, that's why I doubt credibility of ASRock America Support response to Chetyre quoted here.

I'm considering buying one of these two mobos, that's why I'm trying to confirm one way or the other.
post #524 of 769
Quote:
Originally Posted by przemoc View Post

Is here any ASRock Z77 Extreme4 user with BIOS version >= 2.70 or ASRock Z77 Extreme6 user with BIOS version >= 2.40? If yes, could you confirm whether VT-d works for you or not? Could you also state whether you bought your mobo with such BIOS version or whether you upgraded it yourself?

The info on the BIOS change version:
could be also read as "turning off possibility to change its enable state". After all these sites are known for bad English. (Well, there are naming mistakes in BIOSes too, like I showed once in case of Abit KN9, thus double or triple checking anything is almost always required.)

Also front-line support people are often incompetent, that's why I doubt credibility of ASRock America Support response to Chetyre quoted here.

I'm considering buying one of these two mobos, that's why I'm trying to confirm one way or the other.

See http://www.overclock.net/t/1338063/vt-d-compatible-motherboards, specifically post #20. It seems a Japanese guy made it work with the latest BIOS. My suggestion is to contact Asrock technical support to find out. Please post your findings.
post #525 of 769
nbhusain, could you help me compile xen on archlinux? the pkgbuild on aur fails for me for some reason on the stubdom.

I'm also trying to mess with uefi for now. I just managed to make it boot with rEFInd, but how would I boot the xen kernel? I googled around and found that xen has a xen.efi, but how do I pass the kernel parameters?

sorry, uefi is very new to me.

EDIT: managed to install it. one of the dependencies was broken. now I need to boot it...
Edited by Chetyre - 2/12/13 at 4:59pm
post #526 of 769
Quote:
nbhusain, could you help me compile xen on archlinux? the pkgbuild on aur fails for me for some reason on the stubdom.

Sure, here's my xen-4.1.4 pkg based on xen-4.2 AUR pkg, it contains patches for AMD vga passthrough, if you have an AMD card and you wish to enable these patches, you have to copy your bios file to vgabios-pt.bin on the root folder (replace mine), otherwise you can disable it by commenting out these lines:
  1. patch -Np1 -i ../xen-4.1.3.ati-passthrough.patch
  2. patch -Np1 -i ../loadbios.patch
  3. cp ../../vgabios-pt.bin tools/firmware/vgabios/vgabios-pt.bin

xen.zip 52k .zip file
Quote:
I'm also trying to mess with uefi for now. I just managed to make it boot with rEFInd, but how would I boot the xen kernel? I googled around and found that xen has a xen.efi, but how do I pass the kernel parameters?

Assuming you already installed arch on uefi mode, you can boot xen from grub by creating a grub cfg file on /etc/grub.d/

Here's mine:
Code:
cat /etc/grub.d/05_xen
Code:
#!/bin/sh                                                                                                                                                                                                                                                                      
exec tail -n +3 $0                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                               
menuentry 'XEN' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-89ae0638-a44f-45be-b983-d65ac23e13b4' {                                                                                                             
        load_video                                                                                                                                                                                                                                                             
        set gfxpayload=keep                                                                                                                                                                                                                                                    
        insmod gzio                                                                                                                                                                                                                                                            
        insmod part_gpt                                                                                                                                                                                                                                                        
        insmod ext2                                                                                                                                                                                                                                                            
        set root='hd1,gpt2'                                                                                                                                                                                                                                                    
        if [ x$feature_platform_search_hint = xy ]; then                                                                                                                                                                                                                       
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  8f5355af-14eb-4f86-930a-de7ece6a8114                                                                                                                   
        else                                                                                                                                                                                                                                                                   
          search --no-floppy --fs-uuid --set=root 8f5355af-14eb-4f86-930a-de7ece6a8114                                                                                                                                                                                         
        fi                                                                                                                                                                                                                                                                     
        echo    'Loadin XEN'                                                                                                                                                                                                                                                   
        multiboot /xen-4.1.4.gz xsave=1 dom0_max_vcpus=2 dom0_vcpus_pin noselfballooning  dom0_mem=3850M  cpuidle                                                                                                                        
        echo    'Loading Linux core repo kernel ...'                                                                                                                                                                                                                           
        module   /vmlinuz-linux root=/dev/mapper/vg0-root ro xen-pciback.permissive xen-pciback.hide=(00:11.0)(00:12.0)(00:12.2)(00:16.0)(00:16.2)(04:00.0)(05:00.0)(06:00.0)(07:00.0)(07:00.1) nomce                                                                          
        echo    'Loading initial ramdisk ...'                                                                                                                                                                                                                                  
        module  /initramfs-linux.img                                                                                                                                                                                                                                           
}

Booting XEN on uefi at this point is kind of pointless, as xen provides its own memory map for dom0, and you cant access efivars from it.

EDIT:

This is how i got xen-4.2.1 efi to boot from grub2:
Code:
cat /etc/grub.d/04_xen
Code:
menuentry 'XEN' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-89ae0638-a44f-45be-b983-d65ac23e13b4' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd1,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  8f5355af-14eb-4f86-930a-de7ece6a8114
        else
          search --no-floppy --fs-uuid --set=root 8f5355af-14eb-4f86-930a-de7ece6a8114
        fi
        echo    'Loadin XEN'
        chainloader /xen-4.2.1.efi -cfg=xen.cfg

}

Code:
cat /boot/xen.cfg
Code:
[global]
default=arch

[arch]
options=loglvl=all xsave=1 dom0_max_vcpus=2 dom0_vcpus_pin noselfballooning  dom0_mem=3850M  cpuidle
kernel=vmlinuz-linux root=/dev/mapper/vg0-root ro xen-pciback.permissive xen-pciback.hide=(00:11.0)(00:12.0)(00:12.2)(00:16.0)(00:16.2)(04:00.0)(05:00.0)(06:00.0)(07:00.0)(07:00.1) nomce
ramdisk=initramfs-linux.img

EDIT2: Quick update, you need to build binutils with "--enable-targets=x86_64-pep" for xen.efi to build, here's an edited binutils-multilib pkg:
binutils.zip 2k .zip file
Edited by nbhusain - 2/12/13 at 10:56pm
post #527 of 769
Quote:
Originally Posted by nbhusain View Post

EDIT2: Quick update, you need to build binutils with "--enable-targets=x86_64-pep" for xen.efi to build, here's an edited binutils-multilib pkg:
binutils.zip 2k .zip file

Build fails when I use the modified binutils. nevermind my shell.
Code:
install -d -m0755 -p "/tmp/yaourt-tmp-arfoire/aur-xen/pkg/usr/lib/xen/boot"
install -m0644 -p mini-os-x86_32-grub/mini-os.gz "/tmp/yaourt-tmp-arfoire/aur-xen/pkg/usr/lib/xen/boot/pv-grub-x86_32.gz"
make[1]: Leaving directory `/tmp/yaourt-tmp-arfoire/aur-xen/src/xen-4.2.1/stubdom'
mv: cannot stat ���etc/init.d���: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Makepkg was unable to build xen.
==> Restart building xen ? [y/N]
==> ----------------------------
==> 

I'm using yaourt, but it does the same thing with makepkg. This is the package https://aur.archlinux.org/packages/xen/
post #528 of 769
Try this quick fix:
Code:
...
    if [[ -d usr/lib64 ]]; then
        cd usr/
        cp -r lib64/* lib/
        rm -rf lib64
    fi
...

change it to:
Code:
...
    if [[ -d usr/lib64 ]]; then
        cd usr/
        cp -r lib64/* lib/
        rm -rf lib64
    fi

   cd "$pkgdir"
...

Why are you building stubdom anyway? you dont need it at all, specially if your gonna use gplpv drivers.
post #529 of 769
Quote:
Originally Posted by przemoc View Post

Is here any ASRock Z77 Extreme4 user with BIOS version >= 2.70 or ASRock Z77 Extreme6 user with BIOS version >= 2.40? If yes, could you confirm whether VT-d works for you or not? Could you also state whether you bought your mobo with such BIOS version or whether you upgraded it yourself?

VT-d is working on ASRock Z77 Extreme6 with BIOS P2.40.
Check out my blog.
http://mo.kerosoft.com/0198
post #530 of 769
Quote:
Originally Posted by nbhusain View Post

Try this quick fix:
Code:
...
    if [[ -d usr/lib64 ]]; then
        cd usr/
        cp -r lib64/* lib/
        rm -rf lib64
    fi
...

change it to:
Code:
...
    if [[ -d usr/lib64 ]]; then
        cd usr/
        cp -r lib64/* lib/
        rm -rf lib64
    fi

   cd "$pkgdir"
...

Why are you building stubdom anyway? you dont need it at all, specially if your gonna use gplpv drivers.


Thanks, I'll try it as soon as I can. I'm building it because it's part of the package. And I might need it someday, not everything is going to use gplpv drivers. I'll also have some pv guests


EDIT: It worked. I was just going to edit the pkg with the absolute path to the directory, but using the variable is a lot easier indeed.

Wow, that went a lot smother than I thought it would. I'm using REFInd, not grub, so I wasn't sure where I would put the config file, but it worked beautifully on my first try. Thanks.
Edited by Chetyre - 2/13/13 at 1:31pm
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Operating Systems
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › {Guide} Create a Gaming Virtual Machine