Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Virtualizing unRAID with Xen on Arch Linux, XBMC & Windows with VGA Passthrough

Featured Replies

xenconsole: Could not read tty from store: No such file or directory

libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console child [0] exited with error status 2

 

There is no console in Windows so when you start it.

 

xl create Windows.xml -c

 

Leave the -c off (that is the command to start a console)

 

All the other gibberish is normal.

 

when I do xl list, I see it listed but not sure if it is running.  Try to connect with VNC, but it fails, any ideas what I might be doing wrong?

 

It is running. Problem is, you didn't tell it to start VNC.

Add the following to your Windows XML file:

 

vnc = '1'
vnclisten = '0.0.0.0'
vncpasswd = ''

  • Replies 314
  • Views 80.6k
  • Created
  • Last Reply

I have that line there, do I need to install a vnc server?  What about the IP, I just connect to the same IP as the host right?  What about port, just default 5901 no?  Surely it is something simple, gonna keep playing

 

I have that line there, do I need to install a vnc server?  What about the IP, I just connect to the same IP as the host right?  What about port, just default 5901 no?  Surely it is something simple, gonna keep playing

 

The IP of your Arch Server. The default port is 5900.

yeah, thats what I am doing.  So I went with the no vncserver installed theory.

 

pacman -S tigervnc

 

ran vncserver, set password

 

added same password to xml file

 

I connect and it prompts for password but then disconnects and vncviewer just closes.

 

when i have no password, then the password does not prompt, so that part seems to be connecting. 

 

when connecting, i am using vnc viewer I type just the IP address, connect, enter password and the thing just closes.  wierd

 

 

---

 

might be working, seem I had to say vnclisten = '0.0.0.0' with the IP of my Arch server.

 

now when I connect on port 5901 I connect and vnc stays open, however, it is just a grey screen.  Was hoping it was just loading the iso, but doesnt seem to be the case.

 

Install Xorg. It needs X for vnc to work.

 

You also do not need vncserver. Uninstall that it will conflict. Xen has a VNC server built in.

 

 

 

ok, done, pacman -R tigervnc

 

xorg installed

 

once installed, do I need to do anything with it?

See if you can get into xterm and make sure it works.

 

startx

no dice, -bash: startx: command not found

 

no dice, -bash: startx: command not found

 

pacman -S xterm

man, what the heck.  installed, same result.

 

am I missing something here when i install these things?  Am I supposed to be enabling/starting them as a service every time?

 

--

 

spoke too soon

 

found this, ran it;

pacman -S xorg-server xorg-server-utils xorg-xinit

 

then start x ends with this

 

Loading extension GLX

(EE)

Fatal server error:

(EE) no screens found(EE)

(EE)

Please consult the The X.Org Foundation support

        at http://wiki.x.org

for help.

