Linux.com

wikisb

wikisb

  • Linux.com Member
  • Posts: 12
  • Member Since: 28 Apr 11
  • Last Logged In: 04 May 11

Latest Posts

Posted by
Topic
Post Preview
Posted
  • wikisb
    RE: virt-install becoming a headache
    hi atreyu i have done what you said despite using --vnc instead of using text mode just to try if finally works a VM on my server. entering the command it printed a warning Gtk-WARNING **: cannot open display" i googled and i found something about xhost+localhost but it doesn,t solve nothing
    Link to this post 04 May 11

    hi atreyu
    i have done what you said despite using --vnc instead of using text mode just to try if finally works a VM on my server.
    entering the command it printed a warning
    Gtk-WARNING **: cannot open display"
    i googled and i found something about xhost+localhost but it doesn,t solve nothing

  • wikisb
    RE: virt-install becoming a headache
    hi again atreyu it seems that you are the only who is helping here sorry for posting things a bit late. i'm becoming feed up of it, im becoming frustated i have tried what you said trying with "--vnc" as i haven't got SDL libraries neither others of graphical things it prompted this : "(virt-viewer:9095) Gtk-WARNING **: cannot open display: Domain installation still in progress. You can reconnect to the console to complete the installation process" (the normal thing should be "running server 127.0.0.1 port 5900"???) i supose that i will have to connect with my server with putty or a similar program. my server si called "fsystem" and has a static ip as i havent put a specific port to vnc the port where is working vnc its 5900. so i have put in putty the static ip of my server and the port 5900 but it doesn't connect. with virsh list --all i get the VM running but i can't acces to it to install the OS guest. also i wanted to try with an xml. i pasted a xml file from one of my VM that i couldn't install(i did destroy & undefine of that VM) and changed some things so it showed the device /dev/cdrom or exactly the path of the iso. i did virsh create or define name.xml but i can't acces to it to begin the installation. if i do virsh list --all i see the VM of the xml running but nothing else i have done virsh console nameVM and it connects to domain but it only prints Espace character is ^] and it doesn't do nothing else.
    Link to this post 03 May 11

    hi again atreyu it seems that you are the only who is helping here
    sorry for posting things a bit late. i'm becoming feed up of it, im becoming frustated
    i have tried what you said trying with "--vnc"
    as i haven't got SDL libraries neither others of graphical things it prompted this :
    "(virt-viewer:9095) Gtk-WARNING **: cannot open display: Domain installation still in progress. You can reconnect to the console to complete the installation process" (the normal thing should be "running server 127.0.0.1 port 5900"???)
    i supose that i will have to connect with my server with putty or a similar program. my server si called "fsystem" and has a static ip as i havent put a specific port to vnc the port where is working vnc its 5900.
    so i have put in putty the static ip of my server and the port 5900 but it doesn't connect.
    with virsh list --all i get the VM running but i can't acces to it to install the OS guest.

    also i wanted to try with an xml. i pasted a xml file from one of my VM that i couldn't install(i did destroy & undefine of that VM) and changed some things so it showed the device /dev/cdrom or exactly the path of the iso. i did virsh create or define name.xml but i can't acces to it to begin the installation. if i do virsh list --all i see the VM of the xml running but nothing else

    i have done virsh console nameVM and it connects to domain but it only prints Espace character is ^] and it doesn't do nothing else.

  • wikisb
    RE: virt-install becoming a headache
    hi atreyu thanks once again to post. i have tried with "-c" or "--cdrom" but it just gets stuck at "connected to domain" "Escape character is ^]" i don't know what the heck is going on. at least with -l or --location it showed the menu installation but as before i don't know when it reaches the part of chossing the "Installation Method" i'm quite lost ;( what do you guess its going on with my server o whatever so you could execute with -c or --cdrom and i get stuck if i use them.
    Link to this post 03 May 11

    hi atreyu
    thanks once again to post.
    i have tried with "-c" or "--cdrom" but it just gets stuck at "connected to domain" "Escape character is ^]" i don't know what the heck is going on.
    at least with -l or --location it showed the menu installation but as before i don't know when it reaches the part of chossing the "Installation Method" i'm quite lost ;(
    what do you guess its going on with my server o whatever so you could execute with -c or --cdrom and i get stuck if i use them.

  • wikisb
    RE: virt-install becoming a headache
    hi again atreyu i did what you posted but i had to add a couple of things like the name of the guest & -file (wich i created with qemu-kvm of type qcow2). the -d (debug) went fine without any errors with the large command it showed me: Starting install .... Retrieving file .treeinfo.... Rretrieving file vmlinuz.... Retrieving initrd.im .... creating domain connected to domain BXVI and then it enteres the text based installation but i get stuck in a part where i commented in the first post with the command you put it only prints Lots of debuging stuff xml file Creating domain... 2 debug lines a big piece of XML connected to domain BXVI Escape character is ^] it gets stuck here it doesn't appear a text based installation as with the large command i tiped before. even if i add -x "console=ttyS0" i have all those paquets installed and libvirtd appears to work fine thanks for your response but i'm not getting further any other idea¬ø?¬ø?
    Link to this post 29 Apr 11

    hi again atreyu
    i did what you posted but i had to add a couple of things like the name of the guest & -file (wich i created with qemu-kvm of type qcow2).
    the -d (debug) went fine without any errors
    with the large command it showed me:
    Starting install ....
    Retrieving file .treeinfo....
    Rretrieving file vmlinuz....
    Retrieving initrd.im ....
    creating domain
    connected to domain BXVI
    and then it enteres the text based installation but i get stuck in a part where i commented in the first post

    with the command you put it only prints
    Lots of debuging stuff
    xml file
    Creating domain...
    2 debug lines
    a big piece of XML
    connected to domain BXVI
    Escape character is ^]
    it gets stuck here
    it doesn't appear a text based installation as with the large command i tiped before. even if i add -x "console=ttyS0"

    i have all those paquets installed and libvirtd appears to work fine
    thanks for your response but i'm not getting further
    any other idea¬ø?¬ø?

  • wikisb
    RE: virt-install becoming a headache
    hi atreyu ,dwclarke & all others!! its not a thing that i like trying it without GUI but i'm told to do it in text based. the boss rules ;(. now i will try installing Fedora but i'm not shure that is going to work i also tried to crearte a br0(bridge). the ip of my server is static is 172.20.1.16 and i'm not shure if putting in the virt-install command --network bridge:br0 will give a network interface to my VM. i followed what was written here(the static part) : http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaai/kvminstall/liaaikvminstallbridge.htm that made my host couldn't connect to internet and then i entered this command: virt-install -n BXVI\ -r 1024\ --accelerate\ --nographics\ -l http://mirrors.manchester.icecolo.com/centos/5.5/os/x86_64/ -network bridge:br0\ -f /data/images/disk.img then i could see how it was downloading the necessary files to start the installation. after this it prompted the language menu. the next menu shown is the "Configuration TCP/IP" it shows the ipv4 & ipv6 with the options of automatically configure (dhcp) o manual. i disabled ipv6 because im not using it and did the manual conf of ipv4 i tried diferent ip's but i didn't get nothing. is a bit wierd that if you attach a network interface to you guest then it shows the configuration TCP/IP when actually the br0 tells the VM how to connect or i'm mistaken¬ø?¬ø?¬ø?¬ø if something is obvious i'm sorry but i'm a noob i'm quite lost!!!
    Link to this post 29 Apr 11

    hi atreyu ,dwclarke & all others!!
    its not a thing that i like trying it without GUI but i'm told to do it in text based. the boss rules ;(.
    now i will try installing Fedora but i'm not shure that is going to work
    i also tried to crearte a br0(bridge). the ip of my server is static is 172.20.1.16 and i'm not shure if putting in the virt-install command --network bridge:br0 will give a network interface to my VM. i followed what was written here(the static part) :
    http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaai/kvminstall/liaaikvminstallbridge.htm

    that made my host couldn't connect to internet
    and then i entered this command:
    virt-install -n BXVI\
    -r 1024\
    --accelerate\
    --nographics\
    -l http://mirrors.manchester.icecolo.com/centos/5.5/os/x86_64/
    -network bridge:br0\
    -f /data/images/disk.img
    then i could see how it was downloading the necessary files to start the installation. after this it prompted the language menu. the next menu shown is the "Configuration TCP/IP" it shows the ipv4 & ipv6 with the options of automatically configure (dhcp) o manual. i disabled ipv6 because im not using it and did the manual conf of ipv4 i tried diferent ip's but i didn't get nothing.
    is a bit wierd that if you attach a network interface to you guest then it shows the configuration TCP/IP when actually the br0 tells the VM how to connect or i'm mistaken¬ø?¬ø?¬ø?¬ø
    if something is obvious i'm sorry but i'm a noob
    i'm quite lost!!!

  • wikisb
    virt-install becoming a headache
    hi all!! i want to try virtualization with kvm. i have a server that supports V-Tecnology. i installed all necessary packets so virt-install can work. i have a centOS 5.5 with no graphical interface with kernel 2.6.18-194(default kernel of this distro) , static ip. i have been looking lots of how-to's it seems very simple to do it, but i don't get well along with it, and i'm becoming a little bit feed up of it so i'm writting here. the kvm % kvm-intel modules load fine. FIRST QUESTION: in lots of how-to's tells that you need a version 2.6.20 or higher of kernel to have kvm support, but at the kvm-how-to page it tells that it wil work with version 2.6.17 or higher. i supose that if you don't have a friendly kernel kvm it will not work. am i right? i want to create 3 VM, 2 centos5.2 of 64 & 32 bits, and one fedora of 32b for the coorp i work., each of them in text mode. with this command: virt-install -n BXVI \ -r 1024\ --vcpus=1\ --os-type linux\ --accelerate\ --nographics\ -v\ -l /data/dist_img/Centos_5.2_final.iso\ / * if i put instead -cdrom instead of -l it happens the same --disk patj=/data/images/disk.img -x "console=ttyS0" before configuring networks and other things i want to create 1 VM and then i will think of adding network & other stuff. so once i press enter after putting the command above. it starts the installation of the CentOS in text mode. first appears the menu to select the language ---> no problem second appears the menu called "Installation Method" with 5 options "Local CDRom, Hard Drive, NFS image, FTP, HTTP" and i get stuck here because if i select the option of "Local CDrom" or "Hard drive" it tells me that for the first "it doesn't find the CentOS CD" and for the second tells me that "it seems that i don't have any hard drives on my system", and it asks me if i want to configure an additional device but if i put yes it prints an error telling that it failed to mount driver disk or saying that driver disk is invalid for this release of centos. if i select http it tells me to configure ipv4 telling if it will be dhcp or manual config. but with this option i supose that i had to add the option of "--network Bridge:default" even with it it does nothing, well if i configure it manually it ask me an IP, Mask, Gateway, DNS. then i put the mirror direction and the path to the centos and it prints me an error 2 QUESTION: why the h__ it shows the second menu of "Installation Method" if i put where was the iso, the virtual disk to install the OS guest...¬ø?¬ø?¬ø i don't now how to get to the next step of the installation can somebody please help me!! thanks!!
    Link to this post 28 Apr 11

    hi all!!
    i want to try virtualization with kvm. i have a server that supports V-Tecnology. i installed all necessary packets so virt-install can work. i have a centOS 5.5 with no graphical interface with kernel 2.6.18-194(default kernel of this distro) , static ip. i have been looking lots of how-to's it seems very simple to do it, but i don't get well along with it, and i'm becoming a little bit feed up of it so i'm writting here.
    the kvm % kvm-intel modules load fine.
    FIRST QUESTION: in lots of how-to's tells that you need a version 2.6.20 or higher of kernel to have kvm support, but at the kvm-how-to page it tells that it wil work with version 2.6.17 or higher. i supose that if you don't have a friendly kernel kvm it will not work. am i right?
    i want to create 3 VM, 2 centos5.2 of 64 & 32 bits, and one fedora of 32b for the coorp i work., each of them in text mode.
    with this command:

    virt-install -n BXVI \
    -r 1024\
    --vcpus=1\
    --os-type linux\
    --accelerate\
    --nographics\
    -v\
    -l /data/dist_img/Centos_5.2_final.iso\ / * if i put instead -cdrom instead of -l it happens the same
    --disk patj=/data/images/disk.img
    -x "console=ttyS0"

    before configuring networks and other things i want to create 1 VM and then i will think of adding network & other stuff.

    so once i press enter after putting the command above. it starts the installation of the CentOS in text mode.
    first appears the menu to select the language ---> no problem

    second appears the menu called "Installation Method" with 5 options "Local CDRom, Hard Drive, NFS image, FTP, HTTP" and i get stuck here
    because if i select the option of "Local CDrom" or "Hard drive" it tells me that for the first "it doesn't find the CentOS CD" and for the second tells me that "it seems that i don't have any hard drives on my system", and it asks me if i want to configure an additional device but if i put yes it prints an error telling that it failed to mount driver disk or saying that driver disk is invalid for this release of centos.
    if i select http it tells me to configure ipv4 telling if it will be dhcp or manual config. but with this option i supose that i had to add the option of "--network Bridge:default" even with it it does nothing, well if i configure it manually it ask me an IP, Mask, Gateway, DNS. then i put the mirror direction and the path to the centos and it prints me an error
    2 QUESTION: why the h__ it shows the second menu of "Installation Method" if i put where was the iso, the virtual disk to install the OS guest...¬ø?¬ø?¬ø
    i don't now how to get to the next step of the installation can somebody please help me!!
    thanks!!

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