 |
 |
Domain Technologie Control Forum Take the control of your domain name
|
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
mzerbe
Joined: 13 Mar 2009 Posts: 5 Location: Bangkok  |
Posted: Fri Jun 19, 2009 4:57 pm Post subject: ssh closed with: Error: Domain 'xen01' does not exist. |
 |
|
- I did a manual install of the first dtc-xen VPS (where DTC shall be installed.)
- Setup was from Debian repo. (No GIT version)
- one specialty, the fqdn domain is resolved like d.example.com since the testbox has only a dyndns adress from outsite the lan. I canged the FQDN to example.com below.
IP for node00001: 192.168.6.10
IPs for the Test VPSs: 192.168.6.11 - ....
| Code: |
node00001:/usr/sbin# dtc_setup_vps_disk 01 10240 256
Redirecting standard output to /var/lib/dtc-xen/mnt/01.stdout...
Redirecting standard error to /var/lib/dtc-xen/mnt/01.stderr...
node00001:/usr/sbin# dtc_reinstall_os 01 10240 256 192.168.6.11 debian
Redirecting standard output to /var/lib/dtc-xen/mnt/01.stdout...
Redirecting standard error to /var/lib/dtc-xen/mnt/01.stderr...
node00001:/usr/sbin# |
Here the outputs from the logs (I observerved the logs with tail -f during the installation)
| Code: |
node00001:~# tail-f /var/lib/dtc-xen/mnt/01.stdout
I: Configuring tasksel...
I: Base system installed successfully.
Customizing vps...
Making VPS devices with MAKEDEV generic
Copying modules...
Unmounting proc and filesystem root...
Install script finished |
The only one line in stderr
| Code: |
node00001:~# tail -f /var/lib/dtc-xen/mnt/01.stderr
mke2fs 1.41.3 (12-Oct-2008) |
I switched to another terminal on the workstation (not the VPS BOX)
| Code: |
me@mydesktop:~$ ssh xen01@node00001.d.example.com
xen01@node00001.d.example.com's password:
Linux node00001 2.6.26-2-xen-686 #1 SMP Thu May 28 18:35:28 UTC 2009 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 19 22:52:45 2009 from node00001.d.example.com
Welcome to dtc-xen ssh console!
Error: Domain 'xen01' does not exist.
Connection to node00001.d.example.com closed.
me@mydesktop:~$ |
Any ideas what is going wrong? _________________ br,
Mario, Bkk
--
Debian Lenny on AMD64
DTC testbox on acer e-machine (Atom 230), Debian, Lenny
Last edited by mzerbe on Sat Jun 20, 2009 5:33 am; edited 1 time in total |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 3702 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Fri Jun 19, 2009 9:04 pm Post subject: |
 |
|
Maybe you want to start your VM with "xm create -c xen01" ?
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
mzerbe
Joined: 13 Mar 2009 Posts: 5 Location: Bangkok  |
Posted: Sat Jun 20, 2009 6:55 am Post subject: |
 |
