<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">It was suggested ubuntu-users that, given those erorrs, the disk image my have gotten corrupted.<br><br>So, I tried regenerating the DomU disk image.  
Things still don't work, but it's obviously  much further along.<br>
<br>
Here is what's happening after I create the DomU now:<br>
<br>
- "xm top" show it running at 99% CPU.  (even after 1hour+ of waiting)<br>
- "xm console" show a backlog, but no interactive prompt. (this is w/ "extra = 'xencons=tty'")<br>
- I can't ssh into the DomU<br>
<br>Any ideas?<br><br>
Thanks<br>
<br>
Here is the new "xm console" log:<br>
(other logs in the quoted message below.)<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
[86608.327025] TCP cubic registered<br>
[86608.327898] NET: Registered protocol family 1<br>
[86608.328692] Using IPI No-Shortcut mode<br>
[86608.329501] XENBUS: Device with no driver: device/console/0<br>
[86608.330579] Freeing unused kernel memory: 200k freed<br>
Loading, please wait...<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Begin: Loading essential drivers... ...<br>
[86609.048025] AppArmor: AppArmor initialized<5>audit(1196380531.042:2):  type=1505 info="AppArmor initialized" pid=934<br>
[86609.073334] fuse init (API version 7.8)<br>
[86609.097924] Failure registering capabilities with primary security module.<br>
[86609.212967] thermal: Unknown symbol acpi_processor_set_thermal_limit<br>
Done.<br>
Begin: Running /scripts/init-premount ...<br>
Done.<br>
Begin: Mounting root file system... ...<br>
Begin: Running /scripts/local-top ...<br>
Done.<br>
Begin: Waiting for root file system... ...<br>
Done.<br>
Begin: Running /scripts/local-premount ...<br>
Done.<br>
[86609.967173] kjournald starting.  Commit interval 5 seconds<br>
[86609.968278] EXT3-fs: mounted filesystem with ordered data mode.<br>
Begin: Running /scripts/local-bottom ...<br>
Done.<br>
Done.<br>
Begin: Running /scripts/init-bottom ...<br>
Done.<br>
 * Setting preliminary
keymap...                                                [86610.601634]
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
Couldnt get a file descriptor referring to the console<br>
                                                                         [ OK ]<br>
 * Setting the system clock<br>
