Gnatbite
2007-Apr-17 17:13 UTC
[Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
Hi guys, I have been using xen for a while. Till now I never had problems but today as i wanted to install a new Guest (domU), there was and still is a problem. Im using xen in combination with lvm. Xen3.04(2.6.16.33) on Debian Sarge I installed Debian (etch) on some LVM-Volumes. The following shows my /etc/fstab for the new guest. #/etc/fstab ================================================================proc /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=620 0 0 /dev/hda1 / ext3 defaults 0 0 /dev/hda2 /usr ext3 defaults 0 0 /dev/hda3 /home ext3 defaults 0 0 /dev/hda5 /var ext3 defaults 0 0 /dev/hda6 /tmp ext3 defaults 0 0 /dev/hda7 none swap sw 0 0 ================================================================ Accordantly to this I created the following guest-config #/etc/xen/vm_dummy.sxp ================================================================name="vm_dummy" kernel="/boot/vmlinuz-2.6-xenU" root="/dev/hda1" memory=384 disk=[ ''phy:/dev/lvg1/dummy_root,hda1,w'', ''phy:/dev/lvg1/dummy_usr,hda2,w'', ''phy:/dev/lvg1/dummy_home,hda3,w'', ''phy:/dev/lvg1/dummy_var,hda5,w'', ''phy:/dev/lvg1/dummy_tmp,hda6,w'', ''phy:/dev/lvg1/dummy_swap,hda7,w'' ] # network vif=[ '''' ] dhcp="off" ip="88.198.XXX.XXX" netmask="255.255.255.248" gateway="88.198.XXX.XXX" hostname="dummy" extra="3" ================================================================I set it up like always but it doesnt work. There are some other guests which are all working and set up in the same way. I really cant see what the problem is? Thats what I get when i try to start the guest. The startup works fine till the following point: ================================================================Setting kernel variables...done. Mounting local filesystems...mount: none already mounted or /dev/pts busy mount: according to mtab, devpts is already mounted on /dev/pts mount: special device /dev/hda2 does not exist mount: special device /dev/hda3 does not exist mount: special device /dev/hda5 does not exist mount: special device /dev/hda6 does not exist failed. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...done. /etc/rcS.d/S55bootmisc.sh: line 28: /var/run/utmp: No such file or directory INIT: Entering runlevel: 3 INIT: Switching to runlevel: 0slogd INIT: Sending processes the TERM signal error: ''/etc/init.d/rc'' exited outside the expected code flow. Saving the system clock.. Stopping kernel log daemon: klogd. Stopping system log daemon: syslogd. ================================================================ The system hangs at the last message "Stopping system log daemon: syslogd." and I cannot do anything about it? I hope one of you guys can help me out. Cheers, gnatbite _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Marcin Owsiany
2007-Apr-17 17:20 UTC
Re: [Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
On Tue, Apr 17, 2007 at 07:13:31PM +0200, Gnatbite wrote:> mount: special device /dev/hda2 does not exist[...] Sounds like a missing device file. Do you use udev in the domU? If not, try mounting /dev/lvg1/dummy_root directly in dom0 and investigate the /dev directory -- Marcin Owsiany <marcin@owsiany.pl> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gnatbite
2007-Apr-17 17:29 UTC
Re: [Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
Marcin Owsiany schrieb:> On Tue, Apr 17, 2007 at 07:13:31PM +0200, Gnatbite wrote: >> mount: special device /dev/hda2 does not exist > [...] > > Sounds like a missing device file. > > Do you use udev in the domU? If not, try mounting /dev/lvg1/dummy_root > directly in dom0 and investigate the /dev directory >Hi, thx for your answer. I am not using udev, actually I even dont know what udev does. I mounted /dev/lvg1/dummy_root already and it works fine in dom0. What do you mean with "investigate /dev"? If i try to install udev, apt says the following: "Package udev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source" Do you think it is a good idea to install it from a .deb-file? Cheers, Artur _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dylan Martin
2007-Apr-17 17:39 UTC
Re: [Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
I thought you couldn''t specify partitions in a domU config file. [ ''phy:/dev/lvg1/dummy_root,hda1,w'', ''phy:/dev/lvg1/dummy_usr,hda2,w'', ''phy:/dev/lvg1/dummy_home,hda3,w'' ] The guest OS will think /dev/hda1, /dev/hda2, /dev/hda3 etc.. are whold block devices and not partitions on a single block device. That would cause what you are seeing, I think. I think you need a single lv that you partition up, or multiple lvs that act as multiple block devices. AmI wrong about that? I''m pretty new to Xen, and I''m playing with that exact thing, so I''d love to know if I''m wrong. -Dylan> Hi guys, I have been using xen for a while. Till now I never had > problems but today as i wanted to install a new Guest (domU), there was > and still is a problem. Im using xen in combination with lvm. > > Xen3.04(2.6.16.33) on Debian Sarge > > I installed Debian (etch) on some LVM-Volumes. The following shows my > /etc/fstab for the new guest. > > #/etc/fstab > ================================================================> proc /proc proc defaults 0 0 > none /dev/pts devpts gid=5,mode=620 0 0 > /dev/hda1 / ext3 defaults 0 0 > /dev/hda2 /usr ext3 defaults 0 0 > /dev/hda3 /home ext3 defaults 0 0 > /dev/hda5 /var ext3 defaults 0 0 > /dev/hda6 /tmp ext3 defaults 0 0 > /dev/hda7 none swap sw 0 0 > ================================================================> > Accordantly to this I created the following guest-config > > #/etc/xen/vm_dummy.sxp > ================================================================> name="vm_dummy" > kernel="/boot/vmlinuz-2.6-xenU" > root="/dev/hda1" > memory=384 > disk=[ > ''phy:/dev/lvg1/dummy_root,hda1,w'', > ''phy:/dev/lvg1/dummy_usr,hda2,w'', > ''phy:/dev/lvg1/dummy_home,hda3,w'', > ''phy:/dev/lvg1/dummy_var,hda5,w'', > ''phy:/dev/lvg1/dummy_tmp,hda6,w'', > ''phy:/dev/lvg1/dummy_swap,hda7,w'' > ] > > # network > vif=[ '''' ] > dhcp="off" > ip="88.198.XXX.XXX" > netmask="255.255.255.248" > gateway="88.198.XXX.XXX" > hostname="dummy" > extra="3" > ================================================================> I set it up like always but it doesnt work. There are some other guests > which are all working and set up in the same way. I really cant see what > the problem is? > > Thats what I get when i try to start the guest. The startup works fine > till the following point: > ================================================================> Setting kernel variables...done. > Mounting local filesystems...mount: none already mounted or /dev/pts busy > mount: according to mtab, devpts is already mounted on /dev/pts > mount: special device /dev/hda2 does not exist > mount: special device /dev/hda3 does not exist > mount: special device /dev/hda5 does not exist > mount: special device /dev/hda6 does not exist > failed. > Activating swapfile swap...done. > Setting up networking.... > Configuring network interfaces...done. > /etc/rcS.d/S55bootmisc.sh: line 28: /var/run/utmp: No such file or directory > INIT: Entering runlevel: 3 > INIT: Switching to runlevel: 0slogd > INIT: Sending processes the TERM signal > error: ''/etc/init.d/rc'' exited outside the expected code flow. > Saving the system clock.. > Stopping kernel log daemon: klogd. > Stopping system log daemon: syslogd. > ================================================================> > The system hangs at the last message "Stopping system log daemon: > syslogd." and I cannot do anything about it? > > I hope one of you guys can help me out. > > Cheers, > > gnatbite > > _______________________________________________ > 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
Marcin Owsiany
2007-Apr-17 17:49 UTC
Re: [Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
On Tue, Apr 17, 2007 at 07:29:31PM +0200, Gnatbite wrote:> Marcin Owsiany schrieb: > > On Tue, Apr 17, 2007 at 07:13:31PM +0200, Gnatbite wrote: > >> mount: special device /dev/hda2 does not exist > > [...] > > > > Sounds like a missing device file. > > > > Do you use udev in the domU? If not, try mounting /dev/lvg1/dummy_root > > directly in dom0 and investigate the /dev directory > > > Hi, thx for your answer. I am not using udev, actually I even dont know > what udev does.Well, then read up - it''s the future :)> I mounted /dev/lvg1/dummy_root already and it works fine > in dom0. What do you mean with "investigate /dev"?See whether the dev subdirectory contains all the device files you need (hda*)> If i try to install udev, apt says the following: > > "Package udev is not available, but is referred to by another package. > This may mean that the package is missing, has been obsoleted, or > is only available from another source"Sounds like missing source lines.> Do you think it is a good idea to install it from a .deb-file?Well, installing it might resolve the issue, make it worse, or not change anything, depending on how lucky you are :) -- Marcin Owsiany <marcin@owsiany.pl> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gnatbite
2007-Apr-17 19:29 UTC
Re: [Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
Dylan Martin schrieb:> I thought you couldn''t specify partitions in a domU config file. > [ ''phy:/dev/lvg1/dummy_root,hda1,w'', > ''phy:/dev/lvg1/dummy_usr,hda2,w'', > ''phy:/dev/lvg1/dummy_home,hda3,w'' ] > > The guest OS will think /dev/hda1, /dev/hda2, /dev/hda3 etc.. are > whold block devices and not partitions on a single block device. That > would cause what you are seeing, I think. I think you need a single > lv that you partition up, or multiple lvs that act as multiple block > devices. > > AmI wrong about that? I''m pretty new to Xen, and I''m playing with > that exact thing, so I''d love to know if I''m wrong. > > -Dylan >Yes, you are wrong about that. Ive got some guests running in the same way, so it is definitely possible. The guests I installed before are still working (and booting) perfectly on the same dom0, I tried it out. Thats why I dont understand the problem. :-/ Really strange. Maybe it has something to do with etch, because my ohter guests are still running on sarge. Hopefully I can figure it out tomorrow. I will post my result. Cheers, Artur _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gnatbite
2007-Apr-20 07:18 UTC
Re: [Xen-users] Problem: mount: none already mounted or /dev/pts busy ??
Gnatbite schrieb:> Hi guys, I have been using xen for a while. Till now I never had > problems but today as i wanted to install a new Guest (domU), there was > and still is a problem. Im using xen in combination with lvm. > > Xen3.04(2.6.16.33) on Debian Sarge > > I installed Debian (etch) on some LVM-Volumes. The following shows my > /etc/fstab for the new guest. > > #/etc/fstab > ================================================================> proc /proc proc defaults 0 0 > none /dev/pts devpts gid=5,mode=620 0 0 > /dev/hda1 / ext3 defaults 0 0 > /dev/hda2 /usr ext3 defaults 0 0 > /dev/hda3 /home ext3 defaults 0 0 > /dev/hda5 /var ext3 defaults 0 0 > /dev/hda6 /tmp ext3 defaults 0 0 > /dev/hda7 none swap sw 0 0 > ================================================================> > Accordantly to this I created the following guest-config > > #/etc/xen/vm_dummy.sxp > ================================================================> name="vm_dummy" > kernel="/boot/vmlinuz-2.6-xenU" > root="/dev/hda1" > memory=384 > disk=[ > ''phy:/dev/lvg1/dummy_root,hda1,w'', > ''phy:/dev/lvg1/dummy_usr,hda2,w'', > ''phy:/dev/lvg1/dummy_home,hda3,w'', > ''phy:/dev/lvg1/dummy_var,hda5,w'', > ''phy:/dev/lvg1/dummy_tmp,hda6,w'', > ''phy:/dev/lvg1/dummy_swap,hda7,w'' > ] > > # network > vif=[ '''' ] > dhcp="off" > ip="88.198.XXX.XXX" > netmask="255.255.255.248" > gateway="88.198.XXX.XXX" > hostname="dummy" > extra="3" > ================================================================> I set it up like always but it doesnt work. There are some other guests > which are all working and set up in the same way. I really cant see what > the problem is? > > Thats what I get when i try to start the guest. The startup works fine > till the following point: > ================================================================> Setting kernel variables...done. > Mounting local filesystems...mount: none already mounted or /dev/pts busy > mount: according to mtab, devpts is already mounted on /dev/pts > mount: special device /dev/hda2 does not exist > mount: special device /dev/hda3 does not exist > mount: special device /dev/hda5 does not exist > mount: special device /dev/hda6 does not exist > failed. > Activating swapfile swap...done. > Setting up networking.... > Configuring network interfaces...done. > /etc/rcS.d/S55bootmisc.sh: line 28: /var/run/utmp: No such file or directory > INIT: Entering runlevel: 3 > INIT: Switching to runlevel: 0slogd > INIT: Sending processes the TERM signal > error: ''/etc/init.d/rc'' exited outside the expected code flow. > Saving the system clock.. > Stopping kernel log daemon: klogd. > Stopping system log daemon: syslogd. > ================================================================> > The system hangs at the last message "Stopping system log daemon: > syslogd." and I cannot do anything about it? > > I hope one of you guys can help me out. > > Cheers, > > gnatbite > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Hi again, I solved the problem yesterday. Somehow it depends on the debootstrap-version. When I am using the new version coming with etch (0.3.3.2), the problem appears as posted before. Using the old sarge version (0.2.45) works perfect. Unfortunately the old version doesnt bring the ability to install etch with debootstrap. Thats the reason why I updated my version. Maybe it is a bug in the new debootstrap-version!? Whatever, you can install an etch-domU using cdebootstrap (pay attention to the C at the beginning) Have fun Cheers, Artur _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users