Thursday, February 17, 2011

VM guest booting issues.

xm console<id>

When you start a  Virtual Machine and you get the error Press Ctrl+D for
Maintenance:

Cause could be the /tmp or /swp or anyother file systems in DomU-5EL-U5-x86_64-1.0.3.img
might not be available.

Referring to a different image which might not be available :


To ignore those filesystems while booting VM, so it does not throw error:

on the Host os:

# kpartx -a DomU-5EL-U5-x86_64-1.0.3.img

# cd /dev/mapper/

(here loop0p1 could be /root filesystem), so we mount and edit fstab to edit and ignore
those /tmp /swap space filesystem.)
 
# ls
control  loop0p1  loop0p2  loop0p3  loop0p5  loop0p6  loop0p7

# mkdir /test

# mount loop0p1 /test

# ls /test
admin  boot  etc   lib    lost+found  misc  oem  proc  sbin     slot  sys  u01      u03  var
bin    dev   home  lib64  media       mnt   opt  root  selinux  srv   tmp  u01_old  usr

# vi /test/etc/fstab

#comment the line while is starting the /tmp /swap or whateer you may think.

save it,

and try starting the console.

#xm console <id> <=== now it should be fine

No comments:

Post a Comment