I would like to install a CentOS 6.5 virtual machine on my machine, only with command line tools and basic networking capabilities, i.e a way to have http and ssh connections between the host (Fedora 19) and the CentOS guest.

Being still quite noobish to the nix world, I experienced some trouble.

I first did an unsuccessful attempt to install virtualbox.

I then found this page on the fedorapoject.org's wiki titled: Getting started with virtualization.

I followed the instructions, installed the packages needed (libvirt ...), and enabled virtualization in my BIOS. I installed my VM from the iso CentOS-6.5-x86_64-minimal.iso (with virt-install --prompt )

While the installation went all right, if I halt the VM I absolutely don't know how to restart it. The webpage I used apparently doesn't mention it, and having a look at virsh or virt-manager manual was not yielding help for me (but maybe because I don't know how to read it properly)

the virsh list doesn't show anything but an empty list. i tried to find the machine I created using find / -name name_of_vm_as_prompted_during_virt-install and found nothing

besides, while my guest is running, no network interface is there (except lo), despite the wiki stating that there should be a basic networking interface created by default that would allow me to have connection between guest and host. However on my host I have

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        ether 8e:3d:7c:b3:44:bf  txqueuelen 0  (Ethernet)

which, I guess, should be encouraging.

My knowledge on VM is quite limited and so is my understanding of networking.

My questions :

  1. How to access my created but closed VM
  2. How to set up the basic network capabilities
  3. since I have 2 questions, should I split them into two separate threads ?
  • Well my comment could be an answer but a pretty heavy but though very powerfull solution is using Virtual Box (that has a cli capabilities) with php virtual box sourceforge.net/projects/phpvirtualbox
    – Kiwy
    Commented Jan 9, 2014 at 11:18
  • Thank you for your answer. Unfortunately, I am such a noobie that I can't get it started.
    – Lioobayoyo
    Commented Jan 9, 2014 at 12:06
  • Installed Virtual box with yum install VirtualBox, and extracted it in my home folder. chmod u+x to the vboxinit. Got an error /etc/default/virtualboxdoes not exist. I touch so at list the exec script can go on, but nothing happened after that.
    – Lioobayoyo
    Commented Jan 9, 2014 at 12:07
  • Well I can't make a chat now but maybe a bit later.
    – Kiwy
    Commented Jan 9, 2014 at 12:07
  • thanks! I feel so lost, a lot of docs focus on problems much more complex, nobody seems to just get stuck at this point :/
    – Lioobayoyo
    Commented Jan 9, 2014 at 12:11

1 Answer 1


Ok, finally working like a charm Answer to 1) As suggested by slm, using virt-manager GUI kept trace of my created VM and I'm able to start it again. Still interested in the way to do it via CLI tools though.

Answer to 2)

It was just a CentOS installation configuration misunderstanding, not related to libvirt (which had already done its job, see libvirt installation instructions about network, I don't remember where I got them but there are pretty straightforward for basic network config).

I just missed the "Configure network" button on CentOS installation screens. Or config manually, see for exemple : wiki.centos.org (slash) FAQ/CentOS6#head-b67e85d98f0e9f1b599358105c551632c6ff7c90

  • 1
    Just to complement the answer, if you skip che Configure Network wizard, you can still use networking. You have to edit the /etc/sysconfig/networking and enable NETWORKING=yes and edit the /etc/sysconfig/network-scripts/ifcfg-eth0 and enable ONBOOT=yes.
    – ludiegu
    Commented Jan 10, 2014 at 8:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .