Hello, I got my domain up and running, receive an IP via DHCP, can login as root and it works so far. However, when I try to login as a non-privileged user, I get bash: /dev/null: Permission denied And though the domain claims to be booting into runlevel 5, no X-Server is started. When I try to start X manually, I get this error message: Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) For me it looks as if I had to do something about the mode the filesystem is mounted. Is that right? Or is there another reason why some devices are not available? I did not find a hint in the manual or the wiki. Regards, Gisbert _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I got my domain up and running, receive an IP via DHCP, can login as > root and it works so far. > > However, when I try to login as a non-privileged user, I get > > bash: /dev/null: Permission deniedThat''s very odd! Xen shouldn''t really make a difference here. Can you look at the output of "mount" and check whether your root filesystem is mounted readonly for some reason. Could you post it to the list, please? Can you post the disk lines out of your config file?> And though the domain claims to be booting into runlevel 5, no X-Server > is started. When I try to start X manually, I get this error message: > > Fatal server error: > xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) > > For me it looks as if I had to do something about the mode the > filesystem is mounted. Is that right? Or is there another reason why > some devices are not available?You can''t just start an Xserver in a Xen domain since there isn''t (yet) a virtual framebuffer device. The recommended way of doing this is to use remote X or VNC, as you would for graphical access to a physically separate machine. HTH, Mark> I did not find a hint in the manual or the wiki. > > Regards, > Gisbert > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
M.A. Williamson wrote:>> I got my domain up and running, receive an IP via DHCP, can login as >> root and it works so far. >> >> However, when I try to login as a non-privileged user, I get >> >> bash: /dev/null: Permission denied >Wild guess, but this sounds like a devfs issue. Are you running a distro (like Gentoo) that requires devfs and then using the standard Xen kernel? Make sure you have udev installed in your VM. Regards, Anthony Liguori> That''s very odd! Xen shouldn''t really make a difference here. > > Can you look at the output of "mount" and check whether your root > filesystem is mounted readonly for some reason. Could you post it to > the list, please? > > Can you post the disk lines out of your config file? > >> And though the domain claims to be booting into runlevel 5, no >> X-Server is started. When I try to start X manually, I get this error >> message: >> >> Fatal server error: >> xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) >> >> For me it looks as if I had to do something about the mode the >> filesystem is mounted. Is that right? Or is there another reason why >> some devices are not available? > > > You can''t just start an Xserver in a Xen domain since there isn''t > (yet) a virtual framebuffer device. The recommended way of doing this > is to use remote X or VNC, as you would for graphical access to a > physically separate machine. > > HTH, > Mark > >> I did not find a hint in the manual or the wiki. >> >> Regards, >> Gisbert >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, April 7, 2005 4:19 pm, Gisbert Amm said:> However, when I try to login as a non-privileged user, I get > > bash: /dev/null: Permission deniedCheck whether /dev/null exists as a node, mknod if necessarily. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
M.A. Williamson wrote:>> I got my domain up and running, receive an IP via DHCP, can login as >> root and it works so far. >> >> However, when I try to login as a non-privileged user, I get >> >> bash: /dev/null: Permission denied > > > That''s very odd! Xen shouldn''t really make a difference here. > > Can you look at the output of "mount" and check whether your root > filesystem is mounted readonly for some reason. Could you post it to the > list, please?# mount /dev/hda6 on / type ext3 (rw) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5)> Can you post the disk lines out of your config file?disk = [''file:/root/xeninstanzen/lxgia/lxgia.img,hda6,w''] root = "/dev/hda6 rw">> And though the domain claims to be booting into runlevel 5, no >> X-Server is started. When I try to start X manually, I get this error >> message: >> >> Fatal server error: >> xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) >> >> For me it looks as if I had to do something about the mode the >> filesystem is mounted. Is that right? Or is there another reason why >> some devices are not available? > > > You can''t just start an Xserver in a Xen domain since there isn''t (yet) > a virtual framebuffer device. The recommended way of doing this is to > use remote X or VNC, as you would for graphical access to a physically > separate machine.I see. Thank you. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
James Bulpin wrote:> On Thu, April 7, 2005 4:19 pm, Gisbert Amm said: > >>However, when I try to login as a non-privileged user, I get >> >>bash: /dev/null: Permission denied > > > Check whether /dev/null exists as a node, mknod if necessarily.It''s there: # ls -l /dev/null crw-r--r-- 1 root root 1, 3 Apr 6 15:06 /dev/null Gisbert _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Anthony Liguori wrote:> Gisbert Amm wrote: > >>> I got my domain up and running, receive an IP via DHCP, can login as >>> root and it works so far. >>> >>> However, when I try to login as a non-privileged user, I get >>> >>> bash: /dev/null: Permission denied >> >> > Wild guess, but this sounds like a devfs issue. Are you running a > distro (like Gentoo) that requires devfs and then using the standard Xen > kernel?I don''t know. It''s a SuSE 8.1 Image of a running workstation I use for testing.> Make sure you have udev installed in your VM.It''s currently not installed and I unfortunately can''t find a rpm for SuSE 8.1 (only for SuSE 9.1 and up). Gisbert _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Your permissions look a bit weird. If you''re root, you can access /dev/null, right? Can you just try chmod-ing the device file? (e.g. chmod 666 /dev/null) so that everyone can read / write it?> > It''s currently not installed and I unfortunately can''t find a rpm for > SuSE 8.1 (only for SuSE 9.1 and up).If you''re on a non-devFS system then you don''t need udev. How did you make this filesystem? It looks like something has gone wrong with permissions in the process of your creating the filesystem image... Strange. Cheers, Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
M.A. Williamson wrote:> Your permissions look a bit weird. If you''re root, you can access > /dev/null, right? Can you just try chmod-ing the device file? (e.g. > chmod 666 /dev/null) so that everyone can read / write it?After doing chmod 666 /dev/null the error message is not displayed anymore. You were right, thank you.> How did you > make this filesystem? It looks like something has gone wrong with > permissions in the process of your creating the filesystem image... > Strange.Argh, I now understand what I did wrong: I created a file with dd, connected it with a loopback device using losetup, mounted it and populated the filesystem copying the necessary parts of my existing installation into it. However, I missed the preserve option when doing cp! Therefore the permissions e.g. for /dev/null where wrong. I should have done cp -p ... Sorry for bothering you with such a stupid mistake. Gisbert _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gisbert Amm wrote:> Argh, I now understand what I did wrong: I created a file with dd, > connected it with a loopback device using losetup, mounted it and > populated the filesystem copying the necessary parts of my existing > installation into it. However, I missed the preserve option when doing > cp! Therefore the permissions e.g. for /dev/null where wrong. I should > have done cp -p ...cd /mnt/newrootfs (cd /mnt/oldrootfs; tar cf - dir1 dir2 dir3 dir4) | tar xf - Rich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rich Persaud wrote:> Gisbert Amm wrote: > >> Argh, I now understand what I did wrong: I created a file with dd, >> connected it with a loopback device using losetup, mounted it and >> populated the filesystem copying the necessary parts of my existing >> installation into it. However, I missed the preserve option when doing >> cp! Therefore the permissions e.g. for /dev/null where wrong. I should >> have done cp -p ... > > > cd /mnt/newrootfs > (cd /mnt/oldrootfs; tar cf - dir1 dir2 dir3 dir4) | tar xf -Thanks! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users