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 14

post #131 of 813
I'm using SSH and X11 passthough when I'm connecting to the dom0 from another machine ... or you mean I should log on the guest system from VNC? Is there any chance that it will display more than the notebook display? smile.gif
I'll try it out in the morning
post #132 of 813
^ Yeah, connect to the guest with VNC.
Quote:
Originally Posted by powerhouse View Post

@wTheOnew: I checked the network speed with bridged network, here the results on my local network:
1. File transfer over 100Mb wired connection (via Gigabit router):
a) Windows domU: ~2.5MB/s
b) Linux dom0: ~2.3MB/s
2. File transfer over 1Gb wire link (via router):
a) Windows domU: Couldn't test it yet.
b) Linux dom0: 4.7MB/s
This is no good !!! Fast Ethernet should deliver somewhere around 12MB/s (megabyte), Gigabit Ethernet around 5-10x as much, depending on how good the NICs are on both end and on the router in between.
I haven't got the time now to compare that with my Macbook transfer speed, but there is certainly a lot of room for improvement here.
Have you checked the wiki.xen.org site? IIRC, there is a network problems wiki. Let me know if you find a solution (other than a second NIC). I won't be able to deal with this until Thursday.

The signed drivers definitely helped the speed over the bridged adapter. It used to wildly fluctuate between 1MB/s and 20MB/s, now it's a solid 50MB/s when transferring files. It still adds a bit of latency.

Current file transfer averages and pingtest averages:
Asus GigE NIC: 70MB/s, 9ms
Netgear GigE NIC: 69MB/s, 9ms
Bridged (Realtek) GigE NIC: 50MB/s, 21ms
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
post #133 of 813
damn, now it won't even start and I'd swear I didnt' change anything except the vnc ...

in cat /var/log/xen/qemu-dm-win7.log i see this:
seems like some sound problem but iv don't know how to tell it to not use sound (like i did with ethernet) ...

oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `adlib'
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `gus'
oss: Could not initialize ADC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize ADC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `ac97.pi'
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `ac97.po'
oss: Could not initialize ADC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize ADC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `ac97.mc'
xs_read(/local/domain/0/device-model/2/xen_extended_power_mgmt): read error
bind() failed

edit:
when I comment out the vnc it starts for a while like before ...
Edited by ghormoon - 9/12/12 at 10:52am
post #134 of 813
Quote:
Originally Posted by ghormoon View Post

damn, now it won't even start and I'd swear I didnt' change anything except the vnc ...
in cat /var/log/xen/qemu-dm-win7.log i see this:

bind() failed
edit:
when I comment out the vnc it starts for a while like before ...

could you copy/paste your config file? Doesn't matter if the vnc part is still commented out or not.
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
THEONE-4770
(10 items)
 
Storage Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770k @ 4.0GHz AsRock z87 Extreme6 Asus HD 7970 16GB Corsair Vengeance 
Hard DriveHard DriveCoolingMonitor
(2) OCZ F40 RAID0 OCZ F3 120 XSPC RX360 (1) Seiki 39" 4k and (2) vertical Asus VW266H 2... 
PowerCase
OCZ 1000W Corsair 800D 
CPUMotherboardRAMHard Drive
Intel i7 3770S ASRock Z77 Extreme4 16GB Corsair Vengeance 1600MHz Corsair F40 SSD 
Hard DriveHard DriveHard DriveHard Drive
8x 2TB Western Digital Green 2x 1TB Western Digital Green 1x 4TB Seagate 2x 500GB Western Digital VelociRaptor 
Hard DriveOSCase
2x 500GB Western Digital Blue Server 2012 Norco 4020 
  hide details  
Reply
post #135 of 813
kernel = "hvmloader"
builder='hvm'
memory = 3072
name = "win7"
vcpus=3
pae=1
acpi=1
apic=1
#vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 'phy:/dev/sda2,sda,w' , 'file:/win7recovery.iso,sdc:cdrom,r' ]
device_model = 'qemu-dm'
boot="dc"
sdl=0
opengl=1
vnc=1
vncdisplay="10"
vnclisten="192.168.1.42"
vncpasswd='42'
stdvga=0
#nographic=1 #!!! only uncomment this if you are using win8 or are trying to get a nvidia card to work
serial='pty'
tsc_mode=0
soundhw='all'
usb=1
usbdevice='mouse'
gfx_passthru=0
pci=[ '01:00.0', '01:00.1' , '00:1a.0' , '00:1b.0' , '00:1d.0' , '24:00.0' , '24:00.1' , '24:00.2' , '25:00.0' , '26:00.0' ]


for reference lspci:

00:00.0 Host bridge: Intel Corporation Sandy Bridge DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Sandy Bridge PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 3 (rev b4)
00:1c.3 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 4 (rev b4)
00:1c.7 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 8 (rev b4)
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Cougar Point LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 04)
01:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M]
01:00.1 Audio device: ATI Technologies Inc Device aa98
24:00.0 FireWire (IEEE 1394): JMicron Technology Corp. IEEE 1394 Host Controller (rev 30)
24:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
24:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
25:00.0 Network controller: Intel Corporation 6000 Series Gen2 (rev 34)
26:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
post #136 of 813
I think ssh -X11 ... should work from a remote computer, else try VNC. If you do the VGA passthrough during boot your laptop screen will go blank. So you need to connect to your laptop remotely to log in to your Linux dom0 ssh -X11 or probably even without X11 should allow you to do that. Search for headless Linux login or similar to find a way to boot into the Linux dom0 and from there try to run your domU.

I've been using both virt-manager (GUI) and xm create ... to start the domU. Maybe check the instructions of the original poster as he describes VGA passthrough using the primary display adapter like you will be doing. Make sure your router doesn't block port 5900 on the LAN, or any other port. Usually it shouldn't.

Using virt-manager with ssh -X11 gives you a GUI and VNC display on the remote console in the X11 window. You need to install the virt-manager prior to this. I'm on my iPhone now and can't check this.

In general there are two ways to get this working. One way is to detach the primary display adapter during the boot process - there are different stages at which this can be triggered. In any case it should be before the xend damon takes control (using xm, xl doesn't use xend).
Again, check the OP instructions and/or the link I posted in a previous post.

As for VGA versus PCI passthrough the instructions are the same if you use an AMD GPU or a multi-os Nvidia card. BUT there quite some differences when using Nvidia GPUs unless you got a multi-os card. With AMD cards - and if my memory doesn't fail me - you should be able to run virt-manager and get a VNC connection to your domU.

So in essence you should be able to see your Windows installer loading (within the X11 window when using ssh -X11 and virt-manager. I've been using this method on a
MacBook and it works - the X11 screen gives me the virt-manager window with the VNC display inside it (the VNC is used on the laptop to see the Windows domU screen, while you still have access to Linux via command line: use the "&" option at the command line to make virt-manager run in the background i.e. virt-manager &, then switch to the X11 window).

As mentioned before, post your /etc/xen/win.cfg file or whatever name you gave to your config file.
post #137 of 813
I've alrady set up the x11 passthrough, it works, the problem is that when I start the VM (both commandline or virt-manager) the machine turns off in a while and I don't see anything on the screen, so I can't start win installation ... cfg fiel is in my previous post.
post #138 of 813
I forgot to me to mention the second way, or actually another way:

1) detach your VGA right at the start of the boot process using a grub command in the / etc/default/grub file. In Ubuntu or Linux Mint you then need to run update-grub, probably the same in Debian. But you need xen-pciback compiled into the kernel.

2) load the xen-pciback module in /etc/modules. Run the pciback shell script (see link in a previous post) to detach the graphics adapter before xend.

3) same as 2) but run the pciback script whenever you feel like within Linux.

In any of the options above you need to run e.g. xm create ... to start the Windows domU, or xm new and virt-manager to start the domU. From here on the config file for your domU takes control. For the installation a remote access is required.

As mentioned before post your domU config file.
post #139 of 813
I'm deattaching the VGA in init.d script, because that i have kernel that has xen-pciback as module and i've never compiled kernel, so it would end in a disaster smile.gif

I've posted the config in this post: http://www.overclock.net/t/1205216/guide-create-a-gaming-virtual-machine/130#post_18141770 ... or do you mean different config?
Btw that version is that one, which doesn't start (that audio problem, most propably because of that vnc wants to pass audio somehow), without the vnc settings it does and shuts down in a while. Isn't there any way to use notebook display for installing?
post #140 of 813
When I used Xen 4.1.2 kernel and fedora16 do vga pass through,ATI graphics can be successful,But NVIDIA graphics card unsuccessful.I used ATI graphics card includes HD5850&HD6850,used NVIDIA graphics card includes 9400GT 9800GT GTX550TI GTX470 GTX580.
And I tested fedora17 and xen 4.1.2,ATI graphics can be successful,NVIDIA can not.
I see xen 4.2 have better support of NVIDIA graphics card.But, now if use command in Linux OS installed xen just connected 4.1.2 version.
I saw EnMing Zhang about NVIDIA graphics passthrough documents, and according to the steps tested,but unsuccessful.
Are there someone have successful NVIDIA graphics card vga passthrough on fedora16 or 17 and xen 4.1.2 ? (VM OS is win7 64bit).If there is ,can you tell me how to operate,I want to know steps.
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