(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.

(EE)

(EE) Server terminated with error (1). Closing log file.

 

man, what the heck.  installed, same result.

 

am I missing something here when i install these things?  Am I supposed to be enabling/starting them as a service every time?

 

--

 

spoke too soon

 

found this, ran it;

pacman -S xorg-server xorg-server-utils xorg-xinit

 

then start x ends with this

 

Loading extension GLX

(EE)

Fatal server error:

(EE) no screens found(EE)

(EE)

Please consult the The X.Org Foundation support

        at http://wiki.x.org

for help.

(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.

(EE)

(EE) Server terminated with error (1). Closing log file.

 

Xorg -configure

 

Follow the Arch Wiki for Xorg. It should walk you through everything.

hahahahaha,

 

testARCH / :( # Xorg -configure

 

X.Org X Server 1.14.5

Release Date: 2013-12-12

X Protocol Version 11, Revision 0

Build Operating System: Linux 3.12.5-1-ARCH x86_64

Current Operating System: Linux testARCH 3.12.2-1-ARCH #1 SMP PREEMPT Fri Nov 29 21:14:15 CET 2013 x86_64

Kernel command line: /vmlinuz-linux root=UUID=2f3f945a-2cf8-48ac-b34f-86d91254aaf2 rw console=tty0

Build Date: 13 December 2013  03:11:42PM

 

Current version of pixman: 0.32.4

        Before reporting problems, check http://wiki.x.org

        to make sure that you have the latest version.

Markers: (--) probed, (**) from config file, (==) default setting,

        (++) from command line, (!!) notice, (II) informational,

        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

(==) Log file: "/var/log/Xorg.0.log", Time: Fri Dec 13 18:07:18 2013

List of video drivers:

        nvidia

No devices to configure.  Configuration failed.

(EE) Server terminated with error (2). Closing log file.

 

You are close.

 

nano /etc/mkninitcpio.conf

 

Add nouveau to whatever your modules line is.

 

Example:

 

MODULES="pci-stub nouveau ahci ext4 reiserfs vfat r8169"

 

When done...

 

mkinitcpio -p linux

 

What you are doing is adding the nouveau driver (the open sourced nVidia one) to your linux ramfs (similar to what a bzroot is).

 

Also make sure you have the Xorg nouveau driver too.

 

pacman -S xf86-video-nouveau

 

Reboot after all that and try out:

 

xorg -configure

 

and

 

startx

 

If you run into problems, seriously post on the Arch forums. There is only one of me here and 1000s of me on the Arch Forum who would love to assist you.

well thats no good.  As I continue to mess, it seems it might be a driver thing.  I believe the mobo in use is a intel based board, so not sure if it doesnt like it or something.

 

this was supposed to be fun and easy.  Now it makes me wonder if it is going to be worth it...  I know, how can I bail on this project.  When unraid booted, I thought I was there, I saw the light, but was quickly denied.

 

Did I possibly screw something up at install?  It seems I need to install an awful lot of things compared to what ironic says in his guide.  I know he said select all packages, maybe I didnt do that right, but something is certainly off at this point because we really got to the end of the road with this one.  I won't lie, as much fun as I was having, suddenly has become silly. 

 

Maybe it is time to just default to XenServer and call it a day.  Seems I can do pretty much the same thing, other than my host cant run my SAB and sickbeard installs. 

You have Arch working, Xen, unRAID as a VM and just need X working.

 

You didn't screw anything up during the install.

 

lspci | grep vga

 

It will tell you what video card you have. If its AMD, nVidia or Intel. There is a wiki dedicated to each one. I would use the open source drivers so Radeon, Intel and Noveau. Again, their forum will help you far more than this one. Aside from Ironic and I, nobody else is going to help you.

 

Everything you want your Arch to do... There are 1,000s on that forum who can help and will.

 

You have Xen running perfect on Arch and unRAID. Now it comes down to configuring a few things and customizing your system.

 

How do you think I learned what I know? doing exactly what you are now. Go to Arch, read through the wiki for your video card. Post in the forum and you will get responses within minutes. They will walk you over it step by step. I will be on the look out for you over there.

 

BTW - When you did Xorg -configure it might have produced errors. It creates an xorg.conf file in /root. Copy that over to /etc/X11 and try startx again.

Your right,  poked around,  definitely a driver issue of sorts I believe,  when the Intel driver is installed I get and error pointing to 2 lines in a file,  can't recall right now.  If I comment those out,  I freeze loading glx and that is all over the arch forums just need to find the post that fixes me.

 

Gonna stick with it,  to see if I can't get it going.

  • Author

I had similar issues the first time around. It's all about finding the right video driver, literally so close!

 

Don't give up now :)

 

Sent from my Nexus 5 using Tapatalk

 

 

I hope it's just the driver.  Some things say it is Mesa the 3d driver so we will see

Why do you need X server on Arch? My setup following ironicbadger guide, is a bare Arch with only Xen installed and nothing more. Running on Xen i have Unraid, a Ubuntu Server with downloaders, my server stuff etc, and a Windows 8.1 used as desktop with a GPU Passthrough'ed.

 

To install Windows simply disable the VGA passthrough and used my Mac with Chicken of the VNC to connect to the windows and set up the install. Also for some reason for me it VNC and VGA Passthrough don't work at the same time... If the VGA is enabled the VNC is simply corrupted.... Not sure why.

 

After the initial install of Windows enable the VGA passthrough (probably will not work on a Nvidia). You my set-up, I need to wait exactly 110 seconds to get image on the display. Not sure why, but can live with it.

 

If it may help bellow is my windows conf, which was based on a couple of ones floating around.

#kernel = 'hvmloader'
builder = 'hvm'
vcpus = '4'
memory = '4096'
device_model_version="qemu-xen-traditional"
disk = [
        'phy:/dev/xen-tank/windows,hda,w'
]
name = 'windows'
#vif = [ 'mac=00:16:3E:51:20:4C,bridge=xenbr0,model=e1000' ]
vif = [ 'type=ioemu, bridge=xenbr0']
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
boot = 'dc'
acpi = '1'
apic = '1'
hpet=1
pae=1
sdl = '0'
gfx_passthru=0
monitor=1
pci_power_mgmt=1
xen_platform_pci=1
pci_msitranslate=1
viridian=1
vnc=1
#nographic=1
vnclisten = '0.0.0.0'
vncpasswd = ''
vncdisplay = 5
stdvga = '1'
usb = '1'
usbdevice = 'tablet'
pci = ['01:00.0','01:00.1','00:1d.0','00:1b.0']
#pci = ['00:1d.0','00:1b.0']
acpi_s0 = 1
acpi_s3 = 1
acpi_s4 = 1

Good to see someone else throwing out ideas.  The reason for x was because grumpy suggested it as the reason my vnc connection was a gray screen with no image. So maybe it is like you said,  something corrupted,  but I just used ironic configuration from his blog.

 

Also,  what is with nvidia that you say it probably won't pass through?

 

I'm quite sure only ATI Graphic cards are able to be passed through with Xen, and you must enable it manually when installing it, if you installed it from https://aur.archlinux.org/packages/xen/. Just edit the build script, uncommenting the ATI Patch.

 

For passing up NVIDIA (unless it's a professional Quadro which supports virtualisation stuff) either wait for Xen 4.4 or try KVM, heard it might work there. In my case I just got a cheap HD 6450 for around $25, which works perfectly after a few tricks.

 

Anyway just disable the Nvidia passthrough and try to use the VNC to install the Windows. I was not able to install using the passthrough enabled. To connect to the VNC, just use a different computer or tablet, and connect to the xen machine and use the display you used in the config file, in my case display 5, don't use 5905 or similar.

 

Is pass through enabled by default or in ironics script? I ask only because I don't remember enabling it,  so to turn it off I just need to know what to look for.

Is pass through enabled by default or in ironics script? I ask only because I don't remember enabling it,  so to turn it off I just need to know what to look for.

 

You have to add the PCI Device IDs to the grub command line.

 

When you have done it correctly when you do:

 

lspci -k

 

It should show the Kernel Driver as pciback.

 

Then you add the PCI Device IDs to the unRAID.xml file. It should all be on Ironic's blog.

 

 

That's what I thought but he was talking about nvidia corrupting something so I didn't know if it is always or just a suggestion...

what writes xorg.conf.new?  I tried to commen tout the glx module and the file recreated when I rand startx

 

xorg - configure complains about monitors, so something is silly.

 

X.Org X Server 1.14.5
Release Date: 2013-12-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.12.5-1-ARCH x86_64
Current Operating System: Linux testARCH 3.12.5-1-ARCH #1 SMP PREEMPT Thu Dec 12 12:57:31 CET 2013 x86_64
Kernel command line: /vmlinuz-linux root=UUID=2f3f945a-2cf8-48ac-b34f-86d91254aaf2 rw console=tty0
Build Date: 13 December 2013  03:11:42PM

Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Dec 14 18:25:48 2013
List of video drivers:
        intel
        nouveau
(++) Using config file: "/root/xorg.conf.new"
(==) Using config directory: "/etc/X11/xorg.conf.d"
Number of created screens does not match number of detected devices.
  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.