<br>
<br>
<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Allen Fowler <allen.fowler@yahoo.com><br>To: ubuntu-server@lists.ubuntu.com<br>Sent: Thursday, November 29, 2007 4:43:01 PM<br>Subject: Xen on Ubuntu: DomU hangs on boot<br><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>
Hello,<br><br>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. <br><br>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.)<br><br>Thus, I am trying to install Xen by following the directions at:<br><a rel="nofollow" target="_blank" href="http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-repositories">http://www.howtoforge.com/ubuntu-7.10-server-install-xen-from-ubuntu-repositories</a><br><br>The physical machine and Dom0 look to be booting fine.<br><br>However, I can't seem to get any DomU to start.<br><br>
To clarify:<br><br>After I issue the "xm create"
command, no errors are returned, and the "xm list" command shows
something like this:<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Name                                      ID   Mem VCPUs      State   Time(s)<br>Domain-0                                   0   239     1     r-----   
 279.0<br>xendomu                                    7   128     1     -b----     27.5<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>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.)<br><br>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. <br><br>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. <br><br>Any help would be appreciated.<br><br>Thank you,<br>Allen<br><br>Various outputs attached below:<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>DomU config<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>#<br># Configuration file for the Xen instance xendomu, created<br># by xen-tools 3.5 on Fri Nov 23 15:19:59 2007.<br>#<br><br>#<br>#  Kernel + memory size<br>#<br>kernel      =
 '/boot/vmlinuz-2.6.22-14-xen'<br>ramdisk     = '/boot/initrd.img-2.6.22-14-xen'<br>memory      = '128'<br><br>#extra = 'xencons=tty'<br># Tried with/without above.<br><br>#<br>#  Disk device(s).<br>#<br>root        = '/dev/hda1 ro'<br>disk        = [ 'file:/home/xen/domains/xendomu/disk.img,hda1,w',
 'file:/home/xen/domains/xendomu/swap.img,hda2,w' ]<br><br>#<br>#  Hostname<br>#<br>name        = 'xendomu'<br><br>#<br>#  Networking<br>#<br>vif         = [ 'ip=10.0.0.71' ]<br><br>#<br>#  Behaviour<br>#<br>on_poweroff = 'destroy'<br>on_reboot   = 'restart'<br>on_crash    = 'restart'<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Output of "xm info"<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>host                   : server2<br>release                : 2.6.22-14-xen<br>version                : #1
 SMP Mon Oct 15 00:35:38 GMT 2007<br>machine                : i686<br>nr_cpus                : 1<br>nr_nodes               : 1<br>sockets_per_node       : 1<br>cores_per_socket       : 1<br>threads_per_core       : 1<br>cpu_mhz                : 996<br>hw_caps                : 0383f9ff:00000000:00000000:00000040<br>total_memory           : 383<br>free_memory            :
 0<br>xen_major              : 3<br>xen_minor              : 1<br>xen_extra              : .0<br>xen_caps               : xen-3.0-x86_32p <br>xen_scheduler          : credit<br>xen_pagesize           : 4096<br>platform_params        : virt_start=0xf5800000<br>xen_changeset          : unavailable<br>cc_compiler            : gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2<br>cc_compile_by          :
 buildd<br>cc_compile_domain      : buildd<br>cc_compile_date        : Fri Oct 12 15:08:23 GMT 2007<br>xend_config_format     : 4<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>xm dmesg<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[SNIP]<br>(XEN) System RAM: 383MB (392572kB)<br>(XEN) Xen heap: 10MB (10276kB)<br>(XEN) Domain heap initialised: DMA width 32 bits<br>(XEN) PAE enabled, limit: 16 GB<br>(XEN) Local APIC disabled by BIOS -- you can enable it with "lapic"<br>(XEN) Using scheduler: SMP Credit Scheduler (credit)<br>(XEN) Detected 996.791 MHz processor.<br>(XEN) CPU0: Intel Pentium III (Coppermine) stepping 0a<br>(XEN) Mapping cpu 0 to node
 255<br>(XEN) Platform timer is 1.193MHz PIT<br>(XEN) Brought up 1 CPUs<br>(XEN) *** LOADING DOMAIN 0 ***<br>(XEN)  Xen  kernel: 32-bit, PAE, lsb<br>(XEN)  Dom0 kernel: 32-bit, PAE, lsb, paddr 0xc0100000 -> 0xc04c0000<br>(XEN) PHYSICAL MEMORY ARRANGEMENT:<br>(XEN)  Dom0 alloc.:   0000000014000000->0000000016000000 (80008 pages to be allocated)<br>(XEN) VIRTUAL MEMORY ARRANGEMENT:<br>(XEN)  Loaded kernel: c0100000->c04c0000<br>(XEN)  Init. ramdisk: c04c0000->c145e800<br>(XEN)  Phys-Mach map: c145f000->c14b5220<br>(XEN)  Start info:    c14b6000->c14b646c<br>(XEN)  Page tables:   c14b7000->c14c8000<br>(XEN)  Boot stack:    c14c8000->c14c9000<br>(XEN)  TOTAL:        
 c0000000->c1800000<br>(XEN)  ENTRY ADDRESS: c0100000<br>(XEN) Dom0 has maximum 1 VCPUs<br>(XEN) Initrd len 0xf9e800, start at
 0xc04c0000<br>(XEN) Scrubbing Free RAM: done.<br>(XEN) Xen trace buffers: disabled<br>(XEN) Std. Loglevel: Errors and warnings<br>(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)<br>(XEN) Xen is relinquishing VGA console.<br>(XEN) *** Serial input -> DOM0 (type \047CTRL-a\047 three times to switch input to Xen).<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Initial: xm console xendomu<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[15785.652879] xen_mem: Initialising balloon driver.<br>[15785.660761] Setting mem allocation to 131072 kiB<br>[15785.661268] PCI: System does not support PCI<br>[15785.661371] PCI: System does not support PCI<br>[15785.661489] NET: Registered protocol family 8<br>[15785.661541] NET: Registered protocol family 20<br>[15785.662582] NET: Registered protocol family 2<br>[15785.662767] Time: xen clocksource has been installed.<br>[15785.704611] IP route cache
 hash
 table entries: 2048
 (order: 1, 8192 bytes)<br>[15785.704753] TCP established hash table entries: 8192 (order: 4, 98304 bytes)<br>[15785.705029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)<br>[15785.705237] TCP: Hash tables configured (established 8192 bind 8192)<br>[15785.705252] TCP reno registered<br>[15785.734838] checking if image is initramfs... it is<br>[15785.973231] Freeing initrd memory: 15996k freed<br>[15785.974312] audit: initializing netlink socket (disabled)<br>[15785.974572] audit(1196015716.968:1): initialized<br>[15785.980115] VFS: Disk quotas dquot_6.5.1<br>[15785.980729] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)<br>[15785.981277] io scheduler noop registered<br>[15785.981404] io scheduler anticipatory registered<br>[15785.981455] io scheduler deadline registered<br>[15785.981569] io scheduler cfq registered (default)<br>[15786.075774] Real Time Clock Driver v1.12ac<br>[15786.077525] RAMDISK driver initialized: 16 RAM disks
 of 65536K size 1024
 blocksize<br>[15786.078314] input: Macintosh mouse button emulation as /class/input/input0<br>[15786.078818] xencons_init: Initializing xen vfb; pass xencons=tty to prevent this<br>[15786.079520] Xen virtual console successfully installed as xvc0<br>[15786.079866] Event-channel device installed.<br>[15786.147564] netfront: Initialising virtual ethernet driver.<br>[15786.149571] PNP: No PS/2 controller found. Probing ports directly.<br>[15786.150636] i8042.c: No controller found.<br>[15786.150879] mice: PS/2 mouse device common for all mice<br>[15786.151222] TCP cubic registered<br>[15786.151276] NET: Registered protocol family 1<br>[15786.151350] Using IPI No-Shortcut mode<br>[15786.152801] xen-vbd: registered block device major 3<br>[15786.152855] blkfront: hda1: barriers enabled<br>[15786.155045] blkfront: hda2: barriers enabled<br>[15786.163005] netfront: device eth0 has copying receive path.<br>[15786.244504] XENBUS: Device with no driver:
 device/console/0<br>[15786.244975] Freeing unused kernel memory: 200k freed<br>[15786.839976] AppArmor: AppArmor initialized<5>audit(1196015717.836:2):  type=1505 info="AppArmor initialized" pid=992<br>[15786.864141] fuse init (API version 7.8)<br>[15786.887322] Failure registering capabilities with primary security module.<br>[15786.986664] thermal: Unknown symbol acpi_processor_set_thermal_limit<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>Here is the "xm console" log... w/ extra = 'xencons=tty'<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>[68094.497659] Real Time Clock Driver v1.12ac<br>[68094.500451] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024
 blocksize<br>[68094.502157] input: Macintosh mouse button emulation as /class/input/input0<br>[68094.520344] Xen virtual console successfully installed as tty1<br>[68094.521939] Event-channel device installed.<br>[68094.592540] netfront: Initialising virtual ethernet driver.<br>[68094.597382] xen-vbd: registered block device major 3<br>[68094.598283] blkfront: hda1: barriers enabled<br>[68094.602059] blkfront: hda2: barriers enabled<br>[68094.613491] netfront: device eth0 has copying receive path.<br>[68094.619304] PNP: No PS/2 controller found. Probing ports directly.<br>[68094.621198] i8042.c: No controller found.<br>[68094.622258] mice: PS/2 mouse device common for all mice<br>[68094.623631] TCP cubic registered<br>[68094.624593] NET: Registered protocol family 1<br>[68094.625363] Using IPI No-Shortcut mode<br>[68094.626165] XENBUS: Device with no driver: device/console/0<br>[68094.627239] Freeing unused kernel memory: 200k freed<br>Loading, please
 wait...<br>Couldnt get a file descriptor referring to the console<br>Couldnt get a file descriptor referring to the console<br>Couldnt get a file descriptor referring to the console<br>Couldnt get a file descriptor referring to the console<br>Couldnt get a file descriptor referring to the console<br>Couldnt get a file descriptor referring to the console<br>Begin: Loading essential drivers... ...<br>[68095.347277] AppArmor: AppArmor initialized<5>audit(1196362017.346:2):  type=1505 info="AppArmor initialized" pid=934<br>[68095.373147] fuse init (API version 7.8)<br>[68095.397099] Failure registering capabilities with primary security module.<br>[68095.492666] thermal: Unknown symbol acpi_processor_set_thermal_limit<br>Done.<br>Begin: Running /scripts/init-premount ...<br>Done.<br>Begin: Mounting root file system... ...<br>Begin: Running /scripts/local-top ...<br>Done.<br>Begin: Waiting for root file system... ...<br><br>[...STOPS FOR A FEW
 MINUTES......]<br>[... THEN...]<br><br>Done.<br>/dev/hda1: unknown volume type<br>Begin: Running /scripts/local-premount ...<br>Done.<br>mount: Mounting /dev/hda1 on /root failed: No such device<br>Begin: Running /scripts/local-bottom ...<br>Done.<br>Done.<br>Begin: Running /scripts/init-bottom ...<br>mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory<br>Done.<br>mount: Mounting /sys on /root/sys failed: No such file or directory<br>mount: Mounting /proc on /root/proc failed: No such file or directory<br>Target filesystem doesn't have /sbin/init<br><br><br>BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu7) Built-in shell (ash)<br>Enter 'help' for a list of built-in commands.<br><br>(initramfs)<br>[... THE PROMPT APPEARS TO WORK...]<br>[... NO CLUE WHAT DO HERE...]<br></div></div><br>
      <hr size="1">Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/">See how.</a></div><br></div></div><br>
      <hr size=1>Be a better sports nut! Let your teams follow you 
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a></body></html>