Have installed new GPL Virtualmin with new Debian 6 Squeeze and all seems OK but get this when trying to create new virtual server:
Failed to create virtual server : setquota: Cannot stat() mounted device /dev/root: No such file or directory setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.
I have installed and uninstalled Virtualmin quite a few times and upgraded from Debian 4 to 5 in the past and everything has always just worked.
I cannot pretend to be that competent or know much, so hope this is what you are looking for, after running mount:
/dev/xvda on / type ext3 (rw,noatime,grpquota,errors=remount-ro,usrquota)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
Just in case this is of any interest to anyone, I have now installed Virtualmin on Ubuntu 10.04 LTS and everything went fine and all seems to be working OK.
As a pointer - and I do not know whether this is to do with Linode or Virtualmin - the Ubuntu install did not require to give the server a FQDN. The Linode distro install gives a name in the form of xxxx.users.linode.com or similar and this is how I have left it with Debian installs and everything has worked.
It seems to have been that giving the Debian 5 and 6 distros a name throws a spanner into the works.
As I said, I do not know why this is, but it may give someone else a pointer.
Because I am basically only playing and agnostic, I think I will stick with the working Ubuntu.
Again, many thanks for all the help and hard work from people who do know what they are doing.
I like Virtualmin and am glad to have it running again.
Gah, sorry for my slowness to reply on your previous post – I didn’t have any immediate thoughts on why you were seeing that problem, and I then forgot to get back to you.
However, I’m thrilled to hear that it was later resolved for you on Ubuntu 10.04.
Linode is a good provider, and I’d expect things to work on their setup. You have a Xen-based VPS with a fixed amount of RAM and swap, which is good.
We may need to run a couple of tests in our dev environment here to figure out why you saw some of the symptoms you’re describing, but at least in the meantime you have a working system
I have this exact same issue, can’t Create virtual servers on a Linode 512 running Debian 6.
I was running Ubuntu 10.04 fine before, but seeing as my site is not online yet and now Virtualmin supports Deb 6, I wanted to rebuild the server as a Debian 6 one.
I started from fresh so there would be no conflicts, everything installs fine, but quotas dont work.
I have narrowed the error down a bit, in that it seems like the quota service is not starting or running correctly. It says inactive under disk quotas in Webmin, and when you run “service quota start”, it comes up with the same error you get when you try to create a virtual server:
“Cannot stat() mounted device /dev/root: No such file or directory…”
I have spent ages looking around and cant see anything immediatly obvious, I don’t know if its a Linode Deb 6 issue, or something which is also a problem with Virtualmin.
A workaround I read about, involves creating a symlink for /dev/root and pointing it to your root device as defined in fstab (usually dev/xvda in Linode). But it seems like a dirty workaround as opposed to a proper fix.
If there is anything I can help with, or testing out etc, I effectively have a blank canvas of a Linode 512 I can play with at the moment.
I opened up a ticket with linode and got this response:
I’m sorry to hear about the issues you’re having! However, it doesn’t appear that /dev/root exists on our default Debian 6 distribution template:
=
debian:~# ls /dev/|grep root
debian:~#
=
I’m not specifically familiar with setting up quotas, however you may want to reach out to our active user community for assistance. Many of our customers are system administrators who can offer excellent advice. You can find more information about our forums and IRC channel at:
Although I am sorry you are also having this problem, alexp999, I am pleased in a way to see that it was not something I had done in isolation, due to some unnoticed stupidity.
I see you have opened a thread on the Linode forum at:
FWIW- I have the exact same problem (on a Linode). Mine is a Lenny install which I upgraded to Squeeze, so Virtualmin was already installed and 5 websites set up and working, but I cannot add a new parent site, though I can add a new sub server.
In looking at my own desktop machine, which is running Lenny still, I don’t have a /dev/root on it (I do have webmin running on it, but not Virtualmin).
Ok thanks to someone on the Linode forums, it seems its a bug with the Linode Debian 6 distro. There is in fact supposed to be a symlink for dev/root, but its not in the Linode Deb 6 distro.
I have contacted Linode support and asked them to make the fix to their distrubtion package.
Without to much complication and messing you can just reinstall quota package to let say 3.16 version and will be fixed for linode server. You can use wajig to keep the version to not be updated.
This is also a problem on stable debian squeeze (not the linode)
The following NEW packages will be installed:
quota
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/580 kB of archives.
After this operation, 1610 kB of additional disk space will be used.
Preconfiguring packages …
Selecting previously deselected package quota.
(Reading database … 78386 files and directories currently installed.)
Unpacking quota (from …/quota_4.00~pre1-6_amd64.deb) …
Processing triggers for man-db …
Setting up quota (4.00~pre1-6) …
quotaon: Cannot stat() mounted device /dev/root: No such file or directory