mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 16:15:50 +03:00
[GH-ISSUE #175] cannot upload iso file #138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cron-weasley on GitHub (Dec 18, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/175
dear,
I found that when I add a iso pool, if http service and libvirtd service at the same server, I can upload iso files, if I setup another server with libvirtd service and add this server into webvirtmgr, then create a iso pool, I can not upload iso files via webvirtmgr. Why?
Thx!
@retspen commented on GitHub (Dec 19, 2013):
Check owner directory
@cron-weasley commented on GitHub (Dec 19, 2013):
I had changed the owener to apache.apache, is it right?
@retspen commented on GitHub (Dec 19, 2013):
What distro linux you use?
@cron-weasley commented on GitHub (Dec 19, 2013):
centos 6.2
@cron-weasley commented on GitHub (Dec 19, 2013):
Also I want ask you another question...If you add new function in webvirtmgr and some section need translate, how to do that? download this github django.po and translate again? Or download the anna source file and use command ./manage.py makemessages -l zh_CN?
Thx!
@retspen commented on GitHub (Dec 19, 2013):
$ ./manage.py makemessages -l zh_CN
$ ./manage.py compilemessages
@cron-weasley commented on GitHub (Dec 19, 2013):
ok.
I have two server, one installed webvirtmgr and libvirtd, the other is only libvirtd, I use first server connect itself and the second server. The first server can upload iso to itself /var/www/webvirtmgr/images, and user.group is apache.apache, I also install apache at the second server, and mkdir -p /var/www/webvirtmgr/images, then change the user.group to apache.apache, via webvirtmgr, I can not upload iso on it.
I dont know why or how to debug it?
@retspen commented on GitHub (Dec 19, 2013):
Thats right. You need create on both server NFS shares. On fist server create /var/www/webvirtmgr/images - nfs share, on second mount x.x.x.x:/var/www/webvirtmgr/images to /mnt/nfs_iso_share. In panel on second server create iso pool to /mnt/nfs_iso_share directory. Find documentation how work with NFS share.
@cron-weasley commented on GitHub (Dec 19, 2013):
So let me think about that... You mean If I want the second server use iso, I must use nfs share, and upload the iso to first server's /var/www/webvirtmgr/images, then export te nfs path and mount to the second server's /var/www/webvirtmgr/images directory, then via webvirtmgr create iso pool, we can "see" the iso at the second server. Webvirtmgr not support upload iso directly to Independent libvirtd server. Am i right?
@retspen commented on GitHub (Dec 19, 2013):
Yes you right. All upload is you can do from fist server and share other. But you can create DRDB or other file system sync if have do from all servers. Maybe try Bittorrent Sync for this ?
@cron-weasley commented on GitHub (Dec 19, 2013):
Bittorrent Sync? I never hear about that, let's google ing....
@cron-weasley commented on GitHub (Dec 19, 2013):
By the way, now I set up the nfs and can see the iso on the second server, but when I create vm via webvirtmgr at second server, I got a 500 error, how to setup the debug and seeing the log?
Thanks!
@retspen commented on GitHub (Dec 19, 2013):
Change in file settings.py line:
DEBUG = False to DEBUG = True
and restart apache