[GH-ISSUE #252] create storage pool from webvirtmgr interface #201

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

Originally created by @Hemo1234 on GitHub (Mar 2, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/252

I have tried to create new pool, but there is no way i can add my OS image

in DIR the path is : /var/lib/libvirt/images
and IOS : /var/www/webvirtmgr/images
when i tired to create ISO it says " cannot open path '/var/www/webvirtmgr/images': No such file or directory"
please how to slove this issue.

Thank you

Originally created by @Hemo1234 on GitHub (Mar 2, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/252 I have tried to create new pool, but there is no way i can add my OS image in DIR the path is : /var/lib/libvirt/images and IOS : /var/www/webvirtmgr/images when i tired to create ISO it says " cannot open path '/var/www/webvirtmgr/images': No such file or directory" please how to slove this issue. Thank you
kerem closed this issue 2026-02-27 16:38:22 +03:00
Author
Owner

@camjac251 commented on GitHub (Mar 2, 2014):

/var/www/webvirtmgr/images doesnt exist.... its that simple.

<!-- gh-comment-id:36442273 --> @camjac251 commented on GitHub (Mar 2, 2014): /var/www/webvirtmgr/images doesnt exist.... its that simple.
Author
Owner

@Hemo1234 commented on GitHub (Mar 2, 2014):

so please, do i need to create directory /var/www/webvirtmgr/images? and how? i am not really good at Linux. thanks

<!-- gh-comment-id:36443232 --> @Hemo1234 commented on GitHub (Mar 2, 2014): so please, do i need to create directory /var/www/webvirtmgr/images? and how? i am not really good at Linux. thanks
Author
Owner

@camjac251 commented on GitHub (Mar 2, 2014):

you really wont get far with using webvirtmgr if you dont know linux

<!-- gh-comment-id:36444222 --> @camjac251 commented on GitHub (Mar 2, 2014): you really wont get far with using webvirtmgr if you dont know linux
Author
Owner

@Hemo1234 commented on GitHub (Mar 2, 2014):

thanks, i am in a learning process and will get help from my colleagues, but for this one, what i have to do to create /var/www/webvirtmgr/images?

<!-- gh-comment-id:36444582 --> @Hemo1234 commented on GitHub (Mar 2, 2014): thanks, i am in a learning process and will get help from my colleagues, but for this one, what i have to do to create /var/www/webvirtmgr/images?
Author
Owner

@Hemo1234 commented on GitHub (Mar 2, 2014):

Hi, I managed to create /var/www/webvirtmgr/images it is working now,
but i have a problem after i created new instance and tried to install new os on VM via console VNC, the process went well till i select install Ubuntu then, i went dark, then display " Server disconnected (code: 1006)" , in the terminal this what is saw " requested operation is not valid domain is not running",.

<!-- gh-comment-id:36454273 --> @Hemo1234 commented on GitHub (Mar 2, 2014): Hi, I managed to create /var/www/webvirtmgr/images it is working now, but i have a problem after i created new instance and tried to install new os on VM via console VNC, the process went well till i select install Ubuntu then, i went dark, then display " Server disconnected (code: 1006)" , in the terminal this what is saw " requested operation is not valid domain is not running",.
Author
Owner

@retspen commented on GitHub (Mar 2, 2014):

$ netstat -atn | grep 6080

<!-- gh-comment-id:36458231 --> @retspen commented on GitHub (Mar 2, 2014): $ netstat -atn | grep 6080
Author
Owner

@Hemo1234 commented on GitHub (Mar 3, 2014):

tcp 0 0.0.0.0:6080 0.0.0.0:* listen

<!-- gh-comment-id:36475456 --> @Hemo1234 commented on GitHub (Mar 3, 2014): tcp 0 0.0.0.0:6080 0.0.0.0:\* listen
Author
Owner

@Hemo1234 commented on GitHub (Mar 3, 2014):

ubutuerror
browrerror

<!-- gh-comment-id:36476560 --> @Hemo1234 commented on GitHub (Mar 3, 2014): ![ubutuerror](https://f.cloud.github.com/assets/6781367/2306084/288a18e8-a279-11e3-8562-751c9e8c35be.PNG) ![browrerror](https://f.cloud.github.com/assets/6781367/2306085/2e7c621a-a279-11e3-85b4-3b4159cea511.PNG)
Author
Owner

@Hemo1234 commented on GitHub (Mar 3, 2014):

after i selected the language the next screen is to select os which in my case Ubuntu 12.4 server, after i hit enter, nothing will show accept dark screen and in a few seconds the above messages will show up.
is it something to do with storage configuration?
thanks

<!-- gh-comment-id:36476656 --> @Hemo1234 commented on GitHub (Mar 3, 2014): after i selected the language the next screen is to select os which in my case Ubuntu 12.4 server, after i hit enter, nothing will show accept dark screen and in a few seconds the above messages will show up. is it something to do with storage configuration? thanks
Author
Owner

@trendzetter commented on GitHub (Mar 4, 2014):

What happens if you try to create the pool using virt-manager?

<!-- gh-comment-id:36644424 --> @trendzetter commented on GitHub (Mar 4, 2014): What happens if you try to create the pool using virt-manager?
Author
Owner

@camjac251 commented on GitHub (Mar 7, 2014):

WebVirtMgr Host didn't work for me on Centos 6.5 64-bit.
Also selecting LVMs is broken on webvirtmgr as well.

<!-- gh-comment-id:36966409 --> @camjac251 commented on GitHub (Mar 7, 2014): WebVirtMgr Host didn't work for me on Centos 6.5 64-bit. Also selecting LVMs is broken on webvirtmgr as well.
Author
Owner

@retspen commented on GitHub (Mar 7, 2014):

Could you show error message or logs, what is problems with LVM?

<!-- gh-comment-id:36973375 --> @retspen commented on GitHub (Mar 7, 2014): Could you show error message or logs, what is problems with LVM?
Author
Owner

@camjac251 commented on GitHub (Mar 7, 2014):

I try to add the path and it say its not in the correct format, and when I add the name of the volumegroup as the name in webvirtmgr, it gives me an error that it doesnt exist.

<!-- gh-comment-id:36973426 --> @camjac251 commented on GitHub (Mar 7, 2014): I try to add the path and it say its not in the correct format, and when I add the name of the volumegroup as the name in webvirtmgr, it gives me an error that it doesnt exist.
Author
Owner

@retspen commented on GitHub (Mar 7, 2014):

You need create device for LVM, for example: pvcreate /dev/sdb5 and then in webvirtmgr add LVM pool input name and device /dev/sdb5. Waring device must be without any groups only pv

<!-- gh-comment-id:36973881 --> @retspen commented on GitHub (Mar 7, 2014): You need create device for LVM, for example: pvcreate /dev/sdb5 and then in webvirtmgr add LVM pool input name and device /dev/sdb5. Waring device must be without any groups only pv
Author
Owner

@camjac251 commented on GitHub (Mar 7, 2014):

Ok I see. Is it possible to create vms off of os templates instead of mounting isos?
I want to use this in a commercial area offering OS options, and it will require no install process done by the end user. Kinda similar to DigitalOcean. Did you guys make the new design before or after digitalocean released their design. Did they base their design off yours?

<!-- gh-comment-id:36974064 --> @camjac251 commented on GitHub (Mar 7, 2014): Ok I see. Is it possible to create vms off of os templates instead of mounting isos? I want to use this in a commercial area offering OS options, and it will require no install process done by the end user. Kinda similar to DigitalOcean. Did you guys make the new design before or after digitalocean released their design. Did they base their design off yours?
Author
Owner

@captain4dmin commented on GitHub (Feb 11, 2015):

I try to create lvm storage and when I test with
Name --> Data
Device --> /dev/sda5 (or just sda5 where sda5 is my pv)

I have this message:
The target must not contain any special characters

<!-- gh-comment-id:73976416 --> @captain4dmin commented on GitHub (Feb 11, 2015): I try to create lvm storage and when I test with Name --> Data Device --> /dev/sda5 (or just sda5 where sda5 is my pv) I have this message: The target must not contain any special characters
Author
Owner

@rgombash commented on GitHub (Feb 12, 2015):

@captain4dmin : you have to define storage pool first in libvirt on your host and than you will be able to add new LV's from webvirtmg. To create pool on your host run:
virsh pool-define-as lv_guest_vm logical --source-name [your VG name] --target [your path to VG location on disk]
After this you will see your VG listed in storages and you can add new LV's manually or by instancing new vm's to this pool (this will create LV that is same name as new virtual machine)

<!-- gh-comment-id:74048348 --> @rgombash commented on GitHub (Feb 12, 2015): @captain4dmin : you have to define storage pool first in libvirt on your host and than you will be able to add new LV's from webvirtmg. To create pool on your host run: virsh pool-define-as lv_guest_vm logical --source-name [your VG name] --target [your path to VG location on disk] After this you will see your VG listed in storages and you can add new LV's manually or by instancing new vm's to this pool (this will create LV that is same name as new virtual machine)
Author
Owner

@captain4dmin commented on GitHub (Feb 12, 2015):

All is ok,

pvremove /dev/sda5
Then I create the lvm space via web interface and it's ok

thanks

<!-- gh-comment-id:74048920 --> @captain4dmin commented on GitHub (Feb 12, 2015): All is ok, pvremove /dev/sda5 Then I create the lvm space via web interface and it's ok thanks
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#201
No description provided.