[GH-ISSUE #175] cannot upload iso file #138

Closed
opened 2026-02-27 16:38:06 +03:00 by kerem · 13 comments
Owner

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!

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!
kerem closed this issue 2026-02-27 16:38:06 +03:00
Author
Owner

@retspen commented on GitHub (Dec 19, 2013):

Check owner directory

<!-- gh-comment-id:30913673 --> @retspen commented on GitHub (Dec 19, 2013): Check owner directory
Author
Owner

@cron-weasley commented on GitHub (Dec 19, 2013):

I had changed the owener to apache.apache, is it right?

<!-- gh-comment-id:30926596 --> @cron-weasley commented on GitHub (Dec 19, 2013): I had changed the owener to apache.apache, is it right?
Author
Owner

@retspen commented on GitHub (Dec 19, 2013):

What distro linux you use?

<!-- gh-comment-id:30926639 --> @retspen commented on GitHub (Dec 19, 2013): What distro linux you use?
Author
Owner

@cron-weasley commented on GitHub (Dec 19, 2013):

centos 6.2

<!-- gh-comment-id:30927277 --> @cron-weasley commented on GitHub (Dec 19, 2013): centos 6.2
Author
Owner

@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!

<!-- gh-comment-id:30927377 --> @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!
Author
Owner

@retspen commented on GitHub (Dec 19, 2013):

  1. Yes, user: apache
  2. Need recreate *.po and *.mo files:
    $ ./manage.py makemessages -l zh_CN
    $ ./manage.py compilemessages
<!-- gh-comment-id:30928064 --> @retspen commented on GitHub (Dec 19, 2013): 1. Yes, user: apache 2. Need recreate *.po and *.mo files: $ ./manage.py makemessages -l zh_CN $ ./manage.py compilemessages
Author
Owner

@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?

<!-- gh-comment-id:30928522 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:30929322 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:30930212 --> @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?
Author
Owner

@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 ?

<!-- gh-comment-id:30932513 --> @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 ?
Author
Owner

@cron-weasley commented on GitHub (Dec 19, 2013):

Bittorrent Sync? I never hear about that, let's google ing....

<!-- gh-comment-id:30935140 --> @cron-weasley commented on GitHub (Dec 19, 2013): Bittorrent Sync? I never hear about that, let's google ing....
Author
Owner

@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!

<!-- gh-comment-id:30936001 --> @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!
Author
Owner

@retspen commented on GitHub (Dec 19, 2013):

Change in file settings.py line:
DEBUG = False to DEBUG = True

and restart apache

<!-- gh-comment-id:30936389 --> @retspen commented on GitHub (Dec 19, 2013): Change in file settings.py line: DEBUG = False to DEBUG = True and restart apache
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#138
No description provided.