suselinux's BUG,while boot in cloned vm in VBOX

来源:互联网 发布:应用联网控制软件 编辑:程序博客网 时间:2024/05/05 02:49

Problem:

I've cloned a VM and now while booting it I see a message:

Trying manual resume from /dev/sda1Invoking userspace resume from /dev/sda1resume: libgcrypt version: 1.5.0Trying manual resume from /dev/sda1invoking in-kernel resume from /dev/sda1Waiting for device /dev/disk/by-id/ata-VBOX_HARDDISK_.....-part2 to appear: ...Could not find /dev/disk/...-part2Want me to fall back to /dev/disk/...-part2 (Y/n)

If I press 'Y' it tries to boot again with failure, then exits to /bin/sh. If I press 'n' it exits to /bin/sh immediately.I found solution as follows:


Solution:

before clone vms,you need to modify the menu.lst and fstab.

1) /boot/grub/menu.lst

change xxxxxx to   root=/dev/sda2  resume=/dev/sda1

2)/etc/fstab

change / and swap from device-id to device-name.


______________________________________



Another solution, just FYI:

1) Take note of the device(s) the system cannot find.

2) Answer "n" to that question. It should take you to a command prompt.

3) Run this command: cd /dev/disk/by-id

4) Run this command: ls

5) Rename all files in this folder replacing there current name with the name of the device you took note of in step 1. Ex. mv ata-VBOX_OLDNAME....-part2 ata-VBOX_HARDDISK....-part2

6) Once you have completed this type this command: exit

7) The system would boot normally.



and there's a link from VBOX's forum,but the problem was not solved by any one. just FYI.

https://forums.virtualbox.org/viewtopic.php?f=1&t=56077


________________________________________________________________________________

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

Author:   laven54 (lurou)

Email:    laven54@163.com

Blog:      http://blog.csdn.net/laven54



0 0
原创粉丝点击