LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Repo help (https://www.linuxquestions.org/questions/linux-newbie-8/repo-help-4175495321/)

zinny 02-18-2014 12:42 AM

Repo help
 
Pls can someone help me resolve this issue i encountered today.

A kvm that i have installed on a redhat 6.3 machine could not resolve a host server on another machine for its repository. i edited the .repo file, enabled it and turned the gpgcheck off. i also edited the /etc/yum directory where i have the rhnplugin.conf under pluginsconf, changing the enabled from 0 to 1. the kvm could ping the machine in which is hosted on and the machine can ping it back however the kvm cant ping the server on another machine where the repo file is mounted and they are all in the same domain.
if you think is from the network settings, could you pls show me or type the correct way for me to edit the network files cos i gave my network setting a static ip and made all other changes i though could get it to work.

secondly, when i use the fdisk or cfdisk command to partition the virtual disk, it shows no free space on the virtual hard disk while there is still space on it.

could you please assist me in resolving the issues.

Error messages
1. could not resolve the host server.
2. no free space available.
Thank you.

John VV 02-19-2014 02:00 PM

few things

you do have the required redhat support contract ?

that should have flipped the "rhnplugin" from off "0" to on "1"

see the redhat docs
https://access.redhat.com/site/docum...erprise_Linux/

second PLEASE!!!!!! spell out your words
Please is NOT SPELLED AS "pls" !!!!!


third
Quote:

turned the gpgcheck off
never turn that off
you NEED to be able to check if all the bits in the rpm ARE REALLY present
and none of them were dropped

so keep that turned on

Quote:

secondly, when i use the fdisk or cfdisk command to partition the virtual disk, it shows no free space on the virtual hard disk while there is still space on it.
that is the way it works
nothing wrong there
a gemu-kvm ( redhat )
vm's are just a img file
it is ALWAYS 100% full even if only 5% is used

and see :"Virtualization_Administration_Guide"
https://access.redhat.com/site/docum...ide/index.html

zinny 02-19-2014 02:47 PM

Thank you for your response and correcting me in all the areas you pointed out, however are you saying the disk works normal by not allowing me to make partitions on it saying there is no free space available.

John VV 02-19-2014 04:08 PM

that is how a VM image works
fdisk will never tell you the .img partitions
it is just seen as a file
and it will always be 100% full

zinny 02-20-2014 10:54 AM

Thank you once again. Now that I want to create partitions on it to be able to convert it to lvm, how do I go about doing that. What other command can I use to be able to achieve that.

zinny 02-25-2014 05:31 PM

Please where can I make this thread as solved. Thank you

zinny 02-25-2014 05:34 PM

Using cfdisk solved the issue for me.


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