[xen-tools-discuss] Xen-Tools and error about "Guest has not initialized the display yet"
Jason Long
hack3rcon at yahoo.com
Tue Jun 7 14:33:10 CEST 2016
My Dom0 is Fedora server 23 without any graphical desktop.
On Tuesday, June 7, 2016 4:49 PM, Jason Long <hack3rcon at yahoo.com> wrote:
I got an error. I edited the files that you said and changed "gdm" to "gdm3" :
[root at localhost ~]# cat /etc/xen-tools/role.d/gdm #!/bin/sh## Configure the new image to be a GDM VNC server.## Steve# --# http://www.steve.org.uk/#
prefix=$1
## Source our common functions - this will let us install a Debian package.#if [ -e /usr/share/xen-tools/common.sh ]; then . /usr/share/xen-tools/common.shelse echo "Installation problem"fi
## Update APT lists.#chroot ${prefix} /usr/bin/apt-get update
## Install the packages##installDebianPackage ${prefix} xserver-xfree86installDebianPackage ${prefix} xserver-xorginstallDebianPackage ${prefix} vncserverinstallDebianPackage ${prefix} xfonts-100dpiinstallDebianPackage ${prefix} xfonts-75dpiinstallDebianPackage ${prefix} xfonts-baseinstallDebianPackage ${prefix} rxvtinstallDebianPackage ${prefix} gdminstallDebianPackage ${prefix} icewm-experimental
## Add a new section to the GDM configuration file.#cat <<EOF >> ${prefix}/etc/gdm/gdm3.conf[server-VNC]name=VNC servercommand=/usr/bin/Xvnc -geometry 800x600 -depth 24flexible=trueEOF
## Make the new section the default#perl -pi.bak -e 's/^0=Standard\n//g ; s/^\[servers\]/\[servers\]\n0=VNC/g' ${prefix}/etc/gdm/gdm3.conf
Then I used below command :xen-create-image --size=4Gb --swap=512Mb --ip=172.30.9.21 --netmask=255.255.255.0 --gateway=172.30.9.254 --dir=/home/jason --hostname=linux1 --dist=jessie --role gdm
But when I run below command show me error :
[root at localhost ~]# xl create /etc/xen/linux1.cfgParsing config from /etc/xen/linux1.cfgxc: error: panic: xc_dom_core.c:208: failed to open file: No such file or directory: Internal errorlibxl: error: libxl_dom.c:553:libxl__build_pv: xc_dom_kernel_file failed: No such file or directorylibxl: error: libxl_create.c:1121:domcreate_rebuild_done: cannot (re-)build domain: -3libxl: info: libxl.c:1698:devices_destroy_cb: forked pid 22912 for destroy of domain 34
I edited this file too :
[root at localhost ~]# cat /etc/xen-tools/role.d/xdm #!/bin/sh## Configure the new image to be a XDM VNC server.## Steve# --# http://www.steve.org.uk/#
prefix=$1
## Source our common functions - this will let us install a Debian package.#if [ -e /usr/share/xen-tools/common.sh ]; then . /usr/share/xen-tools/common.shelse echo "Installation problem"fi
## Update APT lists.#chroot ${prefix} /usr/bin/apt-get update
## Install the packages##installDebianPackage ${prefix} xserver-xfree86installDebianPackage ${prefix} xserver-xorginstallDebianPackage ${prefix} vncserverinstallDebianPackage ${prefix} xfonts-100dpiinstallDebianPackage ${prefix} xfonts-75dpiinstallDebianPackage ${prefix} xfonts-baseinstallDebianPackage ${prefix} rxvtinstallDebianPackage ${prefix} xdminstallDebianPackage ${prefix} icewm-experimental
## Remove the default settings.#rm ${prefix}/etc/X11/xdm/Xserverrm ${prefix}/etc/X11/xdm/Xservers
## Setup XDM to use the VNC server we installed.#/bin/echo ':0 /usr/bin/Xvnc /usr/bin/Xvnc -geometry 1024x768 -depth 24' > \ ${prefix}/etc/X11/xdm/Xservers
and used below command :
xen-create-image --size=4Gb --swap=512Mb --ip=172.30.9.21 --netmask=255.255.255.0 --gateway=172.30.9.254 --dir=/home/jason --hostname=linux2 --dist=jessie --role xdm
But the command can't complete and show me an error :
Role: xdm File: /etc/xen-tools/role.d/xdmRunning command '/etc/xen-tools/role.d/xdm /tmp/IodaEzPjIQ 2>&1' failed with exit code 256.AbortingSee /var/log/xen-tools/linux2.log for details
Logfile produced at: /var/log/xen-tools/linux2.log
Must I install any external packages? I installed "xdm" and "gdm" too but problem not solved :(
On Tuesday, June 7, 2016 12:26 PM, Axel Beckert <abe at deuxchevaux.org> wrote:
Hi,
On Tue, Jun 07, 2016 at 07:38:54AM +0000, Jason Long wrote:
> > See the man-page for xen-create-image and look for VNC there. There
> > are two example roles supplied ("xdm" and "gdm") with the source code
> > which install a VNC server.
> >
> > But they seem horribly outdated with regards to package names --
> > "xserver-xfree86" no more exists for many Debian releases, you
> > probably need to replace that by "xserver-xorg". I've never used them
> > and I actually wasn't aware that they were part of the project when I
> > took it over from Steve.
[...]
> Can you show me the correct parameter? I can't understand it.
Edit /etc/xen-tools/role.d/gdm and /etc/xen-tools/role.d/gdm, replace
"xserver-xfree86" by "xserver-xorg" (/etc/xen-tools/role.d/gdm
probably also needs "gdm" replaced by "gdm3") and then add either
"--role xdm" or "--role gdm" (whatever you prefer) to your
commandline.
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe at deuxchevaux.org (Mail)
X See http://www.nonhtmlmail.org/campaign.html | abe at noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-discuss/attachments/20160607/c6fb15f1/attachment-0001.html>
More information about the xen-tools-discuss
mailing list