|
Hi Thomas,
thanks for this hint, but I did it. However, I not realized the output of the start script. It was late last night. Sorry for that.
The last lines point in a different direction.
| Code: |
[ 0.285537] List of all partitions:
[ 0.285564] 0801 10485760 sda1 driver: vbd
[ 0.285583] 0802 262144 sda2 driver: vbd
[ 0.285599] No filesystem could mount root, tried:
[ 0.285622] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
|
So I checked the lvm "disk"
| Code: |
node00001:~# lvscan
ACTIVE '/dev/lvm1/var' [2.79 GB] inherit
ACTIVE '/dev/lvm1/tmp' [380.00 MB] inherit
ACTIVE '/dev/lvm1/root' [380.00 MB] inherit
ACTIVE '/dev/lvm1/usr' [4.66 GB] inherit
ACTIVE '/dev/lvm1/swap' [3.72 GB] inherit
ACTIVE '/dev/lvm1/xen01' [10.00 GB] inherit
ACTIVE '/dev/lvm1/xen01swap' [256.00 MB] inherit
node00001:~#
|
| Code: |
node00001:~# vgdisplay
--- Volume group ---
VG Name lvm1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 26
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 7
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 148.11 GB
PE Size 4.00 MB
Total PE 37917
Alloc PE / Size 5674 / 22.16 GB
Free PE / Size 32243 / 125.95 GB
VG UUID 7Cu91N-H4ju-1Ybk-AEPw-hmtP-g3Sw-Ykrv5G
|
| Code: |
node00001:~# cat /etc/dtc-xen/dtc_create_vps.conf.sh
#!/bin/sh
# This the configuration file for dtc-xen setup scripts (called uppon VM reinstallation)
NODE_NUM=00001
NODE_DOMAIN_NAME=d.example.com
DEBIAN_REPOS="ftp://ftp.debianclub.com/debian"
NETMASK=255.255.255.0
NETWORK=192.168.60.1
BROADCAST=192.168.60.255
GATEWAY=192.168.60.254
LVMNAME=lvm1
VPS_MOUNTPOINT=/var/lib/dtc-xen/mnt
DEBIAN_RELEASE=lenny
KERNELNAME=2.6.26-2-xen-686 |
| Code: |
node00001:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/mapper/lvm1-root /root ext3 defaults 0 2
/dev/mapper/lvm1-tmp /tmp ext3 defaults 0 2
/dev/mapper/lvm1-usr /usr ext3 defaults 0 2
/dev/mapper/lvm1-var /var ext3 defaults 0 2
/dev/mapper/lvm1-swap none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/mapper/lvm1-xen01 /var/lib/dtc-xen/mnt/01 ext3 defaults,noauto 0 0
node00001:~#
|
So two facts are strange to me, as I read in the forum, the machines are called xenXX in /var/lib/dtc-xen/mnt/
My machine is called XX (= 01) only?
Secondly, the folder/var/lib/dtc-xen/mnt/01 is empty. (I'd have expected an /etc/fstab there.)
| Code: |
node00001:/var/lib/dtc-xen/mnt/01# ls -al
total 8
drwxr-xr-x 2 root root 4096 2009-06-19 23:21 .
drwxr-xr-x 3 root root 4096 2009-06-19 23:21 ..
node00001:/var/lib/dtc-xen/mnt/01# |
Do I miss something in the configuration steps?
Any comments, advices welcome. _________________ br,
Mario, Bkk
--
Debian Lenny on AMD64
DTC testbox on acer e-machine (Atom 230), Debian, Lenny |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 3702 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Sat Jun 20, 2009 9:21 am Post subject: |
 |
|
Hi,
Everything is absolutely normal here, it's also normal that you don't see the filesystem in your dom0, as it's not to be mounted permanently. The only issue (I'm guessing) is that you need a ramdisk entry in your xen01 startup file in /etc/xen/xen01. Something like this:
ramdisk = "/boot/initrd.img-2.6.26-2-xen-686"
Try this and let me know.
I'm moving this post to the dtc-xen forum by the way.
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
mzerbe
Joined: 13 Mar 2009 Posts: 5 Location: Bangkok  |
Posted: Sat Jun 20, 2009 10:03 am Post subject: Problem solved - Error: Domain 'xen01' does not exist. |
 |
|
A short summary:
Problem:
After manual setup of the first virtual machine, the log-on to that machine via ssh failed. (Even the password was accepted)
The ssh console gaves following message back:
| Code: |
Welcome to dtc-xen ssh console!
Error: Domain 'xen01' does not exist.
Connection to node00001.d.example.com closed. |
Solution:
A ramdisk entry was needed for this VM:
- Logon to your dom0
- open the configfile of your machine (in this case) /etc/xen/xen01 with an editor.
- add an ramdisk to that file e.g. like for the kernel in that case:
| Code: |
| ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" |
- save teh config, and start the VM
Thanks to Thomas for his help, and the whole team for this great piece of software. _________________ br,
Mario, Bkk
--
Debian Lenny on AMD64
DTC testbox on acer e-machine (Atom 230), Debian, Lenny |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 3702 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Sat Jun 20, 2009 10:59 am Post subject: |
 |
|
FYI: the latest version in SID, or the one in our repository, has options for the ramdisk. The Lenny version doesn't have it. You might want to upgrade dtc-xen, and configure it correctly, so it adds the option correctly.
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
 |