Hi,
I have a C5.8 machine with several DomU's. I fubared the fstab on one of them and I need to get it into single user mode.
Does anyone know how to do that? I tried adding single to the extras line in /etc/xen/machine_name but it still tries to start in level 3.
To make things worse, the root partition is on LVM.
Alternatively, does anyone know how to access the image from DomU? I tried to use kpartx but when I run VGscan, I do not get the lvm activated.
Regards,
You could loop mount the messed up disk on the host or you could mount the messed up disk on another DomU and change it.
On Thu, 2012-09-20 at 08:58 -0400, me@tdiehl.org wrote:
Hi,
I have a C5.8 machine with several DomU's. I fubared the fstab on one of them and I need to get it into single user mode.
Does anyone know how to do that? I tried adding single to the extras line in /etc/xen/machine_name but it still tries to start in level 3.
To make things worse, the root partition is on LVM.
Alternatively, does anyone know how to access the image from DomU? I tried to use kpartx but when I run VGscan, I do not get the lvm activated.
Regards,
On Thu, 20 Sep 2012, Ed Heron wrote:
You could loop mount the messed up disk on the host or you could mount the messed up disk on another DomU and change it.
Yes, I thought about mounting it on another DomU right after I sent the message to the list and that worked. It even activated the lvm partitions.
I am still wondering why I cannot get the thing into Run level 1 though.
I see numerous people on the net talking about just adding single to the extras line in the xen config file but that does not work.
Thanks for the help.
Regards,
On Thu, 2012-09-20 at 12:03 -0400, me@tdiehl.org wrote:
On Thu, 20 Sep 2012, Ed Heron wrote:
You could loop mount the messed up disk on the host or you could mount the messed up disk on another DomU and change it.
Yes, I thought about mounting it on another DomU right after I sent the message to the list and that worked. It even activated the lvm partitions.
I am still wondering why I cannot get the thing into Run level 1 though.
I see numerous people on the net talking about just adding single to the extras line in the xen config file but that does not work.
Thanks for the help.
Regards,
You could set the default runlevel in /etc/inittab when the disk is mounted on another VM...
I am using pygrub to boot and this is how I got it to work:
xm create -c <path to >dev3.cfg
at the boot splash select the kernel you are using to boot with.. press e to edit. press e and edit the kernel line and put single right after the kernel designation....
i.e. kernel /vmlinuz-2.6.18-274.3.1.el5xen single ro root=/dev/VolGroup00/LogVol00 ..... press enter to save your change. It will return back to the boot option menu
pyGRUB version 0.6 ?????????????????????????????????????????????????????????????????????????? ? kernel /vmlinuz-2.6.18-274.3.1.el5xen single ro root=/dev/VolGroup00/> ? ? initrd /initrd-2.6.18-274.3.1.el5xen.img ? ? ? ? ? ? ? ? ? ? ? ? ? ?????????????????????????????????????????????????????????????????????????? Use the ^ and v keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu.
hit b to boot...
it worked for me a couple of times in succession.
Good luck.
On Thu, 20 Sep 2012, Kevin Coleman wrote:
I am using pygrub to boot and this is how I got it to work:
xm create -c <path to >dev3.cfg
at the boot splash select the kernel you are using to boot with.. press e to edit. press e and edit the kernel line and put single right after the kernel designation....
i.e. kernel /vmlinuz-2.6.18-274.3.1.el5xen single ro root=/dev/VolGroup00/LogVol00 ..... press enter to save your change. It will return back to the boot option menu
pyGRUB version 0.6 ?????????????????????????????????????????????????????????????????????????? ? kernel /vmlinuz-2.6.18-274.3.1.el5xen single ro root=/dev/VolGroup00/> ? ? initrd /initrd-2.6.18-274.3.1.el5xen.img ? ? ? ? ? ? ? ? ? ? ? ? ? ?????????????????????????????????????????????????????????????????????????? Use the ^ and v keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu.
hit b to boot...
it worked for me a couple of times in succession.
Hummmmm, according to the config file, I too am using pygrub but I never see the menu.
I tried the xm create command as you suggested but I still do not see the menu.
If I use virt-manager to make changes to the configuration, I see the changes in /etc/xen/vm_name
I am now wondering if there is another config file some where that virt-manager is writing to.
Am I missing something?
Regards,
On Fri, 2012-09-21 at 12:05 -0400, me@tdiehl.org wrote:
... If I use virt-manager to make changes to the configuration, I see the changes in /etc/xen/vm_name
I am now wondering if there is another config file some where that virt-manager is writing to. ...
You could also run "virsh edit <vm_name>"