FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-27-2007, 03:32 PM
Allen Fowler
 
Default Xen on Ubuntu: DomU hangs on boot

Hello,

I am trying to install Xen, and I followed the directions at:
http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-repositories

The physical machine and Dom0 boot fine.

However, I can't seem to get any DomU to start.


To clarify:

After I issue the "xm create xen_domu_name"
command, no errors are returned, and the "xm list" command shows
something like this:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name************************************* ID** Mem VCPUs***** State** Time(s)
Domain-0********************************** 0** 239**** 1**** r-----***
279.0
xendomu*********************************** 7** 128**** 1**** -b----**** 27.5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

However,
I am unable to ssh into the VM, and typing anything at the "xm console"
screen yields no response.* (Though, the "xm console" does show the
scroll back listed below.)

Any help would be appreciated.

Thank you,
Allen

Various outputs attached below:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DomU config
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Configuration file for the Xen instance xendomu, created
# by xen-tools 3.5 on Fri Nov 23 15:19:59 2007.
#

#
#* Kernel + memory size
#
kernel***** = '/boot/vmlinuz-2.6.22-14-xen'
ramdisk**** = '/boot/initrd.img-2.6.22-14-xen'
memory***** = '128'

#
#* Disk device(s).
#
root******* = '/dev/hda1 ro'
disk******* = [ 'file:/home/xen/domains/xendomu/disk.img,hda1,w',
'file:/home/xen/domains/xendomu/swap.img,hda2,w' ]

#
#* Hostname
#
name******* = 'xendomu'

#
#* Networking
#
vif******** = [ 'ip=10.0.0.71' ]

#
#* Behaviour
#

