VC 6.4 on XenServer 6.0.2 install problem

15 posts / 0 new
Last post
Docent
VC 6.4 on XenServer 6.0.2 install problem

Hi,

I'm trying to install Vyatta Core 6.4 as a XenServer VM. I'm following this guide: http://www.vyatta.org/getting-started/how-to-install.

I've done it many times before with no issues. Now everything is fine until domU change to PV. Then Vyatta doesn't boot properly :( File system is being mounted as read-only so nothing works afterwards. After reboot sometimes it succeeds but then at the next boot it is again read-only.

Starting Vyatta router: migrate rl-system firewall configure
[   10.833995] end_request: I/O error, dev xvda, sector 4457520
[   10.834019] end_request: I/O error, dev xvda, sector 4457520
[   10.834064] Aborting journal on device xvda1-8.
[   10.853653] EXT4-fs error (device xvda1): ext4_journal_start_sb:296: Detected aborted journal
[   10.853694] EXT4-fs (xvda1): Remounting filesystem read-only
[   10.853788] journal commit I/O error
 failed!
chmod: changing permissions of `/': Read-only file system
startpar: service(s) returned failure: vyatta-router ... failed!

I assign 8 GB of virtual disk as I always did and XenTools of course are installed prior to the HVM to PV migration. Has anything changed in the installation procedure maybe?

Thanks,
Docent

unpropable
VC 6.4 on XenServer 6.0.2 install problem

I have same problem with Vyatta 6.4 on Xenserver 6.0.2.

renow
VC 6.4 on XenServer 6.0.2 install problem

You have to add the nobarrier option for / in fstab :

/etc/fstab

# UNCONFIGURED FSTAB FOR BASE SYSTEM
UUID=32649221-... / ext4 noatime,nobarrier 0 1
xenfs /proc/xen xenfs defaults 0 0

unpropable
VC 6.4 on XenServer 6.0.2 install problem

renow wrote:
You have to add the nobarrier option for / in fstab :

/etc/fstab

# UNCONFIGURED FSTAB FOR BASE SYSTEM
UUID=32649221-... / ext4 noatime,nobarrier 0 1
xenfs /proc/xen xenfs defaults 0 0

Thanks it solves problem. I think it should be supplemented to http://www.vyatta.org/getting-started/how-to-install page.
And for properly working button reboot VM in XenCenter need to replace in file /etc/inittab

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/bin/echo "Ctrl-Alt-Del disabled."

to

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Docent
VC 6.4 on XenServer 6.0.2 install problem

renow, thanks a ton :) Works like a charm. It's a pity Vyatta did not put this into Release Notes or something...

Also, unpropable, thanks for a reboot tip :)

Regards,
Docent

fabrana
VC 6.4 on XenServer 6.0.2 install problem

I'm facing the same problem on XS 6.0... But I cannot complete a single boot after the HVM to PV migration, so I'm not able to fix fstab.
Any suggestion?
Thanks in advance

Docent
VC 6.4 on XenServer 6.0.2 install problem

Fix it before the conversion procedure, I think I did so.

Regards,
Docent

fabrana
VC 6.4 on XenServer 6.0.2 install problem

Obvious, fix it before... sorry I give an incomplete explanation.
I was trying to install the image-mode that mounts the root on squashfs, but the nobarrier option doesn't help in this case.

I've switched to disk-mode ("install system" instead of "install image"), fixed fstab and everything is ok.

nathpearson
thanks

Thanks to all who contributed to this thread. saved me lots of pain! :lol:

Damien_z
VC 6.4 on XenServer 6.0.2 install problem

I'm trying to install Vyatta Core 6.4 as a XenServer VM. I'm following this guide: http://www.vyatta.org/getting-started/how-to-install.

I have xenserver 6.02 and use the following iso:

vyatta-livecd-virt_VC6.4-2012.05.31_i386.iso

Do i have also do the last steps of the getting-started/how-to-install document ?

Then, using XenCenter, on the server's console -

Determine the UUID of the VM by running the following command:

xe vm-list name-label=

where is the name that you have assigned to the VM. Use that UUID in the following commands:

xe vm-param-set uuid= HVM-boot-policy=
xe vm-param-set uuid= PV-bootloader=pygrub

Next, determine the UUID of the root filesystem virtual block device by running the following command:

xe vbd-list vm-name-label=

Here again, is the name you have assigned to the VM. If the program displays more than one virtual block device, the first usually holds the root filesystem. Use the UUID of this device in the following command:

xe vbd-param-set uuid= bootable=true

When i do the xenserver console steps i get this error when boot the Vyatta VM:

12-8-2012 14:42:45 Error: Starting VM 'Vyatta-2' - Traceback (most recent call last): - File "/usr/bin/pygrub", line 850, in ? - raise RuntimeError, "Unable to find partition containing kernel" - RuntimeError: Unable to find partition containing kernel

When i install the xentools i only get a message:
setting up xen-tools......

adding the nobarrier to the fstab don't make a different.

Can someone give me all the necessary steps to install Vyatta on Xenserver 6.02 ?

topping
VC 6.4 on XenServer 6.0.2 install problem

This tip helped me too. Thanks guys!! :)

manchi
VC 6.4 on XenServer 6.0.2 install problem

renow wrote:
You have to add the nobarrier option for / in fstab :

/etc/fstab

# UNCONFIGURED FSTAB FOR BASE SYSTEM
UUID=32649221-... / ext4 noatime,nobarrier 0 1
xenfs /proc/xen xenfs defaults 0 0

I don't understand where should i put this? in xenserver or in vyatta?

topping
VC 6.4 on XenServer 6.0.2 install problem

@manchi: that fstab modification goes in the VC installation, not XenServer.

manchi
VC 6.4 on XenServer 6.0.2 install problem

Is this the UUID=32649221-... all the same or I need to find the UID of my vm?

topping
VC 6.4 on XenServer 6.0.2 install problem

No, open up the file and look at it. All you have to add is ",nobarrier" after the "noatime". Leave the rest alone (it will already have the UUID).

Log in or register to post comments