[libvirt] virsh create Guest Crashing

Stefan de Konink skinkie at xs4all.nl
Mon May 19 15:18:25 UTC 2008


Chris Lalancette schreef:
> Kenneth Nagin wrote:
>> Setting up new root fs
>> setuproot: moving /dev failed: No such file or directory
>> no fstab.sys, mounting internal defaults
>> setuproot: error mounting /proc: No such file or directory.
>> setuproot: error mounting /sys: No such file or directory
>> Switching to new root and running init.
>> unmounting old /dev
>> unmounting old /proc
>> unmounting old /sys
>> switchroot: mount failed: No such file or directory
>> Booting has failed.
>> Kernel panic - not syncing: Attempted to kill init!
>>
>> I see two possible sources to the problem:
>> XENBUS: Device with no driver ...
>> and
>> setuproot: moving /dev failed: No such file or directory
>> ...
>> switchroot: mount failed: No such file or directory
>>
>> Is there libvirt xml equivalent to the XEN configuration file's root =
>> "/dev/xvda1 ro"?
>>
> 
> OK, yeah.  The XENBUS: Device with no driver can be ignored, I'm pretty sure.
> The problem is probably what you think, that you don't have a root=/dev/xvda1
> line in there.  Other people will have to comment on whether there is a libvirt
> XML equivalent, since I'm just not sure.

<domain type='xen' >
   <name>Gentoo</name>
   <os>
     <type>linux</type>
     <kernel>/usr/lib/xen/boot/linux-2.6.20-xen-r6</kernel>
     <cmdline> root=/dev/xvda ro 
ip=85.17.131.4:1.2.3.4:85.17.131.253:255.255.255.0::eth0:off</cmdline>
   </os>
   <memory>131072</memory>
   <vcpu>1</vcpu>
   <devices>
     <disk type='pool'>
       <source pool='netapp' volume='lun-3' />
       <target dev='xvda'/>
     </disk>
     <interface type='bridge'>
       <source bridge='xenbr0'/>
       <mac address='aa:00:00:00:00:11'/>
       <script path='/etc/xen/scripts/vif-bridge'/>
     </interface>
   </devices>
</domain>


I think the target dev here can just be appended with an one?


Stefan




More information about the libvir-list mailing list