on_reboot** = 'restart'
on_crash*** = 'restart'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Output of "xm info"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host****************** : server2
release*************** : 2.6.22-14-xen
version*************** : #1
SMP Mon Oct 15 00:35:38 GMT 2007
machine*************** : i686
nr_cpus*************** : 1
nr_nodes************** : 1
sockets_per_node****** : 1
cores_per_socket****** : 1
threads_per_core****** : 1
cpu_mhz*************** : 996
hw_caps*************** : 0383f9ff:00000000:00000000:00000040
total_memory********** : 383
free_memory*********** :
0
xen_major************* : 3
xen_minor************* : 1
xen_extra************* : .0
xen_caps************** : xen-3.0-x86_32p
xen_scheduler********* : credit
xen_pagesize********** : 4096
platform_params******* : virt_start=0xf5800000
xen_changeset********* : unavailable
cc_compiler*********** : gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2
cc_compile_by********* :
buildd
cc_compile_domain***** : buildd
cc_compile_date******* : Fri Oct 12 15:08:23 GMT 2007
xend_config_format**** : 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xm dmesg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[SNIP]
(XEN) System RAM: 383MB (392572kB)
(XEN) Xen heap: 10MB (10276kB)
(XEN) Domain heap initialised: DMA width 32 bits
(XEN) PAE enabled, limit: 16 GB
(XEN) Local APIC disabled by BIOS -- you can enable it with "lapic"
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 996.791 MHz processor.
(XEN) CPU0: Intel Pentium III (Coppermine) stepping 0a
(XEN) Mapping cpu 0 to node
255
(XEN) Platform timer is 1.193MHz PIT
(XEN) Brought up 1 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)* Xen* kernel: 32-bit, PAE, lsb
(XEN)* Dom0 kernel: 32-bit, PAE, lsb, paddr 0xc0100000 -> 0xc04c0000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)* Dom0 alloc.:** 0000000014000000->0000000016000000 (80008 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)* Loaded kernel: c0100000->c04c0000
(XEN)* Init. ramdisk: c04c0000->c145e800
(XEN)* Phys-Mach map: c145f000->c14b5220
(XEN)* Start info:*** c14b6000->c14b646c
(XEN)* Page tables:** c14b7000->c14c8000
(XEN)* Boot stack:*** c14c8000->c14c9000
(XEN)* TOTAL:********
c0000000->c1800000
(XEN)* ENTRY ADDRESS: c0100000
(XEN) Dom0 has maximum 1 VCPUs
(XEN) Initrd len 0xf9e800, start at
0xc04c0000
(XEN) Scrubbing Free RAM: done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 47CTRL-a47 three times to switch input to Xen).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xm console xendomu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[15785.652879] xen_mem: Initialising balloon driver.
[15785.660761] Setting mem allocation to 131072 kiB
[15785.661268] PCI: System does not support PCI
[15785.661371] PCI: System does not support PCI
[15785.661489] NET: Registered protocol family 8
[15785.661541] NET: Registered protocol family 20
[15785.662582] NET: Registered protocol family 2
[15785.662767] Time: xen clocksource has been installed.
[15785.704611] IP route cache hash
table entries: 2048
(order: 1, 8192 bytes)
[15785.704753] TCP established hash table entries: 8192 (order: 4, 98304 bytes)
[15785.705029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[15785.705237] TCP: Hash tables configured (established 8192 bind 8192)
[15785.705252] TCP reno registered
[15785.734838] checking if image is initramfs... it is
[15785.973231] Freeing initrd memory: 15996k freed
[15785.974312] audit: initializing netlink socket (disabled)
[15785.974572] audit(1196015716.968:1): initialized
[15785.980115] VFS: Disk quotas dquot_6.5.1
[15785.980729] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[15785.981277] io scheduler noop registered
[15785.981404] io scheduler anticipatory registered
[15785.981455] io scheduler deadline registered
[15785.981569] io scheduler cfq registered (default)
[15786.075774] Real Time Clock Driver v1.12ac
[15786.077525] RAMDISK driver initialized: 16 RAM disks
of 65536K size 1024
blocksize
[15786.078314] input: Macintosh mouse button emulation as /class/input/input0
[15786.078818] xencons_init: Initializing xen vfb; pass xencons=tty to prevent this
[15786.079520] Xen virtual console successfully installed as xvc0
[15786.079866] Event-channel device installed.
[15786.147564] netfront: Initialising virtual ethernet driver.
[15786.149571] PNP: No PS/2 controller found. Probing ports directly.
[15786.150636] i8042.c: No controller found.
[15786.150879] mice: PS/2 mouse device common for all mice
[15786.151222] TCP cubic registered
[15786.151276] NET: Registered protocol family 1
[15786.151350] Using IPI No-Shortcut mode
[15786.152801] xen-vbd: registered block device major 3
[15786.152855] blkfront: hda1: barriers enabled
[15786.155045] blkfront: hda2: barriers enabled
[15786.163005] netfront: device eth0 has copying receive path.
[15786.244504] XENBUS: Device with no driver:
device/console/0
[15786.244975] Freeing unused kernel memory: 200k freed
[15786.839976] AppArmor: AppArmor initialized<5>audit(1196015717.836:2):* type=1505 info="AppArmor initialized" pid=992
[15786.864141] fuse init (API version 7.8)
[15786.887322] Failure registering capabilities with primary security module.
[15786.986664] thermal: Unknown symbol acpi_processor_set_thermal_limit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how.--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 07:03 AM
Allen Fowler
 
Default Xen on Ubuntu: DomU hangs on boot

Anybody?

----- Original Message ----
From: Allen Fowler <allen.fowler@yahoo.com>
To: ubuntu-users@lists.ubuntu.com
Sent: Tuesday, November 27, 2007 11:32:56 AM
Subject: Xen on Ubuntu: DomU hangs on boot



Hello,

I am trying to install Xen, and I followed the directions at:
http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-repositories

The physical machine and Dom0 boot fine.

However, I can't seem to get any DomU to start.


To clarify:

After I issue the "xm create xen_domu_name"
command, no errors are returned, and the "xm list" command shows
something like this:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name************************************* ID** Mem VCPUs***** State** Time(s)
Domain-0********************************** 0** 239**** 1**** r-----***
279.0
xendomu*********************************** 7** 128**** 1**** -b----**** 27.5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

However,
I am unable to ssh into the VM, and typing anything at the "xm console"
screen yields no response.* (Though, the "xm console" does show the
scroll back listed below.)

Any help would be appreciated.

Thank you,
Allen

Various outputs attached below:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DomU config
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Configuration file for the Xen instance xendomu, created
# by xen-tools 3.5 on Fri Nov 23 15:19:59 2007.
#

#
#* Kernel + memory size
#
kernel***** = '/boot/vmlinuz-2.6.22-14-xen'
ramdisk**** = '/boot/initrd.img-2.6.22-14-xen'
memory***** = '128'

#
#* Disk device(s).
#
root******* = '/dev/hda1 ro'
disk******* = [ 'file:/home/xen/domains/xendomu/disk.img,hda1,w',
'file:/home/xen/domains/xendomu/swap.img,hda2,w' ]

#
#* Hostname
#
name******* = 'xendomu'

#
#* Networking
#
vif******** = [ 'ip=10.0.0.71' ]

#
#* Behaviour
#

on_reboot** = 'restart'
on_crash*** = 'restart'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Output of "xm info"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host****************** : server2
release*************** : 2.6.22-14-xen
version*************** : #1
SMP Mon Oct 15 00:35:38 GMT 2007
machine*************** : i686
nr_cpus*************** : 1
nr_nodes************** : 1
sockets_per_node****** : 1
cores_per_socket****** : 1
threads_per_core****** : 1
cpu_mhz*************** : 996
hw_caps*************** : 0383f9ff:00000000:00000000:00000040
total_memory********** : 383
free_memory*********** :
0
xen_major************* : 3
xen_minor************* : 1
xen_extra************* : .0
xen_caps************** : xen-3.0-x86_32p
xen_scheduler********* : credit
xen_pagesize********** : 4096
platform_params******* : virt_start=0xf5800000
xen_changeset********* : unavailable
cc_compiler*********** : gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2
cc_compile_by********* :
buildd
cc_compile_domain***** : buildd
cc_compile_date******* : Fri Oct 12 15:08:23 GMT 2007
xend_config_format**** : 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xm dmesg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[SNIP]
(XEN) System RAM: 383MB (392572kB)
(XEN) Xen heap: 10MB (10276kB)
(XEN) Domain heap initialised: DMA width 32 bits
(XEN) PAE enabled, limit: 16 GB
(XEN) Local APIC disabled by BIOS -- you can enable it with "lapic"
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 996.791 MHz processor.
(XEN) CPU0: Intel Pentium III (Coppermine) stepping 0a
(XEN) Mapping cpu 0 to node
255
(XEN) Platform timer is 1.193MHz PIT
(XEN) Brought up 1 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)* Xen* kernel: 32-bit, PAE, lsb
(XEN)* Dom0 kernel: 32-bit, PAE, lsb, paddr 0xc0100000 -> 0xc04c0000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)* Dom0 alloc.:** 0000000014000000->0000000016000000 (80008 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)* Loaded kernel: c0100000->c04c0000
(XEN)* Init. ramdisk: c04c0000->c145e800
(XEN)* Phys-Mach map: c145f000->c14b5220
(XEN)* Start info:*** c14b6000->c14b646c
(XEN)* Page tables:** c14b7000->c14c8000
(XEN)* Boot stack:*** c14c8000->c14c9000
(XEN)* TOTAL:********
c0000000->c1800000
(XEN)* ENTRY ADDRESS: c0100000
(XEN) Dom0 has maximum 1 VCPUs
(XEN) Initrd len 0xf9e800, start at
0xc04c0000
(XEN) Scrubbing Free RAM: done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 47CTRL-a47 three times to switch input to Xen).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xm console xendomu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[15785.652879] xen_mem: Initialising balloon driver.
[15785.660761] Setting mem allocation to 131072 kiB
[15785.661268] PCI: System does not support PCI
[15785.661371] PCI: System does not support PCI
[15785.661489] NET: Registered protocol family 8
[15785.661541] NET: Registered protocol family 20
[15785.662582] NET: Registered protocol family 2
[15785.662767] Time: xen clocksource has been installed.
[15785.704611] IP route cache hash
table entries: 2048
(order: 1, 8192 bytes)
[15785.704753] TCP established hash table entries: 8192 (order: 4, 98304 bytes)
[15785.705029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[15785.705237] TCP: Hash tables configured (established 8192 bind 8192)
[15785.705252] TCP reno registered
[15785.734838] checking if image is initramfs... it is
[15785.973231] Freeing initrd memory: 15996k freed
[15785.974312] audit: initializing netlink socket (disabled)
[15785.974572] audit(1196015716.968:1): initialized
[15785.980115] VFS: Disk quotas dquot_6.5.1
[15785.980729] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[15785.981277] io scheduler noop registered
[15785.981404] io scheduler anticipatory registered
[15785.981455] io scheduler deadline registered
[15785.981569] io scheduler cfq registered (default)
[15786.075774] Real Time Clock Driver v1.12ac
[15786.077525] RAMDISK driver initialized: 16 RAM disks
of 65536K size 1024
blocksize
[15786.078314] input: Macintosh mouse button emulation as /class/input/input0
[15786.078818] xencons_init: Initializing xen vfb; pass xencons=tty to prevent this
[15786.079520] Xen virtual console successfully installed as xvc0
[15786.079866] Event-channel device installed.
[15786.147564] netfront: Initialising virtual ethernet driver.
[15786.149571] PNP: No PS/2 controller found. Probing ports directly.
[15786.150636] i8042.c: No controller found.
[15786.150879] mice: PS/2 mouse device common for all mice
[15786.151222] TCP cubic registered
[15786.151276] NET: Registered protocol family 1
[15786.151350] Using IPI No-Shortcut mode
[15786.152801] xen-vbd: registered block device major 3
[15786.152855] blkfront: hda1: barriers enabled
[15786.155045] blkfront: hda2: barriers enabled
[15786.163005] netfront: device eth0 has copying receive path.
[15786.244504] XENBUS: Device with no driver:
device/console/0
[15786.244975] Freeing unused kernel memory: 200k freed
[15786.839976] AppArmor: AppArmor initialized<5>audit(1196015717.836:2):* type=1505 info="AppArmor initialized" pid=992
[15786.864141] fuse init (API version 7.8)
[15786.887322] Failure registering capabilities with primary security module.
[15786.986664] thermal: Unknown symbol acpi_processor_set_thermal_limit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how.

-----Inline Attachment Follows-----

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Get easy, one-click access to your favorites.
Make Yahoo! your homepage.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 07:52 AM
Davide Corio
 
Default Xen on Ubuntu: DomU hangs on boot

Il giorno gio, 29/11/2007 alle 00.03 -0800, Allen Fowler ha scritto:


> After I issue the "xm create xen_domu_name" command, no errors are
> returned, and the "xm list" command shows something like this:

Did you try with "xm create xen_domu_name -c" ?


--
Davide Corio
email: davide.corio<at>domsense.com
web: http://www.domsense.com


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 09:52 AM
Markus Schönhaber
 
Default Xen on Ubuntu: DomU hangs on boot

Allen Fowler schrieb:

> After I issue the "xm create xen_domu_name"
> command, no errors are returned, and the "xm list" command shows
> something like this:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Name ID Mem VCPUs State Time(s)
> Domain-0 0 239 1 r-----
> 279.0
> xendomu 7 128 1 -b---- 27.5
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> However,
> I am unable to ssh into the VM, and typing anything at the "xm console"
> screen yields no response. (Though, the "xm console" does show the
> scroll back listed below.)

Add
extra = 'xencons=tty'
to the config file for your DomU. I. e. make it look similar to

[...]
#
# Kernel + memory size
#
kernel = '/boot/vmlinuz-2.6.22-14-xen'
ramdisk = '/boot/initrd.img-2.6.22-14-xen'
memory = '128'
extra = 'xencons=tty'

#
# Disk device(s).
[...]

Maybe this helps.

Regards
mks

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 05:53 PM
Allen Fowler
 
Default Xen on Ubuntu: DomU hangs on boot

> > After I issue the "xm create xen_domu_name" command, no errors are
> > returned, and the "xm list" command shows something like this:
>
> Did you try with "xm create xen_domu_name -c" ?
>

Great shortcut. * Though it jhust shows the same (dead?) buffer that "xm console" does.

> Add
> extra = 'xencons=tty'
> to the config file for your DomU. I. e. make it look similar to
>

Wow.* That did something.

Now the process gets a bit further. I wind up with somesort of an "initramfs" prompt.

Here is the "xm console" log...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[68094.497659] Real Time Clock Driver v1.12ac
[68094.500451] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024
blocksize
[68094.502157] input: Macintosh mouse button emulation as /class/input/input0
[68094.520344] Xen virtual console successfully installed as tty1
[68094.521939] Event-channel device installed.
[68094.592540] netfront: Initialising virtual ethernet driver.
[68094.597382] xen-vbd: registered block device major 3
[68094.598283] blkfront: hda1: barriers enabled
[68094.602059] blkfront: hda2: barriers enabled
[68094.613491] netfront: device eth0 has copying receive path.
[68094.619304] PNP: No PS/2 controller found. Probing ports directly.
[68094.621198] i8042.c: No controller found.
[68094.622258] mice: PS/2 mouse device common for all mice
[68094.623631] TCP cubic registered
[68094.624593] NET: Registered protocol family 1
[68094.625363] Using IPI No-Shortcut mode
[68094.626165] XENBUS: Device with no driver: device/console/0
[68094.627239] Freeing unused kernel memory: 200k freed
Loading, please
wait...
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Begin: Loading essential drivers... ...
[68095.347277] AppArmor: AppArmor initialized<5>audit(1196362017.346:2):* type=1505 info="AppArmor initialized" pid=934
[68095.373147] fuse init (API version 7.8)
[68095.397099] Failure registering capabilities with primary security module.
[68095.492666] thermal: Unknown symbol acpi_processor_set_thermal_limit
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...

[...STOPS FOR A FEW
MINUTES......]
[... THEN...]

Done.
/dev/hda1: unknown volume type
Begin: Running /scripts/local-premount ...
Done.
mount: Mounting /dev/hda1 on /root failed: No such device
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
Done.
mount: Mounting /sys on /root/sys failed: No such file or directory
mount: Mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init


BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)



Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how.--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 08:36 PM
Markus Schönhaber
 
