Linux.com

virt-install becoming a headache

Link to this post 05 May 11

hi atreyu
now i will try xming and try what you told me.
also i wrote to libvirt team and they told me this:

"Using --location with a CDROM doesn't really work all that well. The easiest
thing to do is mount that ISO somewhere and export the directory over HTTP,
then use --location http://localhost/path/to/the/mounted/iso and it should all
work"

but i don't know how to export the mounted iso over HTTP i have searched a bit but...i have seen a side for client and another for server, but i guess that maybe there is a way to export it at server(my host) and with virt-install(the same host) puting -l http://localhost/PATH/to/mounted/ISO. or i am saying a stupid thing¬ø?

Link to this post 05 May 11

wikisb wrote:

hi atreyu
now i will try xming and try what you told me.
also i wrote to libvirt team and they told me this:

"Using --location with a CDROM doesn't really work all that well. The easiest
thing to do is mount that ISO somewhere and export the directory over HTTP,
then use --location http://localhost/path/to/the/mounted/iso and it should all
work"

but i don't know how to export the mounted iso over HTTP i have searched a bit but...i have seen a side for client and another for server, but i guess that maybe there is a way to export it at server(my host) and with virt-install(the same host) puting -l http://localhost/PATH/to/mounted/ISO. or i am saying a stupid thing¬ø?

Good idea contacting the libvirt team.

Doing the exporting over HTTP thing is not too hard to do, but I don't think that is your problem. Let's tackle Xming first.

But to get you prepped for the exporting thing, you'll need Apache running on the CentOS box - can you install it, or is it already installed? The package is called httpd. Check if installed with:

rpm -qv httpd

See if running with:

service httpd status

Link to this post 05 May 11

yes you are right it is a bit of a mess having a linux VM conected via ssh to my server to create VM. but my first intention was to create all the VM manually in the server without any other pc's or VM

Link to this post 05 May 11

wikisb wrote:

yes you are right it is a bit of a mess having a linux VM conected via ssh to my server to create VM. but my first intention was to create all the VM manually in the server without any other pc's or VM

and you should absolutely be able to do just that from the command line on your server - i just don't know enough libvirt foo, as GoingEasy9 would say, but we'll get there...

btw, that reminds me: if you had a kickstart file (they are popular with PXE/network installs) that was 100% correct and contained all the required parameters to enable the install to run completely automated - you wouldn't even need a console/window to walk thru the install. but that is for another day...

Link to this post 05 May 11

im with Xming
im sorry but im a little bit dumb with it. it suposes to run the graphical interface of programs of remote pc's ? well i'm not getting it.
i do XLaunch then i select option "multiple window"->start_client-> start_program=xterm(no options to chose) Run remote using putty ip of my server , user root & pasword empty clipboard enabled -> Additional parameters i have it empty-> Finish
then apears a putty window to put the password i put it but then it seems that nothing happens although putty its running in background it seems.
i don't know if i'm suposed to do this or what :s

Link to this post 05 May 11

wikisb wrote:

im with Xming
im sorry but im a little bit dumb with it. it suposes to run the graphical interface of programs of remote pc's ? well i'm not getting it.
i do XLaunch then i select option "multiple window"->start_client-> start_program=xterm(no options to chose) Run remote using putty ip of my server , user root & pasword empty clipboard enabled -> Additional parameters i have it empty-> Finish
then apears a putty window to put the password i put it but then it seems that nothing happens although putty its running in background it seems.
i don't know if i'm suposed to do this or what :s

sorry, guess you need to download putty separately. i thought it was bundled together, but i couldn't get it to work either.
this worked for me - download putty from here:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

then:
1. Run putty.exe
2. In the pane on the left, click on Session,
2. In the pane on the right, in the Host name field on the right, type your CentOS ip address
3. In the pane on the left, under Connection, expand SSH and click on X11
4. check the box marked Enable X11 forwarding
5. Click Open button

you may get a warning about keys or something, just click ok or whatever.

you should get a black terminal window pop up, prompting you to log in. Log in as root w/root's password. Now echo $DISPLAY, you should get something back. Now try virt-install...

make sure you have Xming started first, though - you should see the little black X icon in your system tray.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board