sirishkalidindi / qvd

0 stars 0 forks source link

VM not starting #3

Open sirishkalidindi opened 8 years ago

sirishkalidindi commented 8 years ago

Hi Team,

I created lxc image using dockerfile (as per http://docs.theqvd.com/docs/DiskImageCreationUbuntu.html#_create_an_lxc_disk_image_using_docker) the image build was successful and followed all the instructions as in the link but my vm is not starting. attaching my log here please help..

t qvd123.txt

Thanks in advance!

salva commented 8 years ago

@sirishkalidindi, QVD is failing to mount file systems using overlayfs:

2016/06/20 08:33:40 2110 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 302 - Running command ['mount','-t','overlayfs','-o','rw,upperdir=/var/lib/qvd/storage/overlayfs/1-1-overlayfs,lowerdir=/var/lib/qvd/storage/basefs//1-qvd.img','overlayfs','/var/lib/qvd/storage/rootfs/1-fs']
2016/06/20 08:33:40 2110 DEBUG /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 315 - Process 3035 forked
2016/06/20 08:33:40 2110 DEBUG /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 340 - Process 3035 returned rc: 8192
2016/06/20 08:33:40 2110 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 110 - Unable to mount overlayfs mix of '/var/lib/qvd/storage/basefs//1-qvd.img' (ro) and '/var/lib/qvd/storage/overlayfs/1-1-overlayfs' (rw) into '/var/lib/qvd/storage/rootfs/1-fs'

That may be caused by changes introducing recently in the linux overlayfs module which now requires a different set of arguments at mount time.

Which Linux distribution and version are you using?

Anyway, this issue has been fixed on the development branch of QVD available from this repository but no packed version is available yet. Your options are to install QVD from the source repository or to install an older OS version on your host (the supported ones are Ubuntu 14.04 and SLES 11SP2 and SP3).

salva commented 8 years ago

BTW, in order to ask for help, don't use your own fork of the repository, but the official QVD one at https://github.com/theqvd/theqvd.

sirishkalidindi commented 8 years ago

My machine is running on ubuntu 14.04 which should support as per your comments, right?

On Mon, Jun 20, 2016 at 4:16 PM, Salvador Fandiño notifications@github.com wrote:

@sirishkalidindi https://github.com/sirishkalidindi, QVD is failing to mount file systems using overlayfs:

2016/06/20 08:33:40 2110 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 302 - Running command ['mount','-t','overlayfs','-o','rw,upperdir=/var/lib/qvd/storage/overlayfs/1-1-overlayfs,lowerdir=/var/lib/qvd/storage/basefs//1-qvd.img','overlayfs','/var/lib/qvd/storage/rootfs/1-fs'] 2016/06/20 08:33:40 2110 DEBUG /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 315 - Process 3035 forked 2016/06/20 08:33:40 2110 DEBUG /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 340 - Process 3035 returned rc: 8192 2016/06/20 08:33:40 2110 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 110 - Unable to mount overlayfs mix of '/var/lib/qvd/storage/basefs//1-qvd.img' (ro) and '/var/lib/qvd/storage/overlayfs/1-1-overlayfs' (rw) into '/var/lib/qvd/storage/rootfs/1-fs'

That may be caused by changes introducing recently in the linux overlayfs module which now requires a different set of arguments at mount time.

Which Linux distribution and version are you using?

Anyway, this issue has been fixed on the development branch of QVD available from this repository but no packed version is still available yet. Your options are to install QVD from the source repository or to install an older OS version on your host (the supported ones are Ubuntu 14.04 and SLES 11SP2 and SP3).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sirishkalidindi/qvd/issues/3#issuecomment-227109680, or mute the thread https://github.com/notifications/unsubscribe/AGSmRwj4Bg_v8nj606vc1tRp8yiEdQT5ks5qNm-QgaJpZM4I5VJh .

sirishkalidindi commented 8 years ago

so what should be my next step on this?

salva commented 8 years ago

Oops, you are right, that bug was found on QVD-3.5.0 and fixed on subsequent releases, but those are only available to customers with a support contract.

Your options are:

  1. To install from source (the code available from github), where the fix is available.
  2. Use a different backend not affected by that bug (i.e. btrfs).
  3. Wait for 3.6.0 to be released (which would be freely available to the general public packed, though the release data has not been decided yet).
  4. Try an older ubuntu version, with the old overlayfs.
  5. Get a support contract which would give you access to the latest releases on the 3.5 branch.
sirishkalidindi commented 8 years ago

Hi Salva,

As per the document qvd requirement is ubuntu 14.04 Trusty Tar which I am using now but you suggest me to downgrade to older version. could you please suggest what exactly i need to do.

On Mon, Jun 20, 2016 at 6:21 PM, Salvador Fandiño notifications@github.com wrote:

Oops, you are right, that bug was found on QVD-3.5.0 and fixed on subsequent releases, but those are only available to customers with a support contract.

Your options are:

  1. To install from source (the code available from github), where the fix is available.
  2. Use a different backend not affected by that bug (i.e. btrfs).
  3. Wait for 3.6.0 to be released (which would be freely available to the general public packed, though the release data has not been decided yet).
  4. Try an older ubuntu version, with the old overlayfs.
  5. Get a support contract which would give you access to the latest releases on the 3.5 branch.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sirishkalidindi/qvd/issues/3#issuecomment-227133092, or mute the thread https://github.com/notifications/unsubscribe/AGSmR3_nNKSX9Yi0Cfez0CwWFi3v6Uavks5qNoy8gaJpZM4I5VJh .

sirishkalidindi commented 8 years ago

could you please provide me the link of the source (the code available from github), where the fix is available.

Thanks in advance..

salva commented 8 years ago

https://github.com/theqvd/theqvd

I have just pushed the latest changes there.

sirishkalidindi commented 8 years ago

Can I directly install this one by downloading ? or have to reinstall complete os ?

salva commented 8 years ago

Just uninstall the QVD packages from your server and then clone the repository and install the perl packages available from the ext subdirectory and their dependencies.

You may also need to adjust some settings as the defaults values are set for the packed versions of QVD.

sirishkalidindi commented 8 years ago

As of now I downloaded the folder and unzipped it. Uninstalled perl-qvd-admin, perl-qvd-hdk, perl-qvd-admin-web anything else? Now I needs to install the same packages from the downloaded folder right? qvd

salva commented 8 years ago

On the archive you have just downloaded you will find a directory named ext, and inside a bunch of Perl packages that you need to install.

Start by QVD-HKD and QVD-L7R, for instance:

cd QVD-HKD
perl Makefile.PL
make
sudo make install

Then try to start the hkd, it will fail with an error telling you about some missing Perl package. Install it and repeat until it works.

sirishkalidindi commented 8 years ago

But when i run service qvd-hkd status it showing as running. What if I install all the packages available here? is there any sequence that I need to perform?

qvd1

salva commented 8 years ago

A few of them are now obsolete and not used anymore, but installing them is probably harmless.

sirishkalidindi commented 8 years ago

Now all the packages and dependencies are installed. Next any configuration changes?

sirishkalidindi commented 8 years ago

Now qvd2 my qvd page not coming up

salva commented 8 years ago

Launch the HKD and look inside the log file for entries marked as ERROR. Fix and repeat.

sirishkalidindi commented 8 years ago

my web page not coming now attached the log..... qvderror.txt

sirishkalidindi commented 8 years ago

As I have uninstalled qvd-admin-web, getting this blank page? should I have to install it ?

salva commented 8 years ago

Getting the web administration tool up from the source distribution is not trivial. But you can follow the same approach as for the HKD, install QVD-Admin and QVD-Admin-Web and all its dependencies.

It is a Catalyst application and you will need to serve it using some web server.

salva commented 8 years ago

Alternatively, you can install the Web Administration Tool in a different machine using the 3.5.0 packages. Even if we don't recommend mixing components from different versions, in this case, it will probably work.

sirishkalidindi commented 8 years ago

tried installing admin and admin-web but saying that its already to new version qvd3

sirishkalidindi commented 8 years ago

So on the other machine if I install Ubuntu 14.04.3/14.04.2 and install qvd 3.5 will that work with out any issues(overlayfs) that caused me on this machine ?

sirishkalidindi commented 8 years ago

One more question, will i be able to install android emulators on the VM machines?

salva commented 8 years ago

So on the other machine if I install Ubuntu 14.04.3/14.04.2 and install qvd 3.5 will that work with out any issues(overlayfs) that caused me on this machine ?

No. What you can do is to run the Web Administration Tool version 3.5.0 in one machine to administer a QVD node running the master branch of QVD as available from https://github.com/theqvd/theqvd

salva commented 8 years ago

One more question, will i be able to install android emulators on the VM machines?

Probably yes. As far as those emulators do not require custom kernel modules or performing any other action requiring special capabilities, they should work

salva commented 8 years ago

If all you want to do is to check if android emulators run inside QVD, you can just register into our demo server (http://theqvd.com/product/demo) and ask us for permissions to upload custom DIs (it is forbidden by default), and try them there.

sirishkalidindi commented 8 years ago

If I download the demo version I will not be able to perform admin tasks, right? So how will I be able to install any application on the vm?

sirishkalidindi commented 8 years ago

Also if we convert the android image to lxc container accessable image, will that run on this qvd ? will I be able to create android vm?

salva commented 8 years ago

If I download the demo version I will not be able to perform admin tasks, right?

Our current demo service runs a preview of QVD 4.0 which allows you to manage your virtual machines. By default you are limited to a set of predefined images but if you ask for it we would grant you permissions to upload and use your own images.

Also if we convert the android image to lxc container accessable image, will that run on this qvd ? will I be able to create android vm?

No, Android does not use the standard Linux display stack and the X protocol which is the one supported by QVD. Android uses its own incompatible one.

You will be able to run an Android emulator inside your virtual machines, though.

sirishkalidindi commented 8 years ago

How about ubuntu touch? will that be compatible with QVD?

salva commented 8 years ago

How about ubuntu touch?

Probably not, Ubuntu Touch runs on top of the Android kernel using its display stack.

But it is something we haven't investigated, maybe there is a version of Ubuntu Touch available able to run on top of X-Windows. We don't know.

sirishkalidindi commented 8 years ago

Ok...Thanks for the infromation...

Coming back to my issues I created a LXC image using docker (http://docs.theqvd.com/docs/DiskImageCreationUbuntu.html#_create_an_lxc_disk_image_using_docker) everything went wright with the image build, ran vm which is running fine but when I connect from the client it logs in to black screen dissappers and login window comes back. But the image that I downloaded from https://s3.amazonaws.com/QVD_Images/3.4/lxc/ubuntu-13.04-i386-qvd.tar.gz is running fine and was able to login but unable to play youtube videos in that vm :(

sirishkalidindi commented 8 years ago

here is my log file qvd12.txt

salva commented 8 years ago

but when I connect from the client it logs in to black screen dissappers and login window comes back.

That means that something is wrong inside the image. You will have to look for errors in the logs that are stored inside the image. Usually you can reach them as root in the node where the container is running at /var/lib/qvd/storage/rootfs/$vmid-fs/var/log/qvd*.

and was able to login but unable to play youtube videos in that vm :(

Yes, multimedia support is still suboptimal on QVD. It is something we are currently working on and will hopefully improve in the not so distant future.

sirishkalidindi commented 8 years ago

will I be able to create windows/firefoxos or any other os that can run on smartphones DI and run on qvd ? if so what would be the process?

salva commented 8 years ago

You can not run Windows but you can run common Windows applications using Wine (or its commercial brother CrossOver).

AFAIK, FirefoxOS has been discontinued, but it used to work on top of X, so it should be possible to install it inside QVD... though it is not going to be easy!

sirishkalidindi commented 8 years ago

would you be able to help us here on setting up firefoxos inside qvd?

salva commented 8 years ago

We are not experts on FirefoxOS so you will have to investigate that side yourself.

Otherwise we would be available for helping you solve QVD specific issues.