Default Xen on Ubuntu: DomU hangs on boot

Allen Fowler wrote:

>> Add
>> extra = 'xencons=tty'
>> to the config file for your DomU. I. e. make it look similar to
>
> Wow. That did something.
>
> Now the process gets a bit further. I wind up with somesort of an "initramfs" prompt.
>
> Here is the "xm console" log...
[...]
> Begin: Waiting for root file system... ...
>
> [...STOPS FOR A FEW MINUTES......]
> [... THEN...]
>
> Done.
> /dev/hda1: unknown volume type

WAG: The image file you use for hda1 might be somehow corrupt. Try to
loop-mount it and see what happens.

Regards
mks

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 08:43 PM
Allen Fowler
 
Default Xen on Ubuntu: DomU hangs on boot

Hello,

As a newcomer to Linux, I'd like to evaluate it (in the form of Ubuntu Server) as a possible replacement for some half-baked SMB Windows server installs.

Anyway, I need a testbed to learn on, so a machine full of Xen DomUs is my first thought.** (I once briefly used VMware ESX server... I was rather impressed, but that's not an option here.)

Thus, I am trying to install Xen by following the directions at:
http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-repositories

The physical machine and Dom0 look to be booting fine.

However, I can't seem to get any DomU to start.


To clarify:

After I issue the "xm create"
command, no errors are returned, and the "xm list" command shows
something like this:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name************************************* ID** Mem VCPUs***** State** Time(s)
Domain-0********************************** 0** 239**** 1**** r-----***
279.0
xendomu*********************************** 7** 128**** 1**** -b----**** 27.5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

However,
I am unable to ssh into the VM, and typing anything at the "xm console"
screen yields no response.* (Though, the "xm console" does show the
scroll back listed below.)

After asking around on the ubuntu-users list, it was suggested that I try adding the line "extra = 'xencons=tty'" to my DomU config file.** That helped a little... it hangs for a few minutes, but eventually, I get an odd looking* "(initramfs)" prompt... not sure what that is, but I guess it's an error/recovery mode.* See output below.

I am looking to fix the problem, but also understand what makes a Linux server tick under the covers.* So, feel free to explain what's really going on here.

Any help would be appreciated.

Thank you,
Allen

Various outputs attached below:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DomU config
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Configuration file for the Xen instance xendomu, created
# by xen-tools 3.5 on Fri Nov 23 15:19:59 2007.
#

#
#* Kernel + memory size
#
kernel***** =
'/boot/vmlinuz-2.6.22-14-xen'
ramdisk**** = '/boot/initrd.img-2.6.22-14-xen'
memory***** = '128'

#extra = 'xencons=tty'
# Tried with/without above.

#
#* Disk device(s).
#
root******* = '/dev/hda1 ro'
disk******* = [ 'file:/home/xen/domains/xendomu/disk.img,hda1,w',
'file:/home/xen/domains/xendomu/swap.img,hda2,w' ]

#
#* Hostname
#
name******* = 'xendomu'

#
#* Networking
#
vif******** = [ 'ip=10.0.0.71' ]

#
#* Behaviour
#

on_reboot** = 'restart'
on_crash*** = 'restart'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Output of "xm info"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
host****************** : server2
release*************** : 2.6.22-14-xen
version*************** : #1
SMP Mon Oct 15 00:35:38 GMT 2007
machine*************** : i686
nr_cpus*************** : 1
nr_nodes************** : 1
sockets_per_node****** : 1
cores_per_socket****** : 1
threads_per_core****** : 1
cpu_mhz*************** : 996
hw_caps*************** : 0383f9ff:00000000:00000000:00000040
total_memory********** : 383
free_memory*********** :
0
xen_major************* : 3
xen_minor************* : 1
xen_extra************* : .0
xen_caps************** : xen-3.0-x86_32p
xen_scheduler********* : credit
xen_pagesize********** : 4096
platform_params******* : virt_start=0xf5800000
xen_changeset********* : unavailable
cc_compiler*********** : gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2
cc_compile_by********* :
buildd
cc_compile_domain***** : buildd
cc_compile_date******* : Fri Oct 12 15:08:23 GMT 2007
xend_config_format**** : 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xm dmesg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[SNIP]
(XEN) System RAM: 383MB (392572kB)
(XEN) Xen heap: 10MB (10276kB)
(XEN) Domain heap initialised: DMA width 32 bits
(XEN) PAE enabled, limit: 16 GB
(XEN) Local APIC disabled by BIOS -- you can enable it with "lapic"
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 996.791 MHz processor.
(XEN) CPU0: Intel Pentium III (Coppermine) stepping 0a
(XEN) Mapping cpu 0 to node
255
(XEN) Platform timer is 1.193MHz PIT
(XEN) Brought up 1 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)* Xen* kernel: 32-bit, PAE, lsb
(XEN)* Dom0 kernel: 32-bit, PAE, lsb, paddr 0xc0100000 -> 0xc04c0000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)* Dom0 alloc.:** 0000000014000000->0000000016000000 (80008 pages to be allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)* Loaded kernel: c0100000->c04c0000
(XEN)* Init. ramdisk: c04c0000->c145e800
(XEN)* Phys-Mach map: c145f000->c14b5220
(XEN)* Start info:*** c14b6000->c14b646c
(XEN)* Page tables:** c14b7000->c14c8000
(XEN)* Boot stack:*** c14c8000->c14c9000
(XEN)* TOTAL:********
c0000000->c1800000
(XEN)* ENTRY ADDRESS: c0100000
(XEN) Dom0 has maximum 1 VCPUs
(XEN) Initrd len 0xf9e800, start at
0xc04c0000
(XEN) Scrubbing Free RAM: done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 47CTRL-a47 three times to switch input to Xen).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Initial: xm console xendomu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[15785.652879] xen_mem: Initialising balloon driver.
[15785.660761] Setting mem allocation to 131072 kiB
[15785.661268] PCI: System does not support PCI
[15785.661371] PCI: System does not support PCI
[15785.661489] NET: Registered protocol family 8
[15785.661541] NET: Registered protocol family 20
[15785.662582] NET: Registered protocol family 2
[15785.662767] Time: xen clocksource has been installed.
[15785.704611] IP route cache
hash
table entries: 2048
(order: 1, 8192 bytes)
[15785.704753] TCP established hash table entries: 8192 (order: 4, 98304 bytes)
[15785.705029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[15785.705237] TCP: Hash tables configured (established 8192 bind 8192)
[15785.705252] TCP reno registered
[15785.734838] checking if image is initramfs... it is
[15785.973231] Freeing initrd memory: 15996k freed
[15785.974312] audit: initializing netlink socket (disabled)
[15785.974572] audit(1196015716.968:1): initialized
[15785.980115] VFS: Disk quotas dquot_6.5.1
[15785.980729] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[15785.981277] io scheduler noop registered
[15785.981404] io scheduler anticipatory registered
[15785.981455] io scheduler deadline registered
[15785.981569] io scheduler cfq registered (default)
[15786.075774] Real Time Clock Driver v1.12ac
[15786.077525] RAMDISK driver initialized: 16 RAM disks
of 65536K size 1024
blocksize
[15786.078314] input: Macintosh mouse button emulation as /class/input/input0
[15786.078818] xencons_init: Initializing xen vfb; pass xencons=tty to prevent this
[15786.079520] Xen virtual console successfully installed as xvc0
[15786.079866] Event-channel device installed.
[15786.147564] netfront: Initialising virtual ethernet driver.
[15786.149571] PNP: No PS/2 controller found. Probing ports directly.
[15786.150636] i8042.c: No controller found.
[15786.150879] mice: PS/2 mouse device common for all mice
[15786.151222] TCP cubic registered
[15786.151276] NET: Registered protocol family 1
[15786.151350] Using IPI No-Shortcut mode
[15786.152801] xen-vbd: registered block device major 3
[15786.152855] blkfront: hda1: barriers enabled
[15786.155045] blkfront: hda2: barriers enabled
[15786.163005] netfront: device eth0 has copying receive path.
[15786.244504] XENBUS: Device with no driver:
device/console/0
[15786.244975] Freeing unused kernel memory: 200k freed
[15786.839976] AppArmor: AppArmor initialized<5>audit(1196015717.836:2):* type=1505 info="AppArmor initialized" pid=992
[15786.864141] fuse init (API version 7.8)
[15786.887322] Failure registering capabilities with primary security module.
[15786.986664] thermal: Unknown symbol acpi_processor_set_thermal_limit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Here is the "xm console" log... w/ extra = 'xencons=tty'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[68094.497659] Real Time Clock Driver v1.12ac
[68094.500451] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024
blocksize
[68094.502157] input: Macintosh mouse button emulation as /class/input/input0
[68094.520344] Xen virtual console successfully installed as tty1
[68094.521939] Event-channel device installed.
[68094.592540] netfront: Initialising virtual ethernet driver.
[68094.597382] xen-vbd: registered block device major 3
[68094.598283] blkfront: hda1: barriers enabled
[68094.602059] blkfront: hda2: barriers enabled
[68094.613491] netfront: device eth0 has copying receive path.
[68094.619304] PNP: No PS/2 controller found. Probing ports directly.
[68094.621198] i8042.c: No controller found.
[68094.622258] mice: PS/2 mouse device common for all mice
[68094.623631] TCP cubic registered
[68094.624593] NET: Registered protocol family 1
[68094.625363] Using IPI No-Shortcut mode
[68094.626165] XENBUS: Device with no driver: device/console/0
[68094.627239] Freeing unused kernel memory: 200k freed
Loading, please
wait...
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Begin: Loading essential drivers... ...
[68095.347277] AppArmor: AppArmor initialized<5>audit(1196362017.346:2):* type=1505 info="AppArmor initialized" pid=934
[68095.373147] fuse init (API version 7.8)
[68095.397099] Failure registering capabilities with primary security module.
[68095.492666] thermal: Unknown symbol acpi_processor_set_thermal_limit
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...

[...STOPS FOR A FEW
MINUTES......]
[... THEN...]

Done.
/dev/hda1: unknown volume type
Begin: Running /scripts/local-premount ...
Done.
mount: Mounting /dev/hda1 on /root failed: No such device
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
Done.
mount: Mounting /sys on /root/sys failed: No such file or directory
mount: Mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init


BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
[... THE PROMPT APPEARS TO WORK...]
[... NO CLUE WHAT DO HERE...]


Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how.--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 11-29-2007, 08:49 PM
Allen Fowler
 
Default Xen on Ubuntu: DomU hangs on boot

Hmm. Maybe the repeated boot-reboot cycle messed it the disk image. (If it ever was correct in the first place.)

How do I "loop-back" mount to check it?

Thanks

----- Original Message ----
From: Markus Schönhaber <ubuntu-users@schoenhaber.de>
To: ubuntu-users@lists.ubuntu.com
Sent: Thursday, November 29, 2007 4:36:40 PM
Subject: Re: Xen on Ubuntu: DomU hangs on boot


Allen Fowler wrote:

>> Add
>> extra = 'xencons=tty'
>> to the config file for your DomU. I. e. make it look similar to
>
> Wow.* That did something.
>
> Now the process gets a bit further. I wind up with somesort of an
"initramfs" prompt.
>
> Here is the "xm console" log...
[...]
> Begin: Waiting for root file system... ...
>
> [...STOPS FOR A FEW MINUTES......]
> [... THEN...]
>
> Done.
> /dev/hda1: unknown volume type

WAG: The image file you use for hda1 might be somehow corrupt. Try to
loop-mount it and see what happens.

Regards
* mks

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users






Never miss a thing. Make Yahoo your homepage.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 10:09 PM
Markus Schönhaber
 
Default Xen on Ubuntu: DomU hangs on boot

Allen Fowler schrieb:

> Hmm. Maybe the repeated boot-reboot cycle messed it the disk image. (If it ever was correct in the first place.)
>
> How do I "loop-back" mount to check it?

mount -o loop /home/xen/domains/xendomu/disk.img /some/empty/dir

Obviously you'll have to replace "/some/empty/dir" with a path to a
directory that actually exists on your machine.
You need administrative rights for mounting. So either precede the above
with sudo or do it in a root shell (sudo -i).

Regards
mks


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-29-2007, 11:04 PM
Allen Fowler
 
Default Xen on Ubuntu: DomU hangs on boot

The command as listed does seem to work.. it gives an error:

"mount: can't find /my/test/dir in /etc/fstab or /etc/mtab"

That being said, i did try regenerating the DomU disk image anyway. Things still don't work, but obviously it's much further along.

Here is what's happening after I create the DomU now:

- "xm top" show it running at 99% CPU. (even after 1hour+ of waiting)
- "xm console" show a backlog, but no interactive prompt. (this is w/ "extra = 'xencons=tty'")
- I can't ssh into the DomU

Thanks

Here is the new "xm console" log:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[86608.327025] TCP cubic registered
[86608.327898] NET: Registered protocol family 1
[86608.328692] Using IPI No-Shortcut mode
[86608.329501] XENBUS: Device with no driver: device/console/0
[86608..330579] Freeing unused kernel memory: 200k freed
Loading, please wait...
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Begin: Loading essential drivers... ...
[86609.048025] AppArmor: AppArmor initialized<5>audit(1196380531.042:2): type=1505 info="AppArmor initialized" pid=934
[86609.073334] fuse init (API version 7.8)
[86609.097924] Failure registering capabilities with primary security module.
[86609.212967] thermal: Unknown symbol acpi_processor_set_thermal_limit
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system.... ...
Done.
Begin: Running /scripts/local-premount ...
Done.
[86609.967173] kjournald starting. Commit interval 5 seconds
[86609.968278] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ....
Done.
* Setting preliminary keymap... [86610.601634] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
Couldnt get a file descriptor referring to the console
[ OK ]
* Setting the system clock



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


----- Original Message ----
> From: Markus Schönhaber <ubuntu-users@schoenhaber.de>
> To: ubuntu-users@lists.ubuntu.com
> Sent: Thursday, November 29, 2007 6:09:32 PM
> Subject: Re: Xen on Ubuntu: DomU hangs on boot
>
> Allen Fowler schrieb:
>
> > Hmm. Maybe the repeated boot-reboot cycle messed it the disk
> image.
>
(If it ever was correct in the first place.)
> >
> > How do I "loop-back" mount to check it?
>
> mount -o loop /home/xen/domains/xendomu/disk.img /some/empty/dir
>
> Obviously you'll have to replace "/some/empty/dir" with a path to a
> directory that actually exists on your machine.
> You need administrative rights for mounting. So either precede
> the
>
above
> with sudo or do it in a root shell (sudo -i).
>
> Regards
> mks
>
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe
> at:
>
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




__________________________________________________ __________________________________
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 04:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org