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.

Ubuntu Server 12.04 PV Client - "Could not read tty"

Featured Replies

Hi

 

I would like to get a Ubuntu Server 12.04 PV client working, but I am having an issue whereby shortly after booting (this is before I have installed ubuntu) I get the following error:

 

root@Bob:/mnt/xen/vmssd/ubuntu# xl create ubuntu.cfg -c
Parsing config from ubuntu.cfg
Daemon running with PID 6690
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

 

This is my config file:

name = "ubuntu"
memory = 2048
vcpus = '2'
disk = [
        'phy:/mnt/xen/vmssd/ubuntu/ubuntu.img,xvda,w',
        'file:/mnt/xen/vmhdd/_ISOs/ubuntu-12.04.4-server-amd64.iso,hdc:cdrom,r'
        ]
vif = [ 'mac=00:xx:xx:xx:xx:xx,bridge=br0' ]
kernel = "/mnt/xen/vmssd/ubuntu/vmlinuz"
ramdisk = "/mnt/xen/vmssd/ubuntu/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- console=hvc0"

 

The config above is based on the docs at https://help.ubuntu.com/community/Xen but that uses xm, do I need to change something for the xl toolstack? (apologies if I have got my terminology wrong, very new to xen).

 

Thanks

Jake

Change phy in cfg to file. Ubuntu documentation uses lvm, they are set up as actual drives and hence the use of phy. You are using am img file so you have to use file instead of phy.

 

Also make sure you set a proper mac address

  • Author

Thanks, but no joy with 'file' either, same issue. mac is completed, just 'x'd out for the post.

 

 

I'd try removing the console part

 

extra = "debian-installer/exit/always_halt=true"

 

then

 

xl create -c <cfg file>

  • Author

Sadly that doesn't work either

You don't need to mount the iso file for pv. Just mount the img file. The install files are on the kernel and ramdisk (which you will have to comment out after install). You are mounting two drives, one as a cdrom, but you did not specify what drive to boot from. That may be the issue. Just remove the iso and see if it works.

 

It looks like your cfg contains mixed elements from both the pv and the hvm setup. Follow pv for ubuntu

Oh and by the way, i believe you can use the same kernel and ramdisk for either ubuntu desktop or server because during install, it will ask you what components to install and both desktop and server appear as options (Disclaimer: I am not a linux guru, but I just installed ubuntu 12.04 on unraid 6 following the same directions with both desktop and server and set up plex, sabnzbd, couchpotato, sickbeard, mysql and webservers for plexwatch and plexnotify. It works beautifully.) One tip, after installing ubuntu, install xrdp. It will allow you to remote desktop into ubuntu. Setting up is extremely easy (much easier than vnc) and any ms rdp compatible app will connect to it.

  • Author

Thanks, but still not getting anywhere with this.

 

This is my current ubuntu.cfg, i've left it as close to what the ubuntu xen docs say as i can:

name = "ubuntu"

memory = 256

disk = ['phy:/mnt/xen/vmssd/ubuntu/ubuntu.img,xvda,w']
vif = [ 'mac=00:16:3e:12:34:56,bridge=br0' ]

kernel = "/mnt/xen/vmssd/ubuntu/vmlinuz"
ramdisk = "/mnt/xen/vmssd/ubuntu/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- console=hvc0"

 

These are the commands I am then running:

root@Bob:/mnt/xen/vmssd/ubuntu# pwd
/mnt/xen/vmssd/ubuntu
root@Bob:/mnt/xen/vmssd/ubuntu# ls
initrd.gz*  ubuntu.cfg  vmlinuz*
root@Bob:/mnt/xen/vmssd/ubuntu# truncate -s 15G ubuntu.img
root@Bob:/mnt/xen/vmssd/ubuntu# xl create ubuntu.cfg -c
Parsing config from ubuntu.cfg
Daemon running with PID 21966
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
root@Bob:/mnt/xen/vmssd/ubuntu#

I saw your post yesterday and got me interested in trying to build a Ubuntu VM from scratch. I differed a bit from your approach in that I did a "network" install following this guide: https://help.ubuntu.com/community/Installation/NetbootInstallFromInternet. The files I used were in a Xen subdirectory of the images download site. Typically, "/ubuntu/dists/saucy/main/installer-amd64/current/images/netboot/xen"

 

I first tried using the files for the 14.04 Beta build. Just to be on safe side I changed ownership to root:root and added +x to vmlinuz and initrd.gz. I made the mistake of having the bootloader= "pygrub" in the config file (and got a different error message than you).  I had also dropped "console=hvc0" as suggested by an earlier post.

 

Beta 14.04 started working, but failed later during installation. So I used the files from 13.10 and had success getting through the install.

 

A couple of other points, unRAID creates the bridge as 'xenbr0' so that's what I used in my config. I used the same method as you to create the blank image file. With the errors I was having Xen did actually "create" the domain and I had to "xl list" and "xl destroy" to see/remove the failed instances.

 

I hope you get it working!

  • 4 weeks later...

Any solution to this problem? Trying ubuntu 12.04 as well with same error.

Thanks, but still not getting anywhere with this.

 

This is my current ubuntu.cfg, i've left it as close to what the ubuntu xen docs say as i can:

name = "ubuntu"

memory = 256

disk = ['phy:/mnt/xen/vmssd/ubuntu/ubuntu.img,xvda,w']
vif = [ 'mac=00:16:3e:12:34:56,bridge=br0' ]

kernel = "/mnt/xen/vmssd/ubuntu/vmlinuz"
ramdisk = "/mnt/xen/vmssd/ubuntu/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- console=hvc0"

 

These are the commands I am then running:

root@Bob:/mnt/xen/vmssd/ubuntu# pwd
/mnt/xen/vmssd/ubuntu
root@Bob:/mnt/xen/vmssd/ubuntu# ls
initrd.gz*  ubuntu.cfg  vmlinuz*
root@Bob:/mnt/xen/vmssd/ubuntu# truncate -s 15G ubuntu.img
root@Bob:/mnt/xen/vmssd/ubuntu# xl create ubuntu.cfg -c
Parsing config from ubuntu.cfg
Daemon running with PID 21966
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
root@Bob:/mnt/xen/vmssd/ubuntu#

 

Did you read what I wrote above?

 

You need to change the "phy" to "file" for ubuntu.img

 

You use phy if ubuntu is on a "disk" (physical drive or a logical volume)

 

In your case ubuntu will be on an image "file" so you have to use file.

 

Your configuration is telling xen to look for the file on a disk that doesn't exist. Hence the error. . .

  • Author

Yes I did try that, didn't seem to make a difference. I cheated in the end and created a HVM image instead. I will try the instructions in this thread when I get chance, but working away alot at the moment:

http://lime-technology.com/forum/index.php?topic=32733.0

 

The main difference I can see in those instructions is I think it is using a newer initrd.gz and vmlinuz file, so will definitely give it a try.

 

The issue for me was that the initrd.gz and vmlinuz weren't good.

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.