LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-01-2010, 11:14 AM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
virt-manager doesn't enable DVD installation media!!


Hi,

I was trying to create a virtual machine using virt-manager (xen) on a CENTOS 5 machine, but virt-manager doesn't enable the installation media to be the DVD, in only enabled the HTTP/NFS combo box.

Can anybody please tell me why did this happen?. I am able to mount and umount stuff on my DVD drive without problems but for some reason virt-manager doesn't allow me to install the vm from the DVD.

any help is greatly appreciated.


Thanks
 
Old 01-01-2010, 11:51 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by geek.ksa View Post
Hi,

I was trying to create a virtual machine using virt-manager (xen) on a CENTOS 5 machine, but virt-manager doesn't enable the installation media to be the DVD, in only enabled the HTTP/NFS combo box.

Can anybody please tell me why did this happen?. I am able to mount and umount stuff on my DVD drive without problems but for some reason virt-manager doesn't allow me to install the vm from the DVD.

any help is greatly appreciated.


Thanks
if a para virtualized host, you will have to mount your dvd to a directory and access this via the given options (http, nfs, ftp...)

see

http://centos.org/docs/5/html/5.2/Vi...t_manager.html
 
1 members found this post helpful.
Old 01-01-2010, 10:38 PM   #3
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
Thanks alot cetnosboy. Got it.
 
Old 01-02-2010, 08:15 AM   #4
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Rep: Reputation: 30
Pls tell me the exact procedure?

Though I have done it through NFS, if failed on half way. i.e, when it asks for the installation directory (not url). Then it says that directory could not be mounted. Though I have posted my problem twice, nobody responded.
It will be very helpful if the detailed procedure is explained
 
Old 01-02-2010, 11:13 AM   #5
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
@ sunils1973

probably you didn't export the correct NFS installation tree.

here's how i did it:

1. mount your DVD (containing installation tree) under say umm /media
2. export this directory through NFS by adding the line /media *(ro) in /etc/exports
3. restart nfs service
4. make sure that SELINUX & iptables are configured properly or off. I have them off
5. make sure that you see the NFS export on your local machine by running "showmount -e localhost".you should see /media *(ro)

6. when virt-manager asks you for the installation media url, input nfs:localhost:/media


hope this simplified procedure helps.

Regards,
 
Old 01-02-2010, 11:32 PM   #6
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Rep: Reputation: 30
I have mounted the dvd image by loop on /home/vertual
and when asked the url, given the ursl as /home/vertual. It started installation but stopped when it asked the ipno and directory and shown message "the directory could not be mounter".

I shall try giving url as nfs:/localhost/home/vertual

[root@centos ~]# showmount -e
Export list for centos:
/home/vertual 127.0.0.1

It may also be because, of SELinux also.. I shall try

Thank u geek
 
Old 01-03-2010, 12:09 AM   #7
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Rep: Reputation: 30
Still not solved

I think there is no problem in nfs mount and installation as it is showing the vertual manager that vertual machine vm01 is running.

The installation proceeds as follows

installation media url : nfs:localhost:/home/vertual

installation file location : /home/vm/vm01.img (with 2048 )

Then comes the Config TCP/IP dialogue box

I have opted manual and given the ip address 192.168.0.2/255.255.255.0

Then the message : Waiting for network manager to configure eth0 (eth1 is configured for internet )

Error:

That directory could not be mounted from the server

Then it shows the dialogue box with already filled

NFS servername : location
Fedora directory : /home/vertual/images/install.img



Pls help me
 
Old 01-04-2010, 10:34 AM   #8
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by sunils1973 View Post
Still not solved

I think there is no problem in nfs mount and installation as it is showing the vertual manager that vertual machine vm01 is running.

The installation proceeds as follows

installation media url : nfs:localhost:/home/vertual

installation file location : /home/vm/vm01.img (with 2048 )

Then comes the Config TCP/IP dialogue box

I have opted manual and given the ip address 192.168.0.2/255.255.255.0

Then the message : Waiting for network manager to configure eth0 (eth1 is configured for internet )

Error:

That directory could not be mounted from the server

Then it shows the dialogue box with already filled

NFS servername : location
Fedora directory : /home/vertual/images/install.img



Pls help me



what are your logs saying?? (/var/log/messages) you will find all clues here
so you are allowing nfs access to only 127.0.0.1?

whatever ip you give the vm will have to be able to access your nfs server.
your nfs server will have to be allowing access to the vm ip address.
also take into consideration any iptables or selinux rules

Last edited by centosboy; 01-04-2010 at 10:39 AM.
 
Old 01-05-2010, 10:38 AM   #9
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Rep: Reputation: 30
Thank u centosboy

I think we are close to the point (though I didn't tried the log files)

The problem may be because of the network interface of the installing vertual machine. And I have done only localhost as the nfs share. I should have given the vertual machine network interface also as the nfs share.

But some confusion is with me----- My ifconfig output is as follows
========================================================================
[root@centos ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:1C:C0E2:14
inet addr:116.68.87.176 Bcast:255.255.255.255 Mask:255.255.240.0
inet6 addr: fe80::21c:c0ff:fede:d214/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1179011 errors:0 dropped:0 overruns:0 frame:0
TX packets:31842 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:107371463 (102.3 MiB) TX bytes:4238856 (4.0 MiB)
Interrupt:252 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17756 (17.3 KiB) TX bytes:17756 (17.3 KiB)

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0xa000

vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:9592 (9.3 KiB)

xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

================================================================================

Here, eth1 is the interface through which I am getting interface. eth0 no link is currently available

peth0 - Interface of dom0? and is it the server interface?

which are these virbro0, xenbro, and vif0.0?

virbr0 has an automatically assigned ip of 192.168.122.1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen error on connection with virt-manager janinelumc Linux - Desktop 5 12-29-2010 08:05 AM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 02:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 08:51 AM
KVM + qemu + virt-manager issues cyanide_will Linux - Software 4 04-15-2008 01:43 AM
Can't enable medium "update_source" in Mandrake's Software Media Manager Chealer Linux - Software 0 12